Browse Source

推广人员标识

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

10
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">
<a style="display:block" :href="'/mall/web/vgoods/detail/' + goods.goodsNo + '?uniqueId='+ uniqueId">
<div class="item f-flex">
<a :href="'/mall/web/vgoods/detail/' + goods.goodsNo" class="list-img-box">
<a :href="'/mall/web/vgoods/detail/' + goods.goodsNo + '?uniqueId='+ uniqueId" class="list-img-box">
<img :src=" imghost + goods.bannerImgs" class="thumb" />
</a>
<div class="info f-flex">
@ -56,9 +56,11 @@ import goodsApi from "../models/goods-model.js";
//import configs from '../configs';
import { Alert, Toast, Popup, Loading } from "vux";
import BScroll from "better-scroll";
import Qs from 'qs';
export default {
data() {
return {
uniqueId:'',
no: 0,
id: 0,
c_no: 0,
@ -257,6 +259,10 @@ export default {
}
},
mounted() {
let uuniqueId = Qs.parse(location.search.substring(1)).uniqueId
if(uuniqueId !== undefined && uuniqueId !== null && uuniqueId !== ""){
this.uniqueId =uuniqueId
}
this.getParams();
this.ShareWenXin();
}

7
src/view/month-card.vue

@ -85,6 +85,7 @@ var locationUrl = configs.locationUrl;
export default {
data() {
return {
uniqueId:'',
loading: false,
getData: {},
couponType: {
@ -126,7 +127,7 @@ export default {
// 使
handleUseCoupon() {
window.location.href =
locationUrl + "/mall/web/vgoods/detail/" + this.getData.goodsNo;
locationUrl + "/mall/web/vgoods/detail/" + this.getData.goodsNo+ '?uniqueId='+ uniqueId;
},
//
@ -182,6 +183,10 @@ export default {
}
},
mounted() {
let uuniqueId = Qs.parse(location.search.substring(1)).uniqueId
if(uuniqueId !== undefined && uuniqueId !== null && uuniqueId !== ""){
this.uniqueId =uuniqueId
}
//
this.handleInit();
this.wxShare({

7
src/view/order-check.vue

@ -1,6 +1,6 @@
<template>
<div class="order-check-whole">
<back-header :path="'/mall/web/vgoods/detail/'+goodsNo">
<back-header :path="'/mall/web/vgoods/detail/'+goodsNo+ '?uniqueId='+ uniqueId">
订单确认
</back-header>
<div class="top">
@ -97,6 +97,7 @@ var qs = require("qs");
export default {
data() {
return {
uniqueId:'',
info: {
text: ""
},
@ -303,6 +304,10 @@ export default {
}
},
mounted() {
let uuniqueId = Qs.parse(location.search.substring(1)).uniqueId
if(uuniqueId !== undefined && uuniqueId !== null && uuniqueId !== ""){
this.uniqueId =uuniqueId
}
this.getData();
this.goodsNo = this.getParam("goodsNo");
}

7
src/view/order-detail.vue

@ -101,6 +101,7 @@ var qs = require("qs");
export default {
data() {
return {
uniqueId:'',
state: "",
stateText: "",
orderNo: "",
@ -216,7 +217,7 @@ export default {
},
go(num) {
if (num == 1) {
location.href = "/mall/web/vgoods/detail/" + this.info.goodsNo;
location.href = "/mall/web/vgoods/detail/" + this.info.goodsNo+ '?uniqueId='+ uniqueId;
} else if (num == 2) {
location.href = "/mall/web/appoint_index";
} else if (num == 3) {
@ -347,6 +348,10 @@ export default {
}
},
mounted() {
let uuniqueId = Qs.parse(location.search.substring(1)).uniqueId
if(uuniqueId !== undefined && uuniqueId !== null && uuniqueId !== ""){
this.uniqueId =uuniqueId
}
this.orderNo = this.$route.params.id;
this.getData();
}

Loading…
Cancel
Save