index.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <template>
  2. <view>
  3. <view class="status_bar">
  4. <!-- 这里是状态栏 -->
  5. </view>
  6. <view class="u-page">
  7. <view class="u-margin-top-10">
  8. <u-swiper :list="tabbarList" :height="310" bg-color="#F4F4F4"></u-swiper>
  9. </view>
  10. <view class="u-flex u-m-l-20 u-m-r-20">
  11. <view class="u-flex u-row-center" style="width: 450rpx; height: 70rpx;border-radius: 50rpx;background: rgba(52,140,245,0.1);font-size: 20rpx;color: #348CF5; font-size: 500;">
  12. <u-image width="45rpx" height="35rpx" src="../../static/sailun/speaker.png" style="margin:10rpx;"></u-image>公告
  13. </view>
  14. <u-notice-bar mode="horizontal" :list="noticebarList" :volume-icon="false" bg-color="#F4F4F4" color="#2B2B2B"></u-notice-bar>
  15. </view>
  16. <view class="u-flex u-row-around u-m-15">
  17. <u-image width="330rpx" height="128rpx" src="../../static/sailun/scan_in.png"></u-image>
  18. <u-image width="330rpx" height="128rpx" src="../../static/sailun/scan_out.png"></u-image>
  19. </view>
  20. <view>
  21. <view class="u-m-l-30">
  22. 快捷服务
  23. </view>
  24. <view class="u-flex u-flex-wrap u-row-center">
  25. <u-image width="340rpx" height="200rpx" src="../../static/sailun/1.png" style="margin: 10rpx;box-shadow:0rpx 0rpx 20rpx rgba(0,0,0,0.2);border-radius: 25rpx;"></u-image>
  26. <u-image width="340rpx" height="200rpx" src="../../static/sailun/2.png" style="margin: 10rpx;box-shadow:0rpx 0rpx 20rpx rgba(0,0,0,0.2);border-radius: 25rpx;"></u-image>
  27. <u-image width="340rpx" height="200rpx" src="../../static/sailun/3.png" style="margin: 10rpx;box-shadow:0rpx 0rpx 20rpx rgba(0,0,0,0.2);border-radius: 25rpx;"></u-image>
  28. <u-image width="340rpx" height="200rpx" src="../../static/sailun/4.png" style="margin: 10rpx;box-shadow:0rpx 0rpx 20rpx rgba(0,0,0,0.2);border-radius: 25rpx;"></u-image>
  29. </view>
  30. </view>
  31. <view class="u-flex u-row-center u-m-t-30">
  32. <u-image width="670rpx" src="../../static/sailun/88reward.png" mode="widthFix"></u-image>
  33. </view>
  34. </view>
  35. <!-- 与包裹页面所有内容的元素u-page同级,且在它的下方 -->
  36. <u-tabbar v-model="current" :list="list"></u-tabbar>
  37. </view>
  38. </template>
  39. <script>
  40. export default {
  41. data() {
  42. return {
  43. list: [{
  44. iconPath: "home",
  45. selectedIconPath: "home-fill",
  46. text: '首页',
  47. customIcon: false,
  48. pagePath: '/pages/home/index'
  49. },
  50. {
  51. iconPath: "chat",
  52. selectedIconPath: "chat-fill",
  53. text: '消息',
  54. count: 2,
  55. isDot: false,
  56. customIcon: false,
  57. pagePath: '/pages/msg/index'
  58. },
  59. {
  60. iconPath: "account",
  61. selectedIconPath: "account-fill",
  62. text: '我的',
  63. customIcon: false,
  64. pagePath: '/pages/me/index'
  65. },
  66. ],
  67. tabbarList: [{
  68. image: '../../static/sailun/swiper1.png'
  69. },
  70. {
  71. image: '../../static/sailun/swiper1.png'
  72. },
  73. {
  74. image: '../../static/sailun/swiper1.png'
  75. }
  76. ],
  77. noticebarList: ['恭喜您获得10000000元积分红包', '恭喜您获得10000000元积分红包', '恭喜您获得10000000元积分红包'],
  78. current: 0
  79. };
  80. },
  81. methods: {
  82. submit() {
  83. this.$u.route({
  84. url: 'pages/login/index',
  85. type: 'redirectTo'
  86. })
  87. },
  88. }
  89. }
  90. </script>
  91. <style lang="scss" scoped>
  92. .status_bar {
  93. height: var(--status-bar-height);
  94. width: 100%;
  95. background-color: #FFF;
  96. }
  97. </style>