Commit 5caac5c8256eaceaf25b6a96d6056f4e802b2cad
1 parent
537eca15
会员资料修改
Showing
2 changed files
with
10 additions
and
3 deletions
pages/user/address_list/address_list.js
... | ... | @@ -15,7 +15,14 @@ Page({ |
15 | 15 | is_address_read:0 |
16 | 16 | }, |
17 | 17 | onLoad: function (e) { |
18 | - | |
18 | + var pages = getCurrentPages(); | |
19 | + | |
20 | + var prevPage = pages[pages.length - 2]; //上一个页面 | |
21 | + console.log("哈哈哈哈哈prevPage", prevPage); | |
22 | + //直接调用上一个页面的setData()方法,把数据存到上一个页面中去 | |
23 | + prevPage.setData({ | |
24 | + is_zy: 1 | |
25 | + }) | |
19 | 26 | //清空is_pick_up |
20 | 27 | getApp().request.put("/api/weshop/useraddress/updatePickUp", { |
21 | 28 | data: {user_id: getApp().globalData.user_id, is_pickup: 0}, | ... | ... |
pages/user/userinfo/userinfo.js
... | ... | @@ -2,7 +2,7 @@ function e(e, a, r) { |
2 | 2 | return a in e ? Object.defineProperty(e, a, { |
3 | 3 | value: r, |
4 | 4 | enumerable: !0, |
5 | - configurable: !0, | |
5 | + configurable: !0, | |
6 | 6 | writable: !0 |
7 | 7 | }) : e[a] = r, e; |
8 | 8 | } |
... | ... | @@ -789,7 +789,7 @@ Page({ |
789 | 789 | } , |
790 | 790 | //选择地址 |
791 | 791 | goto_address:function(){ |
792 | - this.setData({ is_zy: 1 }); | |
792 | + // this.setData({ is_zy: 1 }); | |
793 | 793 | }, |
794 | 794 | //更换手机 |
795 | 795 | go_phone:function(e){ | ... | ... |