Merge branch 'master' of http://114.215.101.231:8099/jiashaokang/xidejiuApp into xide_duxiaotian
正在显示
2 个修改的文件
包含
13 行增加
和
4 行删除
@@ -279,12 +279,21 @@ export default { | @@ -279,12 +279,21 @@ export default { | ||
279 | }, | 279 | }, |
280 | //领劵 | 280 | //领劵 |
281 | getCoupon() { | 281 | getCoupon() { |
282 | + console.log(uni.getStorageSync('is_focus'),'-*-*-*-*-'); | ||
282 | if (!uni.getStorageSync('token')) { | 283 | if (!uni.getStorageSync('token')) { |
283 | this.$loginCustom(1); | 284 | this.$loginCustom(1); |
284 | } else { | 285 | } else { |
285 | - uni.navigateTo({ | ||
286 | - url: 'coupon/coupon' | ||
287 | - }); | 286 | + if (!uni.getStorageSync('is_focus')) { |
287 | + uni.navigateTo({ | ||
288 | + url: '/pages/home/coupon/coupon' | ||
289 | + }); | ||
290 | + } else { | ||
291 | + console.log(0); | ||
292 | + uni.showToast({ | ||
293 | + title: '已关注,请到我的优惠券查看优惠券', | ||
294 | + icon: 'none' | ||
295 | + }); | ||
296 | + } | ||
288 | } | 297 | } |
289 | } | 298 | } |
290 | } | 299 | } |
-
请 注册 或 登录 后发表评论