fireflysg-wxapp/pages/article/publish1.wxml

51 lines
2.4 KiB
Plaintext

<!--pages/article/publish.wxml-->
<view>
<view class="enter-sty-left">请选择商品主图</view>
<uploadImages bindmyevent="myEventListener1" count='1' showUrl="{{showImgUrl}}" getListImg="{{getListImg}}" uploadUrl="{{uploadImgUrl}}"></uploadImages>
<input type="text" class="enter-sty" placeholder-class="pla-s" bindinput='getInputTitle' value='{{title}}' placeholder="输入商品名称" />
<view class="enter-con">
<textarea placeholder="请输入商品描述" class="enter-wrap" bindinput='getInputContent' value='{{content}}' placeholder-style="color:#a0a0a0;" />
</view>
<uploadImages bindmyevent="myEventListener" count='{{countPic}}' showUrl="{{showImgUrl}}" uploadUrl="{{uploadImgUrl}}"></uploadImages>
<view class="tab-list">
<view class="list flex-row" bindtap="typeEvent">
<view class="flex-col">类型</view>
<view>
{{typeName}} <image src="../../images/arrow_right.png" class="arrow"></image>
</view>
</view>
<view class="list flex-row">
<view class="flex-col">积分</view>
<view>
<input type="text" placeholder="请输入积分数量" placeholder-style="color:#D6D6D6" bindinput='getInputPoint' value="{{point}}" class="jifen-sty"/>
</view>
</view>
<view class="list flex-row">
<view class="flex-col">库存</view>
<view>
<input type="text" placeholder="请输入库存数量" placeholder-style="color:#D6D6D6" bindinput='getInputStockCount' value="{{stockCount}}" class="jifen-sty"/>
</view>
</view>
<!-- <view class="list flex-row">
<view class="flex-col">运费</view>
<view>
<radio-group class="group" bindchange="radioChange">
<view class="label-2" wx:for="{{radioItems}}">
<radio id="{{item.name}}" value="{{item.name}}" color="#3D98FF" checked="{{item.checked}}"></radio>
<label class="label-2-text" for="{{item.name}}"><text>{{item.name}}</text></label>
</view>
</radio-group>
</view>
</view> -->
</view>
<button class="pub-btn" style="margin-top:50px" bindtap="submit">发布</button>
</view>
<view class="type-wrap" wx:if="{{layerHide}}">
<view class="list-wrap">
<view wx:for="{{categoryList}}" wx:key="index" data-item="{{item}}" data-id="{{item.id}}" bindtap="currentTab" class="type-list flex-row {{item.id==categoryId ? 'list-cur' : ''}}">
<text>{{item.name}}</text>
<image src="../../images/select.png" class="select"></image>
</view>
</view>
</view>