198 lines
8.8 KiB
Plaintext
198 lines
8.8 KiB
Plaintext
<!--packageE/others/cloudwarehouse/cloudOrder/cloudOrder.wxml-->
|
||
<!-- <import src="../../../wxParse/wxParse.wxml" /> -->
|
||
<view class="goodsinfo" wx:if="{{!diyShow}}">
|
||
<!-- 配送方式 -->
|
||
<van-tabs active="{{selectedMode}}" bind:change="setDispatch">
|
||
<block wx:for="{{dispatch}}" wx:key="index" wx:for-item="item" wx:for-index="index">
|
||
<van-tab title="{{item.name}}">
|
||
<!-- 快递 1 -->
|
||
<block wx:if="{{item.dispatch_type_id==1}}">
|
||
<view class="addr" bindtap="showAddress" wx:if="{{!show_address}}">
|
||
<view class="left">
|
||
<view class="map_marker">
|
||
<van-icon name="location" color="#333" size='32rpx' />
|
||
</view>
|
||
</view>
|
||
<view class="p" wx:if="{{realname}}">
|
||
<view class="name">收件人:{{realname}} {{mobile}}</view>
|
||
<view class="span">{{address}}</view>
|
||
</view>
|
||
<view class="p" wx:if="{{!realname}}">
|
||
请点击选择地址
|
||
</view>
|
||
<view class="right" wx:if="{{realname}}">
|
||
<view class="angle_right">
|
||
<van-icon name="arrow" color="#333" size='32rpx' />
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</block>
|
||
<block wx:if="{{item.dispatch_type_id==8}}">
|
||
<!-- 自提点 8 -->
|
||
<view class="addr">
|
||
<view class="left">
|
||
<view class="map_marker">
|
||
<van-icon name="location" color="#333" size='32rpx' />
|
||
</view>
|
||
</view>
|
||
<view class="p" wx:if="{{!defaultSelfCarry.id}}">
|
||
<view class="name">抱歉,该地区暂无自提点,请更换地区试试!</view>
|
||
</view>
|
||
<view class="p" wx:if="{{defaultSelfCarry.id}}">
|
||
<view class="name">自提地点:{{defaultSelfCarry.deliver_name}} {{defaultSelfCarry.deliver_mobile}}</view>
|
||
<view class="span">{{defaultSelfCarry.full_address}}</view>
|
||
</view>
|
||
<view class="right_change" catchtap="gotochangeSelfCarry">更换</view>
|
||
</view>
|
||
<view style="margin-bottom:20rpx;">
|
||
<van-cell-group>
|
||
<van-field bind:clear="infonameclear" bind:input="infonamebtn" clearable value="{{linkinfo.name}}"
|
||
label="提货人姓名" placeholder="请输入提货人姓名" />
|
||
<van-field bind:clear="infomobileclear" bind:input="infomobilebtn" type="number" clearable
|
||
value="{{linkinfo.mobile}}" label="提货人手机" placeholder="请输入提货人手机" />
|
||
</van-cell-group>
|
||
<text class="dis_warn">友情提示:请核对手机号码无误后再提交订单!</text>
|
||
</view>
|
||
</block>
|
||
</van-tab>
|
||
</block>
|
||
</van-tabs>
|
||
<!-- 配送方式end -->
|
||
<view class="newShop" wx:for="{{order_data}}" wx:key="{{orindex}}" wx:for-item="item" wx:for-index="orindex">
|
||
<block wx:key="index" wx:for="{{item.order_goods}}" wx:for-item="g">
|
||
<view class="newShop_top">
|
||
<view class="left">
|
||
<image src="{{g.thumb}}"></image>
|
||
</view>
|
||
<view class="right">
|
||
<view class="name">{{g.title}}</view>
|
||
<view>规格:{{g.goods_option_title?g.goods_option_title+',':''}} x{{g.total}}</view>
|
||
</view>
|
||
</view>
|
||
<view class="newShop_bottom">
|
||
<textarea value="{{note[item.pre_id]}}" maxlength="{{50}}" bindinput="noteHandle" data-item="{{item}}"
|
||
data-preid="{{item.pre_id}}" placeholder="买家留言:50字以内(选填)"></textarea>
|
||
</view>
|
||
</block>
|
||
</view>
|
||
|
||
<view class="posBtn">
|
||
<view catchtap="submit">提交订单</view>
|
||
</view>
|
||
<van-popup bind:click-overlay="addresclosebtn" show="{{popupSpecs}}" position="bottom" overlay="{{true}}">
|
||
<view class="add-info">
|
||
<view class="ul">
|
||
<view class="li" wx:key="{{addressindex}}" wx:for="{{addressData}}" wx:for-item="item"
|
||
wx:for-index="addressindex" catchtap="selectAddress" data-addr="{{item}}">
|
||
<view class="liia">
|
||
<view class="span name">{{item.username+" "+item.mobile}}</view>
|
||
<view class="p address" wx:if="{{item.street}}">
|
||
{{item.province+" "+item.city+" "+item.district+" "+item.street}} {{item.address}}
|
||
</view>
|
||
<view class="p address" wx:else>
|
||
{{item.province+" "+item.city+" "+item.district}} {{item.address}}
|
||
</view>
|
||
</view>
|
||
<view class="p edit_btn" wx:if="{{item.isdefault}}" catchtap="editAddress" data-item="{{item}}">编辑</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="button address-plus" catchtap="addAddress">新增地址</view>
|
||
</van-popup>
|
||
<van-popup custom-style="width:100%;height:100%;" show="{{popAddAddress}}" position="right" overlay="{{false}}">
|
||
<view class="addcontent">
|
||
<van-nav-bar title="添加地址" left-text="" right-text="" left-arrow bind:click-left="popAddressClose" />
|
||
<view class="address_a">
|
||
<view class="ul">
|
||
<view class="li">
|
||
<view class="span">收件人:</view>
|
||
<input type="text" value="{{form.username}}" maxlength="{{20}}" placeholder="请输入收件人"
|
||
bindinput="usernameinp" />
|
||
</view>
|
||
<view class="li">
|
||
<view class="span">联系电话:</view>
|
||
<input type="number" value="{{form.mobile}}" maxlength="{{15}}" placeholder="请输入联系电话"
|
||
bindinput="mobileinp" />
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="defaultAdd">
|
||
<view class="left">设置默认地址:</view>
|
||
<view class="right">
|
||
<van-switch checked="{{form.isDefault}}" bind:change="isDefaultChange" />
|
||
</view>
|
||
</view>
|
||
<view class="addName">
|
||
<van-cell title="所在地区:" value="{{addressName?addressName:'请选择收货地址'}}" is-link bind:click="openDateLwtbtn" />
|
||
</view>
|
||
<view class="addstreet" wx:if="{{strShow}}">
|
||
<van-cell title="街道:" value="{{form.street?form.street:'请选择街道'}}" is-link bind:click="streetChoose" />
|
||
</view>
|
||
<view class="text_adderss">
|
||
<input placeholder="请输入详细地址" bindinput="addressinp" value="{{form.address}}" maxLength="100" />
|
||
</view>
|
||
<view class="getLocation" catchtap='goLocation_ro' wx:if='{{delivery_status == 1 && selected == 3}}'>
|
||
<view class="left">
|
||
<icon class="iconfont icon-icon_location"></icon>
|
||
<text wx:if="{{is_point}}">获取经纬度:({{is_point.lng}} , {{is_point.lat}})</text>
|
||
<text wx:else>获取经纬度</text>
|
||
</view>
|
||
<view class="right">
|
||
<icon class="iconfont icon-member_right"></icon>
|
||
</view>
|
||
</view>
|
||
<view class="adderss_btn" wx:if="{{create}}" data-apptype="" catchtap="appendAddress">
|
||
<view class="button">
|
||
<view class="plus_circle">
|
||
<van-icon name="add-o" />
|
||
</view>
|
||
<view class="text">保存</view>
|
||
</view>
|
||
</view>
|
||
<view class="adderss_btn" wx:if="{{!create}}" catchtap="appendAddress" data-apptype="update">
|
||
<view class="button">编辑</view>
|
||
</view>
|
||
</view>
|
||
</van-popup>
|
||
|
||
<view class="b-mask {{openDateLw}}" bindtap="_closeDateLw"></view>
|
||
<view class="dateBe {{openDateLw}}">
|
||
<view class="head">
|
||
<view class="ll" bindtap="_closeDateLw">取消</view>
|
||
<view class="rr" bindtap="_okAddress">确定</view>
|
||
</view>
|
||
<view class="main">
|
||
<picker-view indicator-style="height: 50px;" style="width: 100%; height: 300px;"
|
||
value="{{[pickerValue[0],pickerValue[1],pickerValue[2]]}}" bindchange="bindChange">
|
||
<picker-view-column id="provinceData">
|
||
<view wx:for="{{provinceData}}" wx:key="index" style="line-height: 50px">
|
||
{{item.areaname}}
|
||
</view>
|
||
</picker-view-column>
|
||
<picker-view-column id="cityData">
|
||
<view wx:for="{{cityData}}" wx:key="index" style="line-height: 50px">
|
||
{{item.areaname}}
|
||
</view>
|
||
</picker-view-column>
|
||
<picker-view-column id="districtData">
|
||
<view wx:for="{{districtData}}" wx:key="index" style="line-height: 50px">
|
||
{{item.areaname}}
|
||
</view>
|
||
</picker-view-column>
|
||
</picker-view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<van-popup custom-style="width:100%;height:100%;overflow:auto;" show="{{streetShow}}" position="right"
|
||
overlay="{{false}}">
|
||
<view class="streetContent">
|
||
<van-nav-bar title="选择街道" left-text="" right-text="" left-arrow bind:click-left="streetClose" />
|
||
<van-cell-group>
|
||
<van-cell wx:for="{{districtVal}}" wx:for-index="districtValindex" wx:key="{{districtValindex}}"
|
||
title="{{item.areaname}}" data-strname="{{item.areaname}}" is-link bindtap="streetConfirm" />
|
||
</van-cell-group>
|
||
</view>
|
||
</van-popup>
|
||
<van-toast id="van-toast" />
|