Commit fec32546 authored by geruidan's avatar geruidan

选择企业

parent 11eba3ac
......@@ -10,8 +10,8 @@ export const IMG_URL = 'http://file.shopro.top' //全局网络图片地址变量
export const MAP_KEY = '426ebc3f1bbaced***89ee6061a98'; //高德地图开发者Web服务key,逆坐标解析
export const HAS_LIVE = false //后台是否开通直播权限,根据情况在manifest.json中,开启注释相应组件的引入,pages.json中打开直播
// http://172.18.1.66:9001/api/a1/mall/homePage/mp?code={前端传入的code}
export const MALL_ID ="133507311100590";
export const COMPANY_ID ="";
export const MALL_ID ="150076611100683";
export const COMPANY_ID ="2023053101";
......
......@@ -54,9 +54,9 @@
"quickapp" : {},
/* 小程序特有相关 */
"mp-weixin" : {
"appid" : "wx60c6530c49c52ff7",
"appid" : "wxb46902f9572bfa50",
"setting" : {
"urlCheck" : false,
"urlCheck" : true,
"minified" : false,
"es6" : false,
"postcss" : true
......
......@@ -152,11 +152,11 @@
"condition" : { //模式配置,仅开发期间生效
"current": 0, //当前激活的模式(list 的索引项)
"list": [
{
"name": "defalutScreen", //模式名称
"path": "pages/index/defalutScreen", //启动页面,必选
"query": "companyId=999999998"
}
// {
// "name": "defalutScreen", //模式名称
// "path": "pages/index/defalutScreen", //启动页面,必选
// "query": "companyId=999999998"
// }
// {
// "name": "register", //模式名称
// "path": "pages/user/register/index", //启动页面,必选
......
......@@ -27,6 +27,9 @@
import {
defalutBg
} from "@/shopro/utils/config.js";
import {
COMPANY_ID
} from "@/env";
import {
mapActions,
mapGetters
......@@ -169,12 +172,15 @@
},
onReady() {
wx.clearStorage();
if(COMPANY_ID){ //配置了COMPANY_ID用COMPANY_ID 。否则用router上的COMPANY_ID
this.companyId = COMPANY_ID
}
if(this.$Route.query.companyId){
this.companyId = this.$Route.query.companyId
}else{
}
if(!COMPANY_ID && !this.$Route.query.companyId){
this.companyId = ""
}
console.log(this.companyId);
uni.setStorageSync("companyId",this.companyId )
this.getAuth();
},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment