提交 1c5183a21cc80efa32adeb64cef64b8d7f76b4c0

作者 wangyu
1 个父辈 eb895bac

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

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