|
@@ -2,27 +2,7 @@
|
|
|
<block v-if="isUserBindingPhoneNumber">
|
|
|
<block v-if="hasPermission === 1">
|
|
|
<view class="container internal-detials" v-if="haveData">
|
|
|
- <view class="report-content-title">{{ reportDetail.Title }}</view>
|
|
|
- <view class="author-time">
|
|
|
- <text>{{ reportDetail.Department }}</text>
|
|
|
- <text>{{ reportDetail.PublishTime }}</text>
|
|
|
- </view>
|
|
|
- <view class="content-statement">
|
|
|
- <text>注:请务必阅读</text>
|
|
|
- <text class="statement" @click="isShowStatement = true">免责声明 </text>
|
|
|
- </view>
|
|
|
- <view class="content-abstract"> 摘要:{{ reportDetail.Abstract }}</view>
|
|
|
- <statement :show="isShowStatement" />
|
|
|
- <view>
|
|
|
- <view
|
|
|
- v-for="(item, index) in reportDetail.BodySlice"
|
|
|
- :key="index"
|
|
|
- @click="goIsTypeDetails(item)"
|
|
|
- :style="{ color: item.Type > 1 && '#3385FF', 'word-wrap': 'break-word' }"
|
|
|
- >
|
|
|
- <mp-html :content="strFontSize(item.Body)" />
|
|
|
- </view>
|
|
|
- </view>
|
|
|
+ <web-view :src="linkurl + '?id=' + reportId + '&token=' + access_token"></web-view>
|
|
|
</view>
|
|
|
<view class="nodata" v-else>
|
|
|
<image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/report_loading_icon.png" class="nodata_img"></image>
|
|
@@ -53,6 +33,7 @@
|
|
|
import { Reports } from "@/config/api.js";
|
|
|
import statement from "@/reportPages/components/statement.vue";
|
|
|
import NotHaveLogin from "@/components/notHaveLogin.vue";
|
|
|
+import { intemalLinkUrl } from "@/config/config.js";
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -62,8 +43,14 @@ export default {
|
|
|
hasPermission: "",
|
|
|
reportId: 0,
|
|
|
titleTxT: "",
|
|
|
+ access_token: "",
|
|
|
};
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ linkurl() {
|
|
|
+ return intemalLinkUrl;
|
|
|
+ },
|
|
|
+ },
|
|
|
components: { statement, NotHaveLogin },
|
|
|
methods: {
|
|
|
async reportSelectionDetail() {
|
|
@@ -78,6 +65,7 @@ export default {
|
|
|
uni.setNavigationBarTitle({
|
|
|
title: this.titleTxT,
|
|
|
});
|
|
|
+ this.access_token = this.access_token || this.$db.get("access_token");
|
|
|
} else {
|
|
|
this.haveData = false;
|
|
|
}
|