|
@@ -2,9 +2,9 @@ import OEmpty from '@/components/o-empty'
|
|
|
import OSearch from '@/components/o-search'
|
|
|
import OSticky from '@/components/o-sticky'
|
|
|
import request from '@/helpers/request'
|
|
|
-import { forms } from '@/school/train-planning/create'
|
|
|
import { state } from '@/state'
|
|
|
-import { Cell, CellGroup, List } from 'vant'
|
|
|
+import dayjs from 'dayjs'
|
|
|
+import { Cell, CellGroup, List, Image } from 'vant'
|
|
|
import { defineComponent, onMounted, reactive } from 'vue'
|
|
|
import { useRouter } from 'vue-router'
|
|
|
import styles from './help-center/index.module.less'
|
|
@@ -94,17 +94,34 @@ export default defineComponent({
|
|
|
v-model:loading={form.listState.loading}
|
|
|
finished={form.listState.finished}
|
|
|
finishedText=" "
|
|
|
- class={styles.container}
|
|
|
+ class={[styles.container, styles.containerInformation]}
|
|
|
onLoad={getList}
|
|
|
immediateCheck={false}
|
|
|
>
|
|
|
{form.list.map((item: any) => (
|
|
|
<Cell
|
|
|
- titleClass={[styles.title, 'van-ellipsis']}
|
|
|
- title={item.title}
|
|
|
- isLink
|
|
|
+ class={styles.cell}
|
|
|
onClick={() => onDetail(item)}
|
|
|
- ></Cell>
|
|
|
+ titleStyle={{
|
|
|
+ display: 'flex',
|
|
|
+ flexDirection: 'column',
|
|
|
+ justifyContent: 'space-between'
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ {{
|
|
|
+ icon: () => <Image src={item.coverImage} class={styles.img} />,
|
|
|
+ title: () => (
|
|
|
+ <>
|
|
|
+ <div class={[styles.title, 'van-ellipsis']}>{item.title}</div>
|
|
|
+ {/* <div class={[styles.content, 'van-multi-ellipsis--l2']}>{item.memo}</div> */}
|
|
|
+
|
|
|
+ <div class={styles.time}>
|
|
|
+ {item.createTime ? dayjs(item.createTime).format('YYYY年MM月DD日') : ''}
|
|
|
+ </div>
|
|
|
+ </>
|
|
|
+ )
|
|
|
+ }}
|
|
|
+ </Cell>
|
|
|
))}
|
|
|
</List>
|
|
|
) : (
|