Browse Source

Merge remote-tracking branch 'origin/master'

master
parent
commit
a3f54e634b
  1. 2
      App.vue
  2. 19
      sub/common/waiting.vue

2
App.vue

@ -77,7 +77,7 @@ export default {
state: 'default',
userType: this.getUserType()
}
setOpenId(res.code);
setOpenId(res.code);
//
this.$store.dispatch('Login', data).then(() => {
this.loginSuccess()

19
sub/common/waiting.vue

@ -1,7 +1,7 @@
<template>
<view class="wd-flex wd-flex-col wd-flex-center" style="height: 100%; gap: 10px">
<icon type="waiting" size="40" />
<button click="btnLogin">允许登陆</button>
<button @tap="btnLogin">允许登陆</button>
</view>
</template>
@ -13,29 +13,30 @@
export default {
data() {
return {}
return {
scene:""
}
},
onShow(res) {
console.log(res)
},
methods: {
btnLogin() {
const scene = decodeURIComponent(query.scene)
const openid = getOpenId()
console.log('登陆信息发送', scene)
console.log('登陆信息发送', this.scene)
console.log('opeid', openid)
qrLogin({
code:scene,
openid:openid
code:this.scene,
openid:getAccessToken()
})
}
},
onLoad(query) {
// scene 使 decodeURIComponent scene
const scene = decodeURIComponent(query.scene)
console.log('登陆信息发送', scene)
this.scene = decodeURIComponent(query.scene)
}

Loading…
Cancel
Save