H5支持微信支付

This commit is contained in:
Gaoxs
2020-08-20 17:55:27 +08:00
parent 48e073d573
commit 12238a98d6
7 changed files with 168 additions and 74 deletions

View File

@ -104,7 +104,7 @@ import { isWeixin } from '@/utils'
if (isWeixin()) {
Vue.prototype.$deviceType = 'weixin'
store.commit('updateDevicetype', 'weixin')
// wechat().then(() => oAuth());
wechat().then(() => oAuth());
} else {
Vue.prototype.$deviceType = 'weixinh5'
store.commit('updateDevicetype', 'weixinh5')