@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.
Files changed (110) hide show
  1. package/App.vue +294 -0
  2. package/Local/en.json +3 -0
  3. package/Local/indian.json +3 -0
  4. package/Local/zh-Hans.json +3 -0
  5. package/Local/zh-Hant.json +3 -0
  6. package/README.md +1 -0
  7. package/androidPrivacy.json +28 -0
  8. package/components/ball/ball.vue +230 -0
  9. package/components/cardDetails/cardDetails.vue +273 -0
  10. package/components/confirmModal/confirmModal.vue +125 -0
  11. package/components/fillInfo/fillInfo.vue +255 -0
  12. package/components/header/header.vue +92 -0
  13. package/components/selectAddress/selectAddress.vue +156 -0
  14. package/components/signDetail/signDetail.vue +33 -0
  15. package/components/skeleton/skeleton.vue +62 -0
  16. package/index.html +20 -0
  17. package/index.template.html +35 -0
  18. package/jsconfig.json +9 -0
  19. package/main.js +48 -0
  20. package/manifest.json +159 -0
  21. package/package.json +14 -0
  22. package/pages/index/index.vue +5421 -0
  23. package/pages.json +173 -0
  24. package/project.config.json +25 -0
  25. package/project.private.config.json +14 -0
  26. package/static/fonts/Alibaba-PuHuiTi-Bold.ttf +0 -0
  27. package/static/fonts/Alibaba-PuHuiTi-Medium.ttf +0 -0
  28. package/static/fonts/Alibaba-PuHuiTi-Regular.ttf +0 -0
  29. package/static/fonts/fxlh.ttf +0 -0
  30. package/static/img/R.png +0 -0
  31. package/static/img/SR.png +0 -0
  32. package/static/img/SSR.png +0 -0
  33. package/static/img/bottomBgc1.png +0 -0
  34. package/static/img/centerBgc.png +0 -0
  35. package/static/img/goldBgc.png +0 -0
  36. package/static/img/goldText.png +0 -0
  37. package/static/img/home/calendar/bgc0.png +0 -0
  38. package/static/img/home/calendar/bgc1.png +0 -0
  39. package/static/img/home/calendar/bgc2.png +0 -0
  40. package/static/img/home/calendar/bgc3.png +0 -0
  41. package/static/img/home/calendar/progress0.png +0 -0
  42. package/static/img/home/calendar/progress1.png +0 -0
  43. package/static/img/home/calendar/progress2.png +0 -0
  44. package/static/img/home/calendar/progress3.png +0 -0
  45. package/static/img/kuang.gif +0 -0
  46. package/static/img/luckyBgc.png +0 -0
  47. package/static/img/lucyText.png +0 -0
  48. package/static/img/top_Bgc.png +0 -0
  49. package/subpackages/article/article.vue +64 -0
  50. package/subpackages/confirmSendLogistics/confirmSendLogistics.vue +1035 -0
  51. package/subpackages/coupon/coupon.vue +276 -0
  52. package/subpackages/fragment/fragment.vue +1592 -0
  53. package/subpackages/myAddress/myAddress.vue +656 -0
  54. package/subpackages/myCards/myCards.vue +1250 -0
  55. package/subpackages/myOrder/myOrder.vue +779 -0
  56. package/subpackages/myOrderDetail/myOrderDetail.vue +659 -0
  57. package/subpackages/poster/poster.vue +130 -0
  58. package/subpackages/selectCoupon/selectCoupon.vue +251 -0
  59. package/subpackages/sendLogistics/sendLogistics.vue +1097 -0
  60. package/subpackages/vote/vote.vue +877 -0
  61. package/uni.promisify.adaptor.js +10 -0
  62. package/uni.scss +114 -0
  63. package/uni_modules/qf-image-cropper/changelog.md +72 -0
  64. package/uni_modules/qf-image-cropper/components/qf-image-cropper/qf-image-cropper.render.js +855 -0
  65. package/uni_modules/qf-image-cropper/components/qf-image-cropper/qf-image-cropper.vue +749 -0
  66. package/uni_modules/qf-image-cropper/components/qf-image-cropper/qf-image-cropper.wxs +727 -0
  67. package/uni_modules/qf-image-cropper/package.json +81 -0
  68. package/uni_modules/qf-image-cropper/readme.md +97 -0
  69. package/uni_modules/uni-data-select/changelog.md +51 -0
  70. package/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue +837 -0
  71. package/uni_modules/uni-data-select/package.json +106 -0
  72. package/uni_modules/uni-data-select/readme.md +8 -0
  73. package/uni_modules/uni-icons/changelog.md +44 -0
  74. package/uni_modules/uni-icons/components/uni-icons/uni-icons.uvue +91 -0
  75. package/uni_modules/uni-icons/components/uni-icons/uni-icons.vue +110 -0
  76. package/uni_modules/uni-icons/components/uni-icons/uniicons.css +664 -0
  77. package/uni_modules/uni-icons/components/uni-icons/uniicons.ttf +0 -0
  78. package/uni_modules/uni-icons/components/uni-icons/uniicons_file.ts +664 -0
  79. package/uni_modules/uni-icons/components/uni-icons/uniicons_file_vue.js +649 -0
  80. package/uni_modules/uni-icons/package.json +111 -0
  81. package/uni_modules/uni-icons/readme.md +8 -0
  82. package/uni_modules/uni-load-more/changelog.md +23 -0
  83. package/uni_modules/uni-load-more/components/uni-load-more/i18n/en.json +5 -0
  84. package/uni_modules/uni-load-more/components/uni-load-more/i18n/index.js +8 -0
  85. package/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hans.json +5 -0
  86. package/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hant.json +5 -0
  87. package/uni_modules/uni-load-more/components/uni-load-more/uni-load-more.vue +404 -0
  88. package/uni_modules/uni-load-more/package.json +105 -0
  89. package/uni_modules/uni-load-more/readme.md +14 -0
  90. package/uni_modules/uni-scss/changelog.md +8 -0
  91. package/uni_modules/uni-scss/index.scss +1 -0
  92. package/uni_modules/uni-scss/package.json +82 -0
  93. package/uni_modules/uni-scss/readme.md +4 -0
  94. package/uni_modules/uni-scss/styles/index.scss +7 -0
  95. package/uni_modules/uni-scss/styles/setting/_border.scss +3 -0
  96. package/uni_modules/uni-scss/styles/setting/_color.scss +66 -0
  97. package/uni_modules/uni-scss/styles/setting/_radius.scss +55 -0
  98. package/uni_modules/uni-scss/styles/setting/_space.scss +56 -0
  99. package/uni_modules/uni-scss/styles/setting/_styles.scss +167 -0
  100. package/uni_modules/uni-scss/styles/setting/_text.scss +24 -0
  101. package/uni_modules/uni-scss/styles/setting/_variables.scss +146 -0
  102. package/uni_modules/uni-scss/styles/tools/functions.scss +19 -0
  103. package/uni_modules/uni-scss/theme.scss +31 -0
  104. package/uni_modules/uni-scss/variables.scss +62 -0
  105. package/utils/addressData.js +6042 -0
  106. package/utils/api.js +160 -0
  107. package/utils/fetch.js +548 -0
  108. package/utils/index.js +994 -0
  109. package/utils/navigator.js +17 -0
  110. package/utils/request.js +162 -0
@@ -0,0 +1,276 @@
1
+ <template>
2
+ <view class="couponContent">
3
+ <u-sticky bgColor="#fff">
4
+ <u-tabs
5
+ :list="tabsList"
6
+ :activeStyle="{
7
+ color: '#7C66FF',
8
+ fontWeight: 'bold',
9
+ fontSize: '28rpx',
10
+ }"
11
+ :inactiveStyle="{
12
+ color: '#666666',
13
+ fontWeight: 'bold',
14
+ fontSize: '28rpx',
15
+ }"
16
+ @change="changeStatus"
17
+ lineColor="#fff"
18
+ :scrollable="false"
19
+ :current="current"
20
+ ></u-tabs>
21
+ <!-- :current="current" -->
22
+ </u-sticky>
23
+
24
+ <view class="couponList">
25
+ <!--
26
+ <view class="list">
27
+ <view v-if="couponList.length > 0" v-for="value in couponList" :key="value.id" class="item">
28
+ <view :style="{background:value.state == 'UserCouponState_Unused'? '#7c66ff':'#DDDDDD' }" class="count">
29
+ <view :style="{color:value.state == 'UserCouponState_Unused'? '#fff':'#999' }" class="amount">¥<text class="number">{{ value.coupon.giftAmount }}</text></view>
30
+ <view :style="{color:value.state == 'UserCouponState_Unused'? '#fff':'#999' }" class="limit">{{ value.coupon.conditionAmount == 0?'无门槛使用':`满${value.coupon.conditionAmount}元可用` }}</view>
31
+ </view>
32
+ <view class="couponDetail">
33
+ <view class="type">{{ value.coupon.name }}</view>
34
+ <view class="time">{{ value.expiredAt }} 过期</view>
35
+ <view class="useLimit">此券可与其他券叠加使用</view>
36
+ </view>
37
+ <view class="checkItem">
38
+ <view @click="toUse" v-if="value.state == 'UserCouponState_Unused'" class="useMust">立即使用</view>
39
+ <image
40
+ v-else-if="value.state == 'UserCouponState_Expired'"
41
+ src="https://img.shinemang.com/static/expire.png"
42
+ mode="scaleToFill"
43
+ />
44
+ <image
45
+ v-else-if="value.state == 'UserCouponState_Used'"
46
+ src="https://img.shinemang.com/static/isUse.png"
47
+ mode="scaleToFill"
48
+ />
49
+ </view>
50
+ </view>
51
+ </view> -->
52
+ </view>
53
+
54
+ <view v-if="!isFirstLoading && couponList.length == 0" class="noData">
55
+ <image
56
+ src="https://img.shinemang.com/static/noData.png"
57
+ mode="scaleToFill"
58
+ />
59
+ <view>暂无相关优惠券~</view>
60
+
61
+ <!-- <view class="toShop">去逛逛</view> -->
62
+ </view>
63
+ </view>
64
+ </template>
65
+
66
+ <script>
67
+ import { fetchUserCouponList } from '@/utils/fetch';
68
+ export default {
69
+ data() {
70
+ return {
71
+ tabsList: [
72
+ {
73
+ name: "全部",
74
+ status: "UserCouponState_Nil",
75
+ },
76
+ {
77
+ name: "待使用",
78
+ status: "UserCouponState_Unused",
79
+ },
80
+ {
81
+ name: "已使用",
82
+ status: "UserCouponState_Used",
83
+ },
84
+ {
85
+ name: "已过期",
86
+ status: "UserCouponState_Expired",
87
+ },
88
+ ],
89
+ current:0,
90
+ pageSize:10,
91
+ pageNo:1,
92
+ state:'UserCouponState_Nil',
93
+ isFirstLoading: true,
94
+ hasMore:true,
95
+ couponList:[]
96
+ };
97
+ },
98
+ components: {
99
+ // login,
100
+ },
101
+ onLoad() {
102
+ this.fetchCouponList()
103
+ },
104
+ methods: {
105
+ toUse(){
106
+ uni.switchTab({ url: '/pages/vip/vip' })
107
+ },
108
+ changeStatus(e) {
109
+ console.log(e)
110
+ if(e.status == this.state) return;
111
+
112
+ this.state = e.status;
113
+ this.pageNo = 1;
114
+ uni.pageScrollTo({
115
+ scrollTop: 0,
116
+ duration: 0,
117
+ });
118
+ this.fetchCouponList();
119
+ },
120
+ fetchCouponList(){
121
+ fetchUserCouponList({
122
+ page: this.pageNo,
123
+ page_size: this.pageSize,
124
+ state: this.state
125
+ }).then((res)=>{
126
+ this.couponList = this.pageNo == 1 ? res.list : this.couponList.concat(res.list);
127
+
128
+ if(res.list && res.list.length < this.pageSize){
129
+ this.hasMore = false;
130
+ }else{
131
+ this.hasMore = true
132
+ }
133
+ this.isFirstLoading = false
134
+ })
135
+ },
136
+ },
137
+ onShow() {},
138
+ onShareAppMessage() {
139
+ },
140
+ onShareTimeline(){
141
+
142
+ },
143
+ onReachBottom() {
144
+ console.log('kskjfskldjflsdjf')
145
+ if (this.hasMore) {
146
+ this.pageNo++;
147
+ this.fetchCouponList();
148
+ }
149
+ },
150
+ };
151
+ </script>
152
+
153
+ <style lang="scss" scoped>
154
+ page {
155
+ background: #f6f6f6;
156
+ }
157
+ .couponContent {
158
+ .noData {
159
+ text-align: center;
160
+ margin-top: 48rpx;
161
+ color: #999999;
162
+ font-size: 28rpx;
163
+ image {
164
+ width: 370rpx;
165
+ height: 368rpx;
166
+ }
167
+ view {
168
+ margin-top: -10rpx;
169
+ }
170
+
171
+ .toShop {
172
+ width: 322rpx;
173
+ height: 80rpx;
174
+ background: #7c66ff;
175
+ border-radius: 864rpx 864rpx 864rpx 864rpx;
176
+ display: flex;
177
+ align-items: center;
178
+ justify-content: center;
179
+ color: #fff;
180
+ font-size: 32rpx;
181
+ margin: auto;
182
+ margin-top: 40rpx;
183
+ }
184
+ }
185
+
186
+ .couponList {
187
+ margin-top: 30rpx;
188
+ padding-bottom: 30rpx;
189
+
190
+
191
+ .list {
192
+ width: 100%;
193
+
194
+ padding: 0 32rpx;
195
+ .item {
196
+ margin-bottom: 24rpx;
197
+ width: 686rpx;
198
+ height: 202rpx;
199
+ background: #ffffff;
200
+ box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(0, 0, 0, 0.05);
201
+ border-radius: 16rpx;
202
+
203
+ display: flex;
204
+ /* grid-template-columns: 190rpx 310rpx 144rpx; */
205
+ align-items: center;
206
+ /* justify-content: space-between; */
207
+ /* justify-content: space-around; */
208
+ /* padding-right: 24rpx; */
209
+
210
+ .count {
211
+ width: 190rpx;
212
+ height: 202rpx;
213
+ background: #7c66ff;
214
+ border-radius: 16rpx 0 0 16rpx;
215
+
216
+ display: flex;
217
+ flex-direction: column;
218
+ justify-content: center;
219
+ align-items: center;
220
+ color: #fff;
221
+ .amount {
222
+ font-weight: bold;
223
+ font-size: 32rpx;
224
+ .number {
225
+ font-size: 70rpx;
226
+ }
227
+ }
228
+ .limit {
229
+ font-size: 24rpx;
230
+ color: rgba(255, 255, 255, 0.8);
231
+ margin-top: 10rpx;
232
+ }
233
+ }
234
+ .couponDetail {
235
+ width: 310rpx;
236
+ margin-left: 24rpx;
237
+ .type {
238
+ font-size: 28rpx;
239
+ }
240
+ .time {
241
+ color: #999999;
242
+ margin-top: 40rpx;
243
+ /* margin-bottom: 22rpx; */
244
+ }
245
+ .useLimit {
246
+ font-size: 26rpx;
247
+ }
248
+ }
249
+ .checkItem {
250
+ /* width: 144rpx; */
251
+ margin-left: 15rpx;
252
+
253
+ .useMust {
254
+ /* width: 144rpx;
255
+ */
256
+ padding: 0 20rpx;
257
+ height: 60rpx;
258
+ background: #7c66ff;
259
+ border-radius: 1158rpx 1158rpx 1158rpx 1158rpx;
260
+ display: flex;
261
+ align-items: center;
262
+ justify-content: center;
263
+ color: #fff;
264
+
265
+ }
266
+ image {
267
+ width: 120rpx;
268
+ height: 120rpx;
269
+ margin-right: 36rpx;
270
+ }
271
+ }
272
+ }
273
+ }
274
+ }
275
+ }
276
+ </style>