create-weapp-vite 2.0.31 → 2.0.32
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 +1 -0
- package/dist/{chunk-FGMHC2DJ.js → chunk-IT75MAH3.js} +3 -2
- package/dist/cli.js +5 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/templates/wevu-retail/.editorconfig +9 -0
- package/templates/wevu-retail/.vscode/settings.json +10 -0
- package/templates/wevu-retail/AGENTS.md +35 -0
- package/templates/wevu-retail/README.md +26 -0
- package/templates/wevu-retail/auto-import-components.json +1 -0
- package/templates/wevu-retail/gitignore +35 -0
- package/templates/wevu-retail/package.json +42 -0
- package/templates/wevu-retail/postcss.config.js +6 -0
- package/templates/wevu-retail/project.config.json +44 -0
- package/templates/wevu-retail/project.private.config.json +8 -0
- package/templates/wevu-retail/src/app.vue +104 -0
- package/templates/wevu-retail/src/common/updateManager.ts +29 -0
- package/templates/wevu-retail/src/components/filter/index.vue +134 -0
- package/templates/wevu-retail/src/components/filter-popup/index.vue +67 -0
- package/templates/wevu-retail/src/components/goods-card/index.vue +219 -0
- package/templates/wevu-retail/src/components/goods-list/index.vue +91 -0
- package/templates/wevu-retail/src/components/load-more/index.vue +99 -0
- package/templates/wevu-retail/src/components/loading-content/index.vue +48 -0
- package/templates/wevu-retail/src/components/price/index.vue +104 -0
- package/templates/wevu-retail/src/components/promotion/ui-coupon-card/index.vue +143 -0
- package/templates/wevu-retail/src/components/promotion/ui-coupon-card/tools.wxs +18 -0
- package/templates/wevu-retail/src/components/swipeout/index.vue +118 -0
- package/templates/wevu-retail/src/components/swipeout/swipe.wxs +151 -0
- package/templates/wevu-retail/src/components/webp-image/index.vue +105 -0
- package/templates/wevu-retail/src/components/webp-image/utils.wxs +140 -0
- package/templates/wevu-retail/src/config/index.ts +20437 -0
- package/templates/wevu-retail/src/custom-tab-bar/data.ts +22 -0
- package/templates/wevu-retail/src/custom-tab-bar/index.vue +62 -0
- package/templates/wevu-retail/src/model/activities.ts +7 -0
- package/templates/wevu-retail/src/model/activity.ts +18 -0
- package/templates/wevu-retail/src/model/address.ts +31 -0
- package/templates/wevu-retail/src/model/cart.ts +306 -0
- package/templates/wevu-retail/src/model/category.ts +175 -0
- package/templates/wevu-retail/src/model/comments/queryDetail.ts +50 -0
- package/templates/wevu-retail/src/model/comments.ts +298 -0
- package/templates/wevu-retail/src/model/coupon.ts +39 -0
- package/templates/wevu-retail/src/model/detailsComments.ts +30 -0
- package/templates/wevu-retail/src/model/good.ts +1904 -0
- package/templates/wevu-retail/src/model/goods.ts +7 -0
- package/templates/wevu-retail/src/model/order/applyService.ts +329 -0
- package/templates/wevu-retail/src/model/order/orderConfirm.ts +147 -0
- package/templates/wevu-retail/src/model/order/orderDetail.ts +1191 -0
- package/templates/wevu-retail/src/model/order/orderList.ts +1033 -0
- package/templates/wevu-retail/src/model/promotion.ts +20 -0
- package/templates/wevu-retail/src/model/search.ts +60 -0
- package/templates/wevu-retail/src/model/submitComment.ts +58 -0
- package/templates/wevu-retail/src/model/swiper.ts +39 -0
- package/templates/wevu-retail/src/model/usercenter.ts +52 -0
- package/templates/wevu-retail/src/pages/cart/components/cart-bar/index.vue +104 -0
- package/templates/wevu-retail/src/pages/cart/components/cart-empty/index.vue +41 -0
- package/templates/wevu-retail/src/pages/cart/components/cart-group/index.vue +333 -0
- package/templates/wevu-retail/src/pages/cart/components/cart-group/index.wxs +5 -0
- package/templates/wevu-retail/src/pages/cart/components/cart-group/utils.wxs +20 -0
- package/templates/wevu-retail/src/pages/cart/components/goods-card/index.vue +334 -0
- package/templates/wevu-retail/src/pages/cart/components/specs-popup/index.vue +100 -0
- package/templates/wevu-retail/src/pages/cart/index.vue +342 -0
- package/templates/wevu-retail/src/pages/category/components/goods-category/components/c-sidebar/README.md +95 -0
- package/templates/wevu-retail/src/pages/category/components/goods-category/components/c-sidebar/c-sidebar-item/index.vue +73 -0
- package/templates/wevu-retail/src/pages/category/components/goods-category/components/c-sidebar/index.vue +121 -0
- package/templates/wevu-retail/src/pages/category/components/goods-category/components/c-tabbar/c-tabbar-more/index.vue +74 -0
- package/templates/wevu-retail/src/pages/category/components/goods-category/components/c-tabbar/index.vue +102 -0
- package/templates/wevu-retail/src/pages/category/components/goods-category/index.vue +137 -0
- package/templates/wevu-retail/src/pages/category/index.vue +50 -0
- package/templates/wevu-retail/src/pages/coupon/components/coupon-card/index.vue +95 -0
- package/templates/wevu-retail/src/pages/coupon/components/floating-button/index.vue +44 -0
- package/templates/wevu-retail/src/pages/coupon/coupon-activity-goods/index.vue +135 -0
- package/templates/wevu-retail/src/pages/coupon/coupon-detail/index.vue +94 -0
- package/templates/wevu-retail/src/pages/coupon/coupon-list/index.vue +136 -0
- 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 +65 -0
- package/templates/wevu-retail/src/pages/goods/comments/components/comments-card/components/my-video/index.vue +92 -0
- package/templates/wevu-retail/src/pages/goods/comments/components/comments-card/index.vue +93 -0
- package/templates/wevu-retail/src/pages/goods/comments/create/index.vue +196 -0
- package/templates/wevu-retail/src/pages/goods/comments/index.vue +293 -0
- package/templates/wevu-retail/src/pages/goods/details/components/buy-bar/index.vue +117 -0
- package/templates/wevu-retail/src/pages/goods/details/components/goods-specs-popup/index.vue +440 -0
- package/templates/wevu-retail/src/pages/goods/details/components/promotion-popup/index.vue +83 -0
- package/templates/wevu-retail/src/pages/goods/details/index.vue +598 -0
- package/templates/wevu-retail/src/pages/goods/list/index.vue +299 -0
- package/templates/wevu-retail/src/pages/goods/result/index.vue +350 -0
- package/templates/wevu-retail/src/pages/goods/search/index.vue +196 -0
- package/templates/wevu-retail/src/pages/home/home.vue +215 -0
- package/templates/wevu-retail/src/pages/home/readme +8 -0
- package/templates/wevu-retail/src/pages/order/after-service-detail/api.ts +34 -0
- package/templates/wevu-retail/src/pages/order/after-service-detail/index.vue +430 -0
- package/templates/wevu-retail/src/pages/order/after-service-list/api.ts +1262 -0
- package/templates/wevu-retail/src/pages/order/after-service-list/index.vue +299 -0
- package/templates/wevu-retail/src/pages/order/apply-service/index.vue +665 -0
- package/templates/wevu-retail/src/pages/order/components/after-service-button-bar/index.vue +142 -0
- package/templates/wevu-retail/src/pages/order/components/customer-service/index.vue +75 -0
- package/templates/wevu-retail/src/pages/order/components/goods-card/index.vue +356 -0
- package/templates/wevu-retail/src/pages/order/components/noGoods/noGood.wxs +17 -0
- package/templates/wevu-retail/src/pages/order/components/noGoods/noGoods.vue +125 -0
- package/templates/wevu-retail/src/pages/order/components/order-button-bar/index.vue +262 -0
- package/templates/wevu-retail/src/pages/order/components/order-card/index.vue +126 -0
- package/templates/wevu-retail/src/pages/order/components/order-goods-card/index.vue +86 -0
- package/templates/wevu-retail/src/pages/order/components/reason-sheet/index.vue +161 -0
- package/templates/wevu-retail/src/pages/order/components/reason-sheet/reasonSheet.ts +25 -0
- package/templates/wevu-retail/src/pages/order/components/selectCoupons/mock.ts +22 -0
- package/templates/wevu-retail/src/pages/order/components/selectCoupons/selectCoupon.wxs +16 -0
- package/templates/wevu-retail/src/pages/order/components/selectCoupons/selectCoupons.vue +207 -0
- package/templates/wevu-retail/src/pages/order/components/specs-goods-card/index.vue +185 -0
- package/templates/wevu-retail/src/pages/order/config.ts +94 -0
- package/templates/wevu-retail/src/pages/order/delivery-detail/index.vue +145 -0
- package/templates/wevu-retail/src/pages/order/delivery-detail/isUrl.wxs +7 -0
- package/templates/wevu-retail/src/pages/order/fill-tracking-no/api.ts +71 -0
- package/templates/wevu-retail/src/pages/order/fill-tracking-no/index.vue +267 -0
- package/templates/wevu-retail/src/pages/order/invoice/index.vue +94 -0
- package/templates/wevu-retail/src/pages/order/order-confirm/components/address-card/index.vue +78 -0
- package/templates/wevu-retail/src/pages/order/order-confirm/getNotes.wxs +11 -0
- package/templates/wevu-retail/src/pages/order/order-confirm/handleInvoice.wxs +11 -0
- package/templates/wevu-retail/src/pages/order/order-confirm/index.vue +707 -0
- package/templates/wevu-retail/src/pages/order/order-confirm/order.wxs +8 -0
- package/templates/wevu-retail/src/pages/order/order-confirm/pay.ts +115 -0
- package/templates/wevu-retail/src/pages/order/order-detail/index.vue +456 -0
- package/templates/wevu-retail/src/pages/order/order-list/index.vue +288 -0
- package/templates/wevu-retail/src/pages/order/pay-result/index.vue +77 -0
- package/templates/wevu-retail/src/pages/order/receipt/index.vue +336 -0
- package/templates/wevu-retail/src/pages/promotion/promotion-detail/index.vue +145 -0
- package/templates/wevu-retail/src/pages/user/address/edit/index.vue +514 -0
- package/templates/wevu-retail/src/pages/user/address/list/index.vue +249 -0
- package/templates/wevu-retail/src/pages/user/components/t-location/index.vue +156 -0
- package/templates/wevu-retail/src/pages/user/components/ui-address-item/index.vue +92 -0
- package/templates/wevu-retail/src/pages/user/name-edit/index.vue +49 -0
- package/templates/wevu-retail/src/pages/user/person-info/index.vue +198 -0
- package/templates/wevu-retail/src/pages/usercenter/address/edit/util.ts +33 -0
- package/templates/wevu-retail/src/pages/usercenter/components/order-group/index.vue +90 -0
- package/templates/wevu-retail/src/pages/usercenter/components/ui-select-picker/index.vue +108 -0
- package/templates/wevu-retail/src/pages/usercenter/components/user-center-card/index.vue +82 -0
- package/templates/wevu-retail/src/pages/usercenter/index.vue +301 -0
- package/templates/wevu-retail/src/services/_utils/delay.ts +3 -0
- package/templates/wevu-retail/src/services/_utils/timeout.ts +3 -0
- package/templates/wevu-retail/src/services/activity/fetchActivity.ts +20 -0
- package/templates/wevu-retail/src/services/activity/fetchActivityList.ts +20 -0
- package/templates/wevu-retail/src/services/address/edit.ts +33 -0
- package/templates/wevu-retail/src/services/address/fetchAddress.ts +48 -0
- package/templates/wevu-retail/src/services/address/list.ts +31 -0
- package/templates/wevu-retail/src/services/cart/cart.ts +20 -0
- package/templates/wevu-retail/src/services/comments/fetchComments.ts +18 -0
- package/templates/wevu-retail/src/services/comments/fetchCommentsCount.ts +18 -0
- package/templates/wevu-retail/src/services/coupon/index.ts +65 -0
- package/templates/wevu-retail/src/services/good/comments/fetchCommentDetail.ts +20 -0
- package/templates/wevu-retail/src/services/good/fetchCategoryList.ts +18 -0
- package/templates/wevu-retail/src/services/good/fetchGood.ts +18 -0
- package/templates/wevu-retail/src/services/good/fetchGoods.ts +29 -0
- package/templates/wevu-retail/src/services/good/fetchGoodsDetailsComments.ts +37 -0
- package/templates/wevu-retail/src/services/good/fetchGoodsList.ts +39 -0
- package/templates/wevu-retail/src/services/good/fetchSearchHistory.ts +35 -0
- package/templates/wevu-retail/src/services/good/fetchSearchResult.ts +38 -0
- package/templates/wevu-retail/src/services/home/home.ts +53 -0
- package/templates/wevu-retail/src/services/order/applyService.ts +70 -0
- package/templates/wevu-retail/src/services/order/orderConfirm.ts +69 -0
- package/templates/wevu-retail/src/services/order/orderDetail.ts +39 -0
- package/templates/wevu-retail/src/services/order/orderList.ts +39 -0
- package/templates/wevu-retail/src/services/order/orderSubmitComment.ts +22 -0
- package/templates/wevu-retail/src/services/promotion/detail.ts +18 -0
- package/templates/wevu-retail/src/services/usercenter/fetchPerson.ts +28 -0
- package/templates/wevu-retail/src/services/usercenter/fetchUsercenter.ts +18 -0
- package/templates/wevu-retail/src/sitemap.json +7 -0
- package/templates/wevu-retail/src/utils/addressParse.ts +25 -0
- package/templates/wevu-retail/src/utils/getPermission.ts +45 -0
- package/templates/wevu-retail/src/utils/mock.ts +51 -0
- package/templates/wevu-retail/src/utils/util.ts +134 -0
- package/templates/wevu-retail/src/vite-env.d.ts +1 -0
- package/templates/wevu-retail/tailwind.config.ts +15 -0
- package/templates/wevu-retail/tsconfig.app.json +58 -0
- package/templates/wevu-retail/tsconfig.json +11 -0
- package/templates/wevu-retail/tsconfig.node.json +33 -0
- package/templates/wevu-retail/vite.config.ts +14 -0
|
@@ -0,0 +1,298 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
}
|