Commit b2f198c4 by 李长胜

Merge branch 'master' of http://192.168.3.233:8090/h5/account

2 parents eb4c04d1 9a37a2ba
...@@ -815,38 +815,40 @@ ...@@ -815,38 +815,40 @@
}) })
} }
// 功能点按需出现 // SCRM系统 搜索加按钮
function elRemove() { function glBtn() {
$('#operateEl').remove() $('#operateEl').remove()
$('#channelBox').remove() $('#channelBox').remove()
if (accountInfo.model == 2 && accountInfo.merchantAccountLevel == 1) { if (accountInfo.model == 1 && accountInfo.merchantAccountLevel == 1) {
$('#relevancyEl').removeClass('hide')
$('#relevancyEl').addClass('show') $('#relevancyEl').addClass('show')
} }
$('#relevancySearch').addClass('show') $('#relevancySearch').addClass('show')
$('#model').remove() $('#model').remove()
} }
// SCRM系统 搜索加按钮 // gl功能点
function hideSearch() { function scrmBtn() {
// $('#channelBox').remove() // $('#channelBox').remove()
$('#operateEl').addClass('show') $('#operateEl').addClass('show')
$('#channelBox').addClass('show') $('#channelBox').addClass('show')
$('#relevancyEl').remove() // $('#relevancyEl').remove()
$('#relevancySearch').remove() $('#relevancySearch').remove()
$('#model').addClass('show') $('#model').addClass('show')
} }
// 运营平台 // 运营平台
function init() { function init() {
// 运营系统
switch (window.isDxternal) { switch (window.isDxternal) {
// scrm 系统
case 1: case 1:
elRemove() glBtn()
break break
// 广联运营系统
default: default:
getChannel() getChannel()
getModel() getModel()
hideSearch() scrmBtn()
} }
// if (!isDxternal) { // if (!isDxternal) {
// getChannel() // getChannel()
......
...@@ -47,7 +47,7 @@ function loadHeaderFooter() { ...@@ -47,7 +47,7 @@ function loadHeaderFooter() {
store.set('accountInfo', { store.set('accountInfo', {
merchantAccountLevel: qs('accountLevel'), merchantAccountLevel: qs('accountLevel'),
merchantId: qs('merchantId'), merchantId: qs('merchantId'),
model: qs('model') model: qs('merchantModel') || 1
}) })
store.set('token', qs('sessionId')) store.set('token', qs('sessionId'))
} else { } else {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!