提交 1c5183a21cc80efa32adeb64cef64b8d7f76b4c0

作者 wangyu
1 个父辈 eb895bac

海峡新需求:跳过微信授权登录页面("pages/getPhone/getPhone")

... ... @@ -73,7 +73,8 @@ App({
73 73 that.globalData.refresh_token = res.data.refresh_token;
74 74 if (user && user.type == "0") { //匿名用户
75 75 wx.redirectTo({
76   - url: '../../getPhone/getPhone'
  76 + // url: '../../getPhone/getPhone'
  77 + url: '../../login/login'
77 78 })
78 79 } else if (user && user.type == "1") { //注册用户
79 80 that.configOssUrl()
... ...
1   -// pages/getPhone/getPhone.js
  1 +
2 2 const baseUrl = getApp().globalData.baseUrl;
3 3 let Authorization = '';
4 4 var app = getApp();
... ...
1   -<!--pages/getPhone/getPhone.wxml-->
  1 +
2 2 <!-- <button open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">获取用户手机号</button> -->
3 3 <view class='page'>
4 4 <image src='/images/bg.png' class='back-img' mode="bottom aspectFill"></image>
... ...
1   -/* pages/getPhone/getPhone.wxss */
  1 +
2 2 .page{
3 3 height: 100%;
4 4 }
... ...
... ... @@ -132,8 +132,8 @@ Page({
132 132 console.log("loginout", res)
133 133 if (res.confirm) {
134 134 wx.reLaunch({
135   - // url: '../../login/login'
136   - url: '../../getPhone/getPhone'
  135 + url: '../../login/login'
  136 + // url: '../../getPhone/getPhone'
137 137 })
138 138 }
139 139 }
... ...
注册登录 后发表评论