Browse Source

去除详情跳转参数

feature/3.0.0-推广员
lfs3 6 years ago
parent
commit
e60029e648
5 changed files with 8 additions and 14 deletions
  1. 6
      src/view/goods-classify.vue
  2. 6
      src/view/home.vue
  3. 2
      src/view/month-card.vue
  4. 4
      src/view/order-check.vue
  5. 4
      src/view/order-detail.vue

6
src/view/goods-classify.vue

@ -20,9 +20,9 @@
<div v-if="goodsList.length != 0" v-for="(item,index) in goodsList" :key="index" class="food-list-hook">
<p class="title">{{item.combinationName}}</p>
<div class="f-relative f-all-1px" v-for="(goods,k) in item.goodsList" :key="k">
<a style="display:block" :href="'/mall/web/vgoods/detail/' + goods.goodsNo + '?uniqueId='+ uniqueId">
<a style="display:block" :href="'/mall/web/vgoods/detail/' + goods.goodsNo ">
<div class="item f-flex">
<a :href="'/mall/web/vgoods/detail/' + goods.goodsNo + '?uniqueId='+ uniqueId" class="list-img-box">
<a :href="'/mall/web/vgoods/detail/' + goods.goodsNo" class="list-img-box">
<img v-if="goods.goodsTitleImg!=''" :src=" imghost + goods.goodsTitleImg" class="thumb"/>
<img v-else-if="goods.showImg!=''" :src=" imghost + goods.showImg" class="thumb"/>
<img v-else :src=" imghost + goods.bannerImgs" class="thumb"/>
@ -62,7 +62,6 @@ import Qs from 'qs';
export default {
data() {
return {
uniqueId:'',
no: 0,
id: 0,
c_no: 0,
@ -261,7 +260,6 @@ export default {
}
},
mounted() {
this.uniqueId =this.$cookies.get('1hjz_mall_unique_id')
this.getParams();
this.ShareWenXin();
}

6
src/view/home.vue

@ -65,9 +65,9 @@
</div>
<ul class="card-list">
<li v-for="item1 in item.goodsList">
<a :href="'/mall/web/vgoods/detail/' + item1.goodsNo + '?uniqueId='+ uniqueId">
<a :href="'/mall/web/vgoods/detail/' + item1.goodsNo ">
<div class="left">
<a :href="'/mall/web/vgoods/detail/' + item1.goodsNo + '?uniqueId='+ uniqueId">
<a :href="'/mall/web/vgoods/detail/' + item1.goodsNo">
<img v-if="item1.goodsTitleImg!=''" :src=" imghost + item1.goodsTitleImg" />
<img v-else-if="item1.showImg!=''" :src=" imghost + item1.showImg" />
<img v-else :src=" imghost + item1.bannerImgs" />
@ -86,7 +86,7 @@
<span class="price"> <em>{{item1.price ? item1.price/100:item1.originalPrice/100}}</em></span>
<span class="original-price" v-if="item1.price&&item1.price!=item1.originalPrice"><em>{{ item1.originalPrice/100}}</em></span>
</div>
<a :href="'/mall/web/vgoods/detail/' + item1.goodsNo + '?uniqueId='+ uniqueId">立即购买</a>
<a :href="'/mall/web/vgoods/detail/' + item1.goodsNo ">立即购买</a>
</div>
</div>
</a>

2
src/view/month-card.vue

@ -155,7 +155,7 @@ export default {
// 使
handleUseCoupon() {
window.location.href =
locationUrl + "/mall/web/vgoods/detail/" + this.getData.goodsNo+ '?uniqueId='+ this.uniqueId;
locationUrl + "/mall/web/vgoods/detail/" + this.getData.goodsNo;
},
//

4
src/view/order-check.vue

@ -1,6 +1,6 @@
<template>
<div class="order-check-whole">
<back-header :path="'/mall/web/vgoods/detail/'+goodsNo+ '?uniqueId='+ uniqueId">
<back-header :path="'/mall/web/vgoods/detail/'+goodsNo">
订单确认
</back-header>
<div class="top">
@ -98,7 +98,6 @@ import Qs from 'qs';
export default {
data() {
return {
uniqueId:'',
info: {
text: ""
},
@ -305,7 +304,6 @@ export default {
}
},
mounted() {
this.uniqueId =this.$cookies.get('1hjz_mall_unique_id')
this.getData();
this.goodsNo = this.getParam("goodsNo");
}

4
src/view/order-detail.vue

@ -102,7 +102,6 @@ var qs = require("qs");
export default {
data() {
return {
uniqueId:'',
state: "",
stateText: "",
orderNo: "",
@ -218,7 +217,7 @@ export default {
},
go(num) {
if (num == 1) {
location.href = "/mall/web/vgoods/detail/" + this.info.goodsNo+ '?uniqueId='+ uniqueId;
location.href = "/mall/web/vgoods/detail/" + this.info.goodsNo;
} else if (num == 2) {
location.href = "/mall/web/appoint_index";
} else if (num == 3) {
@ -349,7 +348,6 @@ export default {
}
},
mounted() {
this.uniqueId =this.$cookies.get('1hjz_mall_unique_id')
this.orderNo = this.$route.params.id;
this.getData();
}

Loading…
Cancel
Save