|
@@ -186,6 +186,7 @@ import {
|
|
|
strategyGetID,
|
|
|
detMainProduct,
|
|
|
seniorStrategy,
|
|
|
+ strategytemplate,
|
|
|
} from "../../api";
|
|
|
import { Dialog } from "vant";
|
|
|
import common from "../../common/common";
|
|
@@ -325,7 +326,7 @@ export default {
|
|
|
ruleShow () {
|
|
|
this.showRule = false;
|
|
|
},
|
|
|
- productClick (val, index) {
|
|
|
+ async productClick (val, index) {
|
|
|
this.clickCss = index;
|
|
|
this.pageData.mainProduct.isTreaty = index;
|
|
|
this.indexNum = index;
|
|
@@ -342,41 +343,155 @@ export default {
|
|
|
let times = (now - 1600476800000) / 180000;
|
|
|
this.times = String(Math.ceil(times * add) + start);
|
|
|
}
|
|
|
- detMainProduct({
|
|
|
- productId: val,
|
|
|
- }).then(async (res) => {
|
|
|
- if (res.data.cacheSeatOne && res.data.cacheSeatOne !== null) {
|
|
|
- this.productJson = res.data.cacheSeatOne;
|
|
|
+ if (this.pageData.channl.edition && this.pageData.channl.edition === '1') {
|
|
|
+ let info = await detMainProduct({ productId: val })
|
|
|
+ let viceProduct = this.pageData.viceJson
|
|
|
+ let mainJson = this.pageData.mainJson
|
|
|
+ if (index === 1) {
|
|
|
+ let mainProduct = {
|
|
|
+ activeType: info.data.activeType,
|
|
|
+ bannerPics: [viceProduct.bannerImg, viceProduct.jsonImg, viceProduct.upImg, viceProduct.topImg,],
|
|
|
+ bgColor: [viceProduct.pageBgcol, '', viceProduct.orderBgcol, viceProduct.orderBdcol],
|
|
|
+ cacheSeatOne: [{
|
|
|
+ dongHua: viceProduct.drawVal,
|
|
|
+ memberUrl: info.data.cacheSeatOne[0].memberUrl,
|
|
|
+ proC: {
|
|
|
+ e: viceProduct.hideCol,
|
|
|
+ s: viceProduct.pageTextcol
|
|
|
+ },
|
|
|
+ productV: viceProduct.productV,
|
|
|
+ rushC: {
|
|
|
+ e: viceProduct.orderTextcol,
|
|
|
+ s: viceProduct.orderNumcol,
|
|
|
+ },
|
|
|
+ tabC: {
|
|
|
+ e: viceProduct.tabVicecol,
|
|
|
+ s: viceProduct.tabMaincol,
|
|
|
+ },
|
|
|
+ btnUrl: "",
|
|
|
+ }],
|
|
|
+ cpid: info.data.cpid,
|
|
|
+ discountInfo: null,
|
|
|
+ flowJumpUrl: info.data.flowJumpUrl,
|
|
|
+ givePhoneInfo: info.data.givePhoneInfo,
|
|
|
+ guidancePic: {
|
|
|
+ c: viceProduct.orderImg,
|
|
|
+ p: viceProduct.explainImg
|
|
|
+ },
|
|
|
+ id: info.data.primaryProductId,
|
|
|
+ isCompositeProduct: 0, //是否复合产品
|
|
|
+ logoPic: mainJson.logoPic,
|
|
|
+ manualInfo: info.data.manualInfo,
|
|
|
+ memberName: info.data.memberName,
|
|
|
+ orderingInfo: info.data.orderingInfo,
|
|
|
+ originalPrice: info.data.originalPrice,
|
|
|
+ pageTitle: mainJson.pageTitle,
|
|
|
+ productName: info.data.productName,
|
|
|
+ productType: info.data.productType,
|
|
|
+ promotionPic: info.data.promotionPic,
|
|
|
+ pushJumpUrl: info.data.pushJumpUrl,
|
|
|
+ remark: info.data.producremarktName,
|
|
|
+ remark1: info.data.remark1,
|
|
|
+ remark2: info.data.remark2,
|
|
|
+ remark3: mainJson.remark3,
|
|
|
+ spid: info.data.spid,
|
|
|
+ themeColor: [viceProduct.btnTopcol, viceProduct.btnBotcol],
|
|
|
+ }
|
|
|
+ this.productJson = mainProduct.cacheSeatOne;
|
|
|
+ this.pageData.mainProduct = mainProduct;
|
|
|
+ } else if (index === 0) {
|
|
|
+ let mainProduct = {
|
|
|
+ activeType: info.data.activeType,
|
|
|
+ bannerPics: [mainJson.bannerImg, mainJson.jsonImg, mainJson.upImg, mainJson.topImg,],
|
|
|
+ bgColor: [mainJson.pageBgcol, '', mainJson.orderBgcol, mainJson.orderBdcol],
|
|
|
+ cacheSeatOne: [{
|
|
|
+ dongHua: mainJson.drawVal,
|
|
|
+ memberUrl: info.data.cacheSeatOne[0].memberUrl,
|
|
|
+ proC: {
|
|
|
+ e: mainJson.hideCol,
|
|
|
+ s: mainJson.pageTextcol
|
|
|
+ },
|
|
|
+ productV: mainJson.productV,
|
|
|
+ rushC: {
|
|
|
+ e: mainJson.orderTextcol,
|
|
|
+ s: mainJson.orderNumcol,
|
|
|
+ },
|
|
|
+ tabC: {
|
|
|
+ e: mainJson.tabVicecol,
|
|
|
+ s: mainJson.tabMaincol,
|
|
|
+ },
|
|
|
+ btnUrl: "",
|
|
|
+ }],
|
|
|
+ cpid: info.data.cpid,
|
|
|
+ discountInfo: null,
|
|
|
+ flowJumpUrl: info.data.flowJumpUrl,
|
|
|
+ givePhoneInfo: info.data.givePhoneInfo,
|
|
|
+ guidancePic: {
|
|
|
+ c: mainJson.orderImg,
|
|
|
+ p: mainJson.explainImg
|
|
|
+ },
|
|
|
+ id: info.data.primaryProductId,
|
|
|
+ isCompositeProduct: 0, //是否复合产品
|
|
|
+ logoPic: mainJson.logoPic,
|
|
|
+ manualInfo: info.data.manualInfo,
|
|
|
+ memberName: info.data.memberName,
|
|
|
+ orderingInfo: info.data.orderingInfo,
|
|
|
+ originalPrice: info.data.originalPrice,
|
|
|
+ pageTitle: mainJson.pageTitle,
|
|
|
+ productName: info.data.productName,
|
|
|
+ productType: info.data.productType,
|
|
|
+ promotionPic: info.data.promotionPic,
|
|
|
+ pushJumpUrl: info.data.pushJumpUrl,
|
|
|
+ remark: info.data.producremarktName,
|
|
|
+ remark1: info.data.remark1,
|
|
|
+ remark2: info.data.remark2,
|
|
|
+ remark3: mainJson.remark3,
|
|
|
+ spid: info.data.spid,
|
|
|
+ themeColor: [mainJson.btnTopcol, mainJson.btnBotcol],
|
|
|
+ }
|
|
|
+ this.productJson = mainProduct.cacheSeatOne;
|
|
|
+ this.pageData.mainProduct = mainProduct;
|
|
|
}
|
|
|
- this.pageData.mainProduct = res.data;
|
|
|
- this.param.cpid = res.data.cpid;
|
|
|
- this.param.spid = res.data.spid;
|
|
|
- document.title = res.data.remark;
|
|
|
-
|
|
|
- // this.pageData.remarks.btnText = res.data.
|
|
|
+ this.param.cpid = info.data.cpid;
|
|
|
+ this.param.spid = info.data.spid;
|
|
|
+ document.title = info.data.remark;
|
|
|
this.$store.commit("setPageData", this.pageData);
|
|
|
- if (this.user.userid) {
|
|
|
- await orderList({
|
|
|
- userid: this.user.userid,
|
|
|
- cpid: res.data.cpid,
|
|
|
- spid: res.data.spid,
|
|
|
- }).then((res) => {
|
|
|
- let data = res.data;
|
|
|
- if (data.length === 0) {
|
|
|
- this.isBuy = "未订购";
|
|
|
- } else {
|
|
|
- for (let i = 0; i < data.length; i++) {
|
|
|
- if (data[i].STATUS === "0") {
|
|
|
- this.isBuy = "已订购";
|
|
|
- } else {
|
|
|
- this.isBuy = "已退订";
|
|
|
- }
|
|
|
+ } else {
|
|
|
+ detMainProduct({
|
|
|
+ productId: val,
|
|
|
+ }).then(async (res) => {
|
|
|
+ if (res.data.cacheSeatOne && res.data.cacheSeatOne !== null) {
|
|
|
+ this.productJson = res.data.cacheSeatOne;
|
|
|
+ }
|
|
|
+ this.pageData.mainProduct = res.data;
|
|
|
+ this.param.cpid = res.data.cpid;
|
|
|
+ this.param.spid = res.data.spid;
|
|
|
+ document.title = res.data.remark;
|
|
|
+ this.$store.commit("setPageData", this.pageData);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (this.user.userid) {
|
|
|
+ await orderList({
|
|
|
+ userid: this.user.userid,
|
|
|
+ cpid: res.data.cpid,
|
|
|
+ spid: res.data.spid,
|
|
|
+ }).then((res) => {
|
|
|
+ let data = res.data;
|
|
|
+ if (data.length === 0) {
|
|
|
+ this.isBuy = "未订购";
|
|
|
+ } else {
|
|
|
+ for (let i = 0; i < data.length; i++) {
|
|
|
+ if (data[i].STATUS === "0") {
|
|
|
+ this.isBuy = "已订购";
|
|
|
+ } else {
|
|
|
+ this.isBuy = "已退订";
|
|
|
}
|
|
|
}
|
|
|
- });
|
|
|
- }
|
|
|
- this.callSvg()
|
|
|
- });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ this.callSvg()
|
|
|
+
|
|
|
},
|
|
|
result (a, b) {
|
|
|
return (a - b).toFixed(2);
|
|
@@ -415,13 +530,23 @@ export default {
|
|
|
this.pageData.strategyInfo.unsubscribeStrategyList !== null &&
|
|
|
this.pageData.strategyInfo.unsubscribeStrategyList.length > 0
|
|
|
) {
|
|
|
- let productId = await strategyGetID({
|
|
|
- id: this.pageData.strategyInfo.unsubscribeStrategyList[0],
|
|
|
- });
|
|
|
- let drainageRes = await detMainProduct({
|
|
|
- productId: productId.data.primaryProductId,
|
|
|
- });
|
|
|
- this.unBuyDrainageText = drainageRes.data.productName;
|
|
|
+ if (this.pageData.channl.edition && this.pageData.channl.edition === '1') {
|
|
|
+ let productId = await strategytemplate({
|
|
|
+ id: this.pageData.strategyInfo.unsubscribeStrategyList[0],
|
|
|
+ });
|
|
|
+ let drainageRes = await detMainProduct({
|
|
|
+ productId: productId.data.primaryProductId,
|
|
|
+ });
|
|
|
+ this.unBuyDrainageText = drainageRes.data.productName;
|
|
|
+ } else {
|
|
|
+ let productId = await strategyGetID({
|
|
|
+ id: this.pageData.strategyInfo.unsubscribeStrategyList[0],
|
|
|
+ });
|
|
|
+ let drainageRes = await detMainProduct({
|
|
|
+ productId: productId.data.primaryProductId,
|
|
|
+ });
|
|
|
+ this.unBuyDrainageText = drainageRes.data.productName;
|
|
|
+ }
|
|
|
this.unBuyDrainage = true;
|
|
|
} else {
|
|
|
if (this.pageData.remarks.treaty && this.pageData.remarks.treaty === '1') {
|
|
@@ -437,13 +562,21 @@ export default {
|
|
|
this.pageData.strategyInfo.unsubscribeStrategyList !== null &&
|
|
|
this.pageData.strategyInfo.unsubscribeStrategyList.length > 0
|
|
|
) {
|
|
|
- let productId = await strategyGetID({
|
|
|
- id: this.pageData.strategyInfo.unsubscribeStrategyList[0],
|
|
|
- });
|
|
|
- let drainageRes = await detMainProduct({
|
|
|
- productId: productId.data.primaryProductId,
|
|
|
- });
|
|
|
- this.unBuyDrainageText = drainageRes.data.productName;
|
|
|
+ if (this.pageData.channl.edition && this.pageData.channl.edition === '1') {
|
|
|
+ let productId = await strategytemplate(this.pageData.strategyInfo.unsubscribeStrategyList[0]);
|
|
|
+ let drainageRes = await detMainProduct({
|
|
|
+ productId: productId.data.primaryProductId,
|
|
|
+ });
|
|
|
+ this.unBuyDrainageText = drainageRes.data.productName;
|
|
|
+ } else {
|
|
|
+ let productId = await strategyGetID({
|
|
|
+ id: this.pageData.strategyInfo.unsubscribeStrategyList[0],
|
|
|
+ });
|
|
|
+ let drainageRes = await detMainProduct({
|
|
|
+ productId: productId.data.primaryProductId,
|
|
|
+ });
|
|
|
+ this.unBuyDrainageText = drainageRes.data.productName;
|
|
|
+ }
|
|
|
this.unBuyDrainage = true;
|
|
|
} else {
|
|
|
if (this.pageData.remarks.treaty && this.pageData.remarks.treaty === '1') {
|
|
@@ -469,7 +602,7 @@ export default {
|
|
|
url = "/order001";
|
|
|
} else if (type === "member") {
|
|
|
addR.memberClick();
|
|
|
- if (this.productJson[0].memberUrl && this.productJson.length>0 && this.pageData.mainProduct.cacheSeatOne[0].memberUrl !== "") {
|
|
|
+ if (this.productJson[0].memberUrl && this.productJson.length > 0 && this.pageData.mainProduct.cacheSeatOne[0].memberUrl !== "") {
|
|
|
window.location.href = this.productJson[0].memberUrl;
|
|
|
return false;
|
|
|
} else {
|
|
@@ -493,108 +626,196 @@ export default {
|
|
|
// 推荐产品跳转
|
|
|
recommend (val) {
|
|
|
// this.$store.commit("setTempName", "loading");
|
|
|
- strategyGetID({
|
|
|
- id: val,
|
|
|
- }).then(async (res) => {
|
|
|
- if (res.data.strategyStatus === 1) {
|
|
|
- let data = res.data;
|
|
|
+ let edition = this.$store.state.pageData.channl.edition
|
|
|
+ if (edition && edition === '1') {
|
|
|
+ strategytemplate(val).then(async res => {
|
|
|
let info = await detMainProduct({
|
|
|
- productId: data.primaryProductId,
|
|
|
+ productId: res.data.primaryProductId,
|
|
|
});
|
|
|
- if (this.user.userid) {
|
|
|
- this.getIsBuy();
|
|
|
+ let productJson = JSON.parse(res.data.productJson).product
|
|
|
+ let mainProduct = {
|
|
|
+ activeType: info.data.activeType,
|
|
|
+ bannerPics: [productJson.bannerImg, productJson.jsonImg, productJson.upImg, productJson.topImg,],
|
|
|
+ bgColor: [productJson.pageBgcol, '', productJson.orderBgcol, productJson.orderBdcol],
|
|
|
+ cacheSeatOne: [{
|
|
|
+ dongHua: productJson.drawVal,
|
|
|
+ memberUrl: info.data.cacheSeatOne[0].memberUrl,
|
|
|
+ proC: {
|
|
|
+ e: productJson.hideCol,
|
|
|
+ s: productJson.pageTextcol
|
|
|
+ },
|
|
|
+ productV: productJson.productV,
|
|
|
+ rushC: {
|
|
|
+ e: productJson.orderTextcol,
|
|
|
+ s: productJson.orderNumcol,
|
|
|
+ },
|
|
|
+ tabC: {
|
|
|
+ e: productJson.tabVicecol,
|
|
|
+ s: productJson.tabMaincol,
|
|
|
+ },
|
|
|
+ btnUrl: "",
|
|
|
+ }],
|
|
|
+ cpid: info.data.cpid,
|
|
|
+ discountInfo: null,
|
|
|
+ flowJumpUrl: info.data.flowJumpUrl,
|
|
|
+ givePhoneInfo: info.data.givePhoneInfo,
|
|
|
+ guidancePic: {
|
|
|
+ c: productJson.orderImg,
|
|
|
+ p: productJson.explainImg
|
|
|
+ },
|
|
|
+ id: res.data.primaryProductId,
|
|
|
+ isCompositeProduct: 0, //是否复合产品
|
|
|
+ logoPic: productJson.logoPic,
|
|
|
+ manualInfo: info.data.manualInfo,
|
|
|
+ memberName: info.data.memberName,
|
|
|
+ orderingInfo: info.data.orderingInfo,
|
|
|
+ originalPrice: info.data.originalPrice,
|
|
|
+ pageTitle: productJson.pageTitle,
|
|
|
+ productName: info.data.productName,
|
|
|
+ productType: info.data.productType,
|
|
|
+ promotionPic: info.data.promotionPic,
|
|
|
+ pushJumpUrl: info.data.pushJumpUrl,
|
|
|
+ remark: info.data.producremarktName,
|
|
|
+ remark1: info.data.remark1,
|
|
|
+ remark2: info.data.remark2,
|
|
|
+ remark3: productJson.remark3,
|
|
|
+ spid: info.data.spid,
|
|
|
+ themeColor: [productJson.btnTopcol, productJson.btnBotcol],
|
|
|
}
|
|
|
let recommend = [];
|
|
|
- if (
|
|
|
- data.recommendStrategyList !== null &&
|
|
|
- data.recommendStrategyList.length > 0
|
|
|
- ) {
|
|
|
- for (let i = 0; i < data.recommendStrategyList.length; i++) {
|
|
|
- let list = await strategyGetID({
|
|
|
- id: data.recommendStrategyList[i],
|
|
|
- });
|
|
|
+ if (res.data.recommendStrategyIds.length > 0 && res.data.recommendStrategyIds) {
|
|
|
+ res.data.recommendStrategyIds.forEach(async val => {
|
|
|
+ let list = await strategytemplate(val)
|
|
|
recommend.push(list.data);
|
|
|
- }
|
|
|
+ });
|
|
|
}
|
|
|
let pageData = {
|
|
|
- mainProduct: info.data,
|
|
|
- strategyInfo: data,
|
|
|
- remarks: data.extJson,
|
|
|
+ mainProduct: mainProduct,
|
|
|
channl: {
|
|
|
- channelKey: localStorage.getItem("key"),
|
|
|
+ channelKey: "464c87375658",
|
|
|
+ channelName: "新策略H5整合测试",
|
|
|
+ fullCode: "173966823233",
|
|
|
+ edition: "1"
|
|
|
},
|
|
|
recommend: recommend,
|
|
|
+ remarks: JSON.parse(res.data.extJson), //策略信息
|
|
|
+ // viceJson: JSON.parse(res.data.viceJson), //副产品json
|
|
|
+ otherJson: JSON.parse(res.data.otherJson), //备用json
|
|
|
+ strategyInfo: res.data
|
|
|
};
|
|
|
- MgtvApi.setWebviewTitle({
|
|
|
- title: pageData.mainProduct.productName,
|
|
|
- });
|
|
|
- let params = {
|
|
|
- anonymousId: this.$sensors.store._state.$device_id,
|
|
|
- channleKey: localStorage.getItem("key"),
|
|
|
- spId: info.data.spid,
|
|
|
- userId: this.user.userid,
|
|
|
- };
|
|
|
- let item = await seniorStrategy(params);
|
|
|
- if (item.data !== null) {
|
|
|
- // 判断高级策略是否开启遮罩;
|
|
|
- if (item.data.enableMask !== null) {
|
|
|
- pageData.remarks.isMask = String(item.data.enableMask);
|
|
|
- // 判断高级策略是否有遮罩文案 并替换
|
|
|
- if (item.data.maskText !== null && item.data.maskText !== "") {
|
|
|
- pageData.remarks.maskText = item.data.maskText;
|
|
|
- }
|
|
|
+ pageData.strategyInfo.recommendStrategyList = res.data.recommendStrategyIds
|
|
|
+ pageData.strategyInfo.unsubscribeStrategyList = res.data.unsubscribeStrategyIds
|
|
|
+ pageData.strategyInfo.viceProductStrategyList = res.data.viceProductIds
|
|
|
+ if (JSON.parse(res.data.productJson).viceProduct) {
|
|
|
+ pageData.viceJson = JSON.parse(res.data.productJson).viceProduct
|
|
|
+ }
|
|
|
+ pageData.mainJson = JSON.parse(res.data.productJson).product
|
|
|
+ this.$store.commit("setPageData", pageData);
|
|
|
+ this.$store.commit('setTempName', res.data.templateCode)
|
|
|
+ })
|
|
|
+
|
|
|
+ } else {
|
|
|
+ strategyGetID({ id: val, }).then(async (res) => {
|
|
|
+ if (res.data.strategyStatus === 1) {
|
|
|
+ let data = res.data;
|
|
|
+ let info = await detMainProduct({
|
|
|
+ productId: data.primaryProductId,
|
|
|
+ });
|
|
|
+ if (this.user.userid) {
|
|
|
+ this.getIsBuy();
|
|
|
}
|
|
|
- // 判断高级策略是否开启有推荐
|
|
|
+ let recommend = [];
|
|
|
if (
|
|
|
- item.data.recommendStrategy !== "" &&
|
|
|
- item.data.recommendStrategy !== null
|
|
|
+ data.recommendStrategyList !== null &&
|
|
|
+ data.recommendStrategyList.length > 0
|
|
|
) {
|
|
|
- let itemList = item.data.recommendStrategy.split(",");
|
|
|
- pageData.recommend = [];
|
|
|
- itemList.forEach((v) => {
|
|
|
- strategyGetID({
|
|
|
- id: v,
|
|
|
- }).then((resp) => {
|
|
|
- pageData.recommend.push(resp.data);
|
|
|
+ for (let i = 0; i < data.recommendStrategyList.length; i++) {
|
|
|
+ let list = await strategyGetID({
|
|
|
+ id: data.recommendStrategyList[i],
|
|
|
});
|
|
|
- });
|
|
|
- }
|
|
|
- if (item.data.cancelRule !== "" && item.data.cancelRule !== null) {
|
|
|
- pageData.strategyInfo.unsubscribeStrategyList =
|
|
|
- item.data.cancelRule.split(",");
|
|
|
+ recommend.push(list.data);
|
|
|
+ }
|
|
|
}
|
|
|
- if (item.data.interceptRule === "1") {
|
|
|
- pageData.interceptRule = item.data.interceptRule;
|
|
|
+ let pageData = {
|
|
|
+ mainProduct: info.data,
|
|
|
+ strategyInfo: data,
|
|
|
+ remarks: data.extJson,
|
|
|
+ channl: {
|
|
|
+ channelKey: localStorage.getItem("key"),
|
|
|
+ },
|
|
|
+ recommend: recommend,
|
|
|
+ };
|
|
|
+ MgtvApi.setWebviewTitle({
|
|
|
+ title: pageData.mainProduct.productName,
|
|
|
+ });
|
|
|
+ let params = {
|
|
|
+ anonymousId: this.$sensors.store._state.$device_id,
|
|
|
+ channleKey: localStorage.getItem("key"),
|
|
|
+ spId: info.data.spid,
|
|
|
+ userId: this.user.userid,
|
|
|
+ };
|
|
|
+ let item = await seniorStrategy(params);
|
|
|
+ if (item.data !== null) {
|
|
|
+ // 判断高级策略是否开启遮罩;
|
|
|
+ if (item.data.enableMask !== null) {
|
|
|
+ pageData.remarks.isMask = String(item.data.enableMask);
|
|
|
+ // 判断高级策略是否有遮罩文案 并替换
|
|
|
+ if (item.data.maskText !== null && item.data.maskText !== "") {
|
|
|
+ pageData.remarks.maskText = item.data.maskText;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 判断高级策略是否开启有推荐
|
|
|
+ if (
|
|
|
+ item.data.recommendStrategy !== "" &&
|
|
|
+ item.data.recommendStrategy !== null
|
|
|
+ ) {
|
|
|
+ let itemList = item.data.recommendStrategy.split(",");
|
|
|
+ pageData.recommend = [];
|
|
|
+ itemList.forEach((v) => {
|
|
|
+ strategyGetID({
|
|
|
+ id: v,
|
|
|
+ }).then((resp) => {
|
|
|
+ pageData.recommend.push(resp.data);
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (item.data.cancelRule !== "" && item.data.cancelRule !== null) {
|
|
|
+ pageData.strategyInfo.unsubscribeStrategyList =
|
|
|
+ item.data.cancelRule.split(",");
|
|
|
+ }
|
|
|
+ if (item.data.interceptRule === "1") {
|
|
|
+ pageData.interceptRule = item.data.interceptRule;
|
|
|
+ }
|
|
|
+ if (item.data.location !== "" && item.data.location !== null) {
|
|
|
+ pageData.location = item.data.location.split(",");
|
|
|
+ }
|
|
|
}
|
|
|
- if (item.data.location !== "" && item.data.location !== null) {
|
|
|
- pageData.location = item.data.location.split(",");
|
|
|
+ document.title = pageData.mainProduct.productName;
|
|
|
+ this.$store.commit("setPageData", pageData);
|
|
|
+ if (this.$store.state.tempName === data.templateCode) {
|
|
|
+ setTimeout(() => {
|
|
|
+ this.callSvg()
|
|
|
+ }, 500)
|
|
|
}
|
|
|
- }
|
|
|
- document.title = pageData.mainProduct.productName;
|
|
|
- this.$store.commit("setPageData", pageData);
|
|
|
- if (this.$store.state.tempName === data.templateCode) {
|
|
|
- setTimeout(() => {
|
|
|
- this.callSvg()
|
|
|
- }, 500)
|
|
|
- }
|
|
|
- this.$store.commit("setTempName", data.templateCode);
|
|
|
- if (item.data !== null) {
|
|
|
- if (
|
|
|
- item.data.templateName !== "" &&
|
|
|
- item.data.templateName !== null
|
|
|
- ) {
|
|
|
- if (this.$store.state.tempName === item.data.templateName) {
|
|
|
- setTimeout(() => {
|
|
|
- this.callSvg()
|
|
|
- }, 500)
|
|
|
+ this.$store.commit("setTempName", data.templateCode);
|
|
|
+ if (item.data !== null) {
|
|
|
+ if (
|
|
|
+ item.data.templateName !== "" &&
|
|
|
+ item.data.templateName !== null
|
|
|
+ ) {
|
|
|
+ if (this.$store.state.tempName === item.data.templateName) {
|
|
|
+ setTimeout(() => {
|
|
|
+ this.callSvg()
|
|
|
+ }, 500)
|
|
|
+ }
|
|
|
+ this.$store.commit("setTempName", item.data.templateName);
|
|
|
}
|
|
|
- this.$store.commit("setTempName", item.data.templateName);
|
|
|
}
|
|
|
+ } else {
|
|
|
+ this.$toast.fail("当前策略未生效");
|
|
|
}
|
|
|
- } else {
|
|
|
- this.$toast.fail("当前策略未生效");
|
|
|
- }
|
|
|
- });
|
|
|
+ });
|
|
|
+ }
|
|
|
this.unBuyDrainage = false;
|
|
|
},
|
|
|
// 活动链接跳转
|