|
@@ -139,6 +139,7 @@ const showTips = ref(false);
|
|
|
const contentBox = ref(null);
|
|
|
const isBinding = ref(true);
|
|
|
const isSendWx = ref("");
|
|
|
+const isYanxuan = ref("");
|
|
|
|
|
|
/* 访谈接口 */
|
|
|
const interviewApi = () => {
|
|
@@ -155,7 +156,7 @@ const interviewApi = () => {
|
|
|
//跳转到免费送月卡页面
|
|
|
const toggle = () => {
|
|
|
wx.miniProgram.navigateTo({
|
|
|
- url: "/pageMy/freeTrial/freeTrial",
|
|
|
+ url: `/${isYanxuan.value ? "pages-user" : "pageMy"}/freeTrial/freeTrial`,
|
|
|
});
|
|
|
};
|
|
|
const isShowFreeBtn = ref(false);
|
|
@@ -177,7 +178,7 @@ const userIsShowFreeButton = async () => {
|
|
|
// 跳转到作者页面
|
|
|
const goAuthorPages = () => {
|
|
|
wx.miniProgram.navigateTo({
|
|
|
- url: "/reportPages/authorPages/authorPages?id=" + state.reportInfo.DepartmentId,
|
|
|
+ url: `/${isYanxuan.value ? "pages-report" : "reportPages"}/authorPages/authorPages?id=` + state.reportInfo.DepartmentId,
|
|
|
});
|
|
|
};
|
|
|
const downloadFile = async () => {
|
|
@@ -192,7 +193,7 @@ const downloadFile = async () => {
|
|
|
if (res.Ret === 200) {
|
|
|
Toast.clear();
|
|
|
wx.miniProgram.navigateTo({
|
|
|
- url: "/pageMy/downloadFile/downloadFile?url=" + res.Data.FileLink,
|
|
|
+ url: `/${isYanxuan.value ? "pages-user" : "pageMy"}/downloadFile/downloadFile?url=` + res.Data.FileLink,
|
|
|
});
|
|
|
}
|
|
|
};
|
|
@@ -256,7 +257,7 @@ const attentionBtn = () => {
|
|
|
})
|
|
|
.then(() => {
|
|
|
wx.miniProgram.navigateTo({
|
|
|
- url: "/activityPages/accountsOfficial/accountsOfficial",
|
|
|
+ url: `/${isYanxuan.value ? "pages-activity" : "activityPages"}/accountsOfficial/accountsOfficial`,
|
|
|
});
|
|
|
})
|
|
|
.catch(() => {
|
|
@@ -296,7 +297,7 @@ const collectHandle = () => {
|
|
|
/* 文章相关热门跳转 */
|
|
|
const goDetail = (item) => {
|
|
|
wx.miniProgram.navigateTo({
|
|
|
- url: "/pageMy/reportDetail/reportDetail?id=" + item.ArticleId,
|
|
|
+ url: `/${isYanxuan.value ? "pages-user" : "pageMy"}/reportDetail/reportDetail?id=` + item.ArticleId,
|
|
|
});
|
|
|
};
|
|
|
/* 文章相关热门收藏 */
|
|
@@ -329,20 +330,10 @@ const waterMark = (text) => {
|
|
|
// 将容器的的背景图片设置为生成的base64图片,并平铺
|
|
|
contentBox.value.style.background = "url(" + data + ") repeat";
|
|
|
};
|
|
|
-//点击回到搜索页面
|
|
|
-const btnSearch = () => {
|
|
|
- if (state.reportInfo.IsBelongSummary) {
|
|
|
- wx.miniProgram.navigateTo({ url: "/pageMy/search/search" });
|
|
|
- } else {
|
|
|
- wx.miniProgram.navigateTo({
|
|
|
- url: "/reportPages/reportSearch/reportSearch",
|
|
|
- });
|
|
|
- }
|
|
|
-};
|
|
|
//点击到提问页面
|
|
|
const quizBtn = () => {
|
|
|
wx.miniProgram.navigateTo({
|
|
|
- url: "/activityPages/generationAsk/generationAsk?id=" + state.reportInfo.ArticleId + "&type=文章",
|
|
|
+ url: `/${isYanxuan.value ? "pages-activity" : "activityPages"}/generationAsk/generationAsk?id=` + state.reportInfo.ArticleId + "&type=文章",
|
|
|
});
|
|
|
};
|
|
|
// 约访专家
|
|
@@ -449,7 +440,7 @@ const pleaseGoLogin = () => {
|
|
|
}).then((res) => {
|
|
|
if (res == "confirm") {
|
|
|
wx.miniProgram.navigateTo({
|
|
|
- url: "/pageMy/login/login",
|
|
|
+ url: `/${isYanxuan.value ? "pages-user" : "pageMy"}/login/login`,
|
|
|
});
|
|
|
}
|
|
|
});
|
|
@@ -462,7 +453,7 @@ onMounted(() => {
|
|
|
from_type.value = route.query.fromType;
|
|
|
let access_token = route.query.token || "";
|
|
|
isBinding.value = route.query.isBinding == "true" ? true : false;
|
|
|
- console.log(isBinding.value);
|
|
|
+ isYanxuan.value = route.query.isYanxuan ? true : false;
|
|
|
localStorage.setItem("access_token", access_token);
|
|
|
getReport(rerportId.value, access_token, from_type.value);
|
|
|
userIsShowFreeButton();
|