Z1hgq 7 năm trước cách đây
mục cha
commit
cfcae52856
2 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 3 3
      Gkzs/index/index.js
  2. 1 1
      Gkzs/index/info/info.wxml

+ 3 - 3
Gkzs/index/index.js

xqd xqd xqd
@@ -36,7 +36,7 @@ Page({
                 var app = getApp()
                 app.userinfo.userid = res.data
                 console.log(getApp().userinfo.userid)
-                wx.navigateTo({
+                wx.redirectTo({
                   url: "info/info",
                 })
               },
@@ -123,7 +123,7 @@ Page({
           console.log(res.data)
         }
       })
-      wx.navigateTo({
+      wx.redirectTo({
         url: 'info/info'
       })
 
@@ -188,7 +188,7 @@ Page({
                   app.userinfo.userid = that.data.userid
                   console.log(getApp().userinfo.userid)
                   if (res.data.data.userinfo.has_agreed == 1) {
-                    wx.navigateTo({
+                    wx.redirectTo({
                       url: 'info/info'
                     })
                   } else {

+ 1 - 1
Gkzs/index/info/info.wxml

xqd
@@ -39,7 +39,7 @@
           <input class="weui-input" placeholder="手机号验证" bindinput='phoneInput' value='{{phone}}'/>
         </view>
         <view class="weui-cell__ft">
-          <button class="weui-vcode-btn" style='color:white;background-color:red;border-radius: 20rpx;' open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">获取手机号</button>
+          <button class="weui-vcode-btn" style='color:white;background-color:#32CD32;border-radius: 20rpx;margin:10rpx;' open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">获取手机号</button>
         </view>
       </view>