|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
- <view class="phone-list-page kecheng-list">
|
|
|
- <view class="icon-title-bjcolor-navBar-box">
|
|
|
+ <view class="phone-list-page phone-tongzhi-list">
|
|
|
+ <view class="icon-title-navBar-box">
|
|
|
<view @click="goUpPage" class="nav-bar-icon"></view>
|
|
|
<text class="nav-bar-title">消息管理</text>
|
|
|
</view>
|
|
@@ -12,10 +12,12 @@
|
|
|
<uni-list-item v-for="item in data.list" class="admin-list-item-box">
|
|
|
<template v-slot:body>
|
|
|
<view class="xiaoxi-list-card-box" @click="checkKecheng(item)">
|
|
|
- <view class="card-name">{{item.zyName}}</view>
|
|
|
- <view>{{item.zyName}}{{item.zyLevelName}}</view>
|
|
|
- <view>课时:{{formatSecondsToCnhms(item.period, true)}}</view>
|
|
|
- <view>{{item.createTime}}</view>
|
|
|
+ <view class="card-head-row">
|
|
|
+ <view class="head-name">{{item.name}}</view>
|
|
|
+ <view class="head-createTime">{{formatTime(item.createTime)}}</view>
|
|
|
+ <icon></icon>
|
|
|
+ </view>
|
|
|
+ <rich-text :nodes="item.content" class="card-content"></rich-text>
|
|
|
</view>
|
|
|
</template>
|
|
|
</uni-list-item>
|
|
@@ -39,7 +41,7 @@
|
|
|
onLoad,
|
|
|
onShow
|
|
|
} from "@dcloudio/uni-app";
|
|
|
- import * as kechengApi from "@/api/kecheng.js"
|
|
|
+ import {getAppNoticeList} from '@/api/shouye.js'
|
|
|
import {
|
|
|
formatSecondsToCnhms
|
|
|
} from "@/utils/common.js"
|
|
@@ -59,6 +61,10 @@
|
|
|
from: ''
|
|
|
})
|
|
|
|
|
|
+ function formatTime(data){
|
|
|
+ console.log(data.split(' ')[0],'data.split()[0]');
|
|
|
+ return data.split(' ')[0];
|
|
|
+ }
|
|
|
function goUpPage() {
|
|
|
|
|
|
const pages = getCurrentPages();
|
|
@@ -81,7 +87,7 @@
|
|
|
|
|
|
function checkKecheng(item) {
|
|
|
uni.navigateTo({
|
|
|
- url: `/pages/client/Kecheng/study?kcId=${item.kcId}&from=kechengList`
|
|
|
+ url: `/pages/admin/tongzhi/details?noticeId=${item.noticeId}`
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -96,7 +102,6 @@
|
|
|
const opt = {
|
|
|
page: 1,
|
|
|
size: 10, // 固定查询10条
|
|
|
- zyName: data.zyName
|
|
|
}
|
|
|
data.list = [];
|
|
|
// 数学
|
|
@@ -104,7 +109,7 @@
|
|
|
data.page++;
|
|
|
opt.page = data.page;
|
|
|
|
|
|
- kechengApi.getClientKechengList(opt).then(res => {
|
|
|
+ getAppNoticeList(opt).then(res => {
|
|
|
data.list = data.list.concat(res.data.data);
|
|
|
data.loading = false;
|
|
|
|
|
@@ -125,13 +130,12 @@
|
|
|
const opt = {
|
|
|
page: 1,
|
|
|
size: 10, // 固定查询10条
|
|
|
- zyName: data.zyName
|
|
|
}
|
|
|
if (data.state == 'no-more') return;
|
|
|
data.state = 'loading';
|
|
|
data.page++;
|
|
|
opt.page = data.page;
|
|
|
- kechengApi.getClientKechengList(opt).then(res => {
|
|
|
+ getAppNoticeList(opt).then(res => {
|
|
|
data.list = data.list.concat(res.data.data);
|
|
|
data.loading = false;
|
|
|
|