diff --git a/ext.json b/ext.json index bd289e8..d547379 100644 --- a/ext.json +++ b/ext.json @@ -1,21 +1,23 @@ { "ext": { "attr": { - "configUrl": "https://ctest.malls.iformall.com/C/api" + "configUrl": "https://c.malls.iformall.com/C/api" }, - "name": "富茂券券集团版", - "weappId": "tt620e14b3fd30264101" + "name": "吾悦广场", + "weappId": "tt48a23e1fd79d648801" }, "window": { "backgroundTextStyle": "light", "navigationBarTextStyle": "black", + "navigationBarTitleText": "Mini Program", "navigationBarBackgroundColor": "#fff" }, - "extAppid": "tt620e14b3fd30264101", + "extAppid": "tt48a23e1fd79d648801", "extEnable": true, "directCommit": false, "networkTimeout": { "request": 30000, "downloadFile": 10000 - } + }, + "requiredPrivateInfos": ["chooseLocation", "getLocation"] } \ No newline at end of file diff --git a/index/index.js b/index/index.js index 3f51a79..ab3a2a0 100644 --- a/index/index.js +++ b/index/index.js @@ -612,6 +612,7 @@ Page({ * 生命周期函数--监听页面初次渲染完成 */ onLoad: function (options) { + console.log(options, 'options'); let that = this; let optionss; @@ -1024,7 +1025,7 @@ Page({ that.getType() that.uesrInfo() - // that.getLocation(); + that.getMallInfo(app.globalData.token); if (app.couponChannelListCallback) { @@ -1098,7 +1099,8 @@ Page({ that.getCouponChannelList(0) that.getType() that.uesrInfo() - // that.getLocation(); + + that.getMallInfo(app.globalData.token); if (app.couponChannelListCallback) { app.couponChannelListCallback(app.globalData.token); diff --git a/project.config.json b/project.config.json index 7c64a33..461d295 100644 --- a/project.config.json +++ b/project.config.json @@ -1,88 +1,88 @@ { - "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": 1679474738627, - "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": 1676971480642, - "name": "pages/liveLsit/liveLsit", - "pathName": "pages/liveLsit/liveLsit", - "query": "tenantId=1032", - "scene": "990001", - "launchFrom": "scan", - "location": "qr_code" - }, - { - "id": 1678330099779, - "name": " index/index(scanIn)", - "pathName": "index/index", - "query": "type=in&tenantId=1032", - "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" - }, - { - "id": 1679474738627, - "name": "detail", - "pathName": "pages/coupon/detail/index", - "query": "type=cd&couponChannelId=792625127019700224&tenantId=1033", - "scene": "027005", - "launchFrom": "live", - "location": "live_cart_card" + "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": 1676971480642, + "name": "pages/liveLsit/liveLsit", + "pathName": "pages/liveLsit/liveLsit", + "query": "tenantId=1032", + "scene": "990001", + "launchFrom": "scan", + "location": "qr_code" + }, + { + "id": 1678330099779, + "name": " index/index(scanIn)", + "pathName": "index/index", + "query": "type=in&tenantId=1032", + "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" + }, + { + "id": 1679474738627, + "name": "detail", + "pathName": "pages/coupon/detail/index", + "query": "type=cd&couponChannelId=792625127019700224&tenantId=1033", + "scene": "027005", + "launchFrom": "live", + "location": "live_cart_card" + } + ] } - ] } - } }