|
@@ -214,16 +214,25 @@ const getAssetURL = (image: string) => {
|
|
|
<span class="more" @click="onNotifyMoreHandle">更多<span class="arrow">></span></span>
|
|
|
</div>
|
|
|
<div class="content">
|
|
|
- <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
|
|
|
- <van-swipe-item v-for="(item, index) in dailyNotifyList" :key="index">
|
|
|
- <div class="swipe_content" @click="clickHandler(item,)">
|
|
|
- <p class="title">{{item['content']}}</p>
|
|
|
- <p class="tip">
|
|
|
- <span>{{ item['nickname'] }}</span>
|
|
|
- <span>{{item['createTime']}}</span>
|
|
|
- </p>
|
|
|
- </div>
|
|
|
- </van-swipe-item>
|
|
|
+ <van-swipe class="my-swipe" :autoplay="3000">
|
|
|
+ <template v-if="dailyNotifyList.length > 0">
|
|
|
+ <van-swipe-item v-for="(item, index) in dailyNotifyList" :key="index">
|
|
|
+ <div :class="{ swipe_content: true, swipe_indicator: dailyNotifyList.length > 1 }" @click="clickHandler(item,)">
|
|
|
+ <p class="title">{{item['content']}}</p>
|
|
|
+ <p class="tip">
|
|
|
+ <span>{{ item['nickname'] }}</span>
|
|
|
+ <span>{{item['createTime']}}</span>
|
|
|
+ </p>
|
|
|
+ </div>
|
|
|
+ </van-swipe-item>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <van-swipe-item >
|
|
|
+ <div class="swipe_content">
|
|
|
+ <p class="msg">暂无速递信息</p>
|
|
|
+ </div>
|
|
|
+ </van-swipe-item>
|
|
|
+ </template>
|
|
|
</van-swipe>
|
|
|
</div>
|
|
|
</div>
|