index.vue 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <template>
  2. <div class="peripheralService">
  3. <div class="peripheralBody">
  4. <van-tabs :active="active" @change="onChange">
  5. <van-tab title="全部" :name="0"></van-tab>
  6. <van-tab title="干洗" :name="1"></van-tab>
  7. <van-tab title="维修" :name="2"></van-tab>
  8. <van-tab title="保洁" :name="3"></van-tab>
  9. <van-tab title="精装水" :name="4"></van-tab>
  10. <van-tab title="医疗" :name="5"></van-tab>
  11. </van-tabs>
  12. <div class="peripheralBox">
  13. <div class="peripheralItem" v-for="item in peripheralList" @tap="toDetail(item)">
  14. <div class="peripheralItemRow1">
  15. <span class="peripheralName">{{item.name}}</span>
  16. <span class="periTag">{{item.type}}</span>
  17. </div>
  18. <div class="peripheralItemRow2">入驻时间:2021-03-21</div>
  19. </div>
  20. </div>
  21. </div>
  22. </div>
  23. </template>
  24. <script>
  25. export default {
  26. name: "peripheralService",
  27. data(){
  28. return{
  29. active: 0,
  30. peripheralList:[
  31. {name:'福奈特洗衣店(基金PARK店)',type:'干洗'},
  32. {name:'印彩图文广告(金融街店)',type:'打印'},
  33. ]
  34. }
  35. },
  36. methods:{
  37. onChange(e) {
  38. console.log(e)
  39. },
  40. toDetail(item) {
  41. uni.navigateTo({
  42. url:'/pages/subPackages/peripheralService/detail'
  43. })
  44. }
  45. }
  46. }
  47. </script>
  48. <style lang="scss">
  49. .peripheralService{
  50. .peripheralBody{
  51. background: white;
  52. margin-top: 24rpx;
  53. padding: 32rpx;
  54. box-sizing: border-box;
  55. height: 1424rpx;
  56. .peripheralBox{
  57. margin-top: 8rpx;
  58. .peripheralItem{
  59. width: 686rpx;
  60. height: 172rpx;
  61. box-sizing: border-box;
  62. border-radius: 16rpx;
  63. background: #F5F7FA;
  64. padding: 32rpx;
  65. margin-top: 24rpx;
  66. .peripheralItemRow1{
  67. display: flex;
  68. justify-content: space-between;
  69. .peripheralName{
  70. color:#222222;
  71. font-size: 32rpx;
  72. font-weight: 600;
  73. }
  74. .periTag{
  75. display: flex;
  76. align-items: center;
  77. justify-content: center;
  78. width: 92rpx;
  79. height: 48rpx;
  80. background: rgba(3, 101, 249, 0.20);
  81. color: rgba(3, 101, 249, 1);
  82. border-radius: 8rpx;
  83. font-size: 24rpx;
  84. }
  85. }
  86. .peripheralItemRow2{
  87. color: #888888;
  88. font-size: 28rpx;
  89. margin-top: 20rpx;
  90. }
  91. }
  92. }
  93. }
  94. }
  95. </style>