Commit 36cd9086 by 张权

任何入口进去都是根据类型判断

1 parent 54f92596
...@@ -68,7 +68,7 @@ export default { ...@@ -68,7 +68,7 @@ export default {
imgUrl: titleUrl || imgUrl imgUrl: titleUrl || imgUrl
} }
if (entry != 'normal'){ // if (entry != 'normal'){
let pdfParam = { let pdfParam = {
msgtype: 'news', msgtype: 'news',
news: params, news: params,
...@@ -79,9 +79,9 @@ export default { ...@@ -79,9 +79,9 @@ export default {
}else{ }else{
this.getParam(i, { id, merchantId, uuid }) this.getParam(i, { id, merchantId, uuid })
} }
}else{ // }else{
this.shareAppMessage(params, { id, merchantId, uuid }) // this.shareAppMessage(params, { id, merchantId, uuid })
} // }
} }
}) })
}, },
......
...@@ -63,7 +63,8 @@ const actions = { ...@@ -63,7 +63,8 @@ const actions = {
ssoApi ssoApi
.login({ .login({
code, code,
corpId corpId,
getUserInfoFlag: false
}) })
.then(({ code, data, message }) => { .then(({ code, data, message }) => {
let route = state.lastPath == 'coupon' ? '' : state.lastPath || '' let route = state.lastPath == 'coupon' ? '' : state.lastPath || ''
...@@ -113,8 +114,8 @@ const actions = { ...@@ -113,8 +114,8 @@ const actions = {
} else { } else {
util.showLoading() util.showLoading()
let appid = getParams('corpId') //从链接获取 let appid = getParams('corpId') //从链接获取
let dj_scrm = util.getLocalStorage('dj_scrm_corpId') let dj_scrm = util.getLocalStorage('dj_scrm_corpId')
if (!appid) appid = (dj_scrm && dj_scrm.corpId) || 'ww7ee69c648ae1b7e6' if (!appid) appid = (dj_scrm && dj_scrm.corpId) || 'wwc33bc9a3c72d45f3'
util.setLocalStorage('dj_scrm_corpId', { corpId: appid }) util.setLocalStorage('dj_scrm_corpId', { corpId: appid })
// 'ww657a2d4ae89a4424' // 'ww657a2d4ae89a4424'
const wxUrl = 'https://open.weixin.qq.com/connect/oauth2/authorize' const wxUrl = 'https://open.weixin.qq.com/connect/oauth2/authorize'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!