Showing
1 changed file
with
16 additions
and
2 deletions
@@ -65,11 +65,11 @@ | @@ -65,11 +65,11 @@ | ||
65 | </div> | 65 | </div> |
66 | </div> | 66 | </div> |
67 | <div class="group-list address-item"> | 67 | <div class="group-list address-item"> |
68 | - <a class="glist-item auth" id="address" v-if="data.nickName"> | 68 | + <a class="glist-item" @click="manageAddress" v-if="data.nickName"> |
69 | 地址管理 | 69 | 地址管理 |
70 | <span class="num">{{data.address_num}} <span class="icon icon-right"></span></span> | 70 | <span class="num">{{data.address_num}} <span class="icon icon-right"></span></span> |
71 | </a> | 71 | </a> |
72 | - <p class="glist-item" v-else> | 72 | + <p class="glist-item" @click="manageAddress" v-else> |
73 | 地址管理 | 73 | 地址管理 |
74 | </p> | 74 | </p> |
75 | </div> | 75 | </div> |
@@ -240,6 +240,20 @@ | @@ -240,6 +240,20 @@ | ||
240 | $('.auth').on('click', this.authClick); | 240 | $('.auth').on('click', this.authClick); |
241 | } | 241 | } |
242 | }, | 242 | }, |
243 | + manageAddress() { | ||
244 | + if (yoho.isLogin()) { | ||
245 | + yoho.goAddress({ | ||
246 | + type: '2' | ||
247 | + }); | ||
248 | + } else { | ||
249 | + yoho.goLogin('', () => { | ||
250 | + yoho.goAddress({ | ||
251 | + type: '2' | ||
252 | + }); | ||
253 | + }); | ||
254 | + } | ||
255 | + | ||
256 | + }, | ||
243 | addressClick() { | 257 | addressClick() { |
244 | yoho.goAddress({ | 258 | yoho.goAddress({ |
245 | type: '2' | 259 | type: '2' |
-
Please register or login to post a comment