纸通宝小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

149 lines
8.2 KiB

<wxs module="goods" src="../../goods/goods.wxs"></wxs>
<cu-custom bgColor="bg-white" isBack="{{true}}">
<view slot="content">{{form.bidType == 1 ? '我要卖货' : '发布竞价'}}</view>
</cu-custom>
<scroll-view scroll-y="true" style="height: {{height}}rpx;" scroll-into-view="{{toView}}">
<view style="display:{{!focus ? 'block' : 'none'}}">
<view class="cu-bar bg-white margin-top">
<view class="action text-bold" style="color:#333333">{{!disabled?'商品图片(至少上传2张)':'商品图片'}}</view>
<view class="action text-sg">{{imgLength}}{{!disabled? '/6':'张'}}</view>
</view>
<wux-uploader count="6" fileList="{{fileList}}" bindcustomevent="onImageChange"></wux-uploader>
</view>
<view style="display:{{!focus ? 'block' : 'none'}}">
<view class="cu-bar bg-white margin-top">
<view class="action text-bold" style="color:#333333">上传视频(选填)</view>
<view class="action text-sg">支持MP4格式</view>
</view>
<wux-uploader count="1" fileList="{{videoList}}" type="{{'video'}}" bindcustomevent="onVideoChange"></wux-uploader>
</view>
<view class="cu-list menu no-card sm-border margin-top">
<view id="operation" class="cu-item" bindtap="showPaperPicker">
<view class="flex flex-justify content cu-item arrow">
<view class="text-sg" style="min-width:170rpx">废纸品类:</view>
<view class="flex" style="text-align:left">
<view class="text-sg {{cateName?'text-blue':'input-grey'}}">{{cateName||'请选择废纸品类'}}</view>
</view>
</view>
<text class="cuIcon-right text-gray" wx:if="{{!flag}}" style="font-size:32rpx;padding-top:2rpx"></text>
</view>
<view id="price" class="cu-item" wx:if="{{form.bidType == 1}}">
<view class="flex flex-justify content cu-item arrow">
<view class="text-sg" style="min-width:170rpx">商品单价({{kg? '元/KG' : '元/吨'}}):</view>
<input id="unitPrice" maxlength="8" type="{{kg? 'digit' : 'number'}}" class="cate-input"
placeholder-style="color:#aaa" value="{{form.unitPrice||''}}" placeholder="点击输入商品单价" bindinput="bindInput"
bindblur="sumAmount" style="flex: 1"/>
</view>
</view>
<view id="price" class="cu-item" wx:if="{{form.bidType == 2}}">
<view class="flex flex-justify content cu-item arrow">
<view class="text-sg" style="min-width:170rpx">起拍单价({{kg? '元/KG' : '元/吨'}}):</view>
<input id="unitPrice" maxlength="8" type="{{kg? 'digit' : 'number'}}" class="cate-input"
placeholder-style="color:#aaa" value="{{form.unitPrice||''}}" placeholder="点击输入起拍单价" bindinput="bindInput"
bindblur="sumAmount" style="flex: 1"/>
</view>
</view>
<view id="weight" class="cu-item">
<view class="flex flex-justify content cu-item arrow">
<view class="text-sg" style="min-width:170rpx">库存重量({{ kg? 'KG' : '吨'}}):</view>
<input id="stock" maxlength="8" type="{{kg? 'number' : 'digit'}}" class="cate-input"
placeholder-style="color:#aaa;" value="{{form.stock||''}}" placeholder="点击输入库存重量" bindinput="bindInput"
bindblur="sumAmount" style="flex: 1"/>
</view>
</view>
<view id="price" class="cu-item" wx:if="{{form.bidType == 1}}">
<view class="flex flex-justify content cu-item arrow">
<view class="text-sg" style="min-width:170rpx">最少起订重量({{ kg? 'KG' : '吨'}}):</view>
<input id="lowestNum" maxlength="8" type="{{kg? 'number' : 'digit'}}" class="cate-input"
placeholder-style="color:#aaa" value="{{form.lowestNum||''}}" placeholder="点击输入起订重量" bindinput="bindInput" style="flex: 1"/>
</view>
</view>
<view id="biddingInterval" class="cu-item" bindtap="showRadioPicker" wx:if="{{form.bidType == 2}}">
<view class="flex flex-justify content cu-item arrow">
<view class="text-sg" style="min-width:170rpx">竞价有效时:</view>
<view class="flex" style="text-align:left">
<view class="text-sg {{intervalName?'text-blue':'input-grey'}}">{{intervalName||'请选择竞价有效时'}}</view>
</view>
</view>
<text class="cuIcon-right text-gray" wx:if="{{!flag}}" style="font-size:32rpx;padding-top:2rpx"></text>
</view>
<view id="dopantRate" class="cu-item" bindtap="showRadioPicker">
<view class="flex flex-justify content cu-item arrow">
<view class="text-sg" style="min-width:170rpx">含杂比例:</view>
<view class="flex" style="text-align:left">
<view class="text-sg {{dopantName?'text-blue':'input-grey'}}">{{dopantName||'请选择含杂比例'}}</view>
</view>
</view>
<text class="cuIcon-right text-gray" wx:if="{{!flag}}" style="font-size:32rpx;padding-top:2rpx"></text>
</view>
<view id="waterRate" class="cu-item" bindtap="showRadioPicker">
<view class="flex flex-justify content cu-item arrow">
<view class="text-sg" style="min-width:170rpx">湿水比例:</view>
<view class="flex" style="text-align:left">
<view class="text-sg {{waterName?'text-blue':'input-grey'}}">{{waterName||'请选择湿水比例'}}</view>
</view>
</view>
<text class="cuIcon-right text-gray" wx:if="{{!flag}}" style="font-size:32rpx;padding-top:2rpx"></text>
</view>
<view class="cu-item" bindtap="showRegion">
<view class="flex flex-justify content cu-item arrow">
<view class="text-sg" style="min-width:170rpx">所在地区:</view>
<view class="flex" style="text-align:left">
<view class="text-sg {{form.areaStr?'text-blue':'input-grey'}}">{{form.areaStr||'请选择所在地区'}}</view>
</view>
</view>
<text class="cuIcon-right text-gray" wx:if="{{!flag}}" style="font-size:32rpx;padding-top:2rpx"></text>
</view>
<view class="cu-form-group">
<view class="title">详细地址:</view>
<input id="locDetails" disabled="{{disabled}}" placeholder-style="color:#aaa" placeholder="请输入店铺详细地址"
value="{{form.locDetails}}" bindinput="bindInput" style="flex: 1"></input>
</view>
<view class="cu-bar bg-white margin-top flex flex-justify">
<view class="action" style="color:#333333">商品描述:</view>
<view class="action" bindtap="templatDescription">
<text class="cuIcon-sort text-gray" style="font-size:40rpx;margin-right:8rpx;padding-top:2rpx"></text>
<view style="color:#999999;font-size:30rpx;">选择模板</view>
</view>
</view>
<view class="bg-white">
<view class="textarea" wx:if="{{picking || !focus}}" bindtap="textareaFocus">
{{form.description.length?form.description:'点击输入商品描述,最多100字'}}</view>
<textarea wx:else id="description" maxlength="100" value="{{form.description}}" bindfocus="InputFocus"
bindblur="InputBlur" class="textarea" cursor-spacing="40" show-confirm-bar="{{false}}"
adjust-position="{{true}}" focus="{{focus}}" bindinput="bindInput" placeholder="点击输入备注,最多100字"
placeholder-style="color:#aaa"></textarea>
</view>
<view style="height:{{keyboard}}px"></view>
<!-- <view class="cu-bar bg-white margin-top flex flex-justify" wx:if="{{form.bidType == 1}}">
<view class="action" style="color:#333333">交易规则:</view>
</view>
<view class="bg-white" wx:if="{{form.bidType == 1}}">
<view class="textarea"></view>
</view>
<view class="cu-bar bg-white margin-top flex flex-justify" wx:if="{{form.bidType == 2}}">
<view class="action" style="color:#333333">竞价规则:</view>
</view>
<view class="bg-white" wx:if="{{form.bidType == 2}}">
<view class="textarea"></view>
</view> -->
</view>
</scroll-view>
<view style="height:{{136 + safeBottom}}rpx"></view>
<view class="cu-bar bg-white shadow foot flex flex-justify" style="height:{{120 + safeBottom}}rpx;padding: 32rpx 32rpx {{safeBottom + 32}}rpx 32rpx;">
<view>
<text class="text-gray text-sg">预估总价:</text>
<text class="text-black text-bold" style="font-size: 44rpx">{{goods.formateAmount(sumAmount)}}</text>
<text class="text-gray text-sg" style="margin-left:8rpx">元</text>
</view>
<button class="cu-btn offer-btn" disabled="{{requesting}}" bindtap="submitForm">确认</button>
</view>
<select-view id="picker-view" bindcustomevent="onPaperChange"></select-view>
<wux-cascader id="wux-cascader" value="{{region}}" options="{{ options }}" bind:close="onRegionChange" />
<wux-cascader visible="{{ visible }}" controlled value="{{ cateValue }}" options="{{ cateList }}"
bind:close="onCategory" bind:load="onLoadOptions" />