Commit 16ab9cdf38a358a80ad22447266d91f38d971ebf
1 parent
a926e3a5
会员资料的农历的显示
Showing
2 changed files
with
8 additions
and
4 deletions
pages/user/userinfo/userinfo.js
... | ... | @@ -644,7 +644,8 @@ Page({ |
644 | 644 | identity_card: a.idcard, |
645 | 645 | address: a.address, |
646 | 646 | isGender: a.sex, |
647 | - isstcsp: a.vipnopwd | |
647 | + isstcsp: a.vipnopwd, | |
648 | + iscalendar:a.islunar | |
648 | 649 | }); |
649 | 650 | } |
650 | 651 | }) |
... | ... | @@ -809,13 +810,16 @@ Page({ |
809 | 810 | vipname: user_name, //昵称 |
810 | 811 | idcard: identity_card, //身份证 |
811 | 812 | address: address, //地址 |
812 | - pickup_id: sto_sele_id //自提门店 所属门店 | |
813 | + pickup_id: sto_sele_id ,//自提门店 所属门店 | |
814 | + islunar:th.data.iscalendar, | |
815 | + birthday:th.data.datet | |
813 | 816 | } |
814 | 817 | getApp().request.put("/api/weshop/users/updateUserInfo", { |
815 | 818 | data: datas, |
816 | 819 | success: function(res) { |
817 | 820 | if (res.data.code == 0) { |
818 | 821 | getApp().my_warnning("修改成功", 1, th); |
822 | + getApp().goto("/pages/user/index/index"); | |
819 | 823 | } else { |
820 | 824 | getApp().my_warnning("系统繁忙,请稍后再试", 0, th); |
821 | 825 | } | ... | ... |
pages/user/userinfo/userinfo.wxml
... | ... | @@ -117,7 +117,7 @@ |
117 | 117 | <view class="flex flex-vertical-between fs28 Birth"> |
118 | 118 | <view class="flex" bindtap="iscalendar"> |
119 | 119 | |
120 | - <block wx:if="user.birthday==null&&user.birthday==''"> | |
120 | + <!-- <block wx:if="user.birthday==null&&user.birthday==''"> --> | |
121 | 121 | |
122 | 122 | <block wx:if="{{iscalendar}}"> |
123 | 123 | <view class="flex-center"> |
... | ... | @@ -128,7 +128,7 @@ |
128 | 128 | <icon size="20" type="success" color="rgb(0, 0, 0, 0.4)"></icon> |
129 | 129 | </block> |
130 | 130 | |
131 | - </block> | |
131 | + <!-- </block> --> | |
132 | 132 | |
133 | 133 | |
134 | 134 | <view class="flex-center"> | ... | ... |