不采用一步授权
This commit is contained in:
parent
50fefbc1c0
commit
8e6454475c
@ -453,6 +453,9 @@ const activityBtn = (item) => {
|
|||||||
console.log("牛牛杯");
|
console.log("牛牛杯");
|
||||||
window.location.href =
|
window.location.href =
|
||||||
"https://appstatic.cmschina.com/activity/cmszhyxpt/bees/index.html?id=INT_SMKTC_uD5KUL2d";
|
"https://appstatic.cmschina.com/activity/cmszhyxpt/bees/index.html?id=INT_SMKTC_uD5KUL2d";
|
||||||
|
// setTimeout(()=>{
|
||||||
|
// location.replace(location.href)
|
||||||
|
// },1000)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item.id == 5) {
|
if (item.id == 5) {
|
||||||
|
|||||||
@ -211,24 +211,25 @@ onBeforeMount(() => {
|
|||||||
if (h5plugin.isWX()) {
|
if (h5plugin.isWX()) {
|
||||||
// console.log("code:", h5plugin.getQueryString("code"));
|
// console.log("code:", h5plugin.getQueryString("code"));
|
||||||
|
|
||||||
// if (h5plugin.getQueryString("code")) {
|
if (h5plugin.getQueryString("code")) {
|
||||||
// // 存在code的话去换取openid
|
// 存在code的话去换取openid
|
||||||
// authCode.value = h5plugin.getQueryString("code");
|
authCode.value = h5plugin.getQueryString("code");
|
||||||
// getOpenId(authCode.value);
|
getOpenId(authCode.value);
|
||||||
// } else {
|
|
||||||
// getCode();
|
|
||||||
// }
|
|
||||||
|
|
||||||
|
|
||||||
if(h5plugin.getQueryString("openid")){
|
|
||||||
console.log("存在openid");
|
|
||||||
apiAll();
|
|
||||||
} else {
|
} else {
|
||||||
console.log("不存在openid");
|
getCode();
|
||||||
getCode2();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 一步授权
|
||||||
|
// if(h5plugin.getQueryString("openid")){
|
||||||
|
// console.log("存在openid");
|
||||||
|
// apiAll();
|
||||||
|
// }else{
|
||||||
|
// console.log("不存在openid");
|
||||||
|
// getCode2();
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -8,7 +8,8 @@ export default createStore({
|
|||||||
state: {
|
state: {
|
||||||
userAccount: {
|
userAccount: {
|
||||||
// xglOpenId: 'o9B_fvjtyh2KELQYc2t9A3MEh7JQ', //用户openid
|
// xglOpenId: 'o9B_fvjtyh2KELQYc2t9A3MEh7JQ', //用户openid
|
||||||
xglOpenId: h5plugin.getQueryString('openid'), //用户openid
|
xglOpenId: '', //用户openid
|
||||||
|
// xglOpenId: h5plugin.getQueryString('openid'), //用户openid
|
||||||
token: h5plugin.getQueryString('token'), //用户token
|
token: h5plugin.getQueryString('token'), //用户token
|
||||||
cardId: h5plugin.getQueryString('cardId'), //carid
|
cardId: h5plugin.getQueryString('cardId'), //carid
|
||||||
nkh: '', //牛卡号
|
nkh: '', //牛卡号
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user