|
@@ -322,11 +322,11 @@ export default {
|
|
}
|
|
}
|
|
this.param.cpid = info.data.cpid;
|
|
this.param.cpid = info.data.cpid;
|
|
this.param.spid = info.data.spid;
|
|
this.param.spid = info.data.spid;
|
|
- let title = mainProduct.pageTitle !== '' ? mainProduct.pageTitle : mainProduct.productName
|
|
|
|
- document.title = title;
|
|
|
|
- MgtvApi.setWebviewTitle({
|
|
|
|
- title: title,
|
|
|
|
- });
|
|
|
|
|
|
+ let title = this.pageData.mainProduct.productName
|
|
|
|
+ document.title = title;
|
|
|
|
+ MgtvApi.setWebviewTitle({
|
|
|
|
+ title: title,
|
|
|
|
+ });
|
|
this.$store.commit("setPageData", this.pageData);
|
|
this.$store.commit("setPageData", this.pageData);
|
|
this.getIsBuy()
|
|
this.getIsBuy()
|
|
} else {
|
|
} else {
|
|
@@ -594,6 +594,9 @@ export default {
|
|
pageData.mainJson = JSON.parse(res.data.productJson).product
|
|
pageData.mainJson = JSON.parse(res.data.productJson).product
|
|
this.$store.commit("setPageData", pageData);
|
|
this.$store.commit("setPageData", pageData);
|
|
this.getIsBuy()
|
|
this.getIsBuy()
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.callSvg()
|
|
|
|
+ }, 200)
|
|
this.$store.commit('setTempName', res.data.templateCode)
|
|
this.$store.commit('setTempName', res.data.templateCode)
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
@@ -627,11 +630,9 @@ export default {
|
|
document.title = pageData.mainProduct.productName;
|
|
document.title = pageData.mainProduct.productName;
|
|
this.$store.commit("setPageData", pageData);
|
|
this.$store.commit("setPageData", pageData);
|
|
this.getIsBuy()
|
|
this.getIsBuy()
|
|
- if (this.$store.state.tempName === data.templateCode) {
|
|
|
|
- setTimeout(() => {
|
|
|
|
- this.callSvg()
|
|
|
|
- }, 500)
|
|
|
|
- }
|
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.callSvg()
|
|
|
|
+ }, 200)
|
|
this.$store.commit("setTempName", data.templateCode);
|
|
this.$store.commit("setTempName", data.templateCode);
|
|
} else {
|
|
} else {
|
|
this.$toast.fail("当前策略未生效");
|
|
this.$toast.fail("当前策略未生效");
|