|
@@ -443,7 +443,7 @@ export default {
|
|
|
productType: info.data.productType,
|
|
|
promotionPic: info.data.promotionPic,
|
|
|
pushJumpUrl: info.data.pushJumpUrl,
|
|
|
- remark: info.data.producremarktName,
|
|
|
+ remark: info.data.remark,
|
|
|
remark1: info.data.remark1,
|
|
|
remark2: info.data.remark2,
|
|
|
remark3: mainJson.remark3,
|
|
@@ -507,40 +507,26 @@ export default {
|
|
|
productType: info.data.productType,
|
|
|
promotionPic: info.data.promotionPic,
|
|
|
pushJumpUrl: info.data.pushJumpUrl,
|
|
|
- remark: info.data.producremarktName,
|
|
|
+ remark: info.data.remark,
|
|
|
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.param.cpid = info.data.cpid;
|
|
|
this.param.spid = info.data.spid;
|
|
|
- document.title = info.data.remark;
|
|
|
+ let title = mainProduct.pageTitle !== '' ? mainProduct.pageTitle : mainProduct.productName
|
|
|
+ document.title = title;
|
|
|
+ MgtvApi.setWebviewTitle({
|
|
|
+ title: title,
|
|
|
+ });
|
|
|
this.$store.commit("setPageData", this.pageData);
|
|
|
- if (this.user.userid) {
|
|
|
- await orderList({
|
|
|
- userid: this.user.userid,
|
|
|
- cpid: this.param.cpid,
|
|
|
- spid: this.param.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.getIsBuy()
|
|
|
} else {
|
|
|
detMainProduct({
|
|
|
productId: val,
|
|
@@ -553,26 +539,7 @@ export default {
|
|
|
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: this.param.cpid,
|
|
|
- spid: this.param.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.getIsBuy()
|
|
|
});
|
|
|
}
|
|
|
|
|
@@ -809,7 +776,7 @@ export default {
|
|
|
productType: info.data.productType,
|
|
|
promotionPic: info.data.promotionPic,
|
|
|
pushJumpUrl: info.data.pushJumpUrl,
|
|
|
- remark: info.data.producremarktName,
|
|
|
+ remark: info.data.remark,
|
|
|
remark1: info.data.remark1,
|
|
|
remark2: info.data.remark2,
|
|
|
remark3: productJson.remark3,
|
|
@@ -849,8 +816,14 @@ export default {
|
|
|
if (JSON.parse(res.data.productJson).viceProduct) {
|
|
|
pageData.viceJson = JSON.parse(res.data.productJson).viceProduct;
|
|
|
}
|
|
|
+ let title = mainProduct.pageTitle !== '' ? mainProduct.pageTitle : mainProduct.productName
|
|
|
+ document.title = title;
|
|
|
+ MgtvApi.setWebviewTitle({
|
|
|
+ title: title,
|
|
|
+ });
|
|
|
pageData.mainJson = JSON.parse(res.data.productJson).product;
|
|
|
this.$store.commit("setPageData", pageData);
|
|
|
+ this.getIsBuy()
|
|
|
this.$store.commit("setTempName", res.data.templateCode);
|
|
|
});
|
|
|
} else {
|
|
@@ -860,9 +833,6 @@ export default {
|
|
|
let info = await detMainProduct({
|
|
|
productId: data.primaryProductId,
|
|
|
});
|
|
|
- if (this.user.userid) {
|
|
|
- this.getIsBuy();
|
|
|
- }
|
|
|
let recommend = [];
|
|
|
if (
|
|
|
data.recommendStrategyList !== null &&
|
|
@@ -889,6 +859,7 @@ export default {
|
|
|
});
|
|
|
document.title = pageData.mainProduct.productName;
|
|
|
this.$store.commit("setPageData", pageData);
|
|
|
+ this.getIsBuy()
|
|
|
if (this.$store.state.tempName === data.templateCode) {
|
|
|
setTimeout(() => {
|
|
|
this.callSvg();
|