Commit c6a8fc2922d52712a1b20e4f34433b6815cdcd40
1 parent
c75ea9f9
会员权益默认广告图
Showing
2 changed files
with
6 additions
and
2 deletions
pages/user/index/index.js
| ... | ... | @@ -642,7 +642,9 @@ Page({ |
| 642 | 642 | } |
| 643 | 643 | |
| 644 | 644 | var url = e.currentTarget.dataset.img; |
| 645 | - | |
| 645 | + if(!url || url==""){ | |
| 646 | + url=`/public/upload/userqy/quanbg.jpg` | |
| 647 | + } | |
| 646 | 648 | switch (no) { |
| 647 | 649 | case "01": |
| 648 | 650 | getApp().goto("/packageB/pages/user/user_coupon/user_coupon?img=" + | ... | ... |
pages/user/userqy/userqy.js
| ... | ... | @@ -187,7 +187,9 @@ Page({ |
| 187 | 187 | } |
| 188 | 188 | |
| 189 | 189 | var url=e.currentTarget.dataset.img; |
| 190 | - | |
| 190 | + if(!url || url==""){ | |
| 191 | + url=`/public/upload/userqy/quanbg.jpg` | |
| 192 | + } | |
| 191 | 193 | switch (no) { |
| 192 | 194 | case "01": |
| 193 | 195 | getApp().goto("/packageB/pages/user/user_coupon/user_coupon?img=" | ... | ... |