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.
66 lines
2.9 KiB
66 lines
2.9 KiB
<!--pages/adress/create/index.wxml-->
|
|
<cu-custom bgColor="bg-white" isBack="{{true}}">
|
|
<view slot="content">{{type==1?'新增':'编辑'}}地址</view>
|
|
</cu-custom>
|
|
|
|
<view class="cu-form-group margin-top">
|
|
<view class="title">收货人:</view>
|
|
<input id="receiver" disabled="{{disabled}}" placeholder-style="color:#aaa" placeholder="请输入收货人" value="{{form.receiver}}" bindinput="bindinput"></input>
|
|
</view>
|
|
<view class="cu-form-group">
|
|
<view class="title">手机号码:</view>
|
|
<input id="phone" disabled="{{disabled}}" placeholder-style="color:#aaa" placeholder="请输入手机号码" value="{{form.phone}}" bindinput="bindinput"></input>
|
|
</view>
|
|
<view class="cu-form-group" data-index="1" style="border-top: 1px solid #f3f3f3" bindtap="showRegion">
|
|
<view class="flex text-sg">所在地区:
|
|
<view class="{{form.areaStr||'input-grey'}}">{{form.areaStr||'请选择所在地区'}}</view>
|
|
</view>
|
|
<text class="cuIcon-right text-gray" wx:if="{{!disabled}}"></text>
|
|
</view>
|
|
<view class="cu-form-group" style="border-top: 1rpx solid #f3f3f3">
|
|
<view class="title">详细地址:</view>
|
|
<input id="details" disabled="{{disabled}}" placeholder-style="color:#aaa" placeholder="请输入详细地址" value="{{form.details}}" bindinput="bindinput"></input>
|
|
</view>
|
|
|
|
<view class="cu-form-group" style="border-top: 1rpx solid #f3f3f3">
|
|
<view class="title">设为默认地址:</view>
|
|
<radio-group bindchange="radiochange" value="{{form.isDefault}}">
|
|
<radio value='1' checked="{{checked === '1' ? 'true' : ''}}">是</radio>
|
|
<radio value='0' checked="{{checked === '0' ? 'true' : ''}}" style="margin-left:24rpx">否</radio>
|
|
</radio-group>
|
|
</view>
|
|
|
|
<view class="cu-bar bg-white margin-top" wx:if="{{type===0||type==='0'}}">
|
|
<view class="action">
|
|
<text class="cuIcon-title text-orange "></text> 删除地址
|
|
</view>
|
|
<view class="action">
|
|
<button class="cu-btn bg-red round shadow-blur page-btn" bindtap="showModal" data-target="DialogModal1">删除</button>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="cu-modal {{modalName=='DialogModal1'?'show':''}}">
|
|
<view class="cu-dialog">
|
|
<view class="cu-bar bg-white justify-end">
|
|
<view class="content">提示</view>
|
|
<view class="action" bindtap="hideModal">
|
|
<text class="cuIcon-close text-red"></text>
|
|
</view>
|
|
</view>
|
|
<view class="padding-xl">
|
|
确定删除此地址信息吗?
|
|
</view>
|
|
<view class="cu-bar bg-white justify-end">
|
|
<view class="action">
|
|
<button class="cu-btn line-green text-green" bindtap="hideModal">取消</button>
|
|
<button class="cu-btn bg-green margin-left" bindtap="sureModal">确定</button>
|
|
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view style="padding:48rpx">
|
|
<wux-button block type="positive" disabled="{{requesting}}" bind:click="submitForm">保存</wux-button>
|
|
</view>
|
|
|
|
<wux-cascader id="wux-cascader" value="{{region}}" options="{{ options }}" bind:close="onRegionChange" bind:init="onRegionInit" />
|