Commit 2247906d by 李嘉林

换位置

parent d6e3c4c4
...@@ -923,6 +923,24 @@ export default { ...@@ -923,6 +923,24 @@ export default {
.then(res => { .then(res => {
wx.hideLoading(); wx.hideLoading();
if (res.data.code == 200) { if (res.data.code == 200) {
let login = () => {
_this.sessionId = res.data.data.sessionId || '';
_this.backParams += `&sessionid=${
res.data.data.sessionId
}&needCertified=${res.data.data.NEED_CERTIFIED}`;
_this.NEED_CERTIFIED = res.data.data.NEED_CERTIFIED;
console.log(_this.mpApp.globalData.shopInfo,"------------------_this.mpApp.globalData.shopInfo")
if(_this.whetherOpenEnterprisesWantGoods == 1 && res.data.data.masterAccount && res.data.data.masterAccount.length>0){
_this.selectEnterpriseAccountOpenType = 0;
_this.$refs.SelectEnterpriseAccount.open(res.data.data.masterAccount);
} else {
wx.setStorage({
key: "sessionid",
data: res.data.data.sessionId
});
_this.pushPageType();
}
}
if (res.data.data.isCommonlyUsedLocationLogin == 'false') { if (res.data.data.isCommonlyUsedLocationLogin == 'false') {
wx.showModal({ wx.showModal({
content: `当前账号处于非常用地`, content: `当前账号处于非常用地`,
...@@ -944,24 +962,6 @@ export default { ...@@ -944,24 +962,6 @@ export default {
} else { } else {
login(); login();
} }
let login = () => {
_this.sessionId = res.data.data.sessionId || '';
_this.backParams += `&sessionid=${
res.data.data.sessionId
}&needCertified=${res.data.data.NEED_CERTIFIED}`;
_this.NEED_CERTIFIED = res.data.data.NEED_CERTIFIED;
console.log(_this.mpApp.globalData.shopInfo,"------------------_this.mpApp.globalData.shopInfo")
if(_this.whetherOpenEnterprisesWantGoods == 1 && res.data.data.masterAccount && res.data.data.masterAccount.length>0){
_this.selectEnterpriseAccountOpenType = 0;
_this.$refs.SelectEnterpriseAccount.open(res.data.data.masterAccount);
} else {
wx.setStorage({
key: "sessionid",
data: res.data.data.sessionId
});
_this.pushPageType();
}
}
} else { } else {
wx.showToast({title: res.data.msg, icon: "none"}) wx.showToast({title: res.data.msg, icon: "none"})
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment