index_nav.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <template>
  2. <!-- <swiper class="screen-swiper" :class="dotStyle?'square-dot':'round-dot'" :indicator-dots="true" :circular="true"
  3. :autoplay="false" interval="5000" duration="500">
  4. <swiper-item class="item">
  5. </swiper-item>
  6. </swiper> -->
  7. <view class="item">
  8. <view class="card" v-for="(item,index) in swiperList" :key="index" @click="jump(item)">
  9. <image :src="item.url" mode="aspectFill"></image>
  10. {{item.name}}
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. name: 'indexNav',
  17. data() {
  18. return {
  19. dotStyle: true,
  20. swiperList: [{
  21. name: '店铺设置',
  22. url: '/static/index/shop.png'
  23. },
  24. {
  25. name: '平台活动',
  26. url: '/static/index/activity.png'
  27. },
  28. {
  29. name: '优惠券',
  30. url: '/static/index/coupon.png'
  31. },
  32. {
  33. name: '退款管理',
  34. url: '/static/index/refund.png'
  35. },
  36. {
  37. name: '订单管理',
  38. url: '/static/index/indent.png'
  39. },
  40. // {
  41. // name: '审核查询',
  42. // url: '/static/index/audit.png'
  43. // },
  44. {
  45. name: '商品管理',
  46. url: '/static/index/product.png'
  47. },
  48. {
  49. name: '提现管理',
  50. url: '/static/index/withdraw.png'
  51. },
  52. {
  53. name: '秒杀活动',
  54. url: '/static/index/seckill.png'
  55. },
  56. {
  57. name: '客户评价',
  58. url: '/static/index/evaluate.png'
  59. },
  60. {
  61. name: '全部服务',
  62. url: '/static/index/all.png'
  63. },
  64. ]
  65. }
  66. },
  67. methods: {
  68. jump(item) {
  69. if (item.name == '客户评价') {
  70. uni.navigateTo({
  71. url: '/pages/evaluate/evaluate'
  72. })
  73. } else if (item.name == '商品管理') {
  74. uni.navigateTo({
  75. url: '/pages/product/index'
  76. })
  77. } else if (item.name == '全部服务') {
  78. uni.navigateTo({
  79. url: '/pages/index/full'
  80. })
  81. }
  82. if (item.name == '店铺设置') {
  83. uni.navigateTo({
  84. url: '/pages/store/settings'
  85. })
  86. }
  87. // if (item.name == '审核查询') {
  88. // uni.navigateTo({
  89. // url: '/pages/store/examine'
  90. // })
  91. // }
  92. }
  93. }
  94. }
  95. </script>
  96. <style scoped lang="scss">
  97. .item {
  98. width: 100%;
  99. display: flex;
  100. flex-wrap: wrap;
  101. justify-content: space-between;
  102. }
  103. .card {
  104. width: 20%;
  105. height: 96rpx;
  106. display: flex;
  107. flex-direction: column;
  108. flex-wrap: wrap;
  109. justify-content: center;
  110. align-items: center;
  111. font-size: 24rpx;
  112. image {
  113. width: 56rpx;
  114. height: 56rpx;
  115. margin-bottom: 4rpx;
  116. }
  117. }
  118. .card:nth-child(-n+5){
  119. margin-bottom: 40rpx;
  120. }
  121. /deep/.uni-swiper-wrapper {
  122. -webkit-transform: translate3d(0px, 0, 0);
  123. -moz-transform: translate3d(0px, 0, 0);
  124. -o-transform: translate(0px, 0px);
  125. -ms-transform: translate3d(0px, 0, 0);
  126. transform: translate3d(0px, 0, 0);
  127. }
  128. </style>