msb_prod
ch 2 years ago
parent bac7dae7c7
commit 3636fc2958

@ -2,7 +2,7 @@
* @Author: ch
* @Date: 2022-07-08 11:46:30
* @LastEditors: ch
* @LastEditTime: 2022-07-09 18:18:11
* @LastEditTime: 2022-07-12 10:47:34
* @Description: file content
*/
@ -31,24 +31,44 @@ if (ua.includes('micromessenger')) {
store.commit('SET_OPEN_ID', result.openId);
})
} else {
ApiGetOpenId({ payOrderNo: query.payOrderNo }).then(res => {
ApiGetAuthUrl({
redirectUrl : window.location.href,
scope : 'snsapi_base'
}).then(({result, error}) => {
if(error){
// uni.$u.toast(error.message);
uni.showToast({
title: error.message,
icon: 'none',
duration : 2000
})
return false;
}
window.location.replace(result);
ApiGetOrderInfo({ payOrderNo: query.payOrderNo }).then(({result}) => {
ApiGetAuthUrl({
appid: result.prepayWxApp.prepayAppId,
redirectUrl : window.location.href,
scope : 'snsapi_base'
}).then(({result, error}) => {
if(error){
// uni.$u.toast(error.message);
uni.showToast({
title: error.message,
icon: 'none',
duration : 2000
})
return false;
}
window.location.replace(result);
});
})
});
// ApiGetOpenId({ payOrderNo: query.payOrderNo }).then(res => {
// ApiGetAuthUrl({
// redirectUrl : window.location.href,
// scope : 'snsapi_base'
// }).then(({result, error}) => {
// if(error){
// // uni.$u.toast(error.message);
// uni.showToast({
// title: error.message,
// icon: 'none',
// duration : 2000
// })
// return false;
// }
// window.location.replace(result);
// })
// });
}
}

Loading…
Cancel
Save