Commit c196f1e0ed0c13f286603bce2d559e28cc7eb0ad

Authored by iceling
1 parent 5caac5c8

11

pages/user/Change_phone/Change_phone.js
@@ -11,7 +11,7 @@ Page({ @@ -11,7 +11,7 @@ Page({
11 */ 11 */
12 data: { 12 data: {
13 iurl: r.imghost, 13 iurl: r.imghost,
14 - inputxphone: 0, 14 + inputxphone: 1,
15 mobile: null, //旧手机号码 15 mobile: null, //旧手机号码
16 currentTime: "", //验证码发送倒计时 16 currentTime: "", //验证码发送倒计时
17 getvcode: "获取验证码", 17 getvcode: "获取验证码",
@@ -24,6 +24,12 @@ Page({ @@ -24,6 +24,12 @@ Page({
24 * 生命周期函数--监听页面加载 24 * 生命周期函数--监听页面加载
25 */ 25 */
26 onLoad: function(options) { 26 onLoad: function(options) {
  27 + var pages = getCurrentPages();
  28 + var prevPage = pages[pages.length - 2]; //上一个页面
  29 + //直接调用上一个页面的setData()方法,把数据存到上一个页面中去
  30 + prevPage.setData({
  31 + is_zy: 1
  32 + })
27 this.setData({ 33 this.setData({
28 mobile: options.mobile, 34 mobile: options.mobile,
29 wxopenid: options.openid 35 wxopenid: options.openid
pages/user/userinfo/userinfo.wxml
@@ -17,7 +17,7 @@ @@ -17,7 +17,7 @@
17 17
18 <view class="flex-center fs22 vip"> 18 <view class="flex-center fs22 vip">
19 <block wx:if="{{isBool&&gradename}}"> 19 <block wx:if="{{isBool&&gradename}}">
20 - <navigator url=""> 20 + <navigator url="/pages/user/userqy/userqy">
21 <view class="flex-center AncrownMax"> 21 <view class="flex-center AncrownMax">
22 <image class="Ancrown" src="{{iurl}}/miniapp/images/userqy/user_userqy_huang.png"></image> 22 <image class="Ancrown" src="{{iurl}}/miniapp/images/userqy/user_userqy_huang.png"></image>
23 <view>{{gradename}}</view> 23 <view>{{gradename}}</view>