gift-detail.wxml
3.04 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
<view class="page">
<view class="app__bgc bgc"></view>
<view class="app__bg bg"></view>
<view class="app__content main">
<view class="top-space"></view>
<view class="content">
<view class="product">
<view class="product-item">
<view class="image-wrap">
<image class="image" mode="aspectFit" src="{{item.commodityThumbnail}}" />
</view>
<view class="cont">
<view class="name">{{item.commodityTitle || '-'}}</view>
<view class="integral">消耗积分:{{item.commodityPrice}}分</view>
</view>
</view>
</view>
<!-- 使用规则 -->
<view class="cont-wrap use-rule">
<!-- 京东E卡可在京东商城
<span class="link">www.jd.com</span>
上购买自营商品(“自营商品”指在商品详情页明确标识为自营的商品),用户可在订单结算时输入E卡密码并使用。 -->
{{item.commodityInfo}}
</view>
<!-- 表单提交 (实物) -->
<block wx:if="{{item.commodityType == 'object'}}">
<!-- 表单 -->
<view wx:if="{{defaultReceiver}}" class="cont-wrap form">
<view class="form-tit">
<view class="address-message">收货信息</view>
<view bindtap="onAddressManagementHandler" class="address-edit">更改地址</view>
</view>
<view class="form-item">
<view class="label">收货人</view>
<view class="cont">{{defaultReceiver.receiverName}}</view>
</view>
<view class="form-item">
<view class="label">收货电话</view>
<view class="cont">{{defaultReceiver.receiverPhone}}</view>
</view>
<view class="form-item">
<view class="label">收货地址</view>
<view class="cont">{{defaultReceiver.receiverAddress}}</view>
</view>
<textarea value="{{remark}}" bindinput="bindRemarkInput" placeholder="备注您的其他要求" class="form-remark"></textarea>
</view>
<!-- 添加地址按钮 -->
<view wx:else bindtap="onAddressAddHandler" class="manage-add">我的收货地址</view>
</block>
</view>
<view class="bottom">
<view class="submit-bar">
<view class="submit-bar-cont">
现有积分
<span class="integral">{{indexInfo.memberPoints}}</span>
分
</view>
<view bindtap="onSubmitHandler" class="submit-bar-btn">确认兑换</view>
</view>
</view>
</view>
</view>
<van-popup show="{{ authorizeVisible }}">
<authorize-comp bind:evtcomp="evtcomp"></authorize-comp>
</van-popup>
<van-popup show="{{ commonTipsCompVisible }}">
<common-tips-comp bind:evtcomp="evtcomp" cid="{{cid}}" inner-title="{{innerTitle}}" inner-text="{{innerText}}" inner-button="{{innerButton}}"></common-tips-comp>
</van-popup>
<!-- 兑换成功提示 -->
<van-popup show="{{ orderSubmitSuccessCompVisible }}">
<order-submit-success-tips-comp bind:evtcomp="evtcomp" item="{{item}}"></order-submit-success-tips-comp>
</van-popup>