Files
CompanyProject/衣莎项目/源码/YiShaXiYi/user/OneKeyOrder/OrdinaryUsers/OrdinaryUsers.wxml
2024-09-27 01:32:49 +08:00

155 lines
5.9 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- 普通用户一键下单 -->
<nav-bar isBack="{{ true }}" pageTitle="{{pageTitle}}" system="{{system}}"></nav-bar>
<view class="tecProcess">
<image mode="widthFix" src="{{ shopList.shopCart.length != 0 ?'http://cdn.yishaxiyi.com/ff8049b242111156b09d8b714de064dd.png':'http://cdn.yishaxiyi.com/d0a3068c38351c1082013e9dd135efdc.png'}}" />
</view>
<!-- 自送门店 和 上门取件 -->
<view class="tabs_choice pd20">
<view class="mt20">
<wux-cell-group>
<wux-cell
right="text_right_cell2"
title="自送门店"
data-type='1'
bind:tap="tapTakeTypeOrdinary"
rightUrl="{{takeTypeOrd == 1 ? '/static/img/icon/wxPay2.png' : '/static/img/icon/wxPay1.png'}}"
/>
<wux-cell
right="text_right_cell2"
title="上门取件"
data-type='2'
bind:tap="tapTakeTypeOrdinary"
rightUrl="{{takeTypeOrd == 2 ? '/static/img/icon/wxPay2.png' : '/static/img/icon/wxPay1.png'}}"
/>
</wux-cell-group>
</view>
</view>
<view class="pd20">
<!-- 普通用户门店自取 -->
<view class="mt20" wx:if="{{takeTypeOrd == 1}}">
<picker
value="{{addIndex}}"
range="{{addList}}"
range-key='name'
bindchange='pickerChangeOrd'>
<view class='bac_cell'>
<wux-cell-group>
<wux-cell right="text_right_cell2" title="{{ addIndex == -1?'请选择门店': addList[addIndex].name}}" rightUrl='/static/img/icon/asfa51f3a1f3a5f13a.png' />
</wux-cell-group>
</view>
</picker>
</view>
<!-- 普通用户自送门店提示信息 -->
<view wx:if='{{ takeTypeOrd == 1 }}' class="tips pd25 mt20 app2">
部分门店周四休息,到店前请联系门店确认
</view>
<!-- 普通用户填写地址显示 -->
<navigator url="/user/addList/addList" wx:if='{{takeTypeOrd == 2 }}'>
<view class="rec mt20 pd25 flex-con2">
<view class="rec-all">
<view class="rec-img fl flex-con2">
<image src="/static/img/icon/rfw161.png" />
</view>
<view class="rec-add fl pl20">
<view class="adds clamp1">
<span>{{address.userName || '请选择或新建地址'}}</span>
<span class="ml10">{{address.telNumber}}</span>
</view>
<view class="addInfo clamp1">{{address.all || '请填写您的详细地址'}}</view>
</view>
<view class="fr right_icon flex-con2">
<image src="/static/img/icon/rthyrthertherth.png" />
</view>
</view>
</view>
</navigator>
</view>
<view class="page mt20 pd20">
<view class="shop_list mt20 pd20" wx:if="{{shopList.shopCart.length != 0}}">
<view class="shop_list_row dis-flex" wx:for="{{ shopList.shopCart }}" wx:key="index">
<view class="shop_list_img">
<image src="{{item.image}}" />
</view>
<view class="flex1 ml20 dis-flex1">
<view class="flex1 flex-con2">
<view class="flex1 text1">{{item.name}}</view>
<view class="flex1 text-right text1">¥{{item.price}}</view>
</view>
<view class="flex1 flex-con2">
<view class="flex1 text2">
<span>{{item.attr}}</span>
</view>
<view class="flex1 text-right text1">×{{item.num}}</view>
</view>
</view>
</view>
<view class="mon mt20">
<view class="mon_cen pdtb20 dis-flex">
<view class="flex1 mon_p">订单金额</view>
<view class="flex1 text-right mon_p">¥{{shopList.orderPrice}}</view>
</view>
<navigator url="/mall/couponCard/couponCard?total=" class="mon_cen pdtb20 dis-flex">
<view class="flex1 mon_p">优惠</view>
<view class="flex1 flex-con5 mon_span">
<image src="/static/img/icon/right-r.png" />
<span wx:if="{{ !!coupon && !!coupon.price }}" class="mr20">
-¥{{coupon.price}}
</span>
<span wx:else class="mr20">选择优惠券</span>
</view>
</navigator>
<view class="mon_cen pdtb20 dis-flex">
<view class="flex1 mon_p">
运费
<span class="explain ml20" wx:if="{{ freightTips}}">实付满{{type == 2?groupData.satisfy_money:postage.satisfy_money}}元免运费</span>
<span class="explain ml20" wx:else>3月底前免运费</span>
</view>
<view class="flex1 text-right mon_p">¥{{shopList.postageMoney}}</view>
</view>
</view>
</view>
<view class="mt20">
<wux-cell-group>
<wux-cell
data-type="1"
bind:tap="selectPay"
data-url="/user/payment/card/card"
right="text_right_cell2"
thumb="{{!!giftCard.logo?giftCard.logo:'/static/img/icon/yhk.png'}}"
title="会员卡支付"
rightUrl="{{isPayp == 1 ? '/static/img/icon/wxPay2.png' : '/static/img/icon/wxPay1.png'}}"
/>
<wux-cell
data-type="2"
bind:tap="selectPay"
thumb="/static/img/icon/wxlogo2.png"
title="微信支付"
rightUrl="{{isPayp == 2 ? '/static/img/icon/wxPay2.png' : '/static/img/icon/wxPay1.png'}}"
/>
</wux-cell-group>
</view>
<view class="tip mt40">
温馨提示:如订单总额未满{{postage.satisfy_money}}元需支付{{postage.postage_money}}元运费
</view>
</view>
<!-- 支付 -->
<view class="shop_pay">
<view class="flex-con5 flex1 pay_num">应付:¥{{shopList.total}}</view>
<form report-submit bindsubmit="payment">
<button class="pay_sub" form-type="submit">支付</button>
</form>
</view>