diff --git a/ext.json b/ext.json index bd289e8..8010055 100644 --- a/ext.json +++ b/ext.json @@ -1,17 +1,17 @@ { "ext": { "attr": { - "configUrl": "https://ctest.malls.iformall.com/C/api" + "configUrl": "https://c.malls.iformall.com/C/api" }, - "name": "富茂券券集团版", - "weappId": "tt620e14b3fd30264101" + "name": "家帮汇保姆育儿嫂", + "weappId": "ttc82fbe92571351e401" }, "window": { "backgroundTextStyle": "light", "navigationBarTextStyle": "black", "navigationBarBackgroundColor": "#fff" }, - "extAppid": "tt620e14b3fd30264101", + "extAppid": "ttc82fbe92571351e401", "extEnable": true, "directCommit": false, "networkTimeout": { diff --git a/index/index.js b/index/index.js index f745505..d47ba01 100644 --- a/index/index.js +++ b/index/index.js @@ -148,6 +148,12 @@ Page({ Http.get({ url: '/mall/subMall?isAll=1', }).then(res => { + if (res.data || res.data.length == 0) { + console.log('noMall!'); + if (tt.getStorageSync('mallTenantId')) { + tt.removeStorageSync('mallTenantId'); + } + } tt.setStorageSync('shopList', JSON.stringify(res.data)); diff --git a/project.config.json b/project.config.json index 62f42c8..9eb5c8a 100644 --- a/project.config.json +++ b/project.config.json @@ -1,70 +1,70 @@ { - "setting": { - "urlCheck": false, - "es6": true, - "newFeature": false, - "postcss": false, - "mockUpdate": true, - "minified": false, - "autoPush": false, - "scripts": false, - "mockLogin": false, - "autoCompile": true, - "localPlugins": false, - "IDEPreviewHotRestartCache": false - }, - "appid": "ttde7ca8c141425a2301", - "projectname": "tt富茂C", - "condition": { - "miniprogram": { - "current": -1, - "list": [ - { - "id": 1678508631604, - "name": "pages/main/index", - "pathName": "pages/main/index", - "query": "type=uc&tenantId=1033", - "scene": "990001", - "launchFrom": "scan", - "location": "qr_code" - }, - { - "id": 1678428610317, - "name": "index/index", - "pathName": "pages/main/index", - "query": "type=scanIn&tenantId=1034", - "scene": "990001", - "launchFrom": "scan", - "location": "qr_code" - }, - { - "id": 1678330099779, - "name": "scanIn", - "pathName": "pages/main/index", - "query": "scene=t:scanInAu:1034", - "scene": "990001", - "launchFrom": "scan", - "location": "qr_code" - }, - { - "id": 1678687102364, - "name": "奥尔良鸡腿(昌东)", - "pathName": "pages/main/index", - "query": "type=cd&couponChannelId=790733288312070144&tenantId=1032", - "scene": "990001", - "launchFrom": "scan", - "location": "qr_code" - }, - { - "id": 1679365133968, - "name": "爽口酸萝卜一份(昌西)", - "pathName": "pages/main/index", - "query": "type=cd&couponChannelId=792625127019700224&tenantId=1033", - "scene": "990001", - "launchFrom": "scan", - "location": "qr_code" + "setting": { + "urlCheck": false, + "es6": true, + "newFeature": false, + "postcss": false, + "mockUpdate": true, + "minified": false, + "autoPush": false, + "scripts": false, + "mockLogin": false, + "autoCompile": true, + "localPlugins": false, + "IDEPreviewHotRestartCache": false + }, + "appid": "ttde7ca8c141425a2301", + "projectname": "tt富茂C", + "condition": { + "miniprogram": { + "current": -1, + "list": [ + { + "id": 1678508631604, + "name": "pages/main/index", + "pathName": "pages/main/index", + "query": "type=uc&tenantId=1033", + "scene": "990001", + "launchFrom": "scan", + "location": "qr_code" + }, + { + "id": 1678428610317, + "name": "index/index", + "pathName": "pages/main/index", + "query": "type=scanIn&tenantId=1034", + "scene": "990001", + "launchFrom": "scan", + "location": "qr_code" + }, + { + "id": 1678330099779, + "name": "scanIn", + "pathName": "pages/main/index", + "query": "scene=t:scanInAu:1034", + "scene": "990001", + "launchFrom": "scan", + "location": "qr_code" + }, + { + "id": 1678687102364, + "name": "奥尔良鸡腿(昌东)", + "pathName": "pages/main/index", + "query": "type=cd&couponChannelId=790733288312070144&tenantId=1032", + "scene": "990001", + "launchFrom": "scan", + "location": "qr_code" + }, + { + "id": 1679365133968, + "name": "爽口酸萝卜一份(昌西)", + "pathName": "pages/main/index", + "query": "type=cd&couponChannelId=792625127019700224&tenantId=1033", + "scene": "990001", + "launchFrom": "scan", + "location": "qr_code" + } + ] } - ] } - } }