104 lines
4.7 KiB
Plaintext
104 lines
4.7 KiB
Plaintext
<view class="custom-scroll-view">
|
|
<scroll-view class="main" scroll-y scroll-with-animation scroll-into-view="{{scrollToViewId}}" enhanced show-scrollbar="{{false}}">
|
|
<view class="scroll-view-top-margin"></view>
|
|
<view class="page-container ai-img-area" hover-class="hover" bind:tap="chooseImage">
|
|
<view class="title">
|
|
<image src="/assets/icon/help/ai.png" class="icon"/>
|
|
<view>上传图片</view>
|
|
</view>
|
|
<view class="sub-title">请上传含有驿站,取件码信息的截图</view>
|
|
<view class="loading" wx:if="{{imgUploading||recogniting}}">
|
|
<view class="weui-loading"></view>
|
|
<view class="sub-title">
|
|
{{
|
|
imgUploading?'上传图片...':recogniting?'AI图像识别中...':''
|
|
}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="page-container manually-code" bind:tap="manuallyAdd">
|
|
<image src="/assets/icon/help/plus2.png" class="icon"/>手动录入取件码
|
|
</view>
|
|
|
|
<view class="page-container station {{item.animationOver?'animation-over':''}}"
|
|
wx:for="{{choosedStationList}}" wx:key="index"
|
|
animation="{{item.animation}}">
|
|
<view class="head">
|
|
<view class="title">
|
|
<view class="icon ai" wx:if="{{item.imgUrl}}">AI识别</view>
|
|
<image class="icon" src="/assets/icon/help/house.png" wx:else/>
|
|
<view class="name">{{item.name}}</view>
|
|
<image data-index="{{index}}" bind:tap="showStationName" class="edit"
|
|
src="/assets/icon/help/edit.png" wx:if="{{item.imgUrl}}"/>
|
|
<view class="right">
|
|
<image wx:if="{{item.imgUrl}}" class="view-image" data-url="{{item.imgUrl}}"
|
|
src="/assets/icon/help/images.png" bind:tap="viewImage"/>
|
|
</view>
|
|
</view>
|
|
<!-- <view class="sub-title" wx:if="{{!item.imgUrl}}">
|
|
{{item.service_text}}
|
|
</view> -->
|
|
</view>
|
|
<view class="package-list">
|
|
<view class="item" wx:for="{{item.pickup_codes}}" 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" bindblur="checkInput" placeholder="输入取件码"
|
|
data-index="{{index}}" data-p_index="{{pIndex}}" focus="{{item.focus&&pItem==''||item.focusIndex==pIndex&&item.focus}}"/>
|
|
<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 wx:if="{{timePeriodsIndex>-1}}">
|
|
配送时段:{{timePeriods[timePeriodsIndex].time_period_name}}
|
|
</view>
|
|
<view wx:else>配送时段:请选择</view>
|
|
</view>
|
|
<view class="cell-ft"></view>
|
|
</view>
|
|
</view>
|
|
<view class="scroll-view-dispatch" id="scrollViewDispatch"></view>
|
|
</scroll-view>
|
|
<view class="bottom-bar-v2">
|
|
<button class="button" type="primary" bind:tap="bottomBarButtonTap"
|
|
loading="{{imgUploading||recogniting}}" disabled="{{imgUploading||recogniting}}">
|
|
保存并使用
|
|
</button>
|
|
</view>
|
|
</view>
|
|
|
|
<page-container model:show="{{isShowDeliverType}}" wx:if="{{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.order_full?'order_full':''}}">
|
|
{{item.time_period_name}}
|
|
</view>
|
|
</view>
|
|
<button type="primary" class="button" bind:tap="confirmDeliverType">确定</button>
|
|
</view>
|
|
</page-container>
|
|
|
|
<modal-view editable titleText="修改驿站" content="{{currentEditStation.name||''}}"
|
|
model:show="{{isShowStationEditor}}" use-input auto-focus bind:ok="editStationName"
|
|
contentPlaceholder="驿站名不能为空"/> |