prize-detail.wxml
3.05 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
<view class="page">
<view class="app__bgc bgc"></view>
<view class="app__bg bg"></view>
<view class="decoration">
<image class="d1" src="../../image/oss/my-card/my-card-d1.png" mode="widthFix" />
<image class="d2" src="../../image/oss/my-card/my-card-d2.png" mode="widthFix" />
<!-- <image class="d3" src="../../image/oss/question/question-c1.png" mode="widthFix" /> -->
</view>
<view class="app__content main">
<view class="top-space"></view>
<view class="content">
<!-- 奖品 -->
<view class="prize">
<image class="ebg" mode="widthFix" src="../../image/oss/coupon-detail/cd-c2.png" />
<view class="cont {{used?'used':''}}">
<view class="space1"></view>
<view class="top">
<view class="display">
<image class="prod" mode="aspectFit" src="../../image/prize/prize-1.png" />
</view>
<view class="info">
<view class="name">{{couponInfo.name}}</view>
<view class="c1">手机号:{{userInfo.mobile}}</view>
<view class="c1">派券日期:{{couponInfo.startDateStr}}</view>
<view class="c1">有效日期:{{couponInfo.endDateStr}}</view>
</view>
</view>
<!-- 二维码 -->
<view class="qrcode">
<image wx:if="{{qrImagePath}}" class="image" mode="widthFix" src="{{qrImagePath}}" />
<canvas wx:else canvas-id="qrcanvas" />
</view>
<view class="code">{{couponInfo.couponCode}}</view>
<!-- 预约自提按钮 -->
<view wx:if="{{!wishInfo.storeCode}}" bindtap="onNearbyStoreHandler" class="reservation-btn">
预约自提门店
</view>
<!-- 预约成功 -->
<view wx:else class="reservation-complete">
<view class="tips">您已成功预约,请在有效期内前往领取</view>
<view class="line"></view>
<view class="pos">
<view class="info">
<view class="tit">
<view class="name">{{wishInfo.storeName}}</view>
<view wx:if="{{wishInfo.distance}}" class="distance">
距您{{wishInfo.distance}}
</view>
</view>
<view class="address">{{wishInfo.storeAddress}}</view>
</view>
<view bindtap="onShowLocHandler" data-data="{{item}}" class="loc">
<image class="icon" mode="widthFix" src="../../image/oss/icon/icon-loc.png" />
<view class="txt">导航</view>
</view>
</view>
</view>
</view>
</view>
<!-- 使用说明 -->
<view class="use-notice">
<use-notice-comp></use-notice-comp>
</view>
</view>
</view>
</view>
<van-popup show="{{ nearbyStoreVisible }}" position="bottom" bind:click-overlay="hideMask">
<tips-nearby-store-comp id="nearbyStoreComp" bind:evtcomp="evtcomp" wish-info="{{wishInfo}}" location="{{location}}" selectedMode="{{true}}"></tips-nearby-store-comp>
</van-popup>