Ver a proveniência

通知公告

临城职教中职
杨晓琪 há 2 anos
ascendente
cometimento
3fb0463555
3 ficheiros alterados com 59 adições e 4 eliminações
  1. +3
    -3
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js
  2. +10
    -1
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages.json
  3. +46
    -0
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LR_OAModule/noticeExamine.vue

+ 3
- 3
Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js Ver ficheiro

@@ -21,10 +21,10 @@ export default {
// "http://192.168.2.98:8088/"
// ],
"apiHost": [
"http://localhost:31173/"
// "http://192.168.10.85:8088/"
// "http://localhost:31173/"
"http://192.168.10.58:8012/"
],
"webHost":"http://localhost:20472/",
"webHost":"http://192.168.10.58:20472/",
// 开发环境下自动填充登录账号密码,与接口地址一一对应,只在开发环境下显示
"devAccount": [
// 20201130230 21364200000400266 老师 420528196310072253 学生 420528200606205026 420528200507261428


+ 10
- 1
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages.json Ver ficheiro

@@ -1008,7 +1008,16 @@



],
,{
"path" : "pages/LR_OAModule/noticeExamine",
"style" :
{
"navigationBarTitleText": "通知公告",
"enablePullDownRefresh": false
}
}
],

// 全局样式
"globalStyle": {


+ 46
- 0
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LR_OAModule/noticeExamine.vue Ver ficheiro

@@ -0,0 +1,46 @@
<template>
<view id="notice" class="page">
<view class="padding text-lg">
<u-parse v-if="ready" :imageProp="{ domain: apiRoot }" :content="content"></u-parse>
</view>
<view class="padding-sm text-grey notice-info">
<view class="text-right">本页内容发布于 {{ time }}</view>
<view class="text-right">{{ date }}</view>
</view>
</view>
</template>

<script>
import moment from 'moment'

export default {
data() {
return {
ready: false,
content: '',
time: '',
date: ''
}
},

async onLoad() {
await this.init()
},

methods: {
async init() {
this.LOADING('加载中…')
const noticeItem = this.GET_PARAM()

this.content = this.CONVERT_HTML(noticeItem.f_content)

this.time = moment(noticeItem.f_time).format('HH : mm')
this.date = moment(noticeItem.f_time).format('YYYY年 M月 D日')
this.SET_TITLE(noticeItem.f_title)

this.ready = true
this.HIDE_LOADING()
}
}
}
</script>

Carregando…
Cancelar
Guardar