|
@@ -21,8 +21,8 @@
|
|
<!-- 时间 -->
|
|
<!-- 时间 -->
|
|
<view class="detail-data">{{formatDate.join('-') }}</view>
|
|
<view class="detail-data">{{formatDate.join('-') }}</view>
|
|
<!-- 富文本 -->
|
|
<!-- 富文本 -->
|
|
- <MtaMpHtml class="dljt-editor-box" :content="data.info.content" ></MtaMpHtml>
|
|
|
|
-
|
|
|
|
|
|
+ <MtaMpHtml class="dljt-editor-box" :content="data.info.content"></MtaMpHtml>
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -36,26 +36,28 @@
|
|
ref,
|
|
ref,
|
|
reactive,
|
|
reactive,
|
|
computed,
|
|
computed,
|
|
- onMounted,
|
|
|
|
- onUnmounted
|
|
|
|
|
|
+ onMounted,
|
|
|
|
+ onUnmounted
|
|
} from "vue";
|
|
} from "vue";
|
|
import {
|
|
import {
|
|
onLoad
|
|
onLoad
|
|
} from "@dcloudio/uni-app"
|
|
} from "@dcloudio/uni-app"
|
|
import * as httpApi from "@/api/common.js"
|
|
import * as httpApi from "@/api/common.js"
|
|
- import {formatDateToYearMonthDay } from "@/utils/common.js"
|
|
|
|
- import MtaMpHtml from "@/components/MTAMpHtml/MtaMpHtml.vue"
|
|
|
|
- import MtaFooter from "@/components/MtaFooter.vue"
|
|
|
|
|
|
+ import {
|
|
|
|
+ formatDateToYearMonthDay
|
|
|
|
+ } from "@/utils/common.js"
|
|
|
|
+ import MtaMpHtml from "@/components/MTAMpHtml/MtaMpHtml.vue"
|
|
|
|
+ import MtaFooter from "@/components/MtaFooter.vue"
|
|
const data = reactive({
|
|
const data = reactive({
|
|
info: null,
|
|
info: null,
|
|
id: null
|
|
id: null
|
|
})
|
|
})
|
|
const formatDate = computed(() => {
|
|
const formatDate = computed(() => {
|
|
- if (data.info && data.info.createTime) {
|
|
|
|
- return formatDateToYearMonthDay(data.info.createTime)
|
|
|
|
- }
|
|
|
|
- return []
|
|
|
|
- })
|
|
|
|
|
|
+ if (data.info && data.info.createTime) {
|
|
|
|
+ return formatDateToYearMonthDay(data.info.createTime)
|
|
|
|
+ }
|
|
|
|
+ return []
|
|
|
|
+ })
|
|
|
|
|
|
|
|
|
|
onLoad(({
|
|
onLoad(({
|
|
@@ -65,27 +67,25 @@
|
|
pageInit();
|
|
pageInit();
|
|
})
|
|
})
|
|
|
|
|
|
-
|
|
|
|
- function handleGo(code) {
|
|
|
|
- if (code == 'shouye') {
|
|
|
|
- uni.navigateTo({
|
|
|
|
- url: '/pages/index/index'
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
- if (code == 'xqhz') {
|
|
|
|
- uni.navigateTo({
|
|
|
|
- url: '/pages/zsjyXiaoqihezuo/zsjyXiaoqihezuo'
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
|
|
- function handleDownFile() {
|
|
|
|
- window.location.href = pdfUrl;
|
|
|
|
|
|
+ function handleGo(code) {
|
|
|
|
+ if (code == 'shouye') {
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: '/pages/index/index'
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ if (code == 'xqhz') {
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: '/pages/zsjyXiaoqihezuo/zsjyXiaoqihezuo'
|
|
|
|
+ })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
function pageInit() {
|
|
function pageInit() {
|
|
- httpApi.getCommonZsjyXiaoqiInfo({id: data.id}).then(res => {
|
|
|
|
|
|
+ httpApi.getCommonZsjyXiaoqiInfo({
|
|
|
|
+ id: data.id
|
|
|
|
+ }).then(res => {
|
|
data.info = res.data;
|
|
data.info = res.data;
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -93,4 +93,4 @@
|
|
|
|
|
|
<style>
|
|
<style>
|
|
|
|
|
|
-</style>
|
|
|
|
|
|
+</style>
|