quickOperation.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <template>
  2. <!-- 快捷运营 -->
  3. <view class="container-pages">
  4. <scroll-view scroll-x>
  5. <view class="tui-goods__list">
  6. <view class="tui-goods__item" v-for="(item, index) in list" @click="NavToDetailPage(item)">
  7. <view class="list-title">
  8. <view class="title-1">
  9. <view class="title-1-item">
  10. <view style="display: inline-block;">{{ item.name }}</view>
  11. <text class="title-2-item">GO></text>
  12. </view>
  13. </view>
  14. <view class="title-2">{{item.remark || ''}}</view>
  15. </view>
  16. <view class="list-icon">
  17. <image class="image" :src="item.icon" mode=""></image>
  18. </view>
  19. </view>
  20. </view>
  21. </scroll-view>
  22. </view>
  23. </template>
  24. <script>
  25. import cmsMixins from '@/mixins/cmsMixins.js'
  26. import { mapState } from 'vuex'
  27. export default {
  28. mixins: [cmsMixins],
  29. props: {
  30. list: {
  31. type: Array,
  32. default: () => []
  33. }
  34. },
  35. data() {
  36. return {
  37. shortcutList:[],
  38. current: 0 // 切换轮播
  39. }
  40. },
  41. created() {
  42. this.shortcutList = this.list
  43. },
  44. computed: {
  45. ...mapState(['hasLogin']),
  46. },
  47. watch: {},
  48. mounted() {},
  49. methods: {
  50. // 链接跳转
  51. NavToDetailPage(pros) {
  52. this.$api.FlooryNavigateTo(pros)
  53. },
  54. swiperChange(e) {
  55. //轮播图切换
  56. this.current = e.detail.current
  57. }
  58. }
  59. }
  60. </script>
  61. <style lang="scss" scoped>
  62. .container-pages {
  63. width: 100%;
  64. height: 152rpx;
  65. padding: 24rpx 24rpx 0 24rpx;
  66. float: left;
  67. background-color: #f7f7f7;
  68. box-sizing: border-box;
  69. background-color: #f7f7f7;
  70. overflow: hidden;
  71. display: flex;
  72. align-items: center;
  73. .tui-goods__list {
  74. display: flex;
  75. align-items: center;
  76. .tui-goods__item {
  77. background-color: #fff;
  78. height: 128rpx;
  79. border-radius: 16rpx;
  80. box-sizing: border-box;
  81. margin-right: 16rpx;
  82. padding:24rpx 12rpx 24rpx 18rpx;
  83. display: flex;
  84. align-items: center;
  85. background: linear-gradient(180deg, #FFF1EB 0%, #FFFFFF 100%);
  86. .list-title {
  87. .title-1 {
  88. .title-1-item {
  89. color: #333333;
  90. font-size: 28rpx;
  91. width: 196rpx;
  92. display: flex;
  93. align-items: center;
  94. .title-2-item {
  95. width: 62rpx;
  96. height: 32rpx;
  97. background: #ff5b00;
  98. border-radius: 16rpx;
  99. font-size: 22rpx;
  100. text-align: center;
  101. height: 32rpx;
  102. color: white;
  103. margin-left: 6rpx;
  104. }
  105. }
  106. }
  107. .title-2 {
  108. color: #999999;
  109. font-size: 22rpx;
  110. }
  111. }
  112. .list-icon {
  113. height: 100%;
  114. border-radius: 50%;
  115. overflow: hidden;
  116. .image{
  117. width: 80rpx;
  118. height: 100%;
  119. }
  120. }
  121. }
  122. }
  123. }
  124. </style>