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

2 years ago
  1. <template>
  2. <view class="notice">
  3. <view class="content">
  4. <image src="https://ceres.zkthink.com/static/assets/images/cereshop/notice.png" mode=""></image>
  5. <swiper class="swiper" :circular="true" :autoplay="true" :vertical="true" :interval="3000" :duration="500">
  6. <swiper-item v-for="(item,index) in list" :key="item.noticeId">
  7. <view class="swiper-item uni-bg-red fs26 font-color-333 overflow" @tap="goToMesDetail(item)">{{item.noticeTitle}}</view>
  8. </swiper-item>
  9. </swiper>
  10. </view>
  11. </view>
  12. </template>
  13. <script>
  14. export default {
  15. props: {
  16. list: {
  17. type: Array
  18. }
  19. },
  20. data() {
  21. return {
  22. }
  23. },
  24. methods: {
  25. goToMesDetail(item){
  26. uni.navigateTo({
  27. url: '/pages_category_page2/userModule/messageDetail?noticeId='+item.noticeId,
  28. success: res => {},fail: (err) => {console.log(err,'1')},complete: () => {}
  29. })
  30. }
  31. }
  32. }
  33. </script>
  34. <style lang="scss">
  35. .notice{
  36. width: 100%;
  37. height: 60rpx;
  38. padding: 0 5%;
  39. box-sizing: border-box;
  40. margin-top: 20rpx;
  41. .content{
  42. width: 100%;
  43. height: 100%;
  44. border-radius: 30rpx;
  45. background: #F5F7FA;
  46. display: flex;
  47. align-items: center;
  48. padding: 0 30rpx;
  49. image{
  50. width: 38rpx;
  51. height: 38rpx;
  52. margin-right: 20rpx;
  53. }
  54. .swiper{
  55. flex: 1;
  56. height: 60rpx;
  57. .swiper-item{
  58. line-height: 60rpx;
  59. }
  60. }
  61. }
  62. }
  63. </style>