113 lines
5.0 KiB
Plaintext
113 lines
5.0 KiB
Plaintext
<view class="custom-scroll-view">
|
|
<scroll-view class="main" scroll-y scroll-with-animation scroll-into-view="{{scrollToViewId}}">
|
|
<view class="page-container img-area">
|
|
<view class="head">
|
|
<view class="title">
|
|
<image class="icon" src="/assets/icon/help/images.png"/>
|
|
<view>快捷下单</view>
|
|
</view>
|
|
<view class="sub-title">
|
|
上传取件信息图片时,图片需清晰显示取件位置信息
|
|
</view>
|
|
</view>
|
|
<button class="button" bind:tap="chooseImage" type="default" wx:if="{{tempImgs.length==0}}">点击上传取件图片</button>
|
|
<block wx:else>
|
|
<view class="photos">
|
|
<view class="item {{item.loading?'current':''}}" wx:for="{{tempImgs}}" wx:key="index">
|
|
<image class="image" src="{{item.tempFilePath||item.serverUrl}}"/>
|
|
<progress wx:if="{{!item.uploaded}}" class="progress" percent="{{item.progress}}" stroke-width="4"/>
|
|
<view class="close-area" bind:tap="removeImage" data-index="{{index}}">
|
|
<image src="/assets/icon/help/close-btn.png" class="icon"/>
|
|
</view>
|
|
</view>
|
|
<view class="take-photo item" bind:tap="chooseImage"
|
|
wx:if="{{tempImgs.length<maxChooseImgCount}}">
|
|
<image class="icon" src="/assets/icon/help/plus2.png"/>
|
|
</view>
|
|
</view>
|
|
<view class="spliter"></view>
|
|
<view class="img-count" animation="{{imgOrderCountAnimation}}">
|
|
<view class="tips">请正确选择包裹数量</view>
|
|
<view class="number-selector">
|
|
<view class="button reduce {{imgOrderCount<=1?'disabled':''}}" bind:tap="reduceImgOrderCount"></view>
|
|
<view class="value">{{imgOrderCount}}</view>
|
|
<view class="button plus" bind:tap="plusImgOrderCount"></view>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
</view>
|
|
<view class="page-container" wx:for="{{stationList}}" wx:key="index">
|
|
<view class="head">
|
|
<view class="title">
|
|
<image class="icon" src="/assets/icon/help/house.png"/>
|
|
<view>{{item.name}}</view>
|
|
</view>
|
|
<view class="sub-title">
|
|
{{item.service_text}}
|
|
</view>
|
|
</view>
|
|
<view class="package-list">
|
|
<view class="item" wx:for="{{item.package}}" wx:for-item="pItem" wx:for-index="pIndex" wx:key="pIndex">
|
|
<label class="label">取件码{{pIndex+1}}</label>
|
|
<input value="{{pItem}}" class="input" bindinput="setPackageCode" cursor-spacing="136rpx"
|
|
data-index="{{index}}" data-p_index="{{pIndex}}" focus="{{item.focus&&pItem==''}}"/>
|
|
<button class="button" bind:tap="deletePackage" data-index="{{index}}" data-p_index="{{pIndex}}">
|
|
<image class="icon" src="/assets/icon/help/delete.png"/>
|
|
</button>
|
|
</view>
|
|
</view>
|
|
<button type="default" class="button" bind:tap="addPackage" data-index="{{index}}">
|
|
<image src="/assets/icon/help/plus.png" class="icon"/>
|
|
<label>添加取件码</label>
|
|
</button>
|
|
</view>
|
|
<view class="cells cells-access" bind:tap="showSendType">
|
|
<view class="cell">
|
|
<view class="cell-hd">配送</view>
|
|
<view class="cell-bd">
|
|
<view class="line1">
|
|
{{sendTypeKV[sendType]}}
|
|
</view>
|
|
<view>配送时段:{{timePeriods[timePeriodsIndex].time_period_name}}</view>
|
|
</view>
|
|
<view class="cell-ft"></view>
|
|
</view>
|
|
</view>
|
|
<view class="scroll-view-dispatch" id="scrollViewDispatch"></view>
|
|
<!-- <view class="page-container send-way">
|
|
<view class="title">投递方式</view>
|
|
<radio-group bindchange="sendTypeChange" class="radio">
|
|
<label class="item">
|
|
<radio value="DELIVERY_TO_ROOM" checked="{{sendType=='DELIVERY_TO_ROOM'}}"/>
|
|
<label>敲门递件</label>
|
|
</label>
|
|
<label class="item">
|
|
<radio value="DELIVERY_AT_DOORSTEP" checked="{{sendType=='DELIVERY_AT_DOORSTEP'}}"/>
|
|
<label>放在门口</label>
|
|
</label>
|
|
</radio-group>
|
|
</view> -->
|
|
</scroll-view>
|
|
<view class="bottom-bar-v2">
|
|
<button class="button" type="primary" loading="{{imgUploading}}" disabled="{{imgUploading}}" bind:tap="bottomBarButtonTap">保存并使用</button>
|
|
</view>
|
|
</view>
|
|
|
|
<page-container model:show="{{isShowDeliverType}}" position="bottom" round>
|
|
<view class="content deliver-type-content">
|
|
<view class="title">投递方式</view>
|
|
<view class="deliver-list">
|
|
<view wx:for="{{sendTypeKV}}" wx:key="index" class="item {{index==sendType?'current':''}}" bind:tap="chooseDeliverType" data-index="{{index}}">
|
|
{{item}}
|
|
</view>
|
|
</view>
|
|
<view class="title">配送时段</view>
|
|
<view class="time-list">
|
|
<view wx:for="{{timePeriods}}" wx:key="index" bind:tap="chooseTime" data-index="{{index}}"
|
|
class="item {{timePeriodsIndex==index?'current':''}}">
|
|
{{item.time_period_name}}
|
|
</view>
|
|
</view>
|
|
<button type="primary" class="button" bind:tap="confirmDeliverType">确定</button>
|
|
</view>
|
|
</page-container> |