Commit 09d777985da1759800de73b92660e626fc1402fc

Authored by 后端开发-许程
1 parent 65f7556a

会员资料修改

pages/user/userinfo/userinfo.js
@@ -754,9 +754,10 @@ Page({ @@ -754,9 +754,10 @@ Page({
754 sex: sex,//性别 754 sex: sex,//性别
755 nickname:user_name,//昵称 755 nickname:user_name,//昵称
756 idcard:identity_card,//身份证 756 idcard:identity_card,//身份证
757 - address:address, 757 + address:address,//地址
  758 + pickup_id: sto_sele_id//自提门店 所属门店
758 } 759 }
759 - getApp().request.post("/api/weshop/users/updateUserInfo", { 760 + getApp().request.put("/api/weshop/users/updateUserInfo", {
760 data: datas, 761 data: datas,
761 success: function (res) { 762 success: function (res) {
762 763
pages/user/userinfo/userinfo.wxml
@@ -170,12 +170,12 @@ @@ -170,12 +170,12 @@
170 </navigator> 170 </navigator>
171 <view class="user-name flex-vertical-between" data-type="mobile"> 171 <view class="user-name flex-vertical-between" data-type="mobile">
172 <view class="user-name-txt">地址</view> 172 <view class="user-name-txt">地址</view>
173 - <block wx:if="{{user.address.length>0}}"> 173 + <!-- <block wx:if="{{user.address.length>0}}">
174 <view>{{user.address}}</view> 174 <view>{{user.address}}</view>
175 </block> 175 </block>
176 - <block wx:else> 176 + <block wx:else> -->
177 <input bindblur="address" maxlength="30" class="user-txt-right" placeholder="*地址" style="text-align:right" /> 177 <input bindblur="address" maxlength="30" class="user-txt-right" placeholder="*地址" style="text-align:right" />
178 - </block> 178 + <!-- </block> -->
179 </view> 179 </view>
180 180
181 <view bindtap="onclickstore" class="user-name flex-vertical-between" data-type="email"> 181 <view bindtap="onclickstore" class="user-name flex-vertical-between" data-type="email">