wbb 2 years ago
parent dac19b9307
commit 679202168e

@ -31,37 +31,37 @@ const allGoods = [{
], ],
specList: [{ specList: [{
specId: '10011', specId: '10011',
title: '颜色', title: '温度',
specValueList: [{ specValueList: [{
specValueId: '10012', specValueId: '10012',
specId: null, specId: null,
saasId: null, saasId: null,
specValue: '米色荷叶边', specValue: '',
image: null, image: null,
}, ], }, ],
}, },
{ {
specId: '10013', specId: '10013',
title: '尺码', title: '甜度',
specValueList: [{ specValueList: [{
specValueId: '11014', specValueId: '11014',
specId: null, specId: null,
saasId: null, saasId: null,
specValue: 'S', specValue: '三分糖',
image: null, image: null,
}, },
{ {
specValueId: '10014', specValueId: '10014',
specId: null, specId: null,
saasId: null, saasId: null,
specValue: 'M', specValue: '五分糖',
image: null, image: null,
}, },
{ {
specValueId: '11013', specValueId: '11013',
specId: null, specId: null,
saasId: null, saasId: null,
specValue: 'L', specValue: '七分糖',
image: null, image: null,
}, },
], ],
@ -108,7 +108,7 @@ const allGoods = [{
}, },
{ {
skuId: '135676632', skuId: '135676632',
skuImage: 'https://cdn-we-retail.ym.tencent.com/tsr/goods/nz-09a.png', skuImage: '/images/food/hushangayi3.jpg',
specInfo: [{ specInfo: [{
specId: '10011', specId: '10011',
specTitle: null, specTitle: null,
@ -147,7 +147,7 @@ const allGoods = [{
}, },
{ {
skuId: '135681631', skuId: '135681631',
skuImage: 'https://cdn-we-retail.ym.tencent.com/tsr/goods/nz-09a.png', skuImage: '/images/food/hushangayi2.jpg',
specInfo: [{ specInfo: [{
specId: '10011', specId: '10011',
specTitle: null, specTitle: null,
@ -194,8 +194,8 @@ const allGoods = [{
text: '限购5件', text: '限购5件',
}, ], }, ],
desc: [ desc: [
'https://cdn-we-retail.ym.tencent.com/tsr/goods/nz-09c.png', '/images/food/hushangayi2.jpg',
'https://cdn-we-retail.ym.tencent.com/tsr/goods/nz-09d.png', '/images/food/hushangayi2.jpg',
], ],
etitle: '', etitle: '',
}, },
@ -203,15 +203,15 @@ const allGoods = [{
saasId: '88888888', saasId: '88888888',
storeId: '1000', storeId: '1000',
spuId: '135686633', spuId: '135686633',
title: '纯色纯棉休闲圆领短袖T恤纯白亲肤厚柔软细腻面料纯白短袖套头T恤', title: '上海婶子多肉葡萄(中国民航大学店)',
primaryImage: 'https://cdn-we-retail.ym.tencent.com/tsr/goods/nz-08b.png', primaryImage: '/images/food/hushangayi2.jpg',
minSalePrice: '25900', minSalePrice: '25900',
minLinePrice: '31900', minLinePrice: '31900',
maxSalePrice: '26900', maxSalePrice: '26900',
maxLinePrice: '31900', maxLinePrice: '31900',
isSoldOut: false, isSoldOut: false,
images: [ images: [
'https://cdn-we-retail.ym.tencent.com/tsr/goods/nz-08a.png', '/images/food/hushangayi2.jpg',
'https://cdn-we-retail.ym.tencent.com/tsr/goods/nz-08a1.png', 'https://cdn-we-retail.ym.tencent.com/tsr/goods/nz-08a1.png',
'https://cdn-we-retail.ym.tencent.com/tsr/goods/nz-08b.png', 'https://cdn-we-retail.ym.tencent.com/tsr/goods/nz-08b.png',
], ],

@ -5,7 +5,7 @@ import {
fetchGoodsList fetchGoodsList
} from '../../services/good/fetchGoods'; } from '../../services/good/fetchGoods';
import Toast from 'tdesign-miniprogram/toast/index'; import Toast from 'tdesign-miniprogram/toast/index';
const db=wx.cloud.database();
Page({ Page({
data: { data: {
imgSrcs: [], imgSrcs: [],
@ -61,7 +61,7 @@ Page({
pageLoading: true, pageLoading: true,
}); });
fetchHome().then(({ fetchHome().then(({
swiper,
tabList tabList
}) => { }) => {
this.setData({ this.setData({

@ -1,9 +1,5 @@
{ {
"description": "项目配置文件详见文档https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", "description": "项目配置文件详见文档https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
"packOptions": {
"ignore": [],
"include": []
},
"setting": { "setting": {
"urlCheck": true, "urlCheck": true,
"es6": true, "es6": true,
@ -24,8 +20,6 @@
"compileHotReLoad": true, "compileHotReLoad": true,
"lazyloadPlaceholderEnable": false, "lazyloadPlaceholderEnable": false,
"useMultiFrameRuntime": true, "useMultiFrameRuntime": true,
"useApiHook": true,
"useApiHostProcess": true,
"babelSetting": { "babelSetting": {
"ignore": [], "ignore": [],
"disablePlugins": [], "disablePlugins": [],
@ -44,15 +38,12 @@
"ignoreDevUnusedFiles": false "ignoreDevUnusedFiles": false
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.23.1",
"projectname": "外卖",
"simulatorType": "wechat", "simulatorType": "wechat",
"simulatorPluginLibVersion": {}, "simulatorPluginLibVersion": {},
"editorSetting": { "editorSetting": {
"tabIndent": "insertSpaces", "tabIndent": "insertSpaces",
"tabSize": 2 "tabSize": 2
}, },
"appid": "wxcc745ea897810e52",
"condition": { "condition": {
"miniprogram": { "miniprogram": {
"list": [ "list": [
@ -136,5 +127,11 @@
} }
] ]
} }
} },
"libVersion": "2.23.1",
"packOptions": {
"ignore": [],
"include": []
},
"appid": "wxcc745ea897810e52"
} }

@ -42,7 +42,7 @@
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.16.1", "libVersion": "2.16.1",
"projectname": "jiaoliu", "projectname": "jiaoliu",
"appid": "wxa24127d0cf500819", "appid": "wxcc745ea897810e52",
"simulatorType": "wechat", "simulatorType": "wechat",
"simulatorPluginLibVersion": {}, "simulatorPluginLibVersion": {},
"condition": {}, "condition": {},

Loading…
Cancel
Save