1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <template>
- <view class="dljt-page-box">
- <MtaNavbar></MtaNavbar>
- <view class="dljt-container-box">
- <view class="dljt-page-title">学院概况</view>
- <view class="dljt-page-content-box">
- <view class="dljt-breadcrumb-box">
- <view class="breadcrumb-text" @click="handleGo()">首页</view>
- <icon class="breadcrumb-jt"></icon>
- <view class="breadcrumb-text">学院概况</view>
- <icon class="breadcrumb-jt"></icon>
- <view class="breadcrumb-active">校园风光</view>
- </view>
- <MtaScrollViewVue :refreshFn="getList" :size="20">
- <template v-slot="{ list }">
- <view class="video-item-box" v-for="item in list" :key="item.id" @click="handleClick(item)">
- <!-- 图 -->
- <image :src="item.content"></image>
-
- <!-- 内容 -->
- <view class="video-mask-box">
- <view class="video-data">[{{formatDateToYearMonthDay(item.createTime).join('-')}}]
- </view>
- <view class="video-title">{{item.title}}</view>
- </view>
- </view>
- </template>
- </MtaScrollViewVue>
- </view>
- <!-- 底部导航 -->
- <MtaFooter></MtaFooter>
- </view>
- </view>
- </template>
- <script setup>
- import {
- ref,
- reactive
- } from "vue";
- import {
- onLoad
- } from "@dcloudio/uni-app"
- import * as httpApi from "@/api/common.js"
- import MtaScrollViewVue from "@/components/MtaScrollView/MtaScrollView.vue";
- import {
- formatDateToYearMonthDay,
- getStringByHtml3
- } from "@/utils/common.js"
- import MtaFooter from "@/components/MtaFooter.vue"
- import {
- getCommonXygkXiaoyuanfengguang
- } from "@/api/common";
- const data = reactive({
- list: '',
- total: '',
- page: 1,
- size: 10
- })
- function handleClick(item) {
- uni.previewImage({
- urls: [item.content],
- });
- }
- function getList(data) {
- return httpApi.getCommonXygkXiaoyuanfengguang(data)
- }
- function handleGo() {
- uni.navigateTo({
- url: '/pages/index/index'
- })
- }
- function pageInit() {
- httpApi.getCommonXygkXiaoyuanfengguang({
- page: data.page,
- size: data.size
- }).then(res => {
- data.total = res.data.total;
- data.list = res.data.data;
- })
- }
- </script>
- <style>
- </style>
|