|
|
|
@ -5,7 +5,11 @@ |
|
|
|
|
<text class="business-school-title-left">公司及产品资质</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="business-school-content"> |
|
|
|
|
<image class="image" :src="item.image" mode="aspectFill" v-for="(item, idx) in state.companyData" :key="item.id" @tap="preivewImg(idx, state.companyData)"></image> |
|
|
|
|
<swiper previous-margin="180rpx" next-margin="298rpx" :indicator-dots="true" :circular="true" :interval="3000" :duration="1000"> |
|
|
|
|
<swiper-item v-for="(item, idx) in state.companyData" :key="item.id"> |
|
|
|
|
<image class="image" :src="item.image" mode="aspectFill" @tap="preivewImg(idx, state.companyData)"></image> |
|
|
|
|
</swiper-item> |
|
|
|
|
</swiper> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="business-school"> |
|
|
|
@ -21,7 +25,7 @@ |
|
|
|
|
<view class="business-school-content-item-right"> |
|
|
|
|
<view class="business-school-content-item-right-title" v-html="item.title"></view> |
|
|
|
|
<view class="business-school-content-item-right-time"> |
|
|
|
|
<view>上传时间:{{ dayjs(item.createtime).format('YYYY/MM/DD').replaceAll('/', '.') }}</view> |
|
|
|
|
<view>{{ dayjs(item.createtime).format('YYYY/MM/DD').replaceAll('/', '.') }}</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
@ -40,7 +44,7 @@ |
|
|
|
|
<view class="business-school-content-item-right"> |
|
|
|
|
<view class="business-school-content-item-right-title" v-html="item.title"></view> |
|
|
|
|
<view class="business-school-content-item-right-time"> |
|
|
|
|
<view>上传时间:{{ dayjs(item.createtime).format('YYYY/MM/DD').replaceAll('/', '.') }}</view> |
|
|
|
|
<view>{{ dayjs(item.createtime).format('YYYY/MM/DD').replaceAll('/', '.') }}</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
@ -70,14 +74,14 @@ |
|
|
|
|
} |
|
|
|
|
let { code: articleCode, data: { data: articleData } } = await sheep.$api.businessSchool.articleList('1'); |
|
|
|
|
if (articleCode === 1) { |
|
|
|
|
state.articleData = articleData; |
|
|
|
|
state.articleData = articleData.slice(0, 3); |
|
|
|
|
} else { |
|
|
|
|
state.articleData = []; |
|
|
|
|
} |
|
|
|
|
let { code: saleCode, data: { data: saleData } } = await sheep.$api.businessSchool.articleList('2'); |
|
|
|
|
console.log(saleData, 'saleData'); |
|
|
|
|
if (saleCode === 1) { |
|
|
|
|
state.saleData = saleData; |
|
|
|
|
state.saleData = saleData.slice(0, 3); |
|
|
|
|
} else { |
|
|
|
|
state.saleData = []; |
|
|
|
|
} |
|
|
|
|