@alu008/test_yuanqikaixiang 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/App.vue +294 -0
- package/Local/en.json +3 -0
- package/Local/indian.json +3 -0
- package/Local/zh-Hans.json +3 -0
- package/Local/zh-Hant.json +3 -0
- package/README.md +1 -0
- package/androidPrivacy.json +28 -0
- package/components/ball/ball.vue +230 -0
- package/components/cardDetails/cardDetails.vue +273 -0
- package/components/confirmModal/confirmModal.vue +125 -0
- package/components/fillInfo/fillInfo.vue +255 -0
- package/components/header/header.vue +92 -0
- package/components/selectAddress/selectAddress.vue +156 -0
- package/components/signDetail/signDetail.vue +33 -0
- package/components/skeleton/skeleton.vue +62 -0
- package/index.html +20 -0
- package/index.template.html +35 -0
- package/jsconfig.json +9 -0
- package/main.js +48 -0
- package/manifest.json +159 -0
- package/package.json +14 -0
- package/pages/index/index.vue +5421 -0
- package/pages.json +173 -0
- package/project.config.json +25 -0
- package/project.private.config.json +14 -0
- package/static/fonts/Alibaba-PuHuiTi-Bold.ttf +0 -0
- package/static/fonts/Alibaba-PuHuiTi-Medium.ttf +0 -0
- package/static/fonts/Alibaba-PuHuiTi-Regular.ttf +0 -0
- package/static/fonts/fxlh.ttf +0 -0
- package/static/img/R.png +0 -0
- package/static/img/SR.png +0 -0
- package/static/img/SSR.png +0 -0
- package/static/img/bottomBgc1.png +0 -0
- package/static/img/centerBgc.png +0 -0
- package/static/img/goldBgc.png +0 -0
- package/static/img/goldText.png +0 -0
- package/static/img/home/calendar/bgc0.png +0 -0
- package/static/img/home/calendar/bgc1.png +0 -0
- package/static/img/home/calendar/bgc2.png +0 -0
- package/static/img/home/calendar/bgc3.png +0 -0
- package/static/img/home/calendar/progress0.png +0 -0
- package/static/img/home/calendar/progress1.png +0 -0
- package/static/img/home/calendar/progress2.png +0 -0
- package/static/img/home/calendar/progress3.png +0 -0
- package/static/img/kuang.gif +0 -0
- package/static/img/luckyBgc.png +0 -0
- package/static/img/lucyText.png +0 -0
- package/static/img/top_Bgc.png +0 -0
- package/subpackages/article/article.vue +64 -0
- package/subpackages/confirmSendLogistics/confirmSendLogistics.vue +1035 -0
- package/subpackages/coupon/coupon.vue +276 -0
- package/subpackages/fragment/fragment.vue +1592 -0
- package/subpackages/myAddress/myAddress.vue +656 -0
- package/subpackages/myCards/myCards.vue +1250 -0
- package/subpackages/myOrder/myOrder.vue +779 -0
- package/subpackages/myOrderDetail/myOrderDetail.vue +659 -0
- package/subpackages/poster/poster.vue +130 -0
- package/subpackages/selectCoupon/selectCoupon.vue +251 -0
- package/subpackages/sendLogistics/sendLogistics.vue +1097 -0
- package/subpackages/vote/vote.vue +877 -0
- package/uni.promisify.adaptor.js +10 -0
- package/uni.scss +114 -0
- package/uni_modules/qf-image-cropper/changelog.md +72 -0
- package/uni_modules/qf-image-cropper/components/qf-image-cropper/qf-image-cropper.render.js +855 -0
- package/uni_modules/qf-image-cropper/components/qf-image-cropper/qf-image-cropper.vue +749 -0
- package/uni_modules/qf-image-cropper/components/qf-image-cropper/qf-image-cropper.wxs +727 -0
- package/uni_modules/qf-image-cropper/package.json +81 -0
- package/uni_modules/qf-image-cropper/readme.md +97 -0
- package/uni_modules/uni-data-select/changelog.md +51 -0
- package/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue +837 -0
- package/uni_modules/uni-data-select/package.json +106 -0
- package/uni_modules/uni-data-select/readme.md +8 -0
- package/uni_modules/uni-icons/changelog.md +44 -0
- package/uni_modules/uni-icons/components/uni-icons/uni-icons.uvue +91 -0
- package/uni_modules/uni-icons/components/uni-icons/uni-icons.vue +110 -0
- package/uni_modules/uni-icons/components/uni-icons/uniicons.css +664 -0
- package/uni_modules/uni-icons/components/uni-icons/uniicons.ttf +0 -0
- package/uni_modules/uni-icons/components/uni-icons/uniicons_file.ts +664 -0
- package/uni_modules/uni-icons/components/uni-icons/uniicons_file_vue.js +649 -0
- package/uni_modules/uni-icons/package.json +111 -0
- package/uni_modules/uni-icons/readme.md +8 -0
- package/uni_modules/uni-load-more/changelog.md +23 -0
- package/uni_modules/uni-load-more/components/uni-load-more/i18n/en.json +5 -0
- package/uni_modules/uni-load-more/components/uni-load-more/i18n/index.js +8 -0
- package/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hans.json +5 -0
- package/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hant.json +5 -0
- package/uni_modules/uni-load-more/components/uni-load-more/uni-load-more.vue +404 -0
- package/uni_modules/uni-load-more/package.json +105 -0
- package/uni_modules/uni-load-more/readme.md +14 -0
- package/uni_modules/uni-scss/changelog.md +8 -0
- package/uni_modules/uni-scss/index.scss +1 -0
- package/uni_modules/uni-scss/package.json +82 -0
- package/uni_modules/uni-scss/readme.md +4 -0
- package/uni_modules/uni-scss/styles/index.scss +7 -0
- package/uni_modules/uni-scss/styles/setting/_border.scss +3 -0
- package/uni_modules/uni-scss/styles/setting/_color.scss +66 -0
- package/uni_modules/uni-scss/styles/setting/_radius.scss +55 -0
- package/uni_modules/uni-scss/styles/setting/_space.scss +56 -0
- package/uni_modules/uni-scss/styles/setting/_styles.scss +167 -0
- package/uni_modules/uni-scss/styles/setting/_text.scss +24 -0
- package/uni_modules/uni-scss/styles/setting/_variables.scss +146 -0
- package/uni_modules/uni-scss/styles/tools/functions.scss +19 -0
- package/uni_modules/uni-scss/theme.scss +31 -0
- package/uni_modules/uni-scss/variables.scss +62 -0
- package/utils/addressData.js +6042 -0
- package/utils/api.js +160 -0
- package/utils/fetch.js +548 -0
- package/utils/index.js +994 -0
- package/utils/navigator.js +17 -0
- package/utils/request.js +162 -0
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="cardDetailPopup">
|
|
3
|
+
<u-popup
|
|
4
|
+
closeable
|
|
5
|
+
@close="$emit('close')"
|
|
6
|
+
:show="show"
|
|
7
|
+
mode="bottom"
|
|
8
|
+
:round="16"
|
|
9
|
+
@touchmove.stop.prevent
|
|
10
|
+
:safeAreaInsetBottom="false"
|
|
11
|
+
>
|
|
12
|
+
<!-- backgroundImage: 'url(' + cardDetail.coverImage + ')', -->
|
|
13
|
+
<view v-if="cardDetail" class="smallCardDetail">
|
|
14
|
+
<view class="title">小卡详情</view>
|
|
15
|
+
|
|
16
|
+
<scroll-view :style="{paddingBottom:cardDetail.series && cardDetail.series.id?'0rpx':'0rpx',height:cardDetail.series && cardDetail.series.id?'940rpx':'1080rpx'}" class="details" scroll-y>
|
|
17
|
+
<view style="padding-top: 50rpx;">
|
|
18
|
+
<view
|
|
19
|
+
class="images bgcCenter"
|
|
20
|
+
:style="{
|
|
21
|
+
backgroundImage: showBack
|
|
22
|
+
? 'url(' + formateUrl(cardDetail.series.backCover) + ')'
|
|
23
|
+
: 'url(' + formateUrl(cardDetail.coverImage) + ')',
|
|
24
|
+
}"
|
|
25
|
+
>
|
|
26
|
+
<image
|
|
27
|
+
:src="'https://img.shinemang.com/static/cardDetail/level' + cardDetail.level + '.png'"
|
|
28
|
+
mode="aspectFill"
|
|
29
|
+
/></view>
|
|
30
|
+
<view
|
|
31
|
+
style="
|
|
32
|
+
font-weight: 600;
|
|
33
|
+
font-size: 32rpx;
|
|
34
|
+
line-height: 46rpx;
|
|
35
|
+
margin-top: 24rpx;
|
|
36
|
+
text-align: center;
|
|
37
|
+
padding: 0 32rpx;
|
|
38
|
+
"
|
|
39
|
+
>{{ cardDetail.name }}</view
|
|
40
|
+
>
|
|
41
|
+
|
|
42
|
+
<view class="des">
|
|
43
|
+
<!-- <view class="item">
|
|
44
|
+
<view>参数</view>
|
|
45
|
+
<view class="info">
|
|
46
|
+
<view>
|
|
47
|
+
<view class="fb" style="color: #000">88*63mm</view>
|
|
48
|
+
<view>尺寸</view>
|
|
49
|
+
</view>
|
|
50
|
+
<view class="line"></view>
|
|
51
|
+
<view>
|
|
52
|
+
<view class="fb" style="color: #000">88*63mm</view>
|
|
53
|
+
<view>尺寸</view>
|
|
54
|
+
</view>
|
|
55
|
+
<view class="line"></view>
|
|
56
|
+
<view>
|
|
57
|
+
<view class="fb" style="color: #000">88*63mm</view>
|
|
58
|
+
<view>尺寸</view>
|
|
59
|
+
</view>
|
|
60
|
+
</view>
|
|
61
|
+
</view> -->
|
|
62
|
+
<view class="item" style="align-items: center">
|
|
63
|
+
<view style="margin-right: 24rpx;">等级</view>
|
|
64
|
+
<view class="info levelInfo">
|
|
65
|
+
<u-icon
|
|
66
|
+
:key="index"
|
|
67
|
+
v-for="(value, index) in 5"
|
|
68
|
+
name="star-fill"
|
|
69
|
+
:color="
|
|
70
|
+
index < cardDetail.level ? '#000' : 'rgba(0, 0, 0, 0.3)'
|
|
71
|
+
"
|
|
72
|
+
size="20"
|
|
73
|
+
|
|
74
|
+
></u-icon>
|
|
75
|
+
</view>
|
|
76
|
+
</view>
|
|
77
|
+
<view class="item">
|
|
78
|
+
<view> {{ cardDetail.detailContent }}</view>
|
|
79
|
+
</view>
|
|
80
|
+
<!-- <view class="item">
|
|
81
|
+
<view>类型</view>
|
|
82
|
+
<view class="info">
|
|
83
|
+
<view class="fb" style="color: #000">常规卡</view>
|
|
84
|
+
</view>
|
|
85
|
+
</view> -->
|
|
86
|
+
</view>
|
|
87
|
+
|
|
88
|
+
<view
|
|
89
|
+
v-if="cardDetail.detailUrl.length > 0"
|
|
90
|
+
style="margin-top: 40rpx"
|
|
91
|
+
>
|
|
92
|
+
<image
|
|
93
|
+
v-for="(item, index) in cardDetail.detailUrl"
|
|
94
|
+
:src="item"
|
|
95
|
+
:key="index"
|
|
96
|
+
mode="widthFix"
|
|
97
|
+
style="vertical-align: middle; width: 100%"
|
|
98
|
+
/>
|
|
99
|
+
</view>
|
|
100
|
+
</view>
|
|
101
|
+
</scroll-view>
|
|
102
|
+
<!-- <view class="details">
|
|
103
|
+
|
|
104
|
+
</view> -->
|
|
105
|
+
<view v-if="cardDetail.series && cardDetail.series.id" class="actionBtns">
|
|
106
|
+
<view class="actionBtn">
|
|
107
|
+
<view @click="toGachaDetail">
|
|
108
|
+
<view style="color: #fff; font-size: 32rpx">去抽卡</view>
|
|
109
|
+
</view>
|
|
110
|
+
</view>
|
|
111
|
+
</view>
|
|
112
|
+
</view>
|
|
113
|
+
</u-popup>
|
|
114
|
+
</view>
|
|
115
|
+
</template>
|
|
116
|
+
|
|
117
|
+
<script>
|
|
118
|
+
import { formateServerUrl, navagatorBack } from "@/utils";
|
|
119
|
+
|
|
120
|
+
export default {
|
|
121
|
+
props: {
|
|
122
|
+
// 登录组件是否需要检查手机号码
|
|
123
|
+
show: {
|
|
124
|
+
type: Boolean,
|
|
125
|
+
default: true,
|
|
126
|
+
},
|
|
127
|
+
cardDetail: {
|
|
128
|
+
type: null | Object,
|
|
129
|
+
default: null,
|
|
130
|
+
},
|
|
131
|
+
back: {
|
|
132
|
+
type: Boolean,
|
|
133
|
+
default: false,
|
|
134
|
+
},
|
|
135
|
+
showBack: {
|
|
136
|
+
type: Boolean,
|
|
137
|
+
default: false,
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
data() {
|
|
141
|
+
return {
|
|
142
|
+
btnColor: "",
|
|
143
|
+
};
|
|
144
|
+
},
|
|
145
|
+
components: {},
|
|
146
|
+
onLoad(options) {},
|
|
147
|
+
methods: {
|
|
148
|
+
toGachaDetail() {
|
|
149
|
+
if (this.back) {
|
|
150
|
+
navagatorBack();
|
|
151
|
+
} else {
|
|
152
|
+
if(this.cardDetail.series && this.cardDetail.series.id){
|
|
153
|
+
uni.navigateTo({
|
|
154
|
+
url:
|
|
155
|
+
"/subpackages/gachaDetail/gachaDetail?series_id=" +
|
|
156
|
+
this.cardDetail.series.id,
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
formateUrl(url) {
|
|
163
|
+
return formateServerUrl(url);
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
onShow() {},
|
|
167
|
+
onShareAppMessage() {},
|
|
168
|
+
onShareTimeline() {},
|
|
169
|
+
};
|
|
170
|
+
</script>
|
|
171
|
+
|
|
172
|
+
<style lang="less">
|
|
173
|
+
.cardDetailPopup {
|
|
174
|
+
.smallCardDetail {
|
|
175
|
+
height: 1200rpx;
|
|
176
|
+
width: 100%;
|
|
177
|
+
padding: 0 32rpx;
|
|
178
|
+
|
|
179
|
+
.title {
|
|
180
|
+
color: #1a1a1a;
|
|
181
|
+
font-size: 36rpx;
|
|
182
|
+
font-weight: 600;
|
|
183
|
+
text-align: center;
|
|
184
|
+
margin: 40rpx 0;
|
|
185
|
+
height: 40rpx;
|
|
186
|
+
display: flex;
|
|
187
|
+
align-items: center;
|
|
188
|
+
justify-content: center;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.actionBtns {
|
|
192
|
+
width: 100%;
|
|
193
|
+
// height: 180rpx;
|
|
194
|
+
background: #ffffff;
|
|
195
|
+
|
|
196
|
+
position: absolute;
|
|
197
|
+
bottom: 0;
|
|
198
|
+
height: 140rpx;
|
|
199
|
+
left: 0;
|
|
200
|
+
padding: 0 32rpx;
|
|
201
|
+
padding-top: 14rpx;
|
|
202
|
+
.actionBtn {
|
|
203
|
+
> view {
|
|
204
|
+
width: 100%;
|
|
205
|
+
height: 92rpx;
|
|
206
|
+
background: #0e4d83;
|
|
207
|
+
border-radius: 864rpx;
|
|
208
|
+
display: flex;
|
|
209
|
+
flex-direction: column;
|
|
210
|
+
justify-content: center;
|
|
211
|
+
align-items: center;
|
|
212
|
+
font-size: 22rpx;
|
|
213
|
+
color: rgba(255, 255, 255, 0.8);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
}
|
|
219
|
+
.details {
|
|
220
|
+
width: 100%;
|
|
221
|
+
// padding-bottom: 180rpx;
|
|
222
|
+
border-radius: 24rpx;
|
|
223
|
+
background: #dcf2ff;
|
|
224
|
+
|
|
225
|
+
height: 940rpx;
|
|
226
|
+
|
|
227
|
+
view {
|
|
228
|
+
.images {
|
|
229
|
+
width: 420rpx;
|
|
230
|
+
height: 554rpx;
|
|
231
|
+
border-radius: 20rpx;
|
|
232
|
+
|
|
233
|
+
margin: auto;
|
|
234
|
+
|
|
235
|
+
image {
|
|
236
|
+
width: 420rpx;
|
|
237
|
+
height: 554rpx;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.des {
|
|
242
|
+
padding-left: 32rpx;
|
|
243
|
+
margin-top: 44rpx;
|
|
244
|
+
|
|
245
|
+
.item {
|
|
246
|
+
display: flex;
|
|
247
|
+
color: #666666;
|
|
248
|
+
margin-bottom: 10rpx;
|
|
249
|
+
|
|
250
|
+
.info {
|
|
251
|
+
display: flex;
|
|
252
|
+
color: #666666;
|
|
253
|
+
align-items: center;
|
|
254
|
+
|
|
255
|
+
&.levelInfo{
|
|
256
|
+
>view{
|
|
257
|
+
margin-right: 6rpx !important;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.line {
|
|
262
|
+
width: 1px;
|
|
263
|
+
height: 38rpx;
|
|
264
|
+
background: #bdbdbd;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
</style>
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
|
|
2
|
+
<template>
|
|
3
|
+
<view @touchmove.stop.prevent class="surePayment">
|
|
4
|
+
<view class="contentBox">
|
|
5
|
+
<!-- <view class="title"> </view> -->
|
|
6
|
+
<view style="text-align: center; padding: 0 32rpx" class="des">
|
|
7
|
+
{{ des }}
|
|
8
|
+
|
|
9
|
+
<view style="margin-top: 8rpx;"> {{ subdes }}</view>
|
|
10
|
+
</view>
|
|
11
|
+
|
|
12
|
+
<view class="actionsBtn">
|
|
13
|
+
<view @click="$emit('cancel')">关闭</view>
|
|
14
|
+
<view v-if="showUseBtn" @click="$emit('confirm')"> 去使用</view>
|
|
15
|
+
</view>
|
|
16
|
+
</view>
|
|
17
|
+
</view>
|
|
18
|
+
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
<script>
|
|
22
|
+
export default {
|
|
23
|
+
props: {
|
|
24
|
+
// 登录组件是否需要检查手机号码
|
|
25
|
+
des:{
|
|
26
|
+
type: String,
|
|
27
|
+
default: '',
|
|
28
|
+
},
|
|
29
|
+
subdes:{
|
|
30
|
+
type: String,
|
|
31
|
+
default: '',
|
|
32
|
+
},
|
|
33
|
+
showUseBtn: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: true,
|
|
36
|
+
},
|
|
37
|
+
|
|
38
|
+
},
|
|
39
|
+
data() {
|
|
40
|
+
return {
|
|
41
|
+
|
|
42
|
+
};
|
|
43
|
+
},
|
|
44
|
+
|
|
45
|
+
created() {
|
|
46
|
+
|
|
47
|
+
},
|
|
48
|
+
|
|
49
|
+
methods: {
|
|
50
|
+
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
</script>
|
|
54
|
+
|
|
55
|
+
<style lang="less" scoped>
|
|
56
|
+
.surePayment {
|
|
57
|
+
width: 100%;
|
|
58
|
+
height: 100%;
|
|
59
|
+
background: rgba(0, 0, 0, 0.5);
|
|
60
|
+
position: fixed;
|
|
61
|
+
top: 0;
|
|
62
|
+
left: 50%;
|
|
63
|
+
transform: translateX(-50%);
|
|
64
|
+
z-index: 99999;
|
|
65
|
+
display: flex;
|
|
66
|
+
align-items: center;
|
|
67
|
+
justify-content: center;
|
|
68
|
+
.contentBox {
|
|
69
|
+
width: 654rpx;
|
|
70
|
+
|
|
71
|
+
background: #ffffff;
|
|
72
|
+
border-radius: 32rpx;
|
|
73
|
+
padding-top: 64rpx;
|
|
74
|
+
padding-bottom: 64rpx;
|
|
75
|
+
padding-left: 16rpx;
|
|
76
|
+
padding-right: 16rpx;
|
|
77
|
+
|
|
78
|
+
.title {
|
|
79
|
+
font-size: 36rpx;
|
|
80
|
+
margin-bottom: 44rpx;
|
|
81
|
+
text-align: center;
|
|
82
|
+
}
|
|
83
|
+
> .des {
|
|
84
|
+
font-size: 28rpx;
|
|
85
|
+
margin-bottom: 62rpx;
|
|
86
|
+
text-align: center;
|
|
87
|
+
}
|
|
88
|
+
.desTips {
|
|
89
|
+
font-size: 24rpx;
|
|
90
|
+
color: #e73e3d;
|
|
91
|
+
text-align: center;
|
|
92
|
+
margin-top: 48rpx;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.actionsBtn {
|
|
96
|
+
display: flex;
|
|
97
|
+
align-items: center;
|
|
98
|
+
justify-content: center;
|
|
99
|
+
margin-top: 32rpx;
|
|
100
|
+
// gap: 30rpx;
|
|
101
|
+
|
|
102
|
+
view {
|
|
103
|
+
width: 264rpx;
|
|
104
|
+
height: 80rpx;
|
|
105
|
+
border-radius: 40rpx;
|
|
106
|
+
font-size: 32rpx;
|
|
107
|
+
display: flex;
|
|
108
|
+
align-items: center;
|
|
109
|
+
line-height: 80rpx;
|
|
110
|
+
justify-content: center;
|
|
111
|
+
&:first-child {
|
|
112
|
+
background: #e9e9e9;
|
|
113
|
+
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&:last-child {
|
|
117
|
+
background: linear-gradient( 90deg, #0BD690 0%, #00B0E0 100%);;
|
|
118
|
+
color: #fff;
|
|
119
|
+
margin-left: 30rpx;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
</style>
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view>
|
|
3
|
+
<u-popup
|
|
4
|
+
@close="closePoupon"
|
|
5
|
+
:show="showExchangePeitunPoupon"
|
|
6
|
+
mode="center"
|
|
7
|
+
:round="32"
|
|
8
|
+
:zIndex="10089"
|
|
9
|
+
class="fillInfoPopupBox"
|
|
10
|
+
:safeAreaInsetBottom="false"
|
|
11
|
+
>
|
|
12
|
+
<view v-if="showExchangePeitunPoupon" class="exchangeCouponPopup">
|
|
13
|
+
<view class="title over">领取{{ rewardDetail.item.itemName }}</view>
|
|
14
|
+
<view class="content">
|
|
15
|
+
<view class="message">
|
|
16
|
+
<view>姓名</view>
|
|
17
|
+
<input type="text" v-model="realName" placeholder="请输入姓名" /></view>
|
|
18
|
+
<view class="message">
|
|
19
|
+
<view>性别</view>
|
|
20
|
+
<u-radio-group
|
|
21
|
+
v-model="sex"
|
|
22
|
+
iconPlacement="right">
|
|
23
|
+
<u-radio iconSize="12px" labelSize="12px" :customStyle="{marginRight: '8px',fontSize:'24rpx',gap:'4px'}" v-for="(item, index) in radiolist"
|
|
24
|
+
:key="index"
|
|
25
|
+
:label="item.name"
|
|
26
|
+
:name="item.name" ></u-radio>
|
|
27
|
+
</u-radio-group>
|
|
28
|
+
</view>
|
|
29
|
+
<view class="message">
|
|
30
|
+
<view>手机号</view>
|
|
31
|
+
<input type="number" v-model="phone" placeholder="请输入手机号" /></view>
|
|
32
|
+
<view class="message">
|
|
33
|
+
<view>证件类型</view>
|
|
34
|
+
<uni-data-select
|
|
35
|
+
:clear="false"
|
|
36
|
+
v-model="cardType"
|
|
37
|
+
:localdata="cardTypes"
|
|
38
|
+
name="cardType"
|
|
39
|
+
@change="cardTypesChange"
|
|
40
|
+
></uni-data-select>
|
|
41
|
+
</view>
|
|
42
|
+
<view class="message"><view>证件号码</view>
|
|
43
|
+
<input type="text" v-model="cardNum" placeholder="请输入证件号码" /></view>
|
|
44
|
+
<view class="message"><view>出发地</view>
|
|
45
|
+
<input type="text" v-model="fromAddress" placeholder="请输入出发地" /></view>
|
|
46
|
+
<view v-if="showTips" class="tips">
|
|
47
|
+
温馨提示:领取将在 {{rewardDetail.item.itemParams.expire_at}} 结束,过期不提交视为自动放弃,请仔细核对填写信息.
|
|
48
|
+
</view>
|
|
49
|
+
</view>
|
|
50
|
+
|
|
51
|
+
<view class="buttons">
|
|
52
|
+
<view @click="closePoupon">取消</view>
|
|
53
|
+
<view @click="exchangePeitunPoupon">确认领取</view>
|
|
54
|
+
</view>
|
|
55
|
+
</view>
|
|
56
|
+
</u-popup>
|
|
57
|
+
</view>
|
|
58
|
+
</template>
|
|
59
|
+
|
|
60
|
+
<script>
|
|
61
|
+
import { isMobilePhone } from '@/utils';
|
|
62
|
+
export default {
|
|
63
|
+
props: {
|
|
64
|
+
showExchangePeitunPoupon: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
default: false
|
|
67
|
+
},
|
|
68
|
+
rewardDetail:{
|
|
69
|
+
type: Object
|
|
70
|
+
},
|
|
71
|
+
showTips:{
|
|
72
|
+
type: Boolean,
|
|
73
|
+
default: true
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
},
|
|
77
|
+
data() {
|
|
78
|
+
return {
|
|
79
|
+
phone: "",
|
|
80
|
+
nickName:'',
|
|
81
|
+
realName:'',
|
|
82
|
+
cardNum:'',
|
|
83
|
+
fromAddress:'',
|
|
84
|
+
cardType:'IDCardType_ID',
|
|
85
|
+
cardTypes:[
|
|
86
|
+
{
|
|
87
|
+
value:'IDCardType_ID', text:'身份证'
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
value:'IDCardType_GA', text:'港澳通行证'
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
value:'IDCardType_TB', text:'台胞证'
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
value:'IDCardType_HX', text:'回乡证'
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
value:'IDCardType_TW', text:'台湾通行证'
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
value:'IDCardType_HZ', text:'护照'
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
sex:'男',
|
|
106
|
+
radiolist:[
|
|
107
|
+
{
|
|
108
|
+
value:'男', name:'男'
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
value:'女', name:'女'
|
|
112
|
+
}]
|
|
113
|
+
|
|
114
|
+
};
|
|
115
|
+
},
|
|
116
|
+
created() {
|
|
117
|
+
const phone = uni.getStorageSync("phone");
|
|
118
|
+
const realName = uni.getStorageSync("realName");
|
|
119
|
+
const cardNum = uni.getStorageSync("cardNum");
|
|
120
|
+
const fromAddress = uni.getStorageSync("fromAddress");
|
|
121
|
+
console.log(phone,realName,cardNum,fromAddress,'阿圣诞节放辣椒李开复');
|
|
122
|
+
if (phone) {
|
|
123
|
+
this.phone = phone;
|
|
124
|
+
}
|
|
125
|
+
if(realName){
|
|
126
|
+
this.realName = realName;
|
|
127
|
+
}
|
|
128
|
+
// if(cardNum){
|
|
129
|
+
// this.cardNum = cardNum;
|
|
130
|
+
// }
|
|
131
|
+
if(fromAddress){
|
|
132
|
+
this.fromAddress = fromAddress;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
},
|
|
136
|
+
|
|
137
|
+
methods: {
|
|
138
|
+
cardTypesChange(e){
|
|
139
|
+
|
|
140
|
+
},
|
|
141
|
+
closePoupon(){
|
|
142
|
+
this.$emit('closePoupon',{state:false});
|
|
143
|
+
},
|
|
144
|
+
exchangePeitunPoupon() {
|
|
145
|
+
if(!this.realName){
|
|
146
|
+
return uni.showToast({
|
|
147
|
+
title: "请输入姓名",
|
|
148
|
+
icon: "none",
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
if (!isMobilePhone(this.phone.trim())) {
|
|
152
|
+
return uni.showToast({
|
|
153
|
+
title: "请输入正确的手机号",
|
|
154
|
+
icon: "none",
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
if(!this.cardNum.trim()){
|
|
158
|
+
return uni.showToast({
|
|
159
|
+
title: "请输入证件号",
|
|
160
|
+
icon: "none",
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
if(!this.fromAddress){
|
|
164
|
+
return uni.showToast({
|
|
165
|
+
title: "请输入出发地",
|
|
166
|
+
icon: "none",
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
this.$emit('exchangePeitunPoupon', {phone: this.phone,realName: this.realName,cardNum: this.cardNum,fromAddress: this.fromAddress,cardType: this.cardType,sex: this.sex});
|
|
170
|
+
|
|
171
|
+
},
|
|
172
|
+
|
|
173
|
+
},
|
|
174
|
+
};
|
|
175
|
+
</script>
|
|
176
|
+
|
|
177
|
+
<style lang="less" scoped>
|
|
178
|
+
.exchangeCouponPopup {
|
|
179
|
+
width: 100%;
|
|
180
|
+
padding: 30rpx 48rpx;
|
|
181
|
+
// padding-top: 48rpx;
|
|
182
|
+
background-color: #ffff;
|
|
183
|
+
border-radius: 32rpx;
|
|
184
|
+
width: 654rpx;
|
|
185
|
+
.title {
|
|
186
|
+
// height: 100rpx;
|
|
187
|
+
background: #fff;
|
|
188
|
+
// display: flex;
|
|
189
|
+
// align-items: center;
|
|
190
|
+
// justify-content: center;
|
|
191
|
+
text-align: center;
|
|
192
|
+
// line-height: 100rpx;
|
|
193
|
+
font-size: 36rpx;
|
|
194
|
+
font-weight: bold;
|
|
195
|
+
padding: 0 24rpx;
|
|
196
|
+
}
|
|
197
|
+
.content {
|
|
198
|
+
margin-top: 15rpx;
|
|
199
|
+
.message{
|
|
200
|
+
margin-bottom: 10rpx;
|
|
201
|
+
>view{
|
|
202
|
+
&:first-child{
|
|
203
|
+
margin-bottom: 4rpx;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
.subtitle {
|
|
208
|
+
font-size: 28rpx;
|
|
209
|
+
font-weight: bold;
|
|
210
|
+
margin-bottom: 16rpx;
|
|
211
|
+
text-align: center;
|
|
212
|
+
}
|
|
213
|
+
input {
|
|
214
|
+
// height: 100rpx;
|
|
215
|
+
background-color: #f6f6f6;
|
|
216
|
+
padding: 16rpx;
|
|
217
|
+
font-size: 28rpx;
|
|
218
|
+
text-align: left;
|
|
219
|
+
border-radius: 8rpx;
|
|
220
|
+
}
|
|
221
|
+
.tips {
|
|
222
|
+
font-size: 24rpx;
|
|
223
|
+
color: #e73e3d;
|
|
224
|
+
text-align: center;
|
|
225
|
+
|
|
226
|
+
margin-top: 56rpx;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
.buttons {
|
|
230
|
+
display: flex;
|
|
231
|
+
align-items: center;
|
|
232
|
+
justify-content: center;
|
|
233
|
+
margin-top: 36rpx;
|
|
234
|
+
> view {
|
|
235
|
+
width: 264rpx;
|
|
236
|
+
height: 80rpx;
|
|
237
|
+
|
|
238
|
+
border-radius: 40rpx 40rpx 40rpx 40rpx;
|
|
239
|
+
font-size: 32rpx;
|
|
240
|
+
display: flex;
|
|
241
|
+
align-items: center;
|
|
242
|
+
justify-content: center;
|
|
243
|
+
&:first-child {
|
|
244
|
+
margin-right: 30rpx;
|
|
245
|
+
background: #e9e9e9;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
&:last-child {
|
|
249
|
+
background: linear-gradient( 90deg, #0BD690 0%, #00B0E0 100%);;
|
|
250
|
+
color: #fff;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
</style>
|