多租户商城-商户小程序端
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.
 
 
 

65 lines
1.3 KiB

<template>
<view class="notice">
<view class="content">
<image src="http://36.138.125.206:8081/ceres-local-file/static/assets/images/cereshop/notice.png" mode=""></image>
<swiper class="swiper" :circular="true" :autoplay="true" :vertical="true" :interval="3000" :duration="500">
<swiper-item v-for="(item,index) in list" :key="item.noticeId">
<view class="swiper-item uni-bg-red fs26 font-color-333 overflow" @tap="goToMesDetail(item)">{{item.noticeTitle}}</view>
</swiper-item>
</swiper>
</view>
</view>
</template>
<script>
export default {
props: {
list: {
type: Array
}
},
data() {
return {
}
},
methods: {
goToMesDetail(item){
uni.navigateTo({
url: '/pages_category_page2/userModule/messageDetail?noticeId='+item.noticeId,
success: res => {},fail: (err) => {console.log(err,'1')},complete: () => {}
})
}
}
}
</script>
<style lang="scss">
.notice{
width: 100%;
height: 60rpx;
padding: 0 5%;
box-sizing: border-box;
margin-top: 20rpx;
.content{
width: 100%;
height: 100%;
border-radius: 30rpx;
background: #F5F7FA;
display: flex;
align-items: center;
padding: 0 30rpx;
image{
width: 38rpx;
height: 38rpx;
margin-right: 20rpx;
}
.swiper{
flex: 1;
height: 60rpx;
.swiper-item{
line-height: 60rpx;
}
}
}
}
</style>