affirm-order.wxml
4.0 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!--pages/affirm-order/affirm-order.wxml-->
<view class="container">
<!-- 地址 -->
<view class="address" catchtap="selectAdd">
<view wx:if="{{userData!==''}}" style="width:95%;display: flex;flex-wrap: wrap; align-items: center;">
<view class="userName">{{userData.name}}</view>
<view class="userTell">{{userData.phone}}</view>
<view class="default" wx:if="{{userData.delFlag==1}}">默认</view>
<view class="userAddress">{{userData.area}}{{userData.address}}</view>
</view>
<view class="noAdd" wx:if="{{userData==''}}">
请选择收货地址
</view>
<view class="arrow">
<image src="/images/04-01/arrow.png" mode="aspectFill"></image>
</view>
</view>
<!-- 配送时间 -->
<view class="timeBox">
<view style="width:95%;display:flex" bindtap='chooseTime'>
<view class="calendar " wx:if="{{storePickupTime==''}}">
请选择配送时间:
</view>
<view class="calendar1 " wx:if="{{storePickupTime!==''}}">
配送时间:
</view>
<view class="selectText">{{timers.length ? timers : ''}}</view>
</view>
<view class="arrow" bindtap='chooseTime'>
<image src="/images/04-01/arrow.png" mode="aspectFill"></image>
</view>
<view class="section">
<van-popup show="{{ showTime }}" bind:close="onClose" position="bottom">
<timepicker deliveryTime='{{deliveryTime}}' bind:selectTime="selectTime" id="aaa"></timepicker>
</van-popup>
</view>
</view>
<!-- 商品列表 -->
<view class="cartList">
<view class="cartListItem" >
<view class="itemRight">
<view class="productPic">
<image src="{{goodsData.goodsImg}}" mode="aspectFill"></image>
</view>
<view style="width:381rpx">
<view class="productName">{{goodsData.goodsName}}</view>
<view class="productDetail">{{goodsData.goodsAttributes}}</view>
<view class="productPrice">
<view class="price">
<text class="moneyIcon">¥</text>
<text class="moneyNum">{{goodsData.goodsPrice}}</text>
</view>
<view class="num">
<view class="numContent">x{{count}}</view>
</view>
</view>
</view>
</view>
</view>
</view>
<!-- 买家留言 -->
<view class="messageBox">
<view class="messageTitle">买家留言:</view>
<textarea cols="30" rows="10" value="{{content}}" placeholder="留言建议提前协商50字之内" maxlength="{{maxlength}}"
bindinput="userInput"></textarea>
<view class="numLength">{{length}}/50</view>
</view>
<!-- 优惠券 -->
<view class="discountCard" wx:if="{{goodsData.type==2}}">
<view>优惠券</view>
<view class="discountBox" bindtap="goCardList">
<view class="discountText" wx:if="{{type==' '}}">{{}}</view>
<view class="discountText" wx:if="{{type===1}}">满{{amount}}减{{cardAmount}}</view>
<view class="discountText" wx:if="{{type===0}}">无门槛{{discountText}}元优惠券</view>
<view class="arrowRight">
<image src="/images/04-01/arrow.png" mode="aspectFill"></image>
</view>
</view>
</view>
<!-- 商品总额 -->
<view class="allMoney">
<view class="prodeuctMoney moneyPublic">
<view class="txt">商品总额</view>
<view class="money txt">¥{{goodsData.priceTotal}}</view>
</view>
<view class="carriage moneyPublic">
<view class="txt">配送费</view>
<view class="money txt">¥{{goodsData.free}}</view>
</view>
</view>
<!-- 立即购买 -->
<view class="{{iphone?'bottomBox1':'bottomBox'}}">
<view class="bottomLeft">
<view class="text">合计:</view>
<view class="priceBox">
<view class="price">¥</view>
<view>{{goodsData.payment}}</view>
</view>
</view>
<view class="buyBtn" bindtap="creatOrder" wx:if="{{goodsData.type==2}}">立即购买</view>
<view class="buyBtn" bindtap="change" wx:if="{{goodsData.type==1}}">立即兑换</view>
</view>
</view>