瀏覽代碼

去除默认配置文件houseid

zjs_project 1 年之前
父節點
當前提交
01043851d3
共有 3 個文件被更改,包括 6 次插入6 次删除
  1. 2 2
      src/App.vue
  2. 1 1
      src/pages/webgl_rxdz_customize/webgl_rxdz_customize.vue
  3. 3 3
      src/utils/util.js

+ 2 - 2
src/App.vue

@@ -46,7 +46,7 @@
 		created() {
 			let userInfo = getStorage('userInfo') ? JSON.parse(getStorage('userInfo')) : null;
 			let userId = this.$route.query.leavePhoneCustomerId ? this.$route.query.leavePhoneCustomerId : (userInfo?userInfo.userId:'');
-			let xcxHouseId = this.$route.query.xcxHouseId ? this.$route.query.xcxHouseId : (this.$route.query.houseId || $config.xcxHouseId);
+			let xcxHouseId = this.$route.query.xcxHouseId ? this.$route.query.xcxHouseId : (this.$route.query.houseId || '');
 			let query = this.$route.query;
 			let brandId = this.$route.query.brandId || this.$route.query.special_ID;
 			if (brandId) { //如果存在集团id
@@ -110,7 +110,7 @@
 		},
 		methods: {
 			async webLogin(){
-				let xcxHouseId = this.$route.query.xcxHouseId ? this.$route.query.xcxHouseId : (this.$route.query.houseId || $config.xcxHouseId);
+				let xcxHouseId = this.$route.query.xcxHouseId ? this.$route.query.xcxHouseId : (this.$route.query.houseId || '');
 				let param = {
 				    "terminal": 7,
 				    "brandId": $config.brandId,

+ 1 - 1
src/pages/webgl_rxdz_customize/webgl_rxdz_customize.vue

@@ -105,7 +105,7 @@ export default {
 		},
 		optionChange(){
 			if(window.__wxjs_environment === 'miniprogram'){
-				wx.miniProgram.redirectTo({url: '/pages/index/index?houseId='+$config.xcxHouseId})
+				wx.miniProgram.redirectTo({url: '/pages/index/index?houseId='+this.houseId})
 			}else{
 				this.$message.warning("敬请期待");
 			}

+ 3 - 3
src/utils/util.js

@@ -176,11 +176,11 @@ function initPage(){
     return {
         session: urlObj.session || '',
         // 项目id,默认仙女山项目
-        houseId: urlObj.xcxHouseId || '',
+        houseId: urlObj.xcxHouseId || urlObj.houseId || '',
         userId: userId || '',
         openId: urlObj.openid || (userInfo ? userInfo.openId : ''),
         brandId: brandId || '',
-        product: urlObj.xcxHouseId || '',
+        product: urlObj.xcxHouseId || urlObj.houseId || '',
         fromPlatform: urlObj.fromProduce || '',
         platform: urlObj.platform || '',
         scene: urlObj.scene1 || '',
@@ -506,7 +506,7 @@ var util = {
 				createTime: this.formatTime(new Date()),
 				uploadTime: this.formatTime(new Date()),
 				product: 'h5', //iframeUrl代表是顾问分享的外链
-				project: para.project || urlObj.xcxHouseId || $config.xcxHouseId || '',
+				project: para.project || urlObj.xcxHouseId || urlObj.houseId || '',
 				brandId: brandId,
 				expand: JSON.stringify(urlObj), //扩展字段
 				imTalkId: para.imTalkId || '', //IM对话编号