quickOperation.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. // 采美快捷运营点击量统计
  53. this.cmsMoudleHits(4, pros.id)
  54. this.$api.FlooryNavigateTo(pros)
  55. },
  56. swiperChange(e) {
  57. //轮播图切换
  58. this.current = e.detail.current
  59. }
  60. }
  61. }
  62. </script>
  63. <style lang="scss" scoped>
  64. .container-pages {
  65. width: 100%;
  66. height: 152rpx;
  67. padding: 24rpx 24rpx 0 24rpx;
  68. float: left;
  69. background-color: #f7f7f7;
  70. box-sizing: border-box;
  71. background-color: #f7f7f7;
  72. overflow: hidden;
  73. display: flex;
  74. align-items: center;
  75. .tui-goods__list {
  76. display: flex;
  77. align-items: center;
  78. .tui-goods__item {
  79. background-color: #fff;
  80. height: 128rpx;
  81. border-radius: 16rpx;
  82. box-sizing: border-box;
  83. margin-right: 16rpx;
  84. padding:24rpx 12rpx 24rpx 18rpx;
  85. display: flex;
  86. align-items: center;
  87. background: linear-gradient(180deg, #FFF1EB 0%, #FFFFFF 100%);
  88. .list-title {
  89. .title-1 {
  90. .title-1-item {
  91. color: #333333;
  92. font-size: 28rpx;
  93. width: 196rpx;
  94. display: flex;
  95. align-items: center;
  96. .title-2-item {
  97. width: 62rpx;
  98. height: 32rpx;
  99. background: #ff5b00;
  100. border-radius: 16rpx;
  101. font-size: 22rpx;
  102. text-align: center;
  103. height: 32rpx;
  104. color: white;
  105. margin-left: 6rpx;
  106. }
  107. }
  108. }
  109. .title-2 {
  110. color: #999999;
  111. font-size: 22rpx;
  112. }
  113. }
  114. .list-icon {
  115. height: 100%;
  116. border-radius: 50%;
  117. overflow: hidden;
  118. .image{
  119. width: 80rpx;
  120. height: 100%;
  121. }
  122. }
  123. }
  124. }
  125. }
  126. </style>