msb_prod
ch 3 years ago
parent bac7dae7c7
commit 3636fc2958

@ -2,7 +2,7 @@
* @Author: ch * @Author: ch
* @Date: 2022-07-08 11:46:30 * @Date: 2022-07-08 11:46:30
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-07-09 18:18:11 * @LastEditTime: 2022-07-12 10:47:34
* @Description: file content * @Description: file content
*/ */
@ -31,9 +31,10 @@ if (ua.includes('micromessenger')) {
store.commit('SET_OPEN_ID', result.openId); store.commit('SET_OPEN_ID', result.openId);
}) })
} else { } else {
ApiGetOrderInfo({ payOrderNo: query.payOrderNo }).then(({result}) => {
ApiGetOpenId({ payOrderNo: query.payOrderNo }).then(res => {
ApiGetAuthUrl({ ApiGetAuthUrl({
appid: result.prepayWxApp.prepayAppId,
redirectUrl : window.location.href, redirectUrl : window.location.href,
scope : 'snsapi_base' scope : 'snsapi_base'
}).then(({result, error}) => { }).then(({result, error}) => {
@ -47,8 +48,27 @@ if (ua.includes('micromessenger')) {
return false; return false;
} }
window.location.replace(result); 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