|
@@ -57,6 +57,7 @@ export default {
|
|
|
haveData: true,
|
|
|
hasPermission: "",
|
|
|
reportId: 0,
|
|
|
+ titleTxT: "",
|
|
|
};
|
|
|
},
|
|
|
components: { statement },
|
|
@@ -69,6 +70,10 @@ export default {
|
|
|
this.hasPermission = res.Data.HasPermission;
|
|
|
this.reportDetail = res.Data.Detail;
|
|
|
this.haveData = this.reportDetail ? true : false;
|
|
|
+ this.titleTxT = this.reportDetail.Title;
|
|
|
+ uni.setNavigationBarTitle({
|
|
|
+ title: this.titleTxT,
|
|
|
+ });
|
|
|
} else {
|
|
|
this.haveData = false;
|
|
|
}
|
|
@@ -77,7 +82,7 @@ export default {
|
|
|
applyAuth() {
|
|
|
this.hasPermission === 4
|
|
|
? uni.navigateTo({
|
|
|
- url: "/pageMy/applyTrial/applyTrial?tryType=Article&detailId=" + this.id,
|
|
|
+ url: "/pageMy/applyTrial/applyTrial?tryType=ProductInterior&detailId=" + this.id,
|
|
|
})
|
|
|
: uni.showModal({
|
|
|
title: "",
|
|
@@ -118,6 +123,12 @@ export default {
|
|
|
"";
|
|
|
}
|
|
|
},
|
|
|
+ // 返回首頁
|
|
|
+ backIndex() {
|
|
|
+ uni.switchTab({
|
|
|
+ url: "/pages/index/index",
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
this.reportId = Number(options.id) || "";
|
|
@@ -129,8 +140,8 @@ export default {
|
|
|
},
|
|
|
onShareAppMessage() {
|
|
|
return {
|
|
|
- title: "xxxxxx",
|
|
|
- path: "/reportPages/internalDetials/internalDetials",
|
|
|
+ title: this.titleTxT,
|
|
|
+ path: "/reportPages/internalDetials/internalDetials?id=" + this.reportId,
|
|
|
};
|
|
|
},
|
|
|
};
|