Commit 537eca15e85376af4ae13bd327c72b1d55ddaa32

Authored by iceling
1 parent 7221b362

个人资料测试

pages/user/Change_phone/Change_phone.js
... ... @@ -18,7 +18,6 @@ Page({
18 18 wxopenid: null,
19 19 isver: 0, //是否有发送验证码
20 20 code: "", //验证码
21   - url: "", //确认更换手机号码跳转路径
22 21 change_phone: "", //新手机号码
23 22 },
24 23 /**
... ...
pages/user/userinfo/userinfo.js
... ... @@ -58,7 +58,8 @@ Page({
58 58 gradename:"",//会员权益的卡
59 59 isBool:"",
60 60 sto_sele_id:"",//所属门店id
61   - is_zy:0,
  61 + is_zy:0,
  62 +
62 63 },
63 64 //是否启动密码消费
64 65 isstcsp:function(){
... ... @@ -504,7 +505,7 @@ Page({
504 505 },
505 506 //------初始化加载----------
506 507 onLoad: function(t) {
507   -
  508 + console.log("oNLOAD", "你好");
508 509 var user=getApp().globalData.userInfo;
509 510 if(user.card_field!=''&& user.card_field!=null && user.card_field!=undefined){
510 511 var now=ut.gettimestamp();
... ... @@ -568,14 +569,15 @@ Page({
568 569 },
569 570  
570 571 onShow: function() {
  572 + console.log(this.data.is_zy ,"是什么东西");
571 573 if(this.data.is_zy) return false;
572 574 this.wait_for_store_config();
  575 + console.log(this.data.is_zy, "sssss是什么东西");
573 576 var e = this;
574 577 var req = t;
575 578 req.get("/api/weshop/users/getAndUpdateUser/" + r.stoid + "/" + getApp().globalData.user_id, {
576 579 success: function (src) {
577 580 var a=src.data.data;
578   - console.log(a,"剩什么llllll",a.data);
579 581 var time = util.formatTime(a.reg_time,"'Y/M/D");
580 582 var birthday = util.formatTime(a.birthday, "'Y/M/D");
581 583 a.reg_time = time;
... ... @@ -785,7 +787,11 @@ Page({
785 787 }
786 788 })
787 789 } ,
788   -
  790 + //选择地址
  791 + goto_address:function(){
  792 + this.setData({ is_zy: 1 });
  793 + },
  794 + //更换手机
789 795 go_phone:function(e){
790 796 var url=e.currentTarget.dataset.url;
791 797 this.setData({is_zy:1});
... ...
pages/user/userinfo/userinfo.wxml
... ... @@ -187,7 +187,7 @@
187 187 </view>
188 188 </view>
189 189 </view>
190   - <navigator class="user-name mt flex-vertical-between" url="/pages/user/address_list/address_list">
  190 + <navigator bindtap="goto-address" class="user-name mt flex-vertical-between" url="/pages/user/address_list/address_list">
191 191 <view class="user-name-txt">收货地址</view>
192 192 <view class="flex-center user-txt-right">
193 193 <!-- <view class="flex">{{user.address_id}}</view> -->
... ...
pages/user/userinfo/userinfo.wxss
... ... @@ -109,7 +109,7 @@ padding-right: 14rpx;
109 109 bottom: 0rpx;
110 110 height: 130rpx;
111 111 background-color: rgb(255,255,255);
112   - z-index: 999;
  112 + z-index: 9;
113 113 border-top:1rpx solid #ddd
114 114 }
115 115  
... ...