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,22 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
icon: 'home',
|
|
4
|
+
text: '首页',
|
|
5
|
+
url: 'pages/home/home',
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
icon: 'sort',
|
|
9
|
+
text: '分类',
|
|
10
|
+
url: 'pages/category/index',
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
icon: 'cart',
|
|
14
|
+
text: '购物车',
|
|
15
|
+
url: 'pages/cart/index',
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
icon: 'person',
|
|
19
|
+
text: '个人中心',
|
|
20
|
+
url: 'pages/usercenter/index',
|
|
21
|
+
},
|
|
22
|
+
];
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import TabMenu from './data';
|
|
3
|
+
Component({
|
|
4
|
+
data: {
|
|
5
|
+
active: 0,
|
|
6
|
+
list: TabMenu,
|
|
7
|
+
},
|
|
8
|
+
|
|
9
|
+
methods: {
|
|
10
|
+
onChange(event) {
|
|
11
|
+
this.setData({ active: event.detail.value });
|
|
12
|
+
wx.switchTab({
|
|
13
|
+
url: this.data.list[event.detail.value].url.startsWith('/')
|
|
14
|
+
? this.data.list[event.detail.value].url
|
|
15
|
+
: `/${this.data.list[event.detail.value].url}`,
|
|
16
|
+
});
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
init() {
|
|
20
|
+
const page = getCurrentPages().pop();
|
|
21
|
+
const route = page ? page.route.split('?')[0] : '';
|
|
22
|
+
const active = this.data.list.findIndex(
|
|
23
|
+
(item) =>
|
|
24
|
+
(item.url.startsWith('/') ? item.url.substr(1) : item.url) ===
|
|
25
|
+
`${route}`,
|
|
26
|
+
);
|
|
27
|
+
this.setData({ active });
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
</script>
|
|
32
|
+
|
|
33
|
+
<template>
|
|
34
|
+
<t-tab-bar
|
|
35
|
+
value="{{active}}"
|
|
36
|
+
bindchange="onChange"
|
|
37
|
+
split="{{false}}"
|
|
38
|
+
>
|
|
39
|
+
<t-tab-bar-item
|
|
40
|
+
wx:for="{{list}}"
|
|
41
|
+
wx:for-item="item"
|
|
42
|
+
wx:for-index="index"
|
|
43
|
+
wx:key="index"
|
|
44
|
+
>
|
|
45
|
+
<view class="custom-tab-bar-wrapper [display:flex] [flex-direction:column] [align-items:center] [&_.text]:[font-size:20rpx]">
|
|
46
|
+
<t-icon prefix="wr" name="{{item.icon}}" size="48rpx" />
|
|
47
|
+
<view class="text">{{ item.text }}</view>
|
|
48
|
+
</view>
|
|
49
|
+
</t-tab-bar-item>
|
|
50
|
+
</t-tab-bar>
|
|
51
|
+
|
|
52
|
+
</template>
|
|
53
|
+
|
|
54
|
+
<json>
|
|
55
|
+
{
|
|
56
|
+
"component": true,
|
|
57
|
+
"usingComponents": {
|
|
58
|
+
"t-tab-bar": "tdesign-miniprogram/tab-bar/tab-bar",
|
|
59
|
+
"t-tab-bar-item": "tdesign-miniprogram/tab-bar-item/tab-bar-item",
|
|
60
|
+
"t-icon": "tdesign-miniprogram/icon/icon"
|
|
61
|
+
}
|
|
62
|
+
}</json>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {string|number} key 唯一值
|
|
3
|
+
*/
|
|
4
|
+
export function getActivity(key) {
|
|
5
|
+
return {
|
|
6
|
+
promotionId: `${key}`,
|
|
7
|
+
title: `满减满折回归${key}`,
|
|
8
|
+
description: null,
|
|
9
|
+
promotionCode: 'MERCHANT',
|
|
10
|
+
promotionSubCode: key % 2 === 0 ? 'MYJ' : 'MYG',
|
|
11
|
+
tag: '满减',
|
|
12
|
+
timeType: 1,
|
|
13
|
+
startTime: '1588737710000',
|
|
14
|
+
endTime: '1601467070000',
|
|
15
|
+
teasingStartTime: null,
|
|
16
|
+
activityLadder: [{ label: '满100元减99.9元' }],
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/** 地址 */
|
|
2
|
+
export function genAddress(id) {
|
|
3
|
+
return {
|
|
4
|
+
saasId: '88888888',
|
|
5
|
+
uid: `8888888820550${id}`,
|
|
6
|
+
authToken: null,
|
|
7
|
+
id: `${id}`,
|
|
8
|
+
addressId: `${id}`,
|
|
9
|
+
phone: '17612345678',
|
|
10
|
+
name: `测试用户${id}`,
|
|
11
|
+
countryName: '中国',
|
|
12
|
+
countryCode: 'chn',
|
|
13
|
+
provinceName: '甘肃省',
|
|
14
|
+
provinceCode: '620000',
|
|
15
|
+
cityName: '甘南藏族自治州',
|
|
16
|
+
cityCode: '623000',
|
|
17
|
+
districtName: '碌曲县',
|
|
18
|
+
districtCode: '623026',
|
|
19
|
+
detailAddress: `松日鼎盛大厦${id}层${id}号`,
|
|
20
|
+
isDefault: `${id}` === '0' ? 1 : 0,
|
|
21
|
+
addressTag: id === 0 ? '' : '公司',
|
|
22
|
+
latitude: '34.59103',
|
|
23
|
+
longitude: '102.48699',
|
|
24
|
+
storeId: null,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/** 地址列表 */
|
|
29
|
+
export function genAddressList(len = 10) {
|
|
30
|
+
return new Array(len).fill(0).map((_, idx) => genAddress(idx));
|
|
31
|
+
}
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
import { mockIp, mockReqId } from '../utils/mock';
|
|
2
|
+
|
|
3
|
+
export function genCartGroupData() {
|
|
4
|
+
const resp = {
|
|
5
|
+
data: {
|
|
6
|
+
isNotEmpty: true,
|
|
7
|
+
storeGoods: [
|
|
8
|
+
{
|
|
9
|
+
storeId: '1000',
|
|
10
|
+
storeName: '云Mall深圳旗舰店',
|
|
11
|
+
storeStatus: 1,
|
|
12
|
+
totalDiscountSalePrice: '9990',
|
|
13
|
+
promotionGoodsList: [
|
|
14
|
+
{
|
|
15
|
+
title: '满减满折回归',
|
|
16
|
+
promotionCode: 'MERCHANT',
|
|
17
|
+
promotionSubCode: 'MYJ',
|
|
18
|
+
promotionId: '159174555838121985',
|
|
19
|
+
tagText: ['满100元减99.9元'],
|
|
20
|
+
promotionStatus: 3,
|
|
21
|
+
tag: '满减',
|
|
22
|
+
description: '满100元减99.9元,已减99.9元',
|
|
23
|
+
doorSillRemain: null,
|
|
24
|
+
isNeedAddOnShop: 0,
|
|
25
|
+
goodsPromotionList: [
|
|
26
|
+
{
|
|
27
|
+
uid: '88888888205468',
|
|
28
|
+
saasId: '88888888',
|
|
29
|
+
storeId: '1000',
|
|
30
|
+
spuId: '12',
|
|
31
|
+
skuId: '135691622',
|
|
32
|
+
isSelected: 1,
|
|
33
|
+
thumb: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/dz-3a.png',
|
|
34
|
+
title: '腾讯极光盒子4智能网络电视机顶盒6K千兆网络机顶盒4K高分辨率',
|
|
35
|
+
primaryImage: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/dz-3a.png',
|
|
36
|
+
quantity: 1,
|
|
37
|
+
stockStatus: true,
|
|
38
|
+
stockQuantity: 3,
|
|
39
|
+
price: '9900',
|
|
40
|
+
originPrice: '16900',
|
|
41
|
+
tagPrice: null,
|
|
42
|
+
titlePrefixTags: [{ text: '新品' }, { text: '火爆' }],
|
|
43
|
+
roomId: null,
|
|
44
|
+
specInfo: [
|
|
45
|
+
{
|
|
46
|
+
specTitle: '颜色',
|
|
47
|
+
specValue: '经典白',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
specTitle: '类型',
|
|
51
|
+
specValue: '经典套装',
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
joinCartTime: '2020-06-29T07:55:40.000+0000',
|
|
55
|
+
available: 1,
|
|
56
|
+
putOnSale: 1,
|
|
57
|
+
etitle: null,
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
uid: '88888888205468',
|
|
61
|
+
saasId: '88888888',
|
|
62
|
+
storeId: '1000',
|
|
63
|
+
spuId: '18',
|
|
64
|
+
skuId: '135681631',
|
|
65
|
+
isSelected: 1,
|
|
66
|
+
thumb: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-09a.png',
|
|
67
|
+
title: '白色短袖连衣裙荷叶边裙摆宽松韩版休闲纯白清爽优雅连衣裙',
|
|
68
|
+
primaryImage: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-09a.png',
|
|
69
|
+
quantity: 1,
|
|
70
|
+
stockStatus: true,
|
|
71
|
+
stockQuantity: 177,
|
|
72
|
+
price: '29800',
|
|
73
|
+
originPrice: '40000',
|
|
74
|
+
tagPrice: null,
|
|
75
|
+
titlePrefixTags: null,
|
|
76
|
+
roomId: null,
|
|
77
|
+
specInfo: [
|
|
78
|
+
{
|
|
79
|
+
specTitle: '颜色',
|
|
80
|
+
specValue: '米色荷叶边',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
specTitle: '尺码',
|
|
84
|
+
specValue: 'M',
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
joinCartTime: '2020-06-29T07:55:27.000+0000',
|
|
88
|
+
available: 1,
|
|
89
|
+
putOnSale: 1,
|
|
90
|
+
etitle: null,
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
uid: '88888888205468',
|
|
94
|
+
saasId: '88888888',
|
|
95
|
+
storeId: '1000',
|
|
96
|
+
spuId: '13',
|
|
97
|
+
skuId: '135698362',
|
|
98
|
+
isSelected: 1,
|
|
99
|
+
thumb: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/muy-3a.png',
|
|
100
|
+
title: '带帽午休毯虎年款多功能加厚加大加绒简约多功能午休毯连帽披肩',
|
|
101
|
+
primaryImage: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/muy-3a.png',
|
|
102
|
+
quantity: 13,
|
|
103
|
+
stockStatus: true,
|
|
104
|
+
stockQuantity: 9,
|
|
105
|
+
price: '29900',
|
|
106
|
+
originPrice: '0',
|
|
107
|
+
tagPrice: null,
|
|
108
|
+
titlePrefixTags: [{ text: '火爆' }],
|
|
109
|
+
roomId: null,
|
|
110
|
+
specInfo: [
|
|
111
|
+
{
|
|
112
|
+
specTitle: '颜色',
|
|
113
|
+
specValue: '浅灰色',
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
specTitle: '尺码',
|
|
117
|
+
specValue: 'M',
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
joinCartTime: '2020-06-29T07:54:43.000+0000',
|
|
121
|
+
available: 1,
|
|
122
|
+
putOnSale: 1,
|
|
123
|
+
etitle: null,
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
uid: '88888888205468',
|
|
127
|
+
saasId: '88888888',
|
|
128
|
+
storeId: '1000',
|
|
129
|
+
spuId: '7',
|
|
130
|
+
skuId: '135681625',
|
|
131
|
+
isSelected: 1,
|
|
132
|
+
thumb: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/gh-2b.png',
|
|
133
|
+
title: '不锈钢刀叉勺套装家用西餐餐具ins简约耐用不锈钢金色银色可选',
|
|
134
|
+
primaryImage: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/gh-2b.png',
|
|
135
|
+
quantity: 1,
|
|
136
|
+
stockStatus: true,
|
|
137
|
+
stockQuantity: 0,
|
|
138
|
+
price: '29900',
|
|
139
|
+
originPrice: '29900',
|
|
140
|
+
tagPrice: null,
|
|
141
|
+
titlePrefixTags: null,
|
|
142
|
+
roomId: null,
|
|
143
|
+
specInfo: [
|
|
144
|
+
{
|
|
145
|
+
specTitle: '颜色',
|
|
146
|
+
specValue: '奶黄色',
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
specTitle: '数量',
|
|
150
|
+
specValue: '六件套',
|
|
151
|
+
},
|
|
152
|
+
],
|
|
153
|
+
joinCartTime: '2020-06-29T07:55:00.000+0000',
|
|
154
|
+
available: 1,
|
|
155
|
+
putOnSale: 1,
|
|
156
|
+
etitle: null,
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
lastJoinTime: '2020-06-29T07:55:40.000+0000',
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
title: null,
|
|
163
|
+
promotionCode: 'EMPTY_PROMOTION',
|
|
164
|
+
promotionSubCode: null,
|
|
165
|
+
promotionId: null,
|
|
166
|
+
tagText: null,
|
|
167
|
+
promotionStatus: null,
|
|
168
|
+
tag: null,
|
|
169
|
+
description: null,
|
|
170
|
+
doorSillRemain: null,
|
|
171
|
+
isNeedAddOnShop: 0,
|
|
172
|
+
goodsPromotionList: [
|
|
173
|
+
{
|
|
174
|
+
uid: '88888888205468',
|
|
175
|
+
saasId: '88888888',
|
|
176
|
+
storeId: '1000',
|
|
177
|
+
spuId: '11',
|
|
178
|
+
skuId: '135691629',
|
|
179
|
+
isSelected: 0,
|
|
180
|
+
thumb: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-17a.png',
|
|
181
|
+
title: '运动连帽拉链卫衣休闲开衫长袖多色运动细绒面料运动上衣',
|
|
182
|
+
primaryImage: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-17a.png',
|
|
183
|
+
quantity: 1,
|
|
184
|
+
stockStatus: false,
|
|
185
|
+
stockQuantity: 0,
|
|
186
|
+
price: '25900',
|
|
187
|
+
originPrice: '39900',
|
|
188
|
+
tagPrice: null,
|
|
189
|
+
tagText: null,
|
|
190
|
+
roomId: null,
|
|
191
|
+
specInfo: [
|
|
192
|
+
{
|
|
193
|
+
specTitle: '颜色',
|
|
194
|
+
specValue: '军绿色',
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
specTitle: '尺码',
|
|
198
|
+
specValue: 'S',
|
|
199
|
+
},
|
|
200
|
+
],
|
|
201
|
+
joinCartTime: '2020-04-24T06:26:48.000+0000',
|
|
202
|
+
available: 1,
|
|
203
|
+
putOnSale: 1,
|
|
204
|
+
etitle: null,
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
uid: '88888888205468',
|
|
208
|
+
saasId: '88888888',
|
|
209
|
+
storeId: '1000',
|
|
210
|
+
spuId: '5',
|
|
211
|
+
skuId: '135691635',
|
|
212
|
+
isSelected: 0,
|
|
213
|
+
thumb: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/dz-2a.png',
|
|
214
|
+
title: '迷你便携高颜值蓝牙无线耳机立体声只能触控式操作简约立体声耳机',
|
|
215
|
+
primaryImage: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/dz-2a.png',
|
|
216
|
+
quantity: 1,
|
|
217
|
+
stockStatus: true,
|
|
218
|
+
stockQuantity: 96,
|
|
219
|
+
price: '29000',
|
|
220
|
+
originPrice: '29900',
|
|
221
|
+
tagPrice: null,
|
|
222
|
+
tagText: null,
|
|
223
|
+
roomId: null,
|
|
224
|
+
specInfo: [
|
|
225
|
+
{
|
|
226
|
+
specTitle: '颜色',
|
|
227
|
+
specValue: '黑色',
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
specTitle: '类型',
|
|
231
|
+
specValue: '简约款',
|
|
232
|
+
},
|
|
233
|
+
],
|
|
234
|
+
joinCartTime: '2020-06-29T07:55:17.000+0000',
|
|
235
|
+
available: 1,
|
|
236
|
+
putOnSale: 1,
|
|
237
|
+
etitle: null,
|
|
238
|
+
},
|
|
239
|
+
],
|
|
240
|
+
lastJoinTime: null,
|
|
241
|
+
},
|
|
242
|
+
],
|
|
243
|
+
lastJoinTime: '2020-06-29T07:55:40.000+0000',
|
|
244
|
+
postageFreePromotionVo: {
|
|
245
|
+
title: null,
|
|
246
|
+
promotionCode: null,
|
|
247
|
+
promotionSubCode: null,
|
|
248
|
+
promotionId: null,
|
|
249
|
+
tagText: null,
|
|
250
|
+
promotionStatus: null,
|
|
251
|
+
tag: null,
|
|
252
|
+
description: null,
|
|
253
|
+
doorSillRemain: null,
|
|
254
|
+
isNeedAddOnShop: 0,
|
|
255
|
+
},
|
|
256
|
+
},
|
|
257
|
+
],
|
|
258
|
+
invalidGoodItems: [
|
|
259
|
+
{
|
|
260
|
+
uid: '88888888205468',
|
|
261
|
+
saasId: '88888888',
|
|
262
|
+
storeId: '1000',
|
|
263
|
+
spuId: '1',
|
|
264
|
+
skuId: '135691631',
|
|
265
|
+
isSelected: 1,
|
|
266
|
+
thumb: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-08b.png',
|
|
267
|
+
title: '纯色纯棉休闲圆领短袖T恤纯白亲肤厚柔软细腻面料纯白短袖套头T恤',
|
|
268
|
+
primaryImage: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-08b.png',
|
|
269
|
+
quantity: 8,
|
|
270
|
+
stockStatus: true,
|
|
271
|
+
stockQuantity: 177,
|
|
272
|
+
price: '26900',
|
|
273
|
+
originPrice: '31900',
|
|
274
|
+
tagPrice: null,
|
|
275
|
+
tagText: null,
|
|
276
|
+
roomId: null,
|
|
277
|
+
specInfo: [
|
|
278
|
+
{
|
|
279
|
+
specTitle: '颜色',
|
|
280
|
+
specValue: '白色',
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
specTitle: '尺码',
|
|
284
|
+
specValue: 'S',
|
|
285
|
+
},
|
|
286
|
+
],
|
|
287
|
+
joinCartTime: '2020-04-28T04:03:59.000+0000',
|
|
288
|
+
available: 1,
|
|
289
|
+
putOnSale: 1,
|
|
290
|
+
etitle: null,
|
|
291
|
+
},
|
|
292
|
+
],
|
|
293
|
+
isAllSelected: false,
|
|
294
|
+
selectedGoodsCount: 16,
|
|
295
|
+
totalAmount: '179997',
|
|
296
|
+
totalDiscountAmount: '110000',
|
|
297
|
+
},
|
|
298
|
+
code: 'Success',
|
|
299
|
+
msg: null,
|
|
300
|
+
requestId: mockReqId(),
|
|
301
|
+
clientIp: mockIp(),
|
|
302
|
+
rt: 269,
|
|
303
|
+
success: true,
|
|
304
|
+
};
|
|
305
|
+
return resp;
|
|
306
|
+
}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
export function getCategoryList() {
|
|
2
|
+
return [
|
|
3
|
+
{
|
|
4
|
+
groupId: '24948',
|
|
5
|
+
name: '女装',
|
|
6
|
+
thumbnail: 'https://tdesign.gtimg.com/miniprogram/template/retail/category/category-default.png',
|
|
7
|
+
children: [
|
|
8
|
+
{
|
|
9
|
+
groupId: '249481',
|
|
10
|
+
name: '女装',
|
|
11
|
+
thumbnail: 'https://tdesign.gtimg.com/miniprogram/template/retail/category/category-default.png',
|
|
12
|
+
children: [
|
|
13
|
+
{
|
|
14
|
+
groupId: '249480',
|
|
15
|
+
name: '卫衣',
|
|
16
|
+
thumbnail: 'https://tdesign.gtimg.com/miniprogram/template/retail/classify/img-1.png',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
groupId: '249480',
|
|
20
|
+
name: '毛呢外套',
|
|
21
|
+
thumbnail: 'https://tdesign.gtimg.com/miniprogram/template/retail/classify/img-2.png',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
groupId: '249480',
|
|
25
|
+
name: '雪纺衫',
|
|
26
|
+
thumbnail: 'https://tdesign.gtimg.com/miniprogram/template/retail/classify/img-3.png',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
groupId: '249480',
|
|
30
|
+
name: '羽绒服',
|
|
31
|
+
thumbnail: 'https://tdesign.gtimg.com/miniprogram/template/retail/classify/img-4.png',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
groupId: '249480',
|
|
35
|
+
name: '毛衣',
|
|
36
|
+
thumbnail: 'https://tdesign.gtimg.com/miniprogram/template/retail/classify/img-5.png',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
groupId: '249480',
|
|
40
|
+
name: '棉衣',
|
|
41
|
+
thumbnail: 'https://tdesign.gtimg.com/miniprogram/template/retail/classify/img-6.png',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
groupId: '249480',
|
|
45
|
+
name: '西装',
|
|
46
|
+
thumbnail: 'https://tdesign.gtimg.com/miniprogram/template/retail/classify/img-7.png',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
groupId: '249480',
|
|
50
|
+
name: '马甲',
|
|
51
|
+
thumbnail: 'https://tdesign.gtimg.com/miniprogram/template/retail/classify/img-8.png',
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
groupId: '249480',
|
|
55
|
+
name: '连衣裙',
|
|
56
|
+
thumbnail: 'https://tdesign.gtimg.com/miniprogram/template/retail/classify/img-9.png',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
groupId: '249480',
|
|
60
|
+
name: '半身裙',
|
|
61
|
+
thumbnail: 'https://tdesign.gtimg.com/miniprogram/template/retail/classify/img-10.png',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
groupId: '249480',
|
|
65
|
+
name: '裤子',
|
|
66
|
+
thumbnail: 'https://tdesign.gtimg.com/miniprogram/template/retail/classify/img-11.png',
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
groupId: '24948',
|
|
74
|
+
name: '男装',
|
|
75
|
+
thumbnail: 'https://tdesign.gtimg.com/miniprogram/template/retail/category/category-default.png',
|
|
76
|
+
children: [
|
|
77
|
+
{
|
|
78
|
+
groupId: '249481',
|
|
79
|
+
name: '男装',
|
|
80
|
+
thumbnail: 'https://tdesign.gtimg.com/miniprogram/template/retail/category/category-default.png',
|
|
81
|
+
children: [
|
|
82
|
+
{
|
|
83
|
+
groupId: '249480',
|
|
84
|
+
name: '卫衣',
|
|
85
|
+
thumbnail: 'https://tdesign.gtimg.com/miniprogram/template/retail/classify/img-1.png',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
groupId: '249480',
|
|
89
|
+
name: '裤子',
|
|
90
|
+
thumbnail: 'https://tdesign.gtimg.com/miniprogram/template/retail/classify/img-11.png',
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
groupId: '249480',
|
|
94
|
+
name: '西装',
|
|
95
|
+
thumbnail: 'https://tdesign.gtimg.com/miniprogram/template/retail/classify/img-7.png',
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
groupId: '249480',
|
|
99
|
+
name: '羽绒服',
|
|
100
|
+
thumbnail: 'https://tdesign.gtimg.com/miniprogram/template/retail/classify/img-4.png',
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
groupId: '249480',
|
|
104
|
+
name: '马甲',
|
|
105
|
+
thumbnail: 'https://tdesign.gtimg.com/miniprogram/template/retail/classify/img-8.png',
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
groupId: '24948',
|
|
113
|
+
name: '儿童装',
|
|
114
|
+
thumbnail: 'https://tdesign.gtimg.com/miniprogram/template/retail/category/category-default.png',
|
|
115
|
+
children: [
|
|
116
|
+
{
|
|
117
|
+
groupId: '249481',
|
|
118
|
+
name: '儿童装',
|
|
119
|
+
thumbnail: 'https://tdesign.gtimg.com/miniprogram/template/retail/category/category-default.png',
|
|
120
|
+
children: [
|
|
121
|
+
{
|
|
122
|
+
groupId: '249480',
|
|
123
|
+
name: '马甲',
|
|
124
|
+
thumbnail: 'https://tdesign.gtimg.com/miniprogram/template/retail/classify/img-8.png',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
groupId: '249480',
|
|
128
|
+
name: '裤子',
|
|
129
|
+
thumbnail: 'https://tdesign.gtimg.com/miniprogram/template/retail/classify/img-11.png',
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
groupId: '249480',
|
|
133
|
+
name: '连衣裙',
|
|
134
|
+
thumbnail: 'https://tdesign.gtimg.com/miniprogram/template/retail/classify/img-9.png',
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
groupId: '249480',
|
|
138
|
+
name: '其他',
|
|
139
|
+
thumbnail: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/muy-3b.png',
|
|
140
|
+
},
|
|
141
|
+
],
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
groupId: '24948',
|
|
147
|
+
name: '美妆',
|
|
148
|
+
thumbnail: 'https://tdesign.gtimg.com/miniprogram/template/retail/category/category-default.png',
|
|
149
|
+
children: [
|
|
150
|
+
{
|
|
151
|
+
groupId: '249481',
|
|
152
|
+
name: '美妆',
|
|
153
|
+
thumbnail: 'https://tdesign.gtimg.com/miniprogram/template/retail/category/category-default.png',
|
|
154
|
+
children: [
|
|
155
|
+
{
|
|
156
|
+
groupId: '249480',
|
|
157
|
+
name: '唇釉',
|
|
158
|
+
thumbnail: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/mz-20a1.png',
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
groupId: '249480',
|
|
162
|
+
name: '美妆蛋',
|
|
163
|
+
thumbnail: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/mz-11a1.png',
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
groupId: '249480',
|
|
167
|
+
name: '眼影',
|
|
168
|
+
thumbnail: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/mz-12b.png',
|
|
169
|
+
},
|
|
170
|
+
],
|
|
171
|
+
},
|
|
172
|
+
],
|
|
173
|
+
},
|
|
174
|
+
];
|
|
175
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
const queryDetail = {
|
|
2
|
+
commentInfos: [
|
|
3
|
+
{
|
|
4
|
+
id: '647984992708380600',
|
|
5
|
+
uid: '',
|
|
6
|
+
userName: 'Dean Cheng',
|
|
7
|
+
userHeadUrl:
|
|
8
|
+
'https://bizmid-material-qa-1302115263.cos.ap-guangzhou.myqcloud.com/comment/default_head.png',
|
|
9
|
+
commentId: '1937712',
|
|
10
|
+
commentIdName: '小鹿商品',
|
|
11
|
+
commentIdImageUrl:
|
|
12
|
+
'https://bizmid-material-qa-1302115263.file.myqcloud.com/persist/4bf2ded7-1759-4821-919c-cc4960e14120/1078823925183295617/100000114727/material/1/cdbeb389be64427b8c165627895ff0bc-1610425563793-%E5%A4%B4%E5%83%8F.png',
|
|
13
|
+
commentStage: 1,
|
|
14
|
+
commentCheckStatus: 2,
|
|
15
|
+
commentIdType: 1,
|
|
16
|
+
content: '',
|
|
17
|
+
commentInfo: {
|
|
18
|
+
score: null,
|
|
19
|
+
content: '',
|
|
20
|
+
medias: [],
|
|
21
|
+
commentTime: '1617872404000',
|
|
22
|
+
},
|
|
23
|
+
isAgainComment: 0,
|
|
24
|
+
commentHasAgainComment: 0,
|
|
25
|
+
isAnonymous: 0,
|
|
26
|
+
replyList: [],
|
|
27
|
+
specification: '颜色:白色 ',
|
|
28
|
+
specificationJson: '{"颜色":"白色"}',
|
|
29
|
+
commentExtendId: '1937713',
|
|
30
|
+
commentTime: '1617872404000',
|
|
31
|
+
score: 0,
|
|
32
|
+
goodsScore: null,
|
|
33
|
+
freightScore: null,
|
|
34
|
+
serviceScore: null,
|
|
35
|
+
medias: [],
|
|
36
|
+
againCommentList: null,
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
logisticsScore: null,
|
|
40
|
+
serviceScore: null,
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @param {string} skuId
|
|
45
|
+
* @param {string} spuId
|
|
46
|
+
* @param {string} orderNo
|
|
47
|
+
*/
|
|
48
|
+
export function queryCommentDetail() {
|
|
49
|
+
return queryDetail;
|
|
50
|
+
}
|