dm-wechat-mini/pages/help/package/index.wxml
2025-02-15 23:33:33 +08:00

42 lines
1.8 KiB
Plaintext

<view class="custom-scroll-view">
<view class="main">
<view class="page-container" wx:for="{{stationList}}" wx:key="index">
<view class="head">
<image class="icon" src="/assets/icon/help/house@2x.png"/>
<view class="text">
<view class="title">{{item.name}}</view>
<view class="sub-title">{{item.service_text}}</view>
</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"
data-index="{{index}}" data-p_index="{{pIndex}}"/>
<button class="button" bind:tap="deletePackage" data-index="{{index}}" data-p_index="{{pIndex}}">
<image class="icon" src="/assets/icon/help/delete@2x.png"/>
</button>
</view>
</view>
<button type="default" class="button" bind:tap="addPackage" data-index="{{index}}">
<image src="/assets/icon/help/plus@2x.png" class="icon"/>
<label>添加取件码</label>
</button>
</view>
<view class="page-container">
<radio-group class="radio" model:value="{{sendType}}">
<label>
<radio value="DELIVERY_AT_DOORSTEP" checked="{{sendType=='DELIVERY_AT_DOORSTEP'}}"/>
<label>放在门口</label>
</label>
<label>
<radio value="DELIVERY_TO_ROOM" checked="{{sendType=='DELIVERY_TO_ROOM'}}"/>
<label>敲门递件</label>
</label>
</radio-group>
</view>
</view>
<view class="bottom-bar-v2">
<button class="button" type="primary" bind:tap="bottomBarButtonTap">保存并使用</button>
</view>
</view>