You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

86 lines
1.6 KiB

<template>
<view class="head-new-vu flex al-item-center">
<swiper
class="swiper-box"
vertical="true"
autoplay="true"
circular="true"
:indicator-dots="false"
:auto-play="true"
>
<swiper-item
class="swiper-item"
v-for="(item, idx) in shopNotice"
:key="idx"
@click="goto"
:data-url="item.hrefurl"
>
<view class="new-cnt">
<image class="notice-icon" :src="noticeIcon ? noticeIcon:event_rul + '/static/theme/note-icon.svg'"></image>
<view class="notice-txt">{{ item.title }}</view>
</view>
</swiper-item>
</swiper>
</view>
</template>
<script>
var app = getApp();
export default {
props: {
noticeIcon: {
type: String,
default: '',
},
shopNotice: {
type: Array,
default: function() {
return [];
},
},
},
data() {
return {
event_rul: app.globalData.event_url,
};
},
mounted() {},
methods: {},
};
</script>
<style lang="scss" scoped>
.head-new-vu {
width: 100%;
height: 90rpx;
margin-top: 30rpx;
border-radius: 12rpx;
background: rgba(255,255,255,0.3);
border: 1rpx solid #FFF;
.swiper-box,.swiper-item {
width: 100%;
height: 100%;
}
.new-cnt {
height: 100%;
display: flex;
align-items: center;
margin: 0 20rpx;
.notice-icon {
width: 50rpx;
height: 50rpx;
flex-shrink: 0;
margin-right: 12rpx;
}
.notice-txt {
flex: 1;
color: #333;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
}
</style>