Commit c7d675327fa3c4b725270e6589ffdf006fef842c

Authored by zhiyangdu
1 parent 12c9a7d7

跳转更多页

src/pages/pointsMall/pointsMall.less
... ... @@ -166,6 +166,19 @@
166 166 background: #999999;
167 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 184 .list-box {
... ...
src/pages/pointsMall/pointsMall.vue
... ... @@ -52,6 +52,7 @@
52 52 <!-- 分割线 -->
53 53 <div class="line"> </div>
54 54 <div class="item">满减红包 精品推荐</div>
  55 + <div @click="toMore(1)" class="more">更多<img src="static/img/icon_more_arrow_right.png"alt=""/></div>
55 56 </div>
56 57 <!-- 为你推荐商品列表 -->
57 58 <div class="list-box">
... ... @@ -70,6 +71,7 @@
70 71 <!-- 分割线 -->
71 72 <div class="line"> </div>
72 73 <div class="item">热门商品 精品推荐</div>
  74 + <div @click="toMore(1)" class="more">更多<img src="static/img/icon_more_arrow_right.png"alt=""/></div>
73 75 </div>
74 76 <!-- 实物商品裂变 -->
75 77 <!-- 商品样式 7 列表 goodType=1为积分商城实物商品-->
... ... @@ -87,6 +89,7 @@
87 89 <!-- 分割线 -->
88 90 <div class="line"> </div>
89 91 <div class="item">虚拟商品 精品推荐</div>
  92 + <div @click="toMore(2)" class="more">更多<img src="static/img/icon_more_arrow_right.png"alt=""/></div>
90 93 </div>
91 94 <!-- 商品样式 7 列表 -->
92 95 <column-list-box class="column-list-box" v-if="virtualGoods && virtualGoods.list && virtualGoods.list.length" @jump="toDetail"
... ... @@ -102,6 +105,7 @@
102 105 <!-- 分割线 -->
103 106 <div class="line"> </div>
104 107 <div class="item">满减红包 精品推荐</div>
  108 + <div @click="toMore(3)" class="more">更多<img src="static/img/icon_more_arrow_right.png"alt=""/></div>
105 109 </div>
106 110 <!-- 商品样式 7 列表 -->
107 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 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 285 toShare () {
... ...