Commit b2748c21 by 王志慧

fixed

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