msb_prod
ch 3 years ago
parent b2bdc38c30
commit fa53e0f058

@ -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-12 10:55:29 * @LastEditTime: 2022-07-12 10:57:40
* @Description: file content * @Description: file content
*/ */
@ -17,7 +17,7 @@ import '@/common/utils/uniUtilsIndex'
const ua = navigator ? navigator.userAgent.toLowerCase() : ''; const ua = navigator ? navigator.userAgent.toLowerCase() : '';
if (ua.includes('micromessenger')) { if (ua.includes('micromessenger')) {
const openId = localStorage.getItem('openId'); const openId = localStorage.getItem('payOpenId');
if (!openId) { if (!openId) {
let query = FormatSearchJson(window.location.search); let query = FormatSearchJson(window.location.search);
@ -32,7 +32,7 @@ if (ua.includes('micromessenger')) {
// uni.$u.toast(error.message); // uni.$u.toast(error.message);
return false; return false;
} }
store.commit('SET_OPEN_ID', result.openId); localStorage.setItem('payOpenId', result.openId);
}) })
} else { } else {

Loading…
Cancel
Save