diff --git a/app.js b/app.js index 9c5b074..75b2ace 100644 --- a/app.js +++ b/app.js @@ -2,10 +2,12 @@ let config = require("./config/config.js"); const { defaultObj, huanLeChengObj } = require("./utils/mouldStyle.js") const Http = require("./utils/HttpBasics"); const extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : {} -//无商圈注释 -var myPluginInterface = requirePlugin('auto-points-plugin') let businessSwitch = extConfig.attr.businessSwitch ? extConfig.attr.businessSwitch : false + +if (businessSwitch) { + var myPluginInterface = requirePlugin('auto-points-plugin') +} App({ data: { newArr: [], //存放分享二维进入消息信息 diff --git a/ext.json b/ext.json index af9aa49..dcaba26 100644 --- a/ext.json +++ b/ext.json @@ -17,7 +17,7 @@ }, "version": "release" }, - "mchId": "1604439800", + "mchId": "1539123951", "imgProxy": [ { "newUrl": "https://c.malls.iformall.com/img", @@ -34,12 +34,11 @@ ], "configUrl": "https://c.malls.iformall.com/C/api", "ifStoreApp": "0", - "businessSwitch": "1", "ifHaveWebSocket": "0", - "ifHaveCarModular": "0" + "ifHaveCarModular": "1" }, - "name": "富茂链客生产版", - "weappId": "wx6a2524a8286d687f", + "name": "欢乐城万象金街", + "weappId": "wxde54451891094c16", "appVersion": "C.5.1.1" }, "debug": false, @@ -85,16 +84,12 @@ "navigationBarBackgroundColor": "#FFFFFF" }, "plugins": { - "auto-points-plugin": { - "version": "1.3.0", - "provider": "wxfab2bf944bfc4da6" - }, "live-player-plugin": { - "version": "1.3.5", + "version": "1.3.4", "provider": "wx2b03c6e691cd7370" } }, - "extAppid": "wx6a2524a8286d687f", + "extAppid": "wxde54451891094c16", "extEnable": true, "permission": { "scope.userLocation": { diff --git a/pages/theme/index1/index.js b/pages/theme/index1/index.js index f616e3a..87d3329 100644 --- a/pages/theme/index1/index.js +++ b/pages/theme/index1/index.js @@ -1,12 +1,13 @@ const extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : {} console.log(extConfig, 'extConfig'); let ifStoreApp = extConfig.attr.ifStoreApp; +let businessSwitch = 1 * extConfig.attr.businessSwitch ? extConfig.attr.businessSwitch : false -// 无商圈注释 -const myPluginInterface = requirePlugin('auto-points-plugin') -let businessVersion = 1 * extConfig.attr.businessVersion +if (businessSwitch) { + var myPluginInterface = requirePlugin('auto-points-plugin') + var businessVersion = 1 * extConfig.attr.businessVersion +} -let businessSwitch = 1 * extConfig.attr.businessSwitch ? extConfig.attr.businessSwitch : false let mch_id = extConfig.attr.mchId const navigationBarHeight = (getApp().statusBarHeight + 44) + "px" const Http = require("../../../utils/HttpBasics"); diff --git a/pages/theme/index1/index.wxml b/pages/theme/index1/index.wxml index ff64681..91b794d 100644 --- a/pages/theme/index1/index.wxml +++ b/pages/theme/index1/index.wxml @@ -135,5 +135,4 @@ - \ No newline at end of file