ssm41471/src/main/webapp/front/pages/index/index.vue
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<template>
<view class="uni-padding-wrap">
<view class="header">
<view class="headerb">
<swiper class="swiper" :indicator-dots='".swiper-pagination"==null?false:true' :autoplay='autoplaySwiper' :circular='true' indicator-active-color='rgba(255, 107, 19, 1)' indicator-color='rgba(255, 170, 51, 1)' :duration='3000' :interval='intervalSwiper' :vertical='"horizontal"=="horizontal"?false:true'>
<swiper-item v-for="(swiper,index) in swiperList" :key="index" @tap="onSwiperTap(swiper)">
<image mode="aspectFill" :src="swiper.img"></image>
</swiper-item>
</swiper>
</view>
</view>
<view class="pl15 col3 header-title" style="font-size: 36upx;font-weight: bold;" :style='{"backgroundColor":"rgba(245, 245, 245, 0)","borderColor":"red","color":"rgba(0, 0, 0, 1)","borderRadius":"8rpx","borderWidth":"0px","fontSize":"32rpx","lineHeight":"72rpx","borderStyle":"solid"}'>
<view class="left" :style="{fontSize:'32rpx',color:'rgba(0, 0, 0, 1)'}">
家教资讯
</view>
<view class="right-content" @tap="onPageTap('news')" :style="{fontSize:'32rpx',color:'rgba(0, 0, 0, 1)'}">
查看更多
</view>
</view>
<view class="list" :style='{"borderRadius":"20rpx","backgroundColor":"rgba(1, 157, 214, 0)"}'>
<view :style='{"borderRadius":"20rpx","backgroundColor":"rgba(255, 255, 255, 0.6)"}' @tap="onNewsDetailTap(item.id)" v-for="(item,index) in news " v-bind:key="index" class="listm flex flex-between">
<image :style='{"borderRadius":"8rpx","width":"240rpx","height":"280rpx"}' v-if="item.picture" :src="item.picture" mode="aspectFill" class="listmpic"></image>
<view class="listmr">
<view :style='{"fontSize":"32rpx","lineHeight":"60rpx","color":"rgba(255, 107, 19, 1)","textAlign":"center"}' class="col3 f30 elip mb15">{{item.title}}</view>
<view :style='{"fontSize":"28rpx","lineHeight":"48rpx","color":"rgba(255, 107, 19, 1)","textAlign":"left"}' v-if="item.addtime" class="colb f24 lh35">发布时间:{{item.addtime}}</view>
</view>
</view>
</view>
</view>
</template>
<script>
import '@/assets/css/global-restaurant.css'
import uniIcons from "@/components/uni-ui/lib/uni-icons/uni-icons.vue"
export default {
components: {
uniIcons
},
data() {
return {
autoplaySwiper: {"delay":"3000","disableOnInteraction":false} ? true : false,
intervalSwiper: {"delay":"3000","disableOnInteraction":false} ? 3000 : 5000,
//轮播
swiperList: [],
news: [],
}
},
async onShow() {
// 轮播图
let swiperList = []
let res = await this.$api.page('config', {
page: 1,
limit: 5
});
后面还有 302 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
