create-weapp-vite 2.0.32 → 2.0.33
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/README.md +0 -1
- package/dist/{chunk-IT75MAH3.js → chunk-MXKCD6NA.js} +2 -3
- package/dist/cli.js +1 -5
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/templates/wevu/package.json +1 -1
- package/templates/wevu-tdesign/package.json +1 -1
- package/templates/wevu-retail/.editorconfig +0 -9
- package/templates/wevu-retail/.vscode/settings.json +0 -10
- package/templates/wevu-retail/AGENTS.md +0 -35
- package/templates/wevu-retail/README.md +0 -26
- package/templates/wevu-retail/auto-import-components.json +0 -1
- package/templates/wevu-retail/gitignore +0 -35
- package/templates/wevu-retail/package.json +0 -42
- package/templates/wevu-retail/postcss.config.js +0 -6
- package/templates/wevu-retail/project.config.json +0 -44
- package/templates/wevu-retail/project.private.config.json +0 -8
- package/templates/wevu-retail/src/app.vue +0 -104
- package/templates/wevu-retail/src/common/updateManager.ts +0 -29
- package/templates/wevu-retail/src/components/filter/index.vue +0 -134
- package/templates/wevu-retail/src/components/filter-popup/index.vue +0 -67
- package/templates/wevu-retail/src/components/goods-card/index.vue +0 -219
- package/templates/wevu-retail/src/components/goods-list/index.vue +0 -91
- package/templates/wevu-retail/src/components/load-more/index.vue +0 -99
- package/templates/wevu-retail/src/components/loading-content/index.vue +0 -48
- package/templates/wevu-retail/src/components/price/index.vue +0 -104
- package/templates/wevu-retail/src/components/promotion/ui-coupon-card/index.vue +0 -143
- package/templates/wevu-retail/src/components/promotion/ui-coupon-card/tools.wxs +0 -18
- package/templates/wevu-retail/src/components/swipeout/index.vue +0 -118
- package/templates/wevu-retail/src/components/swipeout/swipe.wxs +0 -151
- package/templates/wevu-retail/src/components/webp-image/index.vue +0 -105
- package/templates/wevu-retail/src/components/webp-image/utils.wxs +0 -140
- package/templates/wevu-retail/src/config/index.ts +0 -20437
- package/templates/wevu-retail/src/custom-tab-bar/data.ts +0 -22
- package/templates/wevu-retail/src/custom-tab-bar/index.vue +0 -62
- package/templates/wevu-retail/src/model/activities.ts +0 -7
- package/templates/wevu-retail/src/model/activity.ts +0 -18
- package/templates/wevu-retail/src/model/address.ts +0 -31
- package/templates/wevu-retail/src/model/cart.ts +0 -306
- package/templates/wevu-retail/src/model/category.ts +0 -175
- package/templates/wevu-retail/src/model/comments/queryDetail.ts +0 -50
- package/templates/wevu-retail/src/model/comments.ts +0 -298
- package/templates/wevu-retail/src/model/coupon.ts +0 -39
- package/templates/wevu-retail/src/model/detailsComments.ts +0 -30
- package/templates/wevu-retail/src/model/good.ts +0 -1904
- package/templates/wevu-retail/src/model/goods.ts +0 -7
- package/templates/wevu-retail/src/model/order/applyService.ts +0 -329
- package/templates/wevu-retail/src/model/order/orderConfirm.ts +0 -147
- package/templates/wevu-retail/src/model/order/orderDetail.ts +0 -1191
- package/templates/wevu-retail/src/model/order/orderList.ts +0 -1033
- package/templates/wevu-retail/src/model/promotion.ts +0 -20
- package/templates/wevu-retail/src/model/search.ts +0 -60
- package/templates/wevu-retail/src/model/submitComment.ts +0 -58
- package/templates/wevu-retail/src/model/swiper.ts +0 -39
- package/templates/wevu-retail/src/model/usercenter.ts +0 -52
- package/templates/wevu-retail/src/pages/cart/components/cart-bar/index.vue +0 -104
- package/templates/wevu-retail/src/pages/cart/components/cart-empty/index.vue +0 -41
- package/templates/wevu-retail/src/pages/cart/components/cart-group/index.vue +0 -333
- package/templates/wevu-retail/src/pages/cart/components/cart-group/index.wxs +0 -5
- package/templates/wevu-retail/src/pages/cart/components/cart-group/utils.wxs +0 -20
- package/templates/wevu-retail/src/pages/cart/components/goods-card/index.vue +0 -334
- package/templates/wevu-retail/src/pages/cart/components/specs-popup/index.vue +0 -100
- package/templates/wevu-retail/src/pages/cart/index.vue +0 -342
- package/templates/wevu-retail/src/pages/category/components/goods-category/components/c-sidebar/README.md +0 -95
- package/templates/wevu-retail/src/pages/category/components/goods-category/components/c-sidebar/c-sidebar-item/index.vue +0 -73
- package/templates/wevu-retail/src/pages/category/components/goods-category/components/c-sidebar/index.vue +0 -121
- package/templates/wevu-retail/src/pages/category/components/goods-category/components/c-tabbar/c-tabbar-more/index.vue +0 -74
- package/templates/wevu-retail/src/pages/category/components/goods-category/components/c-tabbar/index.vue +0 -102
- package/templates/wevu-retail/src/pages/category/components/goods-category/index.vue +0 -137
- package/templates/wevu-retail/src/pages/category/index.vue +0 -50
- package/templates/wevu-retail/src/pages/coupon/components/coupon-card/index.vue +0 -95
- package/templates/wevu-retail/src/pages/coupon/components/floating-button/index.vue +0 -44
- package/templates/wevu-retail/src/pages/coupon/coupon-activity-goods/index.vue +0 -135
- package/templates/wevu-retail/src/pages/coupon/coupon-detail/index.vue +0 -94
- package/templates/wevu-retail/src/pages/coupon/coupon-list/index.vue +0 -136
- package/templates/wevu-retail/src/pages/goods/comments/components/comments-card/components/images-videos/assets/play.png +0 -0
- package/templates/wevu-retail/src/pages/goods/comments/components/comments-card/components/images-videos/index.vue +0 -65
- package/templates/wevu-retail/src/pages/goods/comments/components/comments-card/components/my-video/index.vue +0 -92
- package/templates/wevu-retail/src/pages/goods/comments/components/comments-card/index.vue +0 -93
- package/templates/wevu-retail/src/pages/goods/comments/create/index.vue +0 -196
- package/templates/wevu-retail/src/pages/goods/comments/index.vue +0 -293
- package/templates/wevu-retail/src/pages/goods/details/components/buy-bar/index.vue +0 -117
- package/templates/wevu-retail/src/pages/goods/details/components/goods-specs-popup/index.vue +0 -440
- package/templates/wevu-retail/src/pages/goods/details/components/promotion-popup/index.vue +0 -83
- package/templates/wevu-retail/src/pages/goods/details/index.vue +0 -598
- package/templates/wevu-retail/src/pages/goods/list/index.vue +0 -299
- package/templates/wevu-retail/src/pages/goods/result/index.vue +0 -350
- package/templates/wevu-retail/src/pages/goods/search/index.vue +0 -196
- package/templates/wevu-retail/src/pages/home/home.vue +0 -215
- package/templates/wevu-retail/src/pages/home/readme +0 -8
- package/templates/wevu-retail/src/pages/order/after-service-detail/api.ts +0 -34
- package/templates/wevu-retail/src/pages/order/after-service-detail/index.vue +0 -430
- package/templates/wevu-retail/src/pages/order/after-service-list/api.ts +0 -1262
- package/templates/wevu-retail/src/pages/order/after-service-list/index.vue +0 -299
- package/templates/wevu-retail/src/pages/order/apply-service/index.vue +0 -665
- package/templates/wevu-retail/src/pages/order/components/after-service-button-bar/index.vue +0 -142
- package/templates/wevu-retail/src/pages/order/components/customer-service/index.vue +0 -75
- package/templates/wevu-retail/src/pages/order/components/goods-card/index.vue +0 -356
- package/templates/wevu-retail/src/pages/order/components/noGoods/noGood.wxs +0 -17
- package/templates/wevu-retail/src/pages/order/components/noGoods/noGoods.vue +0 -125
- package/templates/wevu-retail/src/pages/order/components/order-button-bar/index.vue +0 -262
- package/templates/wevu-retail/src/pages/order/components/order-card/index.vue +0 -126
- package/templates/wevu-retail/src/pages/order/components/order-goods-card/index.vue +0 -86
- package/templates/wevu-retail/src/pages/order/components/reason-sheet/index.vue +0 -161
- package/templates/wevu-retail/src/pages/order/components/reason-sheet/reasonSheet.ts +0 -25
- package/templates/wevu-retail/src/pages/order/components/selectCoupons/mock.ts +0 -22
- package/templates/wevu-retail/src/pages/order/components/selectCoupons/selectCoupon.wxs +0 -16
- package/templates/wevu-retail/src/pages/order/components/selectCoupons/selectCoupons.vue +0 -207
- package/templates/wevu-retail/src/pages/order/components/specs-goods-card/index.vue +0 -185
- package/templates/wevu-retail/src/pages/order/config.ts +0 -94
- package/templates/wevu-retail/src/pages/order/delivery-detail/index.vue +0 -145
- package/templates/wevu-retail/src/pages/order/delivery-detail/isUrl.wxs +0 -7
- package/templates/wevu-retail/src/pages/order/fill-tracking-no/api.ts +0 -71
- package/templates/wevu-retail/src/pages/order/fill-tracking-no/index.vue +0 -267
- package/templates/wevu-retail/src/pages/order/invoice/index.vue +0 -94
- package/templates/wevu-retail/src/pages/order/order-confirm/components/address-card/index.vue +0 -78
- package/templates/wevu-retail/src/pages/order/order-confirm/getNotes.wxs +0 -11
- package/templates/wevu-retail/src/pages/order/order-confirm/handleInvoice.wxs +0 -11
- package/templates/wevu-retail/src/pages/order/order-confirm/index.vue +0 -707
- package/templates/wevu-retail/src/pages/order/order-confirm/order.wxs +0 -8
- package/templates/wevu-retail/src/pages/order/order-confirm/pay.ts +0 -115
- package/templates/wevu-retail/src/pages/order/order-detail/index.vue +0 -456
- package/templates/wevu-retail/src/pages/order/order-list/index.vue +0 -288
- package/templates/wevu-retail/src/pages/order/pay-result/index.vue +0 -77
- package/templates/wevu-retail/src/pages/order/receipt/index.vue +0 -336
- package/templates/wevu-retail/src/pages/promotion/promotion-detail/index.vue +0 -145
- package/templates/wevu-retail/src/pages/user/address/edit/index.vue +0 -514
- package/templates/wevu-retail/src/pages/user/address/list/index.vue +0 -249
- package/templates/wevu-retail/src/pages/user/components/t-location/index.vue +0 -156
- package/templates/wevu-retail/src/pages/user/components/ui-address-item/index.vue +0 -92
- package/templates/wevu-retail/src/pages/user/name-edit/index.vue +0 -49
- package/templates/wevu-retail/src/pages/user/person-info/index.vue +0 -198
- package/templates/wevu-retail/src/pages/usercenter/address/edit/util.ts +0 -33
- package/templates/wevu-retail/src/pages/usercenter/components/order-group/index.vue +0 -90
- package/templates/wevu-retail/src/pages/usercenter/components/ui-select-picker/index.vue +0 -108
- package/templates/wevu-retail/src/pages/usercenter/components/user-center-card/index.vue +0 -82
- package/templates/wevu-retail/src/pages/usercenter/index.vue +0 -301
- package/templates/wevu-retail/src/services/_utils/delay.ts +0 -3
- package/templates/wevu-retail/src/services/_utils/timeout.ts +0 -3
- package/templates/wevu-retail/src/services/activity/fetchActivity.ts +0 -20
- package/templates/wevu-retail/src/services/activity/fetchActivityList.ts +0 -20
- package/templates/wevu-retail/src/services/address/edit.ts +0 -33
- package/templates/wevu-retail/src/services/address/fetchAddress.ts +0 -48
- package/templates/wevu-retail/src/services/address/list.ts +0 -31
- package/templates/wevu-retail/src/services/cart/cart.ts +0 -20
- package/templates/wevu-retail/src/services/comments/fetchComments.ts +0 -18
- package/templates/wevu-retail/src/services/comments/fetchCommentsCount.ts +0 -18
- package/templates/wevu-retail/src/services/coupon/index.ts +0 -65
- package/templates/wevu-retail/src/services/good/comments/fetchCommentDetail.ts +0 -20
- package/templates/wevu-retail/src/services/good/fetchCategoryList.ts +0 -18
- package/templates/wevu-retail/src/services/good/fetchGood.ts +0 -18
- package/templates/wevu-retail/src/services/good/fetchGoods.ts +0 -29
- package/templates/wevu-retail/src/services/good/fetchGoodsDetailsComments.ts +0 -37
- package/templates/wevu-retail/src/services/good/fetchGoodsList.ts +0 -39
- package/templates/wevu-retail/src/services/good/fetchSearchHistory.ts +0 -35
- package/templates/wevu-retail/src/services/good/fetchSearchResult.ts +0 -38
- package/templates/wevu-retail/src/services/home/home.ts +0 -53
- package/templates/wevu-retail/src/services/order/applyService.ts +0 -70
- package/templates/wevu-retail/src/services/order/orderConfirm.ts +0 -69
- package/templates/wevu-retail/src/services/order/orderDetail.ts +0 -39
- package/templates/wevu-retail/src/services/order/orderList.ts +0 -39
- package/templates/wevu-retail/src/services/order/orderSubmitComment.ts +0 -22
- package/templates/wevu-retail/src/services/promotion/detail.ts +0 -18
- package/templates/wevu-retail/src/services/usercenter/fetchPerson.ts +0 -28
- package/templates/wevu-retail/src/services/usercenter/fetchUsercenter.ts +0 -18
- package/templates/wevu-retail/src/sitemap.json +0 -7
- package/templates/wevu-retail/src/utils/addressParse.ts +0 -25
- package/templates/wevu-retail/src/utils/getPermission.ts +0 -45
- package/templates/wevu-retail/src/utils/mock.ts +0 -51
- package/templates/wevu-retail/src/utils/util.ts +0 -134
- package/templates/wevu-retail/src/vite-env.d.ts +0 -1
- package/templates/wevu-retail/tailwind.config.ts +0 -15
- package/templates/wevu-retail/tsconfig.app.json +0 -58
- package/templates/wevu-retail/tsconfig.json +0 -11
- package/templates/wevu-retail/tsconfig.node.json +0 -33
- package/templates/wevu-retail/vite.config.ts +0 -14
|
@@ -1,298 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* * @param {number} spuId
|
|
3
|
-
* @param {number} pageNum
|
|
4
|
-
* @param {number} pageSize
|
|
5
|
-
* @param {number} commentsLevel
|
|
6
|
-
* @param {boolean} hasImage
|
|
7
|
-
*/
|
|
8
|
-
export function getGoodsAllComments(params) {
|
|
9
|
-
const { hasImage } = params.queryParameter;
|
|
10
|
-
if (hasImage) {
|
|
11
|
-
return {
|
|
12
|
-
pageNum: 1,
|
|
13
|
-
pageSize: 10,
|
|
14
|
-
totalCount: '1',
|
|
15
|
-
pageList: [
|
|
16
|
-
{
|
|
17
|
-
spuId: '1722045',
|
|
18
|
-
skuId: '0',
|
|
19
|
-
specInfo: '',
|
|
20
|
-
commentContent: '收到货了,第一时间试了一下,很漂亮特别喜欢,大爱大爱,颜色也很好看。棒棒!',
|
|
21
|
-
commentResources: [
|
|
22
|
-
{
|
|
23
|
-
src: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-08b.png',
|
|
24
|
-
type: 'image',
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
src: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/comment-video.mp4',
|
|
28
|
-
type: 'video',
|
|
29
|
-
coverSrc: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-08b.png',
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
src: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/comment-video.mp4',
|
|
33
|
-
type: 'video',
|
|
34
|
-
coverSrc: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-08b.png',
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
src: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/comment-video.mp4',
|
|
38
|
-
type: 'video',
|
|
39
|
-
coverSrc: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-08b.png',
|
|
40
|
-
},
|
|
41
|
-
],
|
|
42
|
-
commentScore: 4,
|
|
43
|
-
uid: '88881048075',
|
|
44
|
-
userName: 'Dean',
|
|
45
|
-
userHeadUrl: 'https://tdesign.gtimg.com/miniprogram/template/retail/avatar/avatar1.png',
|
|
46
|
-
isAnonymity: false,
|
|
47
|
-
commentTime: '1591953561000',
|
|
48
|
-
isAutoComment: false,
|
|
49
|
-
sellerReply: '亲,你好,我们会联系商家和厂商给您一个满意的答复请一定妥善保管好发票',
|
|
50
|
-
goodsDetailInfo: '颜色:纯净白 尺码:S码',
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
spuId: '1722045',
|
|
54
|
-
skuId: '0',
|
|
55
|
-
specInfo: '',
|
|
56
|
-
commentContent: '收到货了,第一时间试了一下,很漂亮特别喜欢,大爱大爱,颜色也很好看。棒棒!',
|
|
57
|
-
commentResources: [
|
|
58
|
-
{
|
|
59
|
-
src: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-08b.png',
|
|
60
|
-
type: 'image',
|
|
61
|
-
},
|
|
62
|
-
],
|
|
63
|
-
commentScore: 4,
|
|
64
|
-
uid: '88881048075',
|
|
65
|
-
userName: 'Dean',
|
|
66
|
-
userHeadUrl: 'https://tdesign.gtimg.com/miniprogram/template/retail/avatar/avatar1.png',
|
|
67
|
-
isAnonymity: false,
|
|
68
|
-
commentTime: '1591953561000',
|
|
69
|
-
isAutoComment: false,
|
|
70
|
-
sellerReply: '亲,你好,我们会联系商家和厂商给您一个满意的答复请一定妥善保管好发票',
|
|
71
|
-
goodsDetailInfo: '颜色:纯净白 尺码:S码',
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
spuId: '1722045',
|
|
75
|
-
skuId: '0',
|
|
76
|
-
specInfo: '',
|
|
77
|
-
commentContent: '收到货了,第一时间试了一下,很漂亮特别喜欢,大爱大爱,颜色也很好看。棒棒!',
|
|
78
|
-
commentResources: [
|
|
79
|
-
{
|
|
80
|
-
src: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-08b.png',
|
|
81
|
-
type: 'image',
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
src: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/comment-video.mp4',
|
|
85
|
-
type: 'video',
|
|
86
|
-
coverSrc: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-08b.png',
|
|
87
|
-
},
|
|
88
|
-
],
|
|
89
|
-
commentScore: 4,
|
|
90
|
-
uid: '88881048075',
|
|
91
|
-
userName: 'Dean',
|
|
92
|
-
userHeadUrl: 'https://tdesign.gtimg.com/miniprogram/template/retail/avatar/avatar1.png',
|
|
93
|
-
isAnonymity: false,
|
|
94
|
-
commentTime: '1591953561000',
|
|
95
|
-
isAutoComment: false,
|
|
96
|
-
sellerReply: '亲,你好,我们会联系商家和厂商给您一个满意的答复请一定妥善保管好发票',
|
|
97
|
-
goodsDetailInfo: '颜色:纯净白 尺码:S码',
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
spuId: '1722045',
|
|
101
|
-
skuId: '0',
|
|
102
|
-
specInfo: '',
|
|
103
|
-
commentContent: '收到货了,第一时间试了一下,很漂亮特别喜欢,大爱大爱,颜色也很好看。棒棒!',
|
|
104
|
-
commentResources: [
|
|
105
|
-
{
|
|
106
|
-
src: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-08b.png',
|
|
107
|
-
type: 'image',
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
src: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/comment-video.mp4',
|
|
111
|
-
type: 'video',
|
|
112
|
-
coverSrc: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-08b.png',
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
src: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/comment-video.mp4',
|
|
116
|
-
type: 'video',
|
|
117
|
-
coverSrc: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-08b.png',
|
|
118
|
-
},
|
|
119
|
-
],
|
|
120
|
-
commentScore: 4,
|
|
121
|
-
uid: '88881048075',
|
|
122
|
-
userName: 'Dean',
|
|
123
|
-
userHeadUrl: 'https://tdesign.gtimg.com/miniprogram/template/retail/avatar/avatar1.png',
|
|
124
|
-
isAnonymity: false,
|
|
125
|
-
commentTime: '1591953561000',
|
|
126
|
-
isAutoComment: false,
|
|
127
|
-
sellerReply: '亲,你好,我们会联系商家和厂商给您一个满意的答复请一定妥善保管好发票',
|
|
128
|
-
goodsDetailInfo: '颜色:纯净白 尺码:S码',
|
|
129
|
-
},
|
|
130
|
-
],
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
return {
|
|
134
|
-
pageNum: 1,
|
|
135
|
-
pageSize: 10,
|
|
136
|
-
totalCount: '47',
|
|
137
|
-
pageList: [
|
|
138
|
-
{
|
|
139
|
-
spuId: '1722045',
|
|
140
|
-
skuId: '1697694',
|
|
141
|
-
specInfo: '很不错',
|
|
142
|
-
commentContent: '收到货了,第一时间试了一下,很漂亮特别喜欢,大爱大爱,颜色也很好看。棒棒!',
|
|
143
|
-
commentImageUrls: null,
|
|
144
|
-
commentScore: 1,
|
|
145
|
-
uid: '88881048075',
|
|
146
|
-
userName: 'Dean',
|
|
147
|
-
userHeadUrl: 'https://tdesign.gtimg.com/miniprogram/template/retail/avatar/avatar1.png',
|
|
148
|
-
isAnonymity: false,
|
|
149
|
-
commentTime: '1592224320000',
|
|
150
|
-
isAutoComment: false,
|
|
151
|
-
sellerReply: '亲,你好,我们会联系商家和厂商给您一个满意的答复请一定妥善保管好发票',
|
|
152
|
-
goodsDetailInfo: '颜色:纯净白 尺码:S码',
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
spuId: '1722045',
|
|
156
|
-
skuId: '1697693',
|
|
157
|
-
specInfo: '很适合',
|
|
158
|
-
commentContent: '收到货了,第一时间试了一下,很漂亮特别喜欢,大爱大爱,颜色也很好看。棒棒!',
|
|
159
|
-
commentImageUrls: null,
|
|
160
|
-
commentScore: 1,
|
|
161
|
-
uid: '88881048075',
|
|
162
|
-
userName: 'Dean',
|
|
163
|
-
userHeadUrl: 'https://tdesign.gtimg.com/miniprogram/template/retail/avatar/avatar1.png',
|
|
164
|
-
isAnonymity: false,
|
|
165
|
-
commentTime: '1592224320000',
|
|
166
|
-
isAutoComment: false,
|
|
167
|
-
sellerReply: '亲,你好,我们会联系商家和厂商给您一个满意的答复请一定妥善保管好发票',
|
|
168
|
-
goodsDetailInfo: '颜色:纯净白 尺码:S码',
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
spuId: '1722045',
|
|
172
|
-
skuId: '1697694',
|
|
173
|
-
specInfo: 'NICE',
|
|
174
|
-
commentContent: '收到货了,第一时间试了一下,很漂亮特别喜欢,大爱大爱,颜色也很好看。棒棒!',
|
|
175
|
-
commentImageUrls: null,
|
|
176
|
-
commentScore: 5,
|
|
177
|
-
uid: '88881048075',
|
|
178
|
-
userName: 'Dean',
|
|
179
|
-
userHeadUrl: 'https://tdesign.gtimg.com/miniprogram/template/retail/avatar/avatar1.png',
|
|
180
|
-
isAnonymity: false,
|
|
181
|
-
commentTime: '1592218074000',
|
|
182
|
-
isAutoComment: true,
|
|
183
|
-
sellerReply: '亲,你好,我们会联系商家和厂商给您一个满意的答复请一定妥善保管好发票',
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
spuId: '1722045',
|
|
187
|
-
skuId: '0',
|
|
188
|
-
specInfo: '',
|
|
189
|
-
commentContent: '收到货了,第一时间试了一下,很漂亮特别喜欢,大爱大爱,颜色也很好看。棒棒!',
|
|
190
|
-
commentImageUrls: null,
|
|
191
|
-
commentScore: 5,
|
|
192
|
-
uid: '88881048075',
|
|
193
|
-
userName: 'Dean',
|
|
194
|
-
userHeadUrl: 'https://tdesign.gtimg.com/miniprogram/template/retail/avatar/avatar1.png',
|
|
195
|
-
isAnonymity: false,
|
|
196
|
-
commentTime: '1592218074000',
|
|
197
|
-
isAutoComment: false,
|
|
198
|
-
goodsDetailInfo: '颜色:纯净白 尺码:S码',
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
spuId: '1722045',
|
|
202
|
-
skuId: '1697694',
|
|
203
|
-
specInfo: '测试dr超长:dr专用超长;bwtgg01:fff',
|
|
204
|
-
commentContent: '收到货了,第一时间试了一下,很漂亮特别喜欢,大爱大爱,颜色也很好看。棒棒!',
|
|
205
|
-
commentImageUrls: null,
|
|
206
|
-
commentScore: 5,
|
|
207
|
-
uid: '88881048075',
|
|
208
|
-
userName: 'Dean',
|
|
209
|
-
userHeadUrl: 'https://tdesign.gtimg.com/miniprogram/template/retail/avatar/avatar1.png',
|
|
210
|
-
isAnonymity: false,
|
|
211
|
-
commentTime: '1592217607000',
|
|
212
|
-
isAutoComment: false,
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
spuId: '1722045',
|
|
216
|
-
skuId: '1697693',
|
|
217
|
-
specInfo: '测试dr超长:超长测试超长测试1;bwtgg01:bbb',
|
|
218
|
-
commentContent: '收到货了,第一时间试了一下,很漂亮特别喜欢,大爱大爱,颜色也很好看。棒棒!',
|
|
219
|
-
commentImageUrls: null,
|
|
220
|
-
commentScore: 4,
|
|
221
|
-
uid: '88881048075',
|
|
222
|
-
userName: 'Dean',
|
|
223
|
-
userHeadUrl: 'https://tdesign.gtimg.com/miniprogram/template/retail/avatar/avatar1.png',
|
|
224
|
-
isAnonymity: false,
|
|
225
|
-
commentTime: '1592217607000',
|
|
226
|
-
isAutoComment: false,
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
spuId: '1722045',
|
|
230
|
-
skuId: '1697694',
|
|
231
|
-
specInfo: '测试dr超长:dr专用超长;bwtgg01:fff',
|
|
232
|
-
commentContent: '收到货了,第一时间试了一下,很漂亮特别喜欢,大爱大爱,颜色也很好看。棒棒!',
|
|
233
|
-
commentImageUrls: null,
|
|
234
|
-
commentScore: 5,
|
|
235
|
-
uid: '88881048075',
|
|
236
|
-
userName: 'Dean',
|
|
237
|
-
userHeadUrl: 'https://tdesign.gtimg.com/miniprogram/template/retail/avatar/avatar1.png',
|
|
238
|
-
isAnonymity: false,
|
|
239
|
-
commentTime: '1592205599000',
|
|
240
|
-
isAutoComment: false,
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
spuId: '1722045',
|
|
244
|
-
skuId: '1697694',
|
|
245
|
-
specInfo: '测试dr超长:dr专用超长;bwtgg01:fff',
|
|
246
|
-
commentContent: '收到货了,第一时间试了一下,很漂亮特别喜欢,大爱大爱,颜色也很好看。棒棒!',
|
|
247
|
-
commentImageUrls: null,
|
|
248
|
-
commentScore: 5,
|
|
249
|
-
uid: '88881048075',
|
|
250
|
-
userName: 'Dean',
|
|
251
|
-
userHeadUrl: 'https://tdesign.gtimg.com/miniprogram/template/retail/avatar/avatar1.png',
|
|
252
|
-
isAnonymity: false,
|
|
253
|
-
commentTime: '1592188822000',
|
|
254
|
-
isAutoComment: false,
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
spuId: '1722045',
|
|
258
|
-
skuId: '1697694',
|
|
259
|
-
specInfo: '测试dr超长:dr专用超长;bwtgg01:fff',
|
|
260
|
-
commentContent: '收到货了,第一时间试了一下,很漂亮特别喜欢,大爱大爱,颜色也很好看。棒棒!',
|
|
261
|
-
commentImageUrls: null,
|
|
262
|
-
commentScore: 5,
|
|
263
|
-
uid: '88881055835',
|
|
264
|
-
userName: 'Max',
|
|
265
|
-
userHeadUrl: 'https://tdesign.gtimg.com/miniprogram/template/retail/avatar/avatar1.png',
|
|
266
|
-
isAnonymity: false,
|
|
267
|
-
commentTime: '1593792002000',
|
|
268
|
-
isAutoComment: true,
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
spuId: '1722045',
|
|
272
|
-
skuId: '1697694',
|
|
273
|
-
specInfo: '测试dr超长:dr专用超长;bwtgg01:fff',
|
|
274
|
-
commentContent: '',
|
|
275
|
-
commentImageUrls: null,
|
|
276
|
-
commentScore: 5,
|
|
277
|
-
uid: '88881055835',
|
|
278
|
-
userName: 'Max',
|
|
279
|
-
userHeadUrl: 'https://tdesign.gtimg.com/miniprogram/template/retail/avatar/avatar1.png',
|
|
280
|
-
isAnonymity: false,
|
|
281
|
-
commentTime: '1593792001000',
|
|
282
|
-
isAutoComment: true,
|
|
283
|
-
},
|
|
284
|
-
],
|
|
285
|
-
};
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
export function getGoodsCommentsCount() {
|
|
289
|
-
return {
|
|
290
|
-
commentCount: '47',
|
|
291
|
-
badCount: '0',
|
|
292
|
-
middleCount: '2',
|
|
293
|
-
goodCount: '45',
|
|
294
|
-
hasImageCount: '1',
|
|
295
|
-
goodRate: 95.7,
|
|
296
|
-
uidCount: '0',
|
|
297
|
-
};
|
|
298
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 优惠券
|
|
3
|
-
*
|
|
4
|
-
* @typedef {'default'|'useless'|'disabled'} CouponCardStatus
|
|
5
|
-
* @typedef {'discount'|'price'} CouponCardType
|
|
6
|
-
*
|
|
7
|
-
* @param {number} [id]
|
|
8
|
-
* @param {CouponCardStatus} [status]
|
|
9
|
-
* @param {CouponCardType} [type]
|
|
10
|
-
*/
|
|
11
|
-
export function getCoupon(id = 0, status = 'default', type = (id % 2) + 1) {
|
|
12
|
-
return {
|
|
13
|
-
/** key */
|
|
14
|
-
key: `${id}`,
|
|
15
|
-
/** 优惠券状态 */
|
|
16
|
-
status,
|
|
17
|
-
/** 优惠券类型 */
|
|
18
|
-
type,
|
|
19
|
-
/** 折扣或者满减值 */
|
|
20
|
-
value: type === 2 ? 5.5 : 1800,
|
|
21
|
-
/** 标签 */
|
|
22
|
-
tag: '',
|
|
23
|
-
/** 描述 */
|
|
24
|
-
desc: parseInt(id) > 0 ? `满${parseInt(id) * 100}元可用` : '无门槛使用',
|
|
25
|
-
/** 订单底价,满n元 */
|
|
26
|
-
base: 10000 * (parseInt(id) || 0),
|
|
27
|
-
/** 标题 */
|
|
28
|
-
title: type === 2 ? `生鲜折扣券 - ${id}` : `生鲜满减券 - ${id}`,
|
|
29
|
-
/** 有效时间限制 */
|
|
30
|
-
timeLimit: '2019.11.18-2023.12.18',
|
|
31
|
-
/** 货币符号 */
|
|
32
|
-
currency: '¥',
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/** 优惠券列表 */
|
|
37
|
-
export function getCouponList(status = 'default', length = 10) {
|
|
38
|
-
return new Array(length).fill(0).map((_, idx) => getCoupon(idx, status));
|
|
39
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export function getGoodsDetailsComments() {
|
|
2
|
-
return {
|
|
3
|
-
homePageComments: [
|
|
4
|
-
{
|
|
5
|
-
spuId: '1722045',
|
|
6
|
-
skuId: null,
|
|
7
|
-
specInfo: null,
|
|
8
|
-
commentContent:
|
|
9
|
-
'收到货了,第一时间试了一下,很漂亮特别喜欢,大爱大爱,颜色也很好看。棒棒!',
|
|
10
|
-
commentScore: 4,
|
|
11
|
-
uid: '88881048075',
|
|
12
|
-
userName: 'Dean',
|
|
13
|
-
userHeadUrl:
|
|
14
|
-
'https://wx.qlogo.cn/mmopen/vi_32/5mKrvn3ibyDNaDZSZics3aoKlz1cv0icqn4EruVm6gKjsK0xvZZhC2hkUkRWGxlIzOEc4600JkzKn9icOLE6zjgsxw/132',
|
|
15
|
-
},
|
|
16
|
-
],
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export function getGoodsDetailsCommentsCount() {
|
|
21
|
-
return {
|
|
22
|
-
commentCount: '47',
|
|
23
|
-
badCount: '0',
|
|
24
|
-
middleCount: '2',
|
|
25
|
-
goodCount: '45',
|
|
26
|
-
hasImageCount: '1',
|
|
27
|
-
goodRate: 95.7,
|
|
28
|
-
uidCount: '0',
|
|
29
|
-
};
|
|
30
|
-
}
|