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"> <div v-if="goodsList.length != 0" v-for="(item,index) in goodsList" :key="index" class="food-list-hook">
<p class="title">{{item.combinationName}}</p> <p class="title">{{item.combinationName}}</p>
<div class="f-relative f-all-1px" v-for="(goods,k) in item.goodsList" :key="k"> <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"> <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" /> <img :src=" imghost + goods.bannerImgs" class="thumb" />
</a> </a>
<div class="info f-flex"> <div class="info f-flex">
@ -56,9 +56,11 @@ import goodsApi from "../models/goods-model.js";
//import configs from '../configs'; //import configs from '../configs';
import { Alert, Toast, Popup, Loading } from "vux"; import { Alert, Toast, Popup, Loading } from "vux";
import BScroll from "better-scroll"; import BScroll from "better-scroll";
import Qs from 'qs';
export default { export default {
data() { data() {
return { return {
uniqueId:'',
no: 0, no: 0,
id: 0, id: 0,
c_no: 0, c_no: 0,
@ -257,6 +259,10 @@ export default {
} }
}, },
mounted() { mounted() {
let uuniqueId = Qs.parse(location.search.substring(1)).uniqueId
if(uuniqueId !== undefined && uuniqueId !== null && uuniqueId !== ""){
this.uniqueId =uuniqueId
}
this.getParams(); this.getParams();
this.ShareWenXin(); this.ShareWenXin();
} }

7
src/view/month-card.vue

@ -85,6 +85,7 @@ var locationUrl = configs.locationUrl;
export default { export default {
data() { data() {
return { return {
uniqueId:'',
loading: false, loading: false,
getData: {}, getData: {},
couponType: { couponType: {
@ -126,7 +127,7 @@ export default {
// 使 // 使
handleUseCoupon() { handleUseCoupon() {
window.location.href = 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() { mounted() {
let uuniqueId = Qs.parse(location.search.substring(1)).uniqueId
if(uuniqueId !== undefined && uuniqueId !== null && uuniqueId !== ""){
this.uniqueId =uuniqueId
}
// //
this.handleInit(); this.handleInit();
this.wxShare({ this.wxShare({

7
src/view/order-check.vue

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

7
src/view/order-detail.vue

@ -101,6 +101,7 @@ var qs = require("qs");
export default { export default {
data() { data() {
return { return {
uniqueId:'',
state: "", state: "",
stateText: "", stateText: "",
orderNo: "", orderNo: "",
@ -216,7 +217,7 @@ export default {
}, },
go(num) { go(num) {
if (num == 1) { 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) { } else if (num == 2) {
location.href = "/mall/web/appoint_index"; location.href = "/mall/web/appoint_index";
} else if (num == 3) { } else if (num == 3) {
@ -347,6 +348,10 @@ export default {
} }
}, },
mounted() { 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.orderNo = this.$route.params.id;
this.getData(); this.getData();
} }

Loading…
Cancel
Save