Commit b86a32ffb11cbdb32b0f8079da0fe980c7007e18
1 parent
bf7c260d
商品跳转
Showing
1 changed file
with
10 additions
and
2 deletions
src/pages/index/index.vue
| @@ -4,9 +4,9 @@ | @@ -4,9 +4,9 @@ | ||
| 4 | <div class="first_item"></div> | 4 | <div class="first_item"></div> |
| 5 | <!--商品列表--> | 5 | <!--商品列表--> |
| 6 | <div class="item"> | 6 | <div class="item"> |
| 7 | - <div> | 7 | + <div @click="link(1)"> |
| 8 | </div> | 8 | </div> |
| 9 | - <div> | 9 | + <div @click="link(2)"> |
| 10 | 10 | ||
| 11 | </div> | 11 | </div> |
| 12 | </div> | 12 | </div> |
| @@ -108,6 +108,14 @@ | @@ -108,6 +108,14 @@ | ||
| 108 | 108 | ||
| 109 | }, | 109 | }, |
| 110 | methods: { | 110 | methods: { |
| 111 | + link(index){ | ||
| 112 | + if(index==='1'){ | ||
| 113 | + window.location.href = "https://wjjshop.cnlive.com/html/mall/1/#/pages/main/detail/detail?id=9520356&uid=10515293" | ||
| 114 | + }else{ | ||
| 115 | + window.location.href = "https://wjjshop.cnlive.com/html/mall/1/#/pages/main/detail/detail?id=9520356&uid=10515293" | ||
| 116 | + } | ||
| 117 | + | ||
| 118 | + }, | ||
| 111 | /** | 119 | /** |
| 112 | * 视频播放 | 120 | * 视频播放 |
| 113 | * @param {object} $event [播放器对象] | 121 | * @param {object} $event [播放器对象] |