diff --git a/scr/miniprogram-2/model/good.js b/scr/miniprogram-2/model/good.js index e9073b5..e42874b 100644 --- a/scr/miniprogram-2/model/good.js +++ b/scr/miniprogram-2/model/good.js @@ -31,37 +31,37 @@ const allGoods = [{ ], specList: [{ specId: '10011', - title: '颜色', + title: '温度', specValueList: [{ specValueId: '10012', specId: null, saasId: null, - specValue: '米色荷叶边', + specValue: '冰', image: null, }, ], }, { specId: '10013', - title: '尺码', + title: '甜度', specValueList: [{ specValueId: '11014', specId: null, saasId: null, - specValue: 'S', + specValue: '三分糖', image: null, }, { specValueId: '10014', specId: null, saasId: null, - specValue: 'M', + specValue: '五分糖', image: null, }, { specValueId: '11013', specId: null, saasId: null, - specValue: 'L', + specValue: '七分糖', image: null, }, ], @@ -108,7 +108,7 @@ const allGoods = [{ }, { skuId: '135676632', - skuImage: 'https://cdn-we-retail.ym.tencent.com/tsr/goods/nz-09a.png', + skuImage: '/images/food/hushangayi3.jpg', specInfo: [{ specId: '10011', specTitle: null, @@ -147,7 +147,7 @@ const allGoods = [{ }, { skuId: '135681631', - skuImage: 'https://cdn-we-retail.ym.tencent.com/tsr/goods/nz-09a.png', + skuImage: '/images/food/hushangayi2.jpg', specInfo: [{ specId: '10011', specTitle: null, @@ -194,8 +194,8 @@ const allGoods = [{ text: '限购5件', }, ], desc: [ - 'https://cdn-we-retail.ym.tencent.com/tsr/goods/nz-09c.png', - 'https://cdn-we-retail.ym.tencent.com/tsr/goods/nz-09d.png', + '/images/food/hushangayi2.jpg', + '/images/food/hushangayi2.jpg', ], etitle: '', }, @@ -203,15 +203,15 @@ const allGoods = [{ saasId: '88888888', storeId: '1000', spuId: '135686633', - title: '纯色纯棉休闲圆领短袖T恤纯白亲肤厚柔软细腻面料纯白短袖套头T恤', - primaryImage: 'https://cdn-we-retail.ym.tencent.com/tsr/goods/nz-08b.png', + title: '上海婶子多肉葡萄(中国民航大学店)', + primaryImage: '/images/food/hushangayi2.jpg', minSalePrice: '25900', minLinePrice: '31900', maxSalePrice: '26900', maxLinePrice: '31900', isSoldOut: false, 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-08b.png', ], diff --git a/scr/miniprogram-2/pages/home/home.js b/scr/miniprogram-2/pages/home/home.js index 9538e47..303c60a 100644 --- a/scr/miniprogram-2/pages/home/home.js +++ b/scr/miniprogram-2/pages/home/home.js @@ -5,7 +5,7 @@ import { fetchGoodsList } from '../../services/good/fetchGoods'; import Toast from 'tdesign-miniprogram/toast/index'; - +const db=wx.cloud.database(); Page({ data: { imgSrcs: [], @@ -61,7 +61,7 @@ Page({ pageLoading: true, }); fetchHome().then(({ - swiper, + tabList }) => { this.setData({ diff --git a/scr/miniprogram-2/project.config.json b/scr/miniprogram-2/project.config.json index 215bb1d..8f024e9 100644 --- a/scr/miniprogram-2/project.config.json +++ b/scr/miniprogram-2/project.config.json @@ -1,9 +1,5 @@ { "description": "项目配置文件,详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", - "packOptions": { - "ignore": [], - "include": [] - }, "setting": { "urlCheck": true, "es6": true, @@ -24,8 +20,6 @@ "compileHotReLoad": true, "lazyloadPlaceholderEnable": false, "useMultiFrameRuntime": true, - "useApiHook": true, - "useApiHostProcess": true, "babelSetting": { "ignore": [], "disablePlugins": [], @@ -44,15 +38,12 @@ "ignoreDevUnusedFiles": false }, "compileType": "miniprogram", - "libVersion": "2.23.1", - "projectname": "外卖", "simulatorType": "wechat", "simulatorPluginLibVersion": {}, "editorSetting": { "tabIndent": "insertSpaces", "tabSize": 2 }, - "appid": "wxcc745ea897810e52", "condition": { "miniprogram": { "list": [ @@ -136,5 +127,11 @@ } ] } - } + }, + "libVersion": "2.23.1", + "packOptions": { + "ignore": [], + "include": [] + }, + "appid": "wxcc745ea897810e52" } \ No newline at end of file diff --git a/scr/论坛/project.config.json b/scr/论坛/project.config.json index b946e87..ac8c460 100644 --- a/scr/论坛/project.config.json +++ b/scr/论坛/project.config.json @@ -42,7 +42,7 @@ "compileType": "miniprogram", "libVersion": "2.16.1", "projectname": "jiaoliu", - "appid": "wxa24127d0cf500819", + "appid": "wxcc745ea897810e52", "simulatorType": "wechat", "simulatorPluginLibVersion": {}, "condition": {},