@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,1250 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="myCards">
|
|
3
|
+
<!-- <image class="bgc" src="https://img.shinemang.com/static/rednote/myCardsRed.png" mode="scaleToFill" /> -->
|
|
4
|
+
<u-sticky bgColor="#f6f6f6">
|
|
5
|
+
<headers title="我的奖品"></headers>
|
|
6
|
+
|
|
7
|
+
<view style="padding: 6px; display: flex; align-items: center">
|
|
8
|
+
<u-tabs
|
|
9
|
+
:list="tabsList"
|
|
10
|
+
:activeStyle="{
|
|
11
|
+
color: '#000000',
|
|
12
|
+
fontWeight: 'bold',
|
|
13
|
+
fontSize: '32rpx',
|
|
14
|
+
}"
|
|
15
|
+
:inactiveStyle="{
|
|
16
|
+
color: 'rgba(0, 0, 0, 0.5)',
|
|
17
|
+
fontWeight: 'bold',
|
|
18
|
+
fontSize: '28rpx',
|
|
19
|
+
}"
|
|
20
|
+
@change="changeStatus"
|
|
21
|
+
lineColor="linear-gradient( 90deg, #0BD690 0%, #00B0E0 100%);"
|
|
22
|
+
:current="current"
|
|
23
|
+
></u-tabs>
|
|
24
|
+
|
|
25
|
+
<view @click="toMyOrder" class="addressManager">
|
|
26
|
+
<image src="https://img.shinemang.com/static/img/orderIcon.png" mode="scaleToFill" />
|
|
27
|
+
<text>中奖记录</text>
|
|
28
|
+
</view>
|
|
29
|
+
</view>
|
|
30
|
+
<view v-if="current == 0" class="goodsType">
|
|
31
|
+
<view
|
|
32
|
+
@click="changeGoodsType('GoodsState_Spots')"
|
|
33
|
+
:class="[goodsType == 'GoodsState_Spots' ? 'active' : '']"
|
|
34
|
+
>
|
|
35
|
+
现货
|
|
36
|
+
</view>
|
|
37
|
+
<view
|
|
38
|
+
@click="changeGoodsType('GoodsState_Booking')"
|
|
39
|
+
:class="[goodsType == 'GoodsState_Booking' ? 'active' : '']"
|
|
40
|
+
>
|
|
41
|
+
预售
|
|
42
|
+
</view>
|
|
43
|
+
</view>
|
|
44
|
+
<view v-if="current == 1" class="goodsType">
|
|
45
|
+
<view
|
|
46
|
+
@click="changeXuniType('ThirdPartyGoodsStockState_InStock')"
|
|
47
|
+
:class="[xuniType == 'ThirdPartyGoodsStockState_InStock' ? 'active' : '']"
|
|
48
|
+
>
|
|
49
|
+
未领取
|
|
50
|
+
</view>
|
|
51
|
+
<view
|
|
52
|
+
@click="changeXuniType('ThirdPartyGoodsStockState_Released')"
|
|
53
|
+
:class="[xuniType == 'ThirdPartyGoodsStockState_Released' ? 'active' : '']"
|
|
54
|
+
>
|
|
55
|
+
已领取
|
|
56
|
+
</view>
|
|
57
|
+
</view>
|
|
58
|
+
</u-sticky>
|
|
59
|
+
<!-- :style="{
|
|
60
|
+
height:
|
|
61
|
+
current == 0 || current == 1
|
|
62
|
+
? `calc(100vh - ${statusBarHeight + 128}px)`
|
|
63
|
+
: `calc(100vh - ${statusBarHeight + 100}px)`,
|
|
64
|
+
}" -->
|
|
65
|
+
<view
|
|
66
|
+
|
|
67
|
+
class="cardsContent"
|
|
68
|
+
>
|
|
69
|
+
<view class="myCardsContent">
|
|
70
|
+
<view class="cardsBox bgcCenter" style="background-color: transparent">
|
|
71
|
+
<!-- @click="toDetail(value)" -->
|
|
72
|
+
<view style="width: 100%; height: 100%; overflow-y: scroll">
|
|
73
|
+
<view v-if="list.length > 0" class="cardsList">
|
|
74
|
+
<view
|
|
75
|
+
v-for="value in list"
|
|
76
|
+
:key="value.id"
|
|
77
|
+
class="item bgcCenter"
|
|
78
|
+
@click="showPreviewDetail(value)"
|
|
79
|
+
:style="{
|
|
80
|
+
|
|
81
|
+
backgroundColor: 'transparent',
|
|
82
|
+
}"
|
|
83
|
+
>
|
|
84
|
+
<view class="boxImg">
|
|
85
|
+
<view
|
|
86
|
+
:style="{
|
|
87
|
+
backgroundSize:value.item.itemType == 'ItemType_Goods_GreetingCard' ? 'contain' : 'cover',
|
|
88
|
+
backgroundImage:
|
|
89
|
+
'url(' + formateUrl(value.item.itemCoverThumb) + ')',
|
|
90
|
+
}"
|
|
91
|
+
class="cardBg bgcCenter"
|
|
92
|
+
>
|
|
93
|
+
<view class="count">x{{current == 0 ? value.stockId.length : value.item.itemNum}}</view>
|
|
94
|
+
</view>
|
|
95
|
+
</view>
|
|
96
|
+
|
|
97
|
+
<view
|
|
98
|
+
:style="{
|
|
99
|
+
backgroundImage: `url(${goldText})`
|
|
100
|
+
}"
|
|
101
|
+
class="title over bgcCenter"
|
|
102
|
+
>
|
|
103
|
+
{{ value.item.itemName }}
|
|
104
|
+
</view>
|
|
105
|
+
</view>
|
|
106
|
+
</view>
|
|
107
|
+
<view v-if="!isFirstLoading && list.length == 0" class="noData">
|
|
108
|
+
<image src="https://img.shinemang.com/static/noData.png" mode="scaleToFill" />
|
|
109
|
+
<view>暂无相关物品</view>
|
|
110
|
+
</view>
|
|
111
|
+
</view>
|
|
112
|
+
|
|
113
|
+
<view v-if="current == 0" class="confirmBtn">
|
|
114
|
+
<view
|
|
115
|
+
class="bgcCenter"
|
|
116
|
+
@click="toFragment"
|
|
117
|
+
hover-class="hoverActive"
|
|
118
|
+
></view>
|
|
119
|
+
<view
|
|
120
|
+
class="bgcCenter"
|
|
121
|
+
@click="toSend"
|
|
122
|
+
hover-class="hoverActive"
|
|
123
|
+
></view>
|
|
124
|
+
</view>
|
|
125
|
+
<!-- </scroll-view> -->
|
|
126
|
+
</view>
|
|
127
|
+
</view>
|
|
128
|
+
</view>
|
|
129
|
+
|
|
130
|
+
<view v-if="showPreview" @click="showPreview = false" class="previewImage">
|
|
131
|
+
<view>
|
|
132
|
+
<view id="toImg" style="position: relative;">
|
|
133
|
+
<!-- borderRadius:rewardDetail.item.itemType == 'ItemType_Goods_GreetingCard' ? '0' : '20rpx' -->
|
|
134
|
+
<img :style="{
|
|
135
|
+
|
|
136
|
+
}" :src="formateUrl(rewardDetail.item.itemCoverThumb)" alt="" />
|
|
137
|
+
|
|
138
|
+
<!-- <view v-if="rewardDetail.item.itemType == 'ItemType_Goods_GreetingCard'" class="avatar ">{{ nickName.length >7? nickName.slice(0,7) + '...' : nickName }}</view> -->
|
|
139
|
+
<view class="mask"></view>
|
|
140
|
+
</view>
|
|
141
|
+
<view class="goodsName">{{ rewardDetail.item.itemName }}</view>
|
|
142
|
+
<!--
|
|
143
|
+
<view
|
|
144
|
+
v-if="!honery && rewardDetail.item.itemType == 'ItemType_Goods_GreetingCard'"
|
|
145
|
+
class="actions"
|
|
146
|
+
>
|
|
147
|
+
<view @click.stop.prevent="toImg(2)" class="action">
|
|
148
|
+
<view
|
|
149
|
+
><image src="https://img.shinemang.com/static/img/share.png" mode="scaleToFill"
|
|
150
|
+
/></view>
|
|
151
|
+
<view>分享</view>
|
|
152
|
+
</view>
|
|
153
|
+
<view @click.stop.prevent="toImg(1)" class="action">
|
|
154
|
+
<view><image src="https://img.shinemang.com/static/img/save.png" mode="scaleToFill" /></view>
|
|
155
|
+
<view>保存</view></view
|
|
156
|
+
>
|
|
157
|
+
</view> -->
|
|
158
|
+
|
|
159
|
+
<!-- <view
|
|
160
|
+
v-if="rewardDetail.showCliamBtn == true && rewardDetail.item.itemType == 'ItemType_ThirdParty_Ticket' && current == 1 && xuniType == 'ThirdPartyGoodsStockState_InStock'
|
|
161
|
+
"
|
|
162
|
+
class="exchange"
|
|
163
|
+
>
|
|
164
|
+
<view class="tips">温馨提示:领取将在 {{rewardDetail.item.itemParams.expire_at}} 结束,过期不提交视为自动放弃.</view>
|
|
165
|
+
<view class="bgcCenter" @click.stop.prevent="confirmExchange"
|
|
166
|
+
></view
|
|
167
|
+
>
|
|
168
|
+
</view> -->
|
|
169
|
+
|
|
170
|
+
<view class="exchange" v-if="!rewardDetail.showCliamBtn && rewardDetail.item.itemType == 'ItemType_ThirdParty_Ticket' && current == 1 && xuniType == 'ThirdPartyGoodsStockState_InStock'">
|
|
171
|
+
<view class="tips">资料收集时间已过,请前往芒果APP联系客服处理</view>
|
|
172
|
+
</view>
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
<view class="exchange" v-if="rewardDetail.item.itemType == 'ItemType_ThirdParty_Ticket' && current == 1 && xuniType == 'ThirdPartyGoodsStockState_Released'">
|
|
176
|
+
<view class="tips">资料已收集,请按时抵达现场</view>
|
|
177
|
+
</view>
|
|
178
|
+
<!-- <view
|
|
179
|
+
v-if="
|
|
180
|
+
rewardDetail.item.itemType ==
|
|
181
|
+
'ItemType_ThirdParty_MGTV_EShop_Coupon'
|
|
182
|
+
"
|
|
183
|
+
class="exchange"
|
|
184
|
+
>
|
|
185
|
+
<view class="bgcCenter" @click.stop.prevent="toUsexiaomang"
|
|
186
|
+
>去使用</view
|
|
187
|
+
>
|
|
188
|
+
</view> -->
|
|
189
|
+
</view>
|
|
190
|
+
</view>
|
|
191
|
+
<u-popup
|
|
192
|
+
@close="showShare = false"
|
|
193
|
+
:show="showShare"
|
|
194
|
+
mode="bottom"
|
|
195
|
+
:round="32"
|
|
196
|
+
zIndex="10076"
|
|
197
|
+
@click.stop.prevent
|
|
198
|
+
class="sharePopupBox"
|
|
199
|
+
:safeAreaInsetBottom="false"
|
|
200
|
+
>
|
|
201
|
+
<view v-if="showShare" class="sharePopup">
|
|
202
|
+
<!-- <view class="title">
|
|
203
|
+
<view>分享</view>
|
|
204
|
+
<image
|
|
205
|
+
@click="showShare = false"
|
|
206
|
+
src="https://img.shinemang.com/static/img/closeIcon.png"
|
|
207
|
+
mode="scaleToFill"
|
|
208
|
+
/>
|
|
209
|
+
</view> -->
|
|
210
|
+
<view class="content">
|
|
211
|
+
<view @click="share(1)">
|
|
212
|
+
<image src="https://img.shinemang.com/static/img/wechat.png" mode="scaleToFill" />
|
|
213
|
+
<view>微信</view>
|
|
214
|
+
</view>
|
|
215
|
+
<view @click="share(2)">
|
|
216
|
+
<image src="https://img.shinemang.com/static/img/wechat1.png" mode="scaleToFill" />
|
|
217
|
+
<view>朋友圈</view>
|
|
218
|
+
</view>
|
|
219
|
+
</view>
|
|
220
|
+
</view>
|
|
221
|
+
</u-popup>
|
|
222
|
+
<!-- <u-popup
|
|
223
|
+
@close="showExchangePeitunPoupon = false"
|
|
224
|
+
:show="showExchangePeitunPoupon"
|
|
225
|
+
mode="center"
|
|
226
|
+
:round="32"
|
|
227
|
+
zIndex="10076"
|
|
228
|
+
class="sharePopupBox"
|
|
229
|
+
:safeAreaInsetBottom="false"
|
|
230
|
+
>
|
|
231
|
+
<view v-if="showExchangePeitunPoupon" class="exchangeCouponPopup">
|
|
232
|
+
<view class="content">
|
|
233
|
+
<view class="message">
|
|
234
|
+
<view>姓名</view>
|
|
235
|
+
<input type="text" v-model="realName" placeholder="请输入姓名" /></view>
|
|
236
|
+
<view class="message">
|
|
237
|
+
<view>性别</view>
|
|
238
|
+
<u-radio-group
|
|
239
|
+
v-model="sex"
|
|
240
|
+
iconPlacement="right">
|
|
241
|
+
<u-radio iconSize="12px" labelSize="12px" :customStyle="{marginRight: '8px',fontSize:'24rpx',gap:'4px'}" v-for="(item, index) in radiolist"
|
|
242
|
+
:key="index"
|
|
243
|
+
:label="item.name"
|
|
244
|
+
:name="item.name" ></u-radio>
|
|
245
|
+
</u-radio-group>
|
|
246
|
+
</view>
|
|
247
|
+
<view class="message">
|
|
248
|
+
<view>手机号</view>
|
|
249
|
+
<input type="number" v-model="phone" placeholder="请输入手机号" /></view>
|
|
250
|
+
<view class="message">
|
|
251
|
+
<view>证件类型</view>
|
|
252
|
+
<uni-data-select
|
|
253
|
+
:clear="false"
|
|
254
|
+
v-model="cardType"
|
|
255
|
+
:localdata="cardTypes"
|
|
256
|
+
@change="cardTypesChange"
|
|
257
|
+
></uni-data-select>
|
|
258
|
+
</view>
|
|
259
|
+
<view class="message"><view>证件号码</view>
|
|
260
|
+
<input type="text" v-model="cardNum" placeholder="请输入证件号码" /></view>
|
|
261
|
+
<view class="message"><view>出发地</view>
|
|
262
|
+
<input type="text" v-model="fromAddress" placeholder="请输入出发地" /></view>
|
|
263
|
+
<view class="tips">
|
|
264
|
+
温馨提示:领取将在 {{rewardDetail.item.itemParams.expire_at}} 结束,过期不提交视为自动放弃,请仔细核对填写信息.
|
|
265
|
+
</view>
|
|
266
|
+
</view>
|
|
267
|
+
|
|
268
|
+
<view class="buttons">
|
|
269
|
+
<view @click="showExchangePeitunPoupon = false">取消</view>
|
|
270
|
+
<view @click="exchangePeitunPoupon">确认领取</view>
|
|
271
|
+
</view>
|
|
272
|
+
</view>
|
|
273
|
+
</u-popup> -->
|
|
274
|
+
<fillInfo :rewardDetail="rewardDetail" :showExchangePeitunPoupon="showExchangePeitunPoupon" @closePoupon="closePoupon" @exchangePeitunPoupon="exchangePeitunPoupon"></fillInfo>
|
|
275
|
+
<confirmModal :subdes="subdes" :showUseBtn="showUseBtn" @cancel="cancel" @confirm="confirm" :des="des" v-if="showConfirmModal"></confirmModal>
|
|
276
|
+
</view>
|
|
277
|
+
</template>
|
|
278
|
+
<script>
|
|
279
|
+
import {
|
|
280
|
+
fetchMyBackPack,
|
|
281
|
+
fetchThirdPartyGoods,
|
|
282
|
+
fetchThirdPartyGoodsExchange,
|
|
283
|
+
} from "@/utils/fetch";
|
|
284
|
+
import {
|
|
285
|
+
formateServerUrl,
|
|
286
|
+
isHonery,
|
|
287
|
+
isMobilePhone,
|
|
288
|
+
jumpUrl,
|
|
289
|
+
navigateTo,
|
|
290
|
+
reportMessage,
|
|
291
|
+
toBannerUrl,
|
|
292
|
+
toUseXiaomangQuan,
|
|
293
|
+
toUsexiaomang,
|
|
294
|
+
} from "@/utils";
|
|
295
|
+
import confirmModal from "@/components/confirmModal/confirmModal.vue";
|
|
296
|
+
import headers from "@/components/header/header.vue";
|
|
297
|
+
import html2canvas from "html2canvas";
|
|
298
|
+
import { sendLogisticsFee } from "@/utils";
|
|
299
|
+
import fillInfo from '@/components/fillInfo/fillInfo.vue'
|
|
300
|
+
|
|
301
|
+
import goldText from "@/static/img/goldText.png";
|
|
302
|
+
export default {
|
|
303
|
+
data() {
|
|
304
|
+
return {
|
|
305
|
+
showUseBtn: false,
|
|
306
|
+
subdes:'',
|
|
307
|
+
des:'',
|
|
308
|
+
showConfirmModal:false,
|
|
309
|
+
xuniType:'ThirdPartyGoodsStockState_InStock',
|
|
310
|
+
goldText: goldText,
|
|
311
|
+
itemType: "ItemType_Goods",
|
|
312
|
+
goodsType: "GoodsState_Spots", // 现货 // GoodsState_Booking 预售
|
|
313
|
+
tabsList: [
|
|
314
|
+
{
|
|
315
|
+
name: "实物奖品",
|
|
316
|
+
status: "ItemType_Goods",
|
|
317
|
+
},
|
|
318
|
+
// {
|
|
319
|
+
// name: "电子贺卡",
|
|
320
|
+
// status: "ItemType_Goods_GreetingCard",
|
|
321
|
+
// },
|
|
322
|
+
{
|
|
323
|
+
name: "虚拟奖品",
|
|
324
|
+
status: "other",
|
|
325
|
+
},
|
|
326
|
+
// {
|
|
327
|
+
// name: "已拥有的小卡",
|
|
328
|
+
// status: "carriage_start",
|
|
329
|
+
// },
|
|
330
|
+
],
|
|
331
|
+
scrollTop: 0,
|
|
332
|
+
triggered: false,
|
|
333
|
+
show: false,
|
|
334
|
+
cardDetail: null,
|
|
335
|
+
cardItem: "",
|
|
336
|
+
pageSize: 15,
|
|
337
|
+
pageNo: 1,
|
|
338
|
+
hasMore: false,
|
|
339
|
+
isFirstLoading: true,
|
|
340
|
+
list: [],
|
|
341
|
+
seriesList: [],
|
|
342
|
+
defaultSeriesId: 0,
|
|
343
|
+
showSelectTypesModal: false,
|
|
344
|
+
totalNums: 0,
|
|
345
|
+
titleName: "全部卡集",
|
|
346
|
+
current: 0,
|
|
347
|
+
showPreview: false,
|
|
348
|
+
rewardDetail:null,
|
|
349
|
+
showShare: false,
|
|
350
|
+
sendLogisticsFee: sendLogisticsFee,
|
|
351
|
+
statusBarHeight: 0,
|
|
352
|
+
showExchangePeitunPoupon:false,
|
|
353
|
+
honery:isHonery(),
|
|
354
|
+
};
|
|
355
|
+
},
|
|
356
|
+
components: { headers ,confirmModal,fillInfo},
|
|
357
|
+
onLoad(option) {
|
|
358
|
+
this.nickName = uni.getStorageSync("nickname")
|
|
359
|
+
if(option.current){
|
|
360
|
+
this.current = option.current
|
|
361
|
+
if(this.current == 1){
|
|
362
|
+
this.itemType = "ThirdPartyGoodsStockState_Released"
|
|
363
|
+
}
|
|
364
|
+
// else if(this.current == 2){
|
|
365
|
+
// if(option.type && option.type == 2){
|
|
366
|
+
// this.xuniType = 'ThirdPartyGoodsStockState_Released'
|
|
367
|
+
// }
|
|
368
|
+
// }
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
methods: {
|
|
372
|
+
closePoupon(state){
|
|
373
|
+
this.showExchangePeitunPoupon = state.state;
|
|
374
|
+
},
|
|
375
|
+
cardTypesChange(e){
|
|
376
|
+
|
|
377
|
+
},
|
|
378
|
+
cancel(){
|
|
379
|
+
this.showConfirmModal = false;
|
|
380
|
+
},
|
|
381
|
+
|
|
382
|
+
toUsexiaomang() {
|
|
383
|
+
toUseXiaomangQuan();
|
|
384
|
+
},
|
|
385
|
+
confirmExchange() {
|
|
386
|
+
this.showExchangePeitunPoupon = true;
|
|
387
|
+
},
|
|
388
|
+
exchangePeitunPoupon(data) {
|
|
389
|
+
fetchThirdPartyGoodsExchange({
|
|
390
|
+
phone: data.phone.trim(),
|
|
391
|
+
stock_id: this.rewardDetail.stockId[0],
|
|
392
|
+
real_name:data.realName,
|
|
393
|
+
id_card_no:data.cardNum.trim(),
|
|
394
|
+
id_card_type:data.cardType,
|
|
395
|
+
other:{
|
|
396
|
+
address:data.fromAddress,
|
|
397
|
+
sex:data.sex
|
|
398
|
+
}
|
|
399
|
+
}).then((res) => {
|
|
400
|
+
console.log(res);
|
|
401
|
+
uni.showToast({
|
|
402
|
+
title: "领取成功",
|
|
403
|
+
icon: "none",
|
|
404
|
+
});
|
|
405
|
+
uni.setStorageSync("phone", data.phone);
|
|
406
|
+
uni.setStorageSync("realName", data.realName);
|
|
407
|
+
uni.setStorageSync("fromAddress", data.fromAddress);
|
|
408
|
+
this.showExchangePeitunPoupon = false;
|
|
409
|
+
this.showPreview = false;
|
|
410
|
+
this.getCardsList();
|
|
411
|
+
});
|
|
412
|
+
},
|
|
413
|
+
|
|
414
|
+
changeXuniType(type){
|
|
415
|
+
this.xuniType = type;
|
|
416
|
+
uni.pageScrollTo({ scrollTop: 1,duration:300 })
|
|
417
|
+
this.getCardsList();
|
|
418
|
+
},
|
|
419
|
+
changeGoodsType(type) {
|
|
420
|
+
this.goodsType = type;
|
|
421
|
+
uni.pageScrollTo({ scrollTop: 1,duration:300 })
|
|
422
|
+
this.getCardsList();
|
|
423
|
+
},
|
|
424
|
+
changeStatus(e) {
|
|
425
|
+
this.current = e.index;
|
|
426
|
+
this.itemType = e.status;
|
|
427
|
+
uni.pageScrollTo({ scrollTop: 1,duration:300 })
|
|
428
|
+
this.getCardsList();
|
|
429
|
+
},
|
|
430
|
+
confirm(){
|
|
431
|
+
this.showConfirmModal = false
|
|
432
|
+
if(this.rewardDetail.item.itemType == 'ItemType_ThirdParty_MGTV_EShop_Coupon'){
|
|
433
|
+
toUseXiaomangQuan();
|
|
434
|
+
}else if(this.rewardDetail.item.itemType == 'ItemType_ThirdParty_MGTV_Point'){
|
|
435
|
+
jumpUrl('https://app.mgtv.com/credits/v2.html#/?source=yhfc')
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
},
|
|
439
|
+
showPreviewDetail(value) {
|
|
440
|
+
this.rewardDetail = value;
|
|
441
|
+
if(this.current == 2){
|
|
442
|
+
if(this.xuniType == 'ThirdPartyGoodsStockState_InStock'){
|
|
443
|
+
if(value.item.itemType != 'ItemType_ThirdParty_MeiTuan_Coupon'){
|
|
444
|
+
return;
|
|
445
|
+
}
|
|
446
|
+
}else{
|
|
447
|
+
if(value.item.itemType == 'ItemType_ThirdParty_MGTV_VIP'){
|
|
448
|
+
this.des = value.item.itemName +'已发放到当前账户'
|
|
449
|
+
this.subdes = '前往芒果TV APP查看'
|
|
450
|
+
this.showUseBtn = false
|
|
451
|
+
this.showConfirmModal = true
|
|
452
|
+
|
|
453
|
+
}else if(value.item.itemType == 'ItemType_ThirdParty_MGTV_EShop_Coupon'){
|
|
454
|
+
this.des = value.item.itemName +'已发放'
|
|
455
|
+
this.subdes = ''
|
|
456
|
+
this.showUseBtn = true
|
|
457
|
+
this.showConfirmModal = true
|
|
458
|
+
}else if(value.item.itemType == 'ItemType_ThirdParty_MGTV_UNION_VIP'){
|
|
459
|
+
this.des = value.item.itemName +'已发放到当前账户,前往芒果TV 我的-资产服务-我的资产-联合会员查看'
|
|
460
|
+
this.subdes = ''
|
|
461
|
+
this.showUseBtn = false
|
|
462
|
+
this.showConfirmModal = true
|
|
463
|
+
}else if(value.item.itemType == 'ItemType_ThirdParty_MGTV_Point'){
|
|
464
|
+
this.des = value.item.itemName +'已发放到当前账户'
|
|
465
|
+
this.subdes = ''
|
|
466
|
+
this.showUseBtn = true
|
|
467
|
+
this.showConfirmModal = true
|
|
468
|
+
}else if(value.item.itemType == 'ItemType_ThirdParty_MeiTuan_Coupon'){
|
|
469
|
+
this.des = value.item.itemName +'已发放,请前往美团APP中查看'
|
|
470
|
+
this.subdes = ''
|
|
471
|
+
this.showUseBtn = false
|
|
472
|
+
this.showConfirmModal = true
|
|
473
|
+
|
|
474
|
+
}
|
|
475
|
+
this.showConfirmModal = true;
|
|
476
|
+
return;
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
// if (value.item.itemType == "ItemType_Goods_GreetingCard") {
|
|
480
|
+
|
|
481
|
+
if(value.item.itemType == 'ItemType_ThirdParty_Ticket' && this.xuniType == 'ThirdPartyGoodsStockState_InStock'){
|
|
482
|
+
const now = Date.now();
|
|
483
|
+
const endTime = new Date(
|
|
484
|
+
value.item.itemParams.expire_at + "+08:00",
|
|
485
|
+
).getTime();
|
|
486
|
+
|
|
487
|
+
if(now > endTime){
|
|
488
|
+
this.rewardDetail.showCliamBtn = false
|
|
489
|
+
}else{
|
|
490
|
+
this.rewardDetail.showCliamBtn = true;
|
|
491
|
+
this.confirmExchange();
|
|
492
|
+
return;
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
this.showPreview = true;
|
|
497
|
+
// }
|
|
498
|
+
},
|
|
499
|
+
share(type) {
|
|
500
|
+
reportMessage('集好运-点击我的奖品-分享电子贺卡')
|
|
501
|
+
setTimeout(async () => {
|
|
502
|
+
const dom = document.getElementById("toImg");
|
|
503
|
+
var canvas1 = document.createElement("canvas");
|
|
504
|
+
canvas1.width = dom.offsetWidth * 2;
|
|
505
|
+
canvas1.height = dom.offsetHeight * 2;
|
|
506
|
+
const canvas = await html2canvas(dom, {
|
|
507
|
+
// allowTaint: false,
|
|
508
|
+
width: dom.offsetWidth,
|
|
509
|
+
canvas: canvas1,
|
|
510
|
+
height: dom.offsetHeight,
|
|
511
|
+
useCORS: true, // 处理跨域图片
|
|
512
|
+
scale: 2, // 提高清晰度
|
|
513
|
+
allowTaint: true, // 允许使用跨域资源
|
|
514
|
+
tainTest: false,
|
|
515
|
+
backgroundColor: null,
|
|
516
|
+
});
|
|
517
|
+
const base64 = canvas.toDataURL("image/png");
|
|
518
|
+
let option = "";
|
|
519
|
+
if (type == 1) {
|
|
520
|
+
option = "wechat";
|
|
521
|
+
//分享到 微信和微信朋友圈
|
|
522
|
+
} else {
|
|
523
|
+
option = "moments";
|
|
524
|
+
// 信朋友圈
|
|
525
|
+
}
|
|
526
|
+
MgtvApi.shareTo({
|
|
527
|
+
type: option, // 分享平台:wechat(微信好友), moments(微信朋友圈)
|
|
528
|
+
style: 1, // 分享类型 0(链接), 1(图片)
|
|
529
|
+
title: "", // 分享标题
|
|
530
|
+
shareUrl: base64, // 分享链接(当style为1时,这里填写分享的图片地址或base64),dom生成base64 图片可使用 html2canvas,dom-to-image,vue-canvas-poster 等
|
|
531
|
+
shareDesc: "", // 分享描述
|
|
532
|
+
shareIcon: "", // 分享图标
|
|
533
|
+
});
|
|
534
|
+
}, 100);
|
|
535
|
+
},
|
|
536
|
+
|
|
537
|
+
toImg(type) {
|
|
538
|
+
if (type == 1) {
|
|
539
|
+
setTimeout(async () => {
|
|
540
|
+
const dom = document.getElementById("toImg");
|
|
541
|
+
var canvas1 = document.createElement("canvas");
|
|
542
|
+
canvas1.width = dom.offsetWidth * 2;
|
|
543
|
+
canvas1.height = dom.offsetHeight * 2;
|
|
544
|
+
const canvas = await html2canvas(dom, {
|
|
545
|
+
allowTaint: false,
|
|
546
|
+
width: dom.offsetWidth,
|
|
547
|
+
height: dom.offsetHeight,
|
|
548
|
+
useCORS: true, // 处理跨域图片
|
|
549
|
+
scale: 2, // 提高清晰度
|
|
550
|
+
canvas: canvas1,
|
|
551
|
+
useCORS: true, // 使用跨域
|
|
552
|
+
allowTaint: true, // 允许使用跨域资源
|
|
553
|
+
tainTest: false,
|
|
554
|
+
backgroundColor: null,
|
|
555
|
+
});
|
|
556
|
+
const base64 = canvas.toDataURL("image/png");
|
|
557
|
+
|
|
558
|
+
MgtvApi.callhandler("savePicture", {
|
|
559
|
+
imgUrl: base64,
|
|
560
|
+
});
|
|
561
|
+
// 报错到相册
|
|
562
|
+
}, 100);
|
|
563
|
+
} else {
|
|
564
|
+
this.showShare = true;
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
toMyOrder() {
|
|
568
|
+
reportMessage('集好运-点击我的奖品-中奖记录');
|
|
569
|
+
navigateTo("/subpackages/myOrder/myOrder");
|
|
570
|
+
},
|
|
571
|
+
changeType(value) {
|
|
572
|
+
this.defaultSeriesId = value.id;
|
|
573
|
+
this.titleName = value.name;
|
|
574
|
+
this.showSelectTypesModal = false;
|
|
575
|
+
this.pageNo = 1;
|
|
576
|
+
this.getCardsList();
|
|
577
|
+
},
|
|
578
|
+
formateUrl(url) {
|
|
579
|
+
return formateServerUrl(url);
|
|
580
|
+
},
|
|
581
|
+
toGachaDetail() {},
|
|
582
|
+
|
|
583
|
+
toFragment() {
|
|
584
|
+
reportMessage('集好运-点击我的奖品-去分解');
|
|
585
|
+
navigateTo("/subpackages/fragment/fragment");
|
|
586
|
+
},
|
|
587
|
+
// 获取小卡详情
|
|
588
|
+
getGoodsDetail() {
|
|
589
|
+
// fetchCardDetail({
|
|
590
|
+
// id: value.id,
|
|
591
|
+
// }).then((res) => {
|
|
592
|
+
// this.cardDetail = res.data;
|
|
593
|
+
// this.show = true;
|
|
594
|
+
// });
|
|
595
|
+
},
|
|
596
|
+
|
|
597
|
+
// 我的卡包
|
|
598
|
+
getCardsList() {
|
|
599
|
+
// || this.current == 1
|
|
600
|
+
console.log(this.current);
|
|
601
|
+
if (this.current == 0 ) {
|
|
602
|
+
fetchMyBackPack({
|
|
603
|
+
page: this.pageNo,
|
|
604
|
+
page_size: 10000,
|
|
605
|
+
item_type: this.itemType,
|
|
606
|
+
goods_state: this.current == 0 ? this.goodsType : "GoodsState_Nil",
|
|
607
|
+
}).then((res) => {
|
|
608
|
+
this.list = res.list;
|
|
609
|
+
this.isFirstLoading = false;
|
|
610
|
+
});
|
|
611
|
+
} else {
|
|
612
|
+
fetchThirdPartyGoods({
|
|
613
|
+
page: this.pageNo,
|
|
614
|
+
page_size: 10000,
|
|
615
|
+
state:this.xuniType
|
|
616
|
+
}).then((res) => {
|
|
617
|
+
this.list = res.list;
|
|
618
|
+
});
|
|
619
|
+
}
|
|
620
|
+
},
|
|
621
|
+
toDetail(value) {
|
|
622
|
+
// if (value.seriesId == "0") {
|
|
623
|
+
// return;
|
|
624
|
+
// }
|
|
625
|
+
// // 顺便打开对应的那个
|
|
626
|
+
// uni.navigateTo({
|
|
627
|
+
// url:
|
|
628
|
+
// "/subpackages/gachaDetail/gachaDetail?series_id=" +
|
|
629
|
+
// value.seriesId +
|
|
630
|
+
// "&cardId=" +
|
|
631
|
+
// value.id,
|
|
632
|
+
// });
|
|
633
|
+
},
|
|
634
|
+
toSend() {
|
|
635
|
+
reportMessage('集好运-点击我的奖品-去邮寄');
|
|
636
|
+
uni.navigateTo({
|
|
637
|
+
url: "/subpackages/sendLogistics/sendLogistics",
|
|
638
|
+
});
|
|
639
|
+
},
|
|
640
|
+
refresherrefresh({ done }) {
|
|
641
|
+
if (!this.triggered) {
|
|
642
|
+
this.triggered = true;
|
|
643
|
+
setTimeout(() => {
|
|
644
|
+
this.triggered = false;
|
|
645
|
+
}, 5000);
|
|
646
|
+
}
|
|
647
|
+
},
|
|
648
|
+
scrollToLower() {
|
|
649
|
+
console.log("scrollToLower");
|
|
650
|
+
},
|
|
651
|
+
toLogistics() {},
|
|
652
|
+
|
|
653
|
+
onReachBottom() {
|
|
654
|
+
// if (this.hasMore) {
|
|
655
|
+
// this.pageNo++;
|
|
656
|
+
// this.getCardsList();
|
|
657
|
+
// }
|
|
658
|
+
},
|
|
659
|
+
},
|
|
660
|
+
onShow() {
|
|
661
|
+
// const systemInfo = uni.getSystemInfoSync();
|
|
662
|
+
const safeTop = uni.getStorageSync("safeTop") || 0;
|
|
663
|
+
this.statusBarHeight = safeTop
|
|
664
|
+
// alert(JSON.stringify(systemInfo))
|
|
665
|
+
const toOrder = uni.getStorageSync("toOrder");
|
|
666
|
+
if (toOrder) {
|
|
667
|
+
uni.removeStorageSync("toOrder");
|
|
668
|
+
navigateTo("/subpackages/myOrder/myOrder?type=1");
|
|
669
|
+
}
|
|
670
|
+
this.getCardsList();
|
|
671
|
+
},
|
|
672
|
+
onShareAppMessage() {},
|
|
673
|
+
onShareTimeline() {},
|
|
674
|
+
};
|
|
675
|
+
</script>
|
|
676
|
+
|
|
677
|
+
<style lang="less" scoped>
|
|
678
|
+
|
|
679
|
+
page {
|
|
680
|
+
// background-color: #fff !important;
|
|
681
|
+
min-height: 100vh;
|
|
682
|
+
background-color: #f6f6f6 !important;
|
|
683
|
+
// background-color: #ffe0b3 !important;
|
|
684
|
+
}
|
|
685
|
+
/deep/.tabs__wrapper__nav__line {
|
|
686
|
+
width: 30rpx;
|
|
687
|
+
height: 4rpx;
|
|
688
|
+
background: linear-gradient( 90deg, #0BD690 0%, #00B0E0 100%);;
|
|
689
|
+
border-radius: 338rpx 338rpx 338rpx 338rpx;
|
|
690
|
+
}
|
|
691
|
+
.addressManager {
|
|
692
|
+
display: flex;
|
|
693
|
+
align-items: center;
|
|
694
|
+
justify-content: center;
|
|
695
|
+
position: absolute;
|
|
696
|
+
right: 32rpx;
|
|
697
|
+
font-size: 28rpx;
|
|
698
|
+
font-weight: bold;
|
|
699
|
+
image {
|
|
700
|
+
width: 40rpx;
|
|
701
|
+
height: 40rpx;
|
|
702
|
+
margin-right: 5rpx;
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
.myCards {
|
|
706
|
+
width: 100%;
|
|
707
|
+
// height: 100%;
|
|
708
|
+
background-position: top center !important;
|
|
709
|
+
// background-image: url("https://img.shinemang.com/static/rednote/myPackBgc.png");
|
|
710
|
+
> .bgc {
|
|
711
|
+
width: 750rpx;
|
|
712
|
+
position: fixed;
|
|
713
|
+
top: 0;
|
|
714
|
+
left: 50%;
|
|
715
|
+
transform: translateX(-50%);
|
|
716
|
+
height: 654rpx;
|
|
717
|
+
@media (min-width: 500px) {
|
|
718
|
+
max-width: 375px !important;
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
.cardsBox {
|
|
722
|
+
width: 702rpx;
|
|
723
|
+
height: 1164rpx;
|
|
724
|
+
overflow: hidden;
|
|
725
|
+
padding: 32rpx 0;
|
|
726
|
+
background-image: url("https://img.shinemang.com/static/rednote/backPackRed.png");
|
|
727
|
+
|
|
728
|
+
// overflow-y: scroll;
|
|
729
|
+
}
|
|
730
|
+
.goodsType {
|
|
731
|
+
display: flex;
|
|
732
|
+
// align-items: center;
|
|
733
|
+
padding-left: 32rpx;
|
|
734
|
+
height: 28px;
|
|
735
|
+
view {
|
|
736
|
+
width: 44px;
|
|
737
|
+
height: 20px;
|
|
738
|
+
display: flex;
|
|
739
|
+
align-items: center;
|
|
740
|
+
justify-content: center;
|
|
741
|
+
font-size: 24rpx;
|
|
742
|
+
line-height: 44px;
|
|
743
|
+
color: #505050;
|
|
744
|
+
border-radius: 10px;
|
|
745
|
+
margin-right: 24rpx;
|
|
746
|
+
color:rgba(0, 31, 58, 0.5);
|
|
747
|
+
&.active {
|
|
748
|
+
background: #C8E2EA;
|
|
749
|
+
color: #001F3A;
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
.typesPopup {
|
|
756
|
+
background-color: #fff;
|
|
757
|
+
padding: 38rpx 28rpx;
|
|
758
|
+
z-index: 3;
|
|
759
|
+
max-height: 600rpx;
|
|
760
|
+
overflow-y: auto;
|
|
761
|
+
box-sizing: content-box;
|
|
762
|
+
.item {
|
|
763
|
+
font-size: 28rpx;
|
|
764
|
+
color: #666666;
|
|
765
|
+
margin-bottom: 40rpx;
|
|
766
|
+
&:last-child {
|
|
767
|
+
margin-bottom: 0;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
&.active {
|
|
771
|
+
color: #7c66ff;
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
&.active {
|
|
776
|
+
top: 80rpx;
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
.seriesType {
|
|
780
|
+
height: 80rpx;
|
|
781
|
+
width: 100%;
|
|
782
|
+
display: flex;
|
|
783
|
+
align-items: center;
|
|
784
|
+
justify-content: space-between;
|
|
785
|
+
padding: 0 32rpx;
|
|
786
|
+
font-size: 28rpx;
|
|
787
|
+
color: #666666;
|
|
788
|
+
position: relative;
|
|
789
|
+
background-color: #fff;
|
|
790
|
+
|
|
791
|
+
.selectType {
|
|
792
|
+
font-size: 36rpx;
|
|
793
|
+
display: flex;
|
|
794
|
+
align-items: center;
|
|
795
|
+
// gap: 10rpx;
|
|
796
|
+
font-weight: bold;
|
|
797
|
+
|
|
798
|
+
color: #000;
|
|
799
|
+
image {
|
|
800
|
+
width: 23rpx;
|
|
801
|
+
height: 13rpx;
|
|
802
|
+
margin-left: 10rpx;
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
.cardsContent {
|
|
807
|
+
// height: calc(100% - 102px - 56rpx);
|
|
808
|
+
width: 100%;
|
|
809
|
+
z-index: 3;
|
|
810
|
+
position: relative;
|
|
811
|
+
margin-top: 30rpx;
|
|
812
|
+
// overflow: hidden;
|
|
813
|
+
// position: absolute;
|
|
814
|
+
}
|
|
815
|
+
.myCardsContent {
|
|
816
|
+
padding-bottom: 164rpx;
|
|
817
|
+
// position: absolute;
|
|
818
|
+
width: 100%;
|
|
819
|
+
// height: 100%;
|
|
820
|
+
// height: calc(100% - 102px);
|
|
821
|
+
// overflow-y: scroll;
|
|
822
|
+
justify-content: center;
|
|
823
|
+
display: flex;
|
|
824
|
+
|
|
825
|
+
// padding-top: 100rpx;
|
|
826
|
+
.noData {
|
|
827
|
+
text-align: center;
|
|
828
|
+
margin-top: 166rpx;
|
|
829
|
+
color: #999999;
|
|
830
|
+
font-size: 28rpx;
|
|
831
|
+
image {
|
|
832
|
+
width: 370rpx;
|
|
833
|
+
height: 368rpx;
|
|
834
|
+
}
|
|
835
|
+
view {
|
|
836
|
+
margin-top: -10rpx;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
.toShop {
|
|
840
|
+
width: 322rpx;
|
|
841
|
+
height: 80rpx;
|
|
842
|
+
background: #7c66ff;
|
|
843
|
+
border-radius: 864rpx 864rpx 864rpx 864rpx;
|
|
844
|
+
display: flex;
|
|
845
|
+
align-items: center;
|
|
846
|
+
justify-content: center;
|
|
847
|
+
color: #fff;
|
|
848
|
+
font-size: 32rpx;
|
|
849
|
+
margin: auto;
|
|
850
|
+
margin-top: 40rpx;
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
.cardsList {
|
|
855
|
+
// padding: 0 32rpx;
|
|
856
|
+
// gap: 24rpx;
|
|
857
|
+
display: flex;
|
|
858
|
+
// padding: 52rpx 0;
|
|
859
|
+
|
|
860
|
+
padding-left: 32rpx;
|
|
861
|
+
// padding-top: 20rpx;
|
|
862
|
+
flex-wrap: wrap;
|
|
863
|
+
// padding-bottom: 16rpx;
|
|
864
|
+
padding-right: 0;
|
|
865
|
+
.item {
|
|
866
|
+
width: 200rpx;
|
|
867
|
+
margin-bottom: 24rpx;
|
|
868
|
+
margin-right: 20rpx;
|
|
869
|
+
height: 252rpx;
|
|
870
|
+
padding-top: 38rpx;
|
|
871
|
+
// box-shadow: 2rpx 2rpx 12rpx 0rpx rgba(212, 131, 69, 0.5);
|
|
872
|
+
border-radius: 24rpx;
|
|
873
|
+
position: relative;
|
|
874
|
+
background-image: url('https://img.shinemang.com/static/activity2/cardBgc.png');
|
|
875
|
+
|
|
876
|
+
&:nth-child(3n) {
|
|
877
|
+
margin-right: 0;
|
|
878
|
+
}
|
|
879
|
+
.boxImg {
|
|
880
|
+
width: 176rpx;
|
|
881
|
+
height: 176rpx;
|
|
882
|
+
margin-left: 12rpx;
|
|
883
|
+
border-radius: 14rpx 14rpx 14rpx 14rpx;
|
|
884
|
+
// border: 2rpx solid #ffb286;
|
|
885
|
+
}
|
|
886
|
+
.cardBg {
|
|
887
|
+
width: 176rpx;
|
|
888
|
+
height: 176rpx;
|
|
889
|
+
position: relative;
|
|
890
|
+
border-radius: 16rpx;
|
|
891
|
+
|
|
892
|
+
.count {
|
|
893
|
+
position: absolute;
|
|
894
|
+
right: 8rpx;
|
|
895
|
+
bottom: 22rpx;
|
|
896
|
+
background: rgba(0, 0, 0, 0.5);
|
|
897
|
+
border-radius: 16rpx;
|
|
898
|
+
// padding: 0 14rpx;
|
|
899
|
+
width: 48rpx;
|
|
900
|
+
height: 32rpx;
|
|
901
|
+
color: #fff;
|
|
902
|
+
font-size: 24rpx;
|
|
903
|
+
line-height: 32rpx;
|
|
904
|
+
display: flex;
|
|
905
|
+
align-items: center;
|
|
906
|
+
justify-content: center;
|
|
907
|
+
}
|
|
908
|
+
image {
|
|
909
|
+
width: 100%;
|
|
910
|
+
height: 100%;
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
.title {
|
|
914
|
+
font-size: 28rpx;
|
|
915
|
+
// font-weight: bold;
|
|
916
|
+
color: #000;
|
|
917
|
+
padding-left: 16rpx;
|
|
918
|
+
width: 100%;
|
|
919
|
+
height: 48rpx;
|
|
920
|
+
// display: flex;
|
|
921
|
+
// align-items: center;
|
|
922
|
+
line-height: 48rpx;
|
|
923
|
+
position: absolute;
|
|
924
|
+
background-color: transparent;
|
|
925
|
+
left: 0;
|
|
926
|
+
bottom: 8rpx;
|
|
927
|
+
// text-align: center;
|
|
928
|
+
}
|
|
929
|
+
.time {
|
|
930
|
+
font-size: 20rpx;
|
|
931
|
+
color: #999999;
|
|
932
|
+
line-height: 36rpx;
|
|
933
|
+
text-align: center;
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
.confirmBtn {
|
|
938
|
+
position: fixed;
|
|
939
|
+
bottom: 0;
|
|
940
|
+
left: 50%;
|
|
941
|
+
transform: translateX(-50%);
|
|
942
|
+
width: 100%;
|
|
943
|
+
// max-width: 500px;
|
|
944
|
+
height: 154rpx;
|
|
945
|
+
background: #EDEDED;
|
|
946
|
+
padding-left: 32rpx;
|
|
947
|
+
|
|
948
|
+
// border-top: 1px solid rgba(0, 0, 0, 0.1);
|
|
949
|
+
padding-top: 16rpx;
|
|
950
|
+
display: flex;
|
|
951
|
+
justify-content: center;
|
|
952
|
+
view {
|
|
953
|
+
width: 298rpx;
|
|
954
|
+
background-color: transparent;
|
|
955
|
+
height: 100rpx;
|
|
956
|
+
&:first-child {
|
|
957
|
+
margin-right: 40rpx;
|
|
958
|
+
background-image: url("https://img.shinemang.com/static/rednote/btn3.png");
|
|
959
|
+
}
|
|
960
|
+
&:last-child {
|
|
961
|
+
background-image: url("https://img.shinemang.com/static/rednote/btn4.png");
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
.previewImage {
|
|
967
|
+
width: 100%;
|
|
968
|
+
height: 100vh;
|
|
969
|
+
background-color: #000;
|
|
970
|
+
position: fixed;
|
|
971
|
+
top: 50%;
|
|
972
|
+
left: 50%;
|
|
973
|
+
transform: translate(-50%,-50%);
|
|
974
|
+
z-index: 9999;
|
|
975
|
+
transition: all 0.3s ease-in-out;
|
|
976
|
+
color: #fff;
|
|
977
|
+
font-size: 28rpx;
|
|
978
|
+
.goodsName {
|
|
979
|
+
font-size: 28rpx;
|
|
980
|
+
padding-top: 30rpx;
|
|
981
|
+
padding-left: 32rpx;
|
|
982
|
+
padding-right: 32rpx;
|
|
983
|
+
|
|
984
|
+
// font-weight: bold;
|
|
985
|
+
text-align: center;
|
|
986
|
+
}
|
|
987
|
+
.info {
|
|
988
|
+
display: flex;
|
|
989
|
+
color: #666666;
|
|
990
|
+
align-items: center;
|
|
991
|
+
|
|
992
|
+
&.levelInfo {
|
|
993
|
+
> view {
|
|
994
|
+
margin-right: 6rpx !important;
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
.line {
|
|
999
|
+
width: 1px;
|
|
1000
|
+
height: 38rpx;
|
|
1001
|
+
background: #bdbdbd;
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
> view {
|
|
1005
|
+
position: absolute;
|
|
1006
|
+
top: 50%;
|
|
1007
|
+
left: 50%;
|
|
1008
|
+
transform: translate(-50%, -50%);
|
|
1009
|
+
text-align: center;
|
|
1010
|
+
}
|
|
1011
|
+
.userInfo {
|
|
1012
|
+
display: flex;
|
|
1013
|
+
align-items: center;
|
|
1014
|
+
position: absolute;
|
|
1015
|
+
top: 0;
|
|
1016
|
+
left: 0;
|
|
1017
|
+
img {
|
|
1018
|
+
width: 50px;
|
|
1019
|
+
height: 50px;
|
|
1020
|
+
border-radius: 50%;
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
.avatar {
|
|
1024
|
+
position: absolute;
|
|
1025
|
+
top: 15.5%;
|
|
1026
|
+
left: 20%;
|
|
1027
|
+
font-size: 45rpx;
|
|
1028
|
+
font-family: 'fxlh';
|
|
1029
|
+
width: 350rpx;
|
|
1030
|
+
color: #000;
|
|
1031
|
+
text-align: left;
|
|
1032
|
+
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
#toImg{
|
|
1036
|
+
position: relative;
|
|
1037
|
+
.mask{
|
|
1038
|
+
position: absolute;
|
|
1039
|
+
width: 100%;
|
|
1040
|
+
height: 100%;
|
|
1041
|
+
top: 0;
|
|
1042
|
+
left: 0;
|
|
1043
|
+
background-color:transparent;
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
img {
|
|
1047
|
+
width: 100vw;
|
|
1048
|
+
// height: 100vw;
|
|
1049
|
+
border-radius: 20rpx;
|
|
1050
|
+
@media (min-width: 500px) {
|
|
1051
|
+
width: 375px;
|
|
1052
|
+
// height: 375px;
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
.name {
|
|
1056
|
+
padding-left: 32rpx;
|
|
1057
|
+
padding-right: 32rpx;
|
|
1058
|
+
margin-top: 20rpx;
|
|
1059
|
+
margin-bottom: 15rpx;
|
|
1060
|
+
}
|
|
1061
|
+
.count {
|
|
1062
|
+
margin-top: 15rpx;
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
.exchange {
|
|
1066
|
+
display: flex;
|
|
1067
|
+
flex-direction: column;
|
|
1068
|
+
margin-top: 40rpx;
|
|
1069
|
+
align-items: center;
|
|
1070
|
+
justify-content: center;
|
|
1071
|
+
.tips{
|
|
1072
|
+
font-size: 24rpx;
|
|
1073
|
+
color: #e73e3d;
|
|
1074
|
+
text-align: center;
|
|
1075
|
+
margin-bottom: 15rpx;
|
|
1076
|
+
padding: 0 32rpx;
|
|
1077
|
+
|
|
1078
|
+
}
|
|
1079
|
+
.bgcCenter {
|
|
1080
|
+
width: 229rpx;
|
|
1081
|
+
height: 102rpx;
|
|
1082
|
+
display: flex;
|
|
1083
|
+
// align-items: center;
|
|
1084
|
+
justify-content: center;
|
|
1085
|
+
color: #fff;
|
|
1086
|
+
background-image: url("https://img.shinemang.com/static/rednote/tobaPack.png");
|
|
1087
|
+
font-size: 38rpx;
|
|
1088
|
+
font-family: "fxlh";
|
|
1089
|
+
// background: #ff9a96;
|
|
1090
|
+
// border-radius: 41rpx;
|
|
1091
|
+
// border: 4rpx solid #FFFFFF;
|
|
1092
|
+
line-height: 66rpx;
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
.actions {
|
|
1097
|
+
// display: flex;
|
|
1098
|
+
// margin-top: 40rpx;
|
|
1099
|
+
justify-content: center;
|
|
1100
|
+
position: absolute;
|
|
1101
|
+
right: 0;
|
|
1102
|
+
top: 50%;
|
|
1103
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
1104
|
+
border-radius: 20rpx;
|
|
1105
|
+
transform: translateY(-50%);
|
|
1106
|
+
padding: 20rpx;
|
|
1107
|
+
.action {
|
|
1108
|
+
font-size: 28rpx;
|
|
1109
|
+
// width: 96rpx;
|
|
1110
|
+
// height: 96rpx;
|
|
1111
|
+
color: #fff;
|
|
1112
|
+
font-family: "AlibabaPuHuiTiMedium";
|
|
1113
|
+
text-align: center;
|
|
1114
|
+
|
|
1115
|
+
&:first-child {
|
|
1116
|
+
// margin-right: 40rpx;
|
|
1117
|
+
margin-bottom: 20rpx;
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
image {
|
|
1121
|
+
width: 60rpx;
|
|
1122
|
+
height: 60rpx;
|
|
1123
|
+
}
|
|
1124
|
+
image {
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
.sharePopup {
|
|
1129
|
+
width: 100%;
|
|
1130
|
+
padding: 40rpx;
|
|
1131
|
+
height: 322rpx;
|
|
1132
|
+
padding-top: 88rpx;
|
|
1133
|
+
background-color: #ffff;
|
|
1134
|
+
border-radius: 32rpx 32rpx 0 0;
|
|
1135
|
+
.title {
|
|
1136
|
+
border-radius: 32rpx 32rpx 0 0;
|
|
1137
|
+
height: 100rpx;
|
|
1138
|
+
background: #fff;
|
|
1139
|
+
display: flex;
|
|
1140
|
+
align-items: center;
|
|
1141
|
+
justify-content: center;
|
|
1142
|
+
line-height: 100rpx;
|
|
1143
|
+
font-size: 36rpx;
|
|
1144
|
+
|
|
1145
|
+
image {
|
|
1146
|
+
width: 48rpx;
|
|
1147
|
+
height: 48rpx;
|
|
1148
|
+
position: absolute;
|
|
1149
|
+
top: 26rpx;
|
|
1150
|
+
left: 32rpx;
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
.content {
|
|
1154
|
+
|
|
1155
|
+
display: flex;
|
|
1156
|
+
justify-content: center;
|
|
1157
|
+
view {
|
|
1158
|
+
font-size: 24rpx;
|
|
1159
|
+
font-family: "AlibabaPuHuiTiMedium";
|
|
1160
|
+
text-align: center;
|
|
1161
|
+
|
|
1162
|
+
&:first-child {
|
|
1163
|
+
margin-right: 56rpx;
|
|
1164
|
+
}
|
|
1165
|
+
image {
|
|
1166
|
+
width: 88rpx;
|
|
1167
|
+
height: 88rpx;
|
|
1168
|
+
margin-bottom: 4rpx;
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
.exchangeCouponPopup {
|
|
1175
|
+
width: 100%;
|
|
1176
|
+
padding: 30rpx 48rpx;
|
|
1177
|
+
// padding-top: 48rpx;
|
|
1178
|
+
background-color: #ffff;
|
|
1179
|
+
border-radius: 32rpx;
|
|
1180
|
+
width: 654rpx;
|
|
1181
|
+
.title {
|
|
1182
|
+
// height: 100rpx;
|
|
1183
|
+
background: #fff;
|
|
1184
|
+
display: flex;
|
|
1185
|
+
align-items: center;
|
|
1186
|
+
justify-content: center;
|
|
1187
|
+
// line-height: 100rpx;
|
|
1188
|
+
font-size: 36rpx;
|
|
1189
|
+
font-weight: bold;
|
|
1190
|
+
padding: 0 24rpx;
|
|
1191
|
+
}
|
|
1192
|
+
.content {
|
|
1193
|
+
margin-top: 15rpx;
|
|
1194
|
+
.message{
|
|
1195
|
+
margin-bottom: 10rpx;
|
|
1196
|
+
>view{
|
|
1197
|
+
&:first-child{
|
|
1198
|
+
margin-bottom: 4rpx;
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
.subtitle {
|
|
1203
|
+
font-size: 28rpx;
|
|
1204
|
+
font-weight: bold;
|
|
1205
|
+
margin-bottom: 16rpx;
|
|
1206
|
+
text-align: center;
|
|
1207
|
+
}
|
|
1208
|
+
input {
|
|
1209
|
+
// height: 100rpx;
|
|
1210
|
+
background-color: #f6f6f6;
|
|
1211
|
+
padding: 16rpx;
|
|
1212
|
+
font-size: 28rpx;
|
|
1213
|
+
text-align: left;
|
|
1214
|
+
border-radius: 8rpx;
|
|
1215
|
+
}
|
|
1216
|
+
.tips {
|
|
1217
|
+
font-size: 24rpx;
|
|
1218
|
+
color: #e73e3d;
|
|
1219
|
+
text-align: center;
|
|
1220
|
+
|
|
1221
|
+
margin-top: 56rpx;
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
.buttons {
|
|
1225
|
+
display: flex;
|
|
1226
|
+
align-items: center;
|
|
1227
|
+
justify-content: center;
|
|
1228
|
+
margin-top: 36rpx;
|
|
1229
|
+
> view {
|
|
1230
|
+
width: 264rpx;
|
|
1231
|
+
height: 80rpx;
|
|
1232
|
+
|
|
1233
|
+
border-radius: 40rpx 40rpx 40rpx 40rpx;
|
|
1234
|
+
font-size: 32rpx;
|
|
1235
|
+
display: flex;
|
|
1236
|
+
align-items: center;
|
|
1237
|
+
justify-content: center;
|
|
1238
|
+
&:first-child {
|
|
1239
|
+
margin-right: 30rpx;
|
|
1240
|
+
background: #e9e9e9;
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
&:last-child {
|
|
1244
|
+
background: linear-gradient( 90deg, #0BD690 0%, #00B0E0 100%);;
|
|
1245
|
+
color: #fff;
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
</style>
|