@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,130 @@
1
+ <template>
2
+ <view>
3
+ <button @click="showshow">打开</button>
4
+ <image class="" :src="src" />
5
+ <qf-image-cropper
6
+ @show="show1"
7
+ v-show="show"
8
+ ref="qfImageCropper"
9
+ :width="500"
10
+ :height="500"
11
+ @crop="handleCrop"
12
+ ></qf-image-cropper>
13
+ </view>
14
+ </template>
15
+
16
+ <script>
17
+ import { upLoadImageUrl } from "@/utils/api";
18
+ import { fetchUploadImg } from "@/utils/fetch";
19
+ import { upLoadImage } from "@/utils/request";
20
+ import QfImageCropper from "@/uni_modules/qf-image-cropper/components/qf-image-cropper/qf-image-cropper.vue";
21
+ export default {
22
+ data() {
23
+ return { show: false, src: "" };
24
+ },
25
+ components: {
26
+ QfImageCropper,
27
+ },
28
+ mounted() {
29
+ // 通过ref组件实例可在进入页面后直接打开相册选择图片
30
+ },
31
+ methods: {
32
+ show1() {
33
+ this.show = true;
34
+ },
35
+ showshow() {
36
+ this.$refs.qfImageCropper.chooseImage({ sourceType: ["album"] });
37
+ // uni.chooseImage({
38
+ // count: 1,
39
+ // sourceType: ['album'],
40
+ // success: (res) => {
41
+ // // this.$refs.qfImageCropper.chooseImage({ sourceType: ['album'] });
42
+ // }
43
+ // })
44
+ // this.$refs.qfImageCropper.chooseImage({ sourceType: ['album'] });
45
+ },
46
+ handleCrop(e) {
47
+ this.show = false;
48
+ console.log(e);
49
+ this.src = e.tempFilePath;
50
+
51
+ const arrayBuffer = uni.base64ToArrayBuffer(e.tempFilePath);
52
+ // console.log(arrayBuffer);
53
+ // const access_token = uni.getStorageSync("userInfo")
54
+ // ? uni.getStorageSync("userInfo").accessToken
55
+ // : "";
56
+ // upLoadImage(
57
+ // upLoadImageUrl,
58
+ // e.path,
59
+ // arrayBuffer,
60
+ // (res) => {
61
+ // console.log(res);
62
+ // },
63
+ // );
64
+
65
+
66
+
67
+
68
+ fetchUploadImg({
69
+ name: new Date().getTime() + ".png",
70
+ base64_file: e.tempFilePath,
71
+ }).then((res) => {
72
+ console.log(res);
73
+ });
74
+
75
+ // let formData = new FormData();
76
+ // formData.append('file', blob, 'screenshot.png');
77
+
78
+ // uni.request({
79
+ // url: upLoadImageUrl,
80
+ // method: 'POST',
81
+ // header: {
82
+ // Authorization: "Bearer " + access_token,
83
+ // // 不设置 Content-Type,uni.request 会自动处理
84
+ // },
85
+ // data: formData,
86
+ // success: res => {
87
+ // console.log('上传成功', res);
88
+ // },
89
+ // fail: err => {
90
+ // console.log('上传失败', err);
91
+ // }
92
+ // });
93
+
94
+ // fetchUploadImg({
95
+ // name: "",
96
+ // file: arrayBuffer,
97
+ // }).then((res) => {
98
+ // console.log(res);
99
+ // });
100
+
101
+ // uni.previewImage({
102
+ // urls: [e.tempFilePath],
103
+ // current: 0,
104
+ // });
105
+ // console.log(e)
106
+ // // #ifdef H5
107
+ // h5下载图片
108
+ // var a = document.createElement('a');
109
+ // a.href = e.tempFilePath;
110
+ // a.download = new Date().valueOf() + ".png";
111
+ // a.click();
112
+ // // #endif
113
+ // // #ifndef H5
114
+ // 非h5保存相册
115
+ // uni.saveImageToPhotosAlbum({
116
+ // filePath: e.tempFilePath,
117
+ // success: () => {
118
+ // uni.showToast({
119
+ // title: '保存成功',
120
+ // icon: 'success'
121
+ // })
122
+ // }
123
+ // });
124
+ // // #endif
125
+ },
126
+ },
127
+ };
128
+ </script>
129
+
130
+ <style scoped></style>
@@ -0,0 +1,251 @@
1
+ <template>
2
+ <view class="selectCouponContent">
3
+ <!-- <view class="couponList">
4
+ <view class="list">
5
+ <view @click="chooseCoupon(value,!value.isChecked)" v-if="couponList.length > 0" v-for="value in couponList" :key="value.id" class="item">
6
+ <view :style="{background:value.canUse? '#7c66ff':'#DDDDDD' }" class="count">
7
+ <view :style="{color:value.canUse? '#fff':'#999' }" class="amount">¥<text class="number">{{ value.coupon.giftAmount }}</text></view>
8
+ <view :style="{color:value.canUse? '#fff':'#999' }" class="limit">{{ value.coupon.conditionAmount == 0?'无门槛使用':`满${value.coupon.conditionAmount}元可用` }}</view>
9
+ </view>
10
+ <view class="couponDetail">
11
+ <view class="type">{{ value.coupon.name }}</view>
12
+ <view class="time">{{ value.expiredAt }} 过期</view>
13
+ <view class="useLimit">此券可与其他券叠加使用</view>
14
+ </view>
15
+ <view v-if="value.canUse" class="checkItem">
16
+ <image v-if="value.isChecked" src="https://img.shinemang.com/static/check.png" mode="scaleToFill" />
17
+ <image
18
+
19
+ v-else
20
+ src="https://img.shinemang.com/static/notCheck.png"
21
+ mode="scaleToFill"
22
+ />
23
+ </view>
24
+ </view>
25
+ </view>
26
+ </view> -->
27
+
28
+ <view class="actionBtn">
29
+ <view @click="confirm" class="buy">确认</view>
30
+ </view>
31
+
32
+
33
+ </view>
34
+ </template>
35
+
36
+ <script>
37
+ import { sortCouponsSameAsBest } from '@/utils';
38
+ import { fetchUserCouponList } from '@/utils/fetch';
39
+ export default {
40
+ data() {
41
+ return {
42
+ couponList:[],
43
+ selectCoupon:'',
44
+ price:0,
45
+
46
+ };
47
+ },
48
+ components: {
49
+ // login,
50
+ },
51
+ onLoad(options) {
52
+ this.price = options.price
53
+ if(options.selectCoupon){
54
+ this.selectCoupon = JSON.parse(options.selectCoupon);
55
+ }
56
+
57
+ console.log(this.selectCoupon)
58
+ this.getUserCouponList();
59
+ },
60
+ methods: {
61
+ chooseCoupon(value,type){
62
+ if(type){
63
+ this.couponList.forEach(item => {
64
+ if(item.isChecked){
65
+ item.isChecked = false
66
+ }
67
+ if(item.id == value.id){
68
+ item.isChecked = true
69
+ this.selectCoupon = item
70
+ }
71
+ })
72
+ }else{
73
+ this.selectCoupon = ''
74
+ this.couponList.forEach(item => {
75
+ if(item.id == value.id){
76
+ item.isChecked = false
77
+ }
78
+ })
79
+
80
+ }
81
+ },
82
+ getUserCouponList() {
83
+ fetchUserCouponList({
84
+ page: 1,
85
+ page_size: 1000,
86
+ state: 'UserCouponState_Unused'
87
+ }).then((res)=>{
88
+ console.log(res)
89
+ res.list.forEach(item => {
90
+ console.log(item.coupon.conditionAmount <= this.price,item.coupon.conditionAmount, this.price)
91
+ if(item.coupon.conditionAmount == 0 || (item.coupon.conditionAmount != 0 && item.coupon.conditionAmount <= this.price)){
92
+ item.canUse = true
93
+ }else{
94
+ item.canUse = false
95
+ }
96
+ if(item.id == this.selectCoupon.id){
97
+ item.isChecked = true
98
+ }else{
99
+ item.isChecked = false
100
+ }
101
+ })
102
+ this.couponList = sortCouponsSameAsBest(this.price,res.list)
103
+ console.log(this.couponList,'this.couponList')
104
+ })
105
+ },
106
+ confirm(){
107
+ let pages = getCurrentPages();
108
+ let prevPage = pages[pages.length - 2]; // 上一个页面
109
+ prevPage.$vm.coupon = this.selectCoupon
110
+ uni.navigateBack();
111
+ },
112
+ changeStatus() {},
113
+ },
114
+ onShow() {},
115
+ };
116
+ </script>
117
+
118
+ <style lang="scss" scoped>
119
+ page {
120
+ background: #f6f6f6;
121
+ }
122
+ .selectCouponContent {
123
+ padding-bottom: 200rpx;
124
+ .noData {
125
+ text-align: center;
126
+ margin-top: 48rpx;
127
+ color: #999999;
128
+ font-size: 28rpx;
129
+ image {
130
+ width: 370rpx;
131
+ height: 368rpx;
132
+ }
133
+ view {
134
+ margin-top: -10rpx;
135
+ }
136
+
137
+ .toShop {
138
+ width: 322rpx;
139
+ height: 80rpx;
140
+ background: #7c66ff;
141
+ border-radius: 864rpx 864rpx 864rpx 864rpx;
142
+ display: flex;
143
+ align-items: center;
144
+ justify-content: center;
145
+ color: #fff;
146
+ font-size: 32rpx;
147
+ margin: auto;
148
+ margin-top: 40rpx;
149
+ }
150
+ }
151
+
152
+ .couponList {
153
+ margin-top: 30rpx;
154
+
155
+ .list {
156
+ width: 100%;
157
+
158
+ padding: 0 32rpx;
159
+ .item {
160
+ margin-bottom: 24rpx;
161
+ width: 686rpx;
162
+ height: 202rpx;
163
+ background: #ffffff;
164
+ box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(0, 0, 0, 0.05);
165
+ border-radius: 16rpx;
166
+
167
+ display: flex;
168
+ /* grid-template-columns: 190rpx 310rpx 144rpx; */
169
+ align-items: center;
170
+ /* justify-content: space-between; */
171
+ /* justify-content: space-around; */
172
+ /* padding-right: 24rpx; */
173
+
174
+ .count {
175
+ width: 190rpx;
176
+ height: 202rpx;
177
+ background: #7c66ff;
178
+ border-radius: 16rpx 0 0 16rpx;
179
+
180
+ display: flex;
181
+ flex-direction: column;
182
+ justify-content: center;
183
+ align-items: center;
184
+ color: #fff;
185
+ .amount {
186
+ font-weight: bold;
187
+ font-size: 32rpx;
188
+ .number {
189
+ font-size: 70rpx;
190
+ }
191
+ }
192
+ .limit {
193
+ font-size: 24rpx;
194
+ color: rgba(255, 255, 255, 0.8);
195
+ margin-top: 10rpx;
196
+ }
197
+ }
198
+ .couponDetail {
199
+ width: 370rpx;
200
+ margin-left: 24rpx;
201
+ .type {
202
+ font-size: 28rpx;
203
+ }
204
+ .time {
205
+ color: #999999;
206
+ margin-top: 40rpx;
207
+ /* margin-bottom: 22rpx; */
208
+ }
209
+ .useLimit {
210
+ font-size: 26rpx;
211
+ }
212
+ }
213
+ .checkItem {
214
+ width: 40rpx;
215
+ image {
216
+ width: 40rpx;
217
+ height: 40rpx;
218
+ }
219
+ }
220
+ }
221
+ }
222
+ }
223
+ .actionBtn {
224
+ width: 100%;
225
+ height: 140rpx;
226
+ position: relative;
227
+ background: #ffffff;
228
+ border-top: 1px solid rgba(0, 0, 0, 0.1);
229
+ position: fixed;
230
+ bottom: 0;
231
+ left: 50%;
232
+ transform: translateX(-50%);
233
+ padding: 0 28rpx;
234
+ padding-top: 16rpx;
235
+ display: flex;
236
+ justify-content: space-between;
237
+
238
+ .buy {
239
+ width: 100%;
240
+ height: 80rpx;
241
+ background: #7c66ff;
242
+ border-radius: 864rpx;
243
+ font-size: 28rpx;
244
+ color: #fff;
245
+ display: flex;
246
+ align-items: center;
247
+ justify-content: center;
248
+ }
249
+ }
250
+ }
251
+ </style>