index.wxml
5.4 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
104
105
106
107
108
109
110
111
<!--scanGroup/jyScan/record/index.wxml-->
<wxs src="../../../wxs/MENU.wxs" module="MENU"></wxs>
<view class="container">
<view class="scanCount">扫码次数 {{scanCount ? scanCount : 0}}次</view>
<block>
<scroll-view class="scrollViewRe" scroll-y bindscrolltolower="updateList">
<view wx:for="{{records}}" wx:key="voucherNo">
<view class="recordItem">
<view class="recordLine">
<view class="recordLeft">
<view class="recordDesc" wx:if="{{item.winType==2}}">获得 {{item.amount}}元{{ item.voucherType==1 ? '激励' : '' }}红包</view>
<view class="recordDesc" wx:elif="{{item.winType==9}}">谢谢惠顾</view>
<view class="recordTime">{{MENU.formatTime(item.createTime, 'Y-M-D h:m:s') }}</view>
</view>
<view class="recordRight">
<block wx:if="{{item.winType==2}}">
<view class="recordButtonReceive" wx:if="{{item.redStatus === 0 || item.redStatus === 3}}" data-item="{{ item }}" bindtap="getAward">待领取</view>
<view class="recordButtonReceive" wx:elif="{{item.redStatus === 5}}" data-item="{{ item }}" bindtap="goUnlock">待解锁</view>
<view class="recordButtonAlready" wx:elif="{{item.redStatus === 4}}">已过期</view>
<view class="recordButtonAlready" wx:else>已领取</view>
</block>
<block wx:elif="{{item.winType==9}}">
<view class="recordButtonAlready">已领取</view>
</block>
</view>
</view>
</view>
</view>
</scroll-view>
</block>
<view class="containerScan" bindtap="containerScan">
继续扫码
</view>
<!-- receiveVis -->
<v-popup showPopup="{{receiveVis}}">
<view class="receive_poup">
<image class="success_icon" src="{{ isNoAward ? 'https://hbrand.oss-cn-hangzhou.aliyuncs.com/cpp/jyScan/no_award.png' : 'https://hbrand.oss-cn-hangzhou.aliyuncs.com/cpp/jyScan/success_icon.png' }}" mode=""/>
<view class="receive_text" style="margin-top: 40rpx;">{{isNoAward ? '很遗憾此次未中奖' : '恭喜您领取成功'}}</view>
<view class="receive_text">{{isNoAward ? '谢谢参与' : '奖励已发放至您的微信账户'}}</view>
<view class="coninue_scan" bindtap="containerScan">继续扫码</view>
<view class="close_poup" bindtap="closeReceiveModal"></view>
</view>
</v-popup>
<!-- 完善信息 showCouponComMess -->
<v-popup showPopup="{{showCouponComMess}}">
<view class="{{isOneReward ? 'comMessBox' : 'comMessBox height_little'}}">
<view class="messTitle">完善个人信息</view>
<!-- <view class="messBoxClose" bindtap="messBoxClose"></view> -->
<view class="formBox">
<form bindsubmit="formSubmit">
<view class="inputModel" wx:if="{{isOneReward}}"><text class="red">*</text><text class="inputDesc" decode>姓  名:</text>
<input
class="inputSelf"
placeholder="请输入姓名"
placeholder-style="color: #AEAEAE;font-size:34rpx"
type="text"
data-key="name"
bindinput="onBindInput"
value="{{ submitForm.name }}"
/>
</view>
<view class="inputModel"><text class="red">*</text><text class="inputDesc">手机号码:</text>
<input
class="inputSelf phoneInput"
placeholder=""
disabled
placeholder-style="color: #AEAEAE;font-size:34rpx"
type="text"
value="{{ submitForm.phone }}"
/>
<button class="phone" wx:if="{{!submitForm.phone}}" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">微信授权</button>
<button class="phoneTwo" wx:if="{{submitForm.phone}}" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">重新授权</button>
</view>
<view class="inputModel" wx:if="{{isOneReward}}"><text class="red">*</text><text class="inputDesc" decode>身份证号:</text>
<input
class="inputSelf"
placeholder="请输入身份证号"
placeholder-style="color: #AEAEAE;font-size:34rpx"
type="text"
data-key="idCard"
maxlength="18"
bindinput="onBindInput"
value="{{ submitForm.idCard }}"
/>
</view>
<view class="btn_box">
<button class="cancelBtn" bindtap="messBoxClose">取消</button>
<button class="submitButtonS" wx:if="{{isFormFilled}}" form-type="submit">确认提交</button>
<button class="submitButton" wx:else>确认提交</button>
</view>
</form>
</view>
</view>
</v-popup>
<!-- 待解锁红包 showUnlockRed -->
<v-popup showPopup="{{showUnlockRed}}">
<view class="secondRedpack_poup" style="background-image: url({{'https://hbrand.oss-cn-hangzhou.aliyuncs.com/cpp/jyScan/unlock.png'}});">
<image class="secondRed_amount" src="https://hbrand.oss-cn-hangzhou.aliyuncs.com/cpp/jyScan/sencond_red.png"></image>
<view class="secondRed_btn" bindtap="containerScan">扫一扫</view>
<view class="secondRed_close_poup" bindtap="closeUnlockRed"></view>
</view>
</v-popup>
</view>