| | |
| | | let uri = encodeURIComponent(url)
|
| | | let authURL =
|
| | | `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appID}&redirect_uri=${uri}&response_type=code&scope=snsapi_base#wechat_redirect`
|
| | | // window.location.href = authURL
|
| | | window.location.href = authURL
|
| | | }
|
| | | },
|
| | | methods: {
|
| | |
| | | loginDriverWithCode({
|
| | | phone,
|
| | | code, |
| | | openid: this.$store.state.openId || '000'
|
| | | openid: this.$store.state.openId || '111'
|
| | | }).then(res => {
|
| | | if (res && res.code == 200) { |
| | | if (res.data) { |
| | |
| | | getUserInfo().then(ress => { |
| | | this.$store.commit('setDriverInfo', ress.data) |
| | | }) |
| | | setTimeout(() => { |
| | | uni.navigateTo({ |
| | | url: '/pages/wdata/list' |
| | | }) |
| | | }, 300) |
| | | }
|
| | | }
|
| | | })
|
| | |
| | | sendSms({
|
| | | phone: this.form.phone
|
| | | }).then(res => {
|
| | | this.countDown = 60
|
| | | this.countDown = 10
|
| | | setInterval(() => {
|
| | | if (this.countDown == 0) return
|
| | | this.countDown--
|