Commit c7d675327fa3c4b725270e6589ffdf006fef842c
1 parent
12c9a7d7
跳转更多页
Showing
2 changed files
with
47 additions
and
0 deletions
src/pages/pointsMall/pointsMall.less
| @@ -166,6 +166,19 @@ | @@ -166,6 +166,19 @@ | ||
| 166 | background: #999999; | 166 | background: #999999; |
| 167 | margin: 0 16px; | 167 | margin: 0 16px; |
| 168 | } | 168 | } |
| 169 | + .more{ | ||
| 170 | + display: flex; | ||
| 171 | + flex: 1; | ||
| 172 | + justify-content: flex-end; | ||
| 173 | + align-items: center; | ||
| 174 | + font-size: 24px; | ||
| 175 | + color: #999999; | ||
| 176 | + img{ | ||
| 177 | + display: block; | ||
| 178 | + width: 22px; | ||
| 179 | + height: 22px; | ||
| 180 | + } | ||
| 181 | + } | ||
| 169 | } | 182 | } |
| 170 | // 为你推荐 | 183 | // 为你推荐 |
| 171 | .list-box { | 184 | .list-box { |
src/pages/pointsMall/pointsMall.vue
| @@ -52,6 +52,7 @@ | @@ -52,6 +52,7 @@ | ||
| 52 | <!-- 分割线 --> | 52 | <!-- 分割线 --> |
| 53 | <div class="line"> </div> | 53 | <div class="line"> </div> |
| 54 | <div class="item">满减红包 精品推荐</div> | 54 | <div class="item">满减红包 精品推荐</div> |
| 55 | + <div @click="toMore(1)" class="more">更多<img src="static/img/icon_more_arrow_right.png"alt=""/></div> | ||
| 55 | </div> | 56 | </div> |
| 56 | <!-- 为你推荐商品列表 --> | 57 | <!-- 为你推荐商品列表 --> |
| 57 | <div class="list-box"> | 58 | <div class="list-box"> |
| @@ -70,6 +71,7 @@ | @@ -70,6 +71,7 @@ | ||
| 70 | <!-- 分割线 --> | 71 | <!-- 分割线 --> |
| 71 | <div class="line"> </div> | 72 | <div class="line"> </div> |
| 72 | <div class="item">热门商品 精品推荐</div> | 73 | <div class="item">热门商品 精品推荐</div> |
| 74 | + <div @click="toMore(1)" class="more">更多<img src="static/img/icon_more_arrow_right.png"alt=""/></div> | ||
| 73 | </div> | 75 | </div> |
| 74 | <!-- 实物商品裂变 --> | 76 | <!-- 实物商品裂变 --> |
| 75 | <!-- 商品样式 7 列表 goodType=1为积分商城实物商品--> | 77 | <!-- 商品样式 7 列表 goodType=1为积分商城实物商品--> |
| @@ -87,6 +89,7 @@ | @@ -87,6 +89,7 @@ | ||
| 87 | <!-- 分割线 --> | 89 | <!-- 分割线 --> |
| 88 | <div class="line"> </div> | 90 | <div class="line"> </div> |
| 89 | <div class="item">虚拟商品 精品推荐</div> | 91 | <div class="item">虚拟商品 精品推荐</div> |
| 92 | + <div @click="toMore(2)" class="more">更多<img src="static/img/icon_more_arrow_right.png"alt=""/></div> | ||
| 90 | </div> | 93 | </div> |
| 91 | <!-- 商品样式 7 列表 --> | 94 | <!-- 商品样式 7 列表 --> |
| 92 | <column-list-box class="column-list-box" v-if="virtualGoods && virtualGoods.list && virtualGoods.list.length" @jump="toDetail" | 95 | <column-list-box class="column-list-box" v-if="virtualGoods && virtualGoods.list && virtualGoods.list.length" @jump="toDetail" |
| @@ -102,6 +105,7 @@ | @@ -102,6 +105,7 @@ | ||
| 102 | <!-- 分割线 --> | 105 | <!-- 分割线 --> |
| 103 | <div class="line"> </div> | 106 | <div class="line"> </div> |
| 104 | <div class="item">满减红包 精品推荐</div> | 107 | <div class="item">满减红包 精品推荐</div> |
| 108 | + <div @click="toMore(3)" class="more">更多<img src="static/img/icon_more_arrow_right.png"alt=""/></div> | ||
| 105 | </div> | 109 | </div> |
| 106 | <!-- 商品样式 7 列表 --> | 110 | <!-- 商品样式 7 列表 --> |
| 107 | <column-list-box class="column-list-box" v-if="redEnvelopeFull && redEnvelopeFull.list && redEnvelopeFull.list.length" @jump="toDetail" | 111 | <column-list-box class="column-list-box" v-if="redEnvelopeFull && redEnvelopeFull.list && redEnvelopeFull.list.length" @jump="toDetail" |
| @@ -246,6 +250,36 @@ export default { | @@ -246,6 +250,36 @@ export default { | ||
| 246 | } | 250 | } |
| 247 | }, | 251 | }, |
| 248 | /** | 252 | /** |
| 253 | + * 跳转商品更多页 | ||
| 254 | + * @param {Object} type [数据对象1实物品 2虚拟商品 3满减红包] | ||
| 255 | + */ | ||
| 256 | + toMore(type){ | ||
| 257 | + if (this.isCNLive.value) { | ||
| 258 | + // this.$router.push({ | ||
| 259 | + // path: "/goodDetails", | ||
| 260 | + // query: { | ||
| 261 | + // goodsId: item.id, | ||
| 262 | + // uid: this.getStore("uid") | ||
| 263 | + // } | ||
| 264 | + // }) | ||
| 265 | + // 通用跳转跳转到商品详情页新打开webview | ||
| 266 | + if (typeof this.$parent.gotoDetail === 'function') { | ||
| 267 | + | ||
| 268 | + // 设置跳转参数 | ||
| 269 | + let params = { | ||
| 270 | + type: '5', | ||
| 271 | + to: window.location.origin + '/html/select_good/1/#/morePoints?type=' + type, | ||
| 272 | + shop_type: '' | ||
| 273 | + }; | ||
| 274 | + | ||
| 275 | + // 页面跳转 | ||
| 276 | + this.$parent.gotoDetail(params); | ||
| 277 | + } | ||
| 278 | + } else { | ||
| 279 | + this.$parent.callApp(); | ||
| 280 | + } | ||
| 281 | + }, | ||
| 282 | + /** | ||
| 249 | * 分享 | 283 | * 分享 |
| 250 | */ | 284 | */ |
| 251 | toShare () { | 285 | toShare () { |