Commit b2748c21 by 王志慧

fixed

1 parent 66390eb8
......@@ -38,7 +38,8 @@ export async function bootstrap({history, common, messenger, globalState, router
secret,
sign_common,
request_common,
request_merchant
request_merchant,
merchantId
} = await fetchConfig(false)
Vue.prototype.$history = history
Vue.prototype.$messenger = messenger
......@@ -46,6 +47,7 @@ export async function bootstrap({history, common, messenger, globalState, router
Vue.prototype.$common = common
Vue.prototype.$message = message
Vue.prototype.$messageBox = messageBox
Vue.prototype.$hmdMerchantId = merchantId
// 集团版集团账号
Vue.prototype.$isGroupUp = globalState.session.accountLevel != 4
Vue.prototype.$http = new common.Http({
......
......@@ -531,6 +531,14 @@ export default {
return `请输入领取${this.receiveWay == 1 ? '手机号' : '车架号后6位'},多个${this.receiveWay == 1 ? '手机号' : '车架号'}以换行符隔开`
}
},
created() {
if (window.__POWERED_BY_QIANKUN__) {
//运行在qiankun容器中
this.merchantId = this.$globalState.session.merchantId
}
// 判断是否是海马刀
this.isHmd = this.merchantId == this.$hmdMerchantId
},
mounted() {
this.setMinHeight()
this.getGroupGift()
......
......@@ -213,7 +213,7 @@ export default {
searchForm: {
userInfo: '',
status: '',
merchantName: '',
memberType: '',
activeType: '',
......@@ -425,6 +425,8 @@ export default {
}
// 取消判断
this.showGh = window.location.host.indexOf('cgacar') != -1
// 判断是否是海马刀
this.isHmd = this.merchantId == this.$hmdMerchantId
if (this.showGh) this.judgeGh()
if (this.isHmd) this.addMemberTypeList()
this.getCardContentFun()
......@@ -601,12 +603,10 @@ export default {
dictLabel: '银卡会员'
}
)
this.baseData.openModeList.push(
{
dictValue: 17,
dictLabel: '通过礼包赠送'
}
)
this.baseData.openModeList.push({
dictValue: 17,
dictLabel: '通过礼包赠送'
})
},
getCardContentFun() {
if (this.isHmd) {
......
......@@ -250,6 +250,8 @@ export default {
this.merchantName = this.$globalState.session.merchantName
this.accountLevel = this.$globalState.session.accountLevel
}
// 判断是否是海马刀
this.isHmd = this.merchantId == this.$hmdMerchantId
this.showGh = window.location.host.indexOf('cgacar') != -1
if (this.showGh) {
this.getCardContentFun()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!