|
@@ -65,7 +65,7 @@ import { mapActions } from "vuex";
|
|
|
import { getShopInfo} from "@/utils/auth";
|
|
import { getShopInfo} from "@/utils/auth";
|
|
|
import {appLogin} from '@/api/common'
|
|
import {appLogin} from '@/api/common'
|
|
|
import { getDictionaries,postWxCode } from '@/api/mini'
|
|
import { getDictionaries,postWxCode } from '@/api/mini'
|
|
|
-//import { replaceClientId } from '@/api/admin'
|
|
|
|
|
|
|
+import { replaceClientId } from '@/api/admin'
|
|
|
import { phoneLogin,wxMobileLogin } from "@/api/auth";
|
|
import { phoneLogin,wxMobileLogin } from "@/api/auth";
|
|
|
import { ghsInfo } from "@/api/ghs/index";
|
|
import { ghsInfo } from "@/api/ghs/index";
|
|
|
export default {
|
|
export default {
|
|
@@ -306,17 +306,15 @@ export default {
|
|
|
let prevPage = pages[ pages.length - 2 ];
|
|
let prevPage = pages[ pages.length - 2 ];
|
|
|
//修改上一页data里面的xjData
|
|
//修改上一页data里面的xjData
|
|
|
prevPage.$vm.backAction = 'login'
|
|
prevPage.$vm.backAction = 'login'
|
|
|
-
|
|
|
|
|
uni.navigateBack()
|
|
uni.navigateBack()
|
|
|
|
|
|
|
|
// #ifdef APP-PLUS
|
|
// #ifdef APP-PLUS
|
|
|
//保存安卓的clientId
|
|
//保存安卓的clientId
|
|
|
- let hasClientId = !that.$util.isEmpty(subRes.data.admin.clientId) ? subRes.data.admin.clientId : ''
|
|
|
|
|
const clientInfo = plus.push.getClientInfo()
|
|
const clientInfo = plus.push.getClientInfo()
|
|
|
let currentClientId = !that.$util.isEmpty(clientInfo.clientid) ? clientInfo.clientid : ''
|
|
let currentClientId = !that.$util.isEmpty(clientInfo.clientid) ? clientInfo.clientid : ''
|
|
|
- if(hasClientId == '' || hasClientId != currentClientId){
|
|
|
|
|
- //replaceClientId({id:currentClientId})
|
|
|
|
|
- console.log("clientId ---------- ", currentClientId)
|
|
|
|
|
|
|
+ if(currentClientId != ''){
|
|
|
|
|
+ replaceClientId({id:currentClientId, auto:0})
|
|
|
|
|
+ console.log("mobileLogin - clientId ---------- ", currentClientId)
|
|
|
}
|
|
}
|
|
|
// #endif
|
|
// #endif
|
|
|
}
|
|
}
|
|
@@ -400,16 +398,15 @@ export default {
|
|
|
let prevPage = pages[ pages.length - 2 ];
|
|
let prevPage = pages[ pages.length - 2 ];
|
|
|
//修改上一页data里面的xjData
|
|
//修改上一页data里面的xjData
|
|
|
prevPage.$vm.backAction = 'login'
|
|
prevPage.$vm.backAction = 'login'
|
|
|
-
|
|
|
|
|
uni.navigateBack()
|
|
uni.navigateBack()
|
|
|
|
|
+
|
|
|
// #ifdef APP-PLUS
|
|
// #ifdef APP-PLUS
|
|
|
//保存安卓的clientId
|
|
//保存安卓的clientId
|
|
|
- let hasClientId = !that.$util.isEmpty(subRes.data.admin.clientId) ? subRes.data.admin.clientId : ''
|
|
|
|
|
const clientInfo = plus.push.getClientInfo()
|
|
const clientInfo = plus.push.getClientInfo()
|
|
|
let currentClientId = !that.$util.isEmpty(clientInfo.clientid) ? clientInfo.clientid : ''
|
|
let currentClientId = !that.$util.isEmpty(clientInfo.clientid) ? clientInfo.clientid : ''
|
|
|
- if(hasClientId == '' || hasClientId != currentClientId){
|
|
|
|
|
- //replaceClientId({id:currentClientId})
|
|
|
|
|
- console.log("clientId ---------- ", currentClientId)
|
|
|
|
|
|
|
+ if(currentClientId != ''){
|
|
|
|
|
+ replaceClientId({id:currentClientId, auto:0})
|
|
|
|
|
+ console.log("loginFun - clientId ---------- ", currentClientId)
|
|
|
}
|
|
}
|
|
|
// #endif
|
|
// #endif
|
|
|
}
|
|
}
|