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,24 +31,44 @@ 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({
redirectUrl : window.location.href, appid: result.prepayWxApp.prepayAppId,
scope : 'snsapi_base' redirectUrl : window.location.href,
}).then(({result, error}) => { scope : 'snsapi_base'
if(error){ }).then(({result, error}) => {
// uni.$u.toast(error.message); if(error){
uni.showToast({ // uni.$u.toast(error.message);
title: error.message, uni.showToast({
icon: 'none', title: error.message,
duration : 2000 icon: 'none',
}) duration : 2000
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