|
@@ -2,7 +2,7 @@
|
|
|
<Container class="body-content" title="首页" bgColor="#F8F8F8" :showBack="false">
|
|
|
<view class="home">
|
|
|
<!-- 倒计时 -->
|
|
|
- <view class="time" v-if="splitDays !='' & splitDays != null">
|
|
|
+ <view class="time" v-if="(splitDays != '') & (splitDays != null)">
|
|
|
<view>倒计时</view>
|
|
|
<!-- 将天数拆分为单个数字显示 -->
|
|
|
<view class="exam-countdown-tiem-item" v-for="(digit, index) in splitDays" :key="index">{{ digit }}</view>
|
|
@@ -11,7 +11,7 @@
|
|
|
<!-- 轮播图 -->
|
|
|
<swiper class="swiper" circular autoplay>
|
|
|
<swiper-item v-for="(item, index) in banner_list" :key="index">
|
|
|
- <view class="swiper-item"><image class="swiper-item-image" :src="item.image_url" mode="aspectFill" @load="onImageLoad($event, item, index)"></image></view>
|
|
|
+ <view class="swiper-item"><image class="swiper-item-image" :src="item.image_url" mode="aspectFill" @load="onImageLoad($event, item, index)" @click="goto_notice_list(item.link_url)"></image></view>
|
|
|
</swiper-item>
|
|
|
</swiper>
|
|
|
<!-- 公告 -->
|
|
@@ -129,6 +129,11 @@ const onImageLoad = (e, item, index) => {
|
|
|
onBeforeUnmount(() => {
|
|
|
if (timer) clearInterval(timer);
|
|
|
});
|
|
|
+const goto_notice_list=(link_url)=>{
|
|
|
+ uni.redirectTo({
|
|
|
+ url:link_url
|
|
|
+ });
|
|
|
+};
|
|
|
onMounted(async () => {
|
|
|
const res = await request('api/question_bank/question_reception/chapter/get', {}, 'POST');
|
|
|
list.value = arrayToTree({
|