Commit 6581ddded1f66fc1bfb1f5ebd78f14c68d3cebc2

Authored by zhiyangdu
1 parent 0f0dbeb7

跳转到商品详情页必须用通用跳转

src/components/goodsItem_7/goodsItem_7.vue
... ... @@ -12,7 +12,7 @@
12 12 </div>
13 13  
14 14 <!-- goodType=1为积分商城定义实物商品展示tip积分+现金形式 -->
15   - <div v-if="goodType == 1 && item && item.price && parseInt(item.price) > 0" class="goods_tip">
  15 + <div v-if="goodType == 1 && item && item.price && item.price > 0" class="goods_tip">
16 16 积分+现金
17 17 </div>
18 18  
... ... @@ -35,7 +35,7 @@
35 35  
36 36 <!-- 积分加现金 -->
37 37 <div v-if="goodType == 1" class="price-title-box">
38   - {{parseInt(item.num) > 9999 ? this.formatDecimal((parseInt(item.num) / 10000), 0) + "万" : item.num}}<span>积分 <span v-show="goodsInfo.price>0">+ {{item.price}}元</span></span>
  38 + {{parseInt(item.num) > 9999 ? this.formatDecimal((parseInt(item.num) / 10000), 0) + "万" : item.num}}<span>积分 <span v-show="item.price > 0">+ {{item.price}}元</span></span>
39 39 </div>
40 40  
41 41 <!-- 积分 -->
... ...
src/pages/morePoints/morePoints.vue
... ... @@ -173,27 +173,27 @@ export default {
173 173 */
174 174 toDetail (item) {
175 175 if (this.isCNLive.value) {
176   - this.$router.push({
177   - path: "/goodDetails",
178   - query: {
179   - goodsId: item.id,
180   - uid: this.getStore("uid"),
181   - AppJump: this.$route.query.AppJump || false // 判断是否是APP跳转过来的
182   - }
183   - })
  176 + // this.$router.push({
  177 + // path: "/goodDetails",
  178 + // query: {
  179 + // goodsId: item.id,
  180 + // uid: this.getStore("uid"),
  181 + // AppJump: this.$route.query.AppJump || false // 判断是否是APP跳转过来的
  182 + // }
  183 + // })
184 184 // 通用跳转跳转到商品详情页新打开webview
185   - // if (typeof this.$parent.gotoDetail === 'function') {
  185 + if (typeof this.$parent.gotoDetail === 'function') {
186 186  
187   - // // 设置跳转参数
188   - // let params = {
189   - // type: '5',
190   - // to: window.location.origin + '/html/select_good/1/#/goodDetails?goodsId=' + item.id,
191   - // shop_type: ''
192   - // };
  187 + // 设置跳转参数
  188 + let params = {
  189 + type: '5',
  190 + to: window.location.origin + '/html/select_good/1/#/goodDetails?goodsId=' + item.id,
  191 + shop_type: ''
  192 + };
193 193  
194   - // // 页面跳转
195   - // this.$parent.gotoDetail(params);
196   - // }
  194 + // 页面跳转
  195 + this.$parent.gotoDetail(params);
  196 + }
197 197 } else {
198 198 this.$parent.callApp();
199 199 }
... ...