my-appraise.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <template>
  2. <view class="flex-common-css">
  3. <Nav title="我的评价" titleColor="#333" bgckgroundBox='#fff'></Nav>
  4. <view class="tab-box flex-justify-around bgc-f ">
  5. <view class="tab-but flex-1 flex-direction align-items-center" @click="tabStitle(index)"
  6. v-for="(item, index) in tabList" :key="index">
  7. <view class="fs-32 mb-18" :class="tabNum==index?'fc-41ABF5':'fc-3'">
  8. {{item}}
  9. </view>
  10. <view v-show="tabNum==index" class="tab-hr bgc-41ABF5"></view>
  11. </view>
  12. </view>
  13. <scroll-view :scroll-y="true" class="scroll-view-css" @scrolltolower="scrolltolower">
  14. <view class="list-box">
  15. <view class="item-box bgc-f b-rad-20 mb-20" v-for="(item,index) in itemData" :key="index">
  16. <view class="fw-600 fs-32 fc-3 mb-16">
  17. {{item.name}}
  18. </view>
  19. <view class="goods-box align-items-center mb-24">
  20. <image class="goods-img mr-16" src="../static/img/my/bg.png" mode=""></image>
  21. <view class="">
  22. <view class="mb-8 fs-24 fc-6">
  23. 2024-05-21 01:05 下单
  24. </view>
  25. <view class="fc-FF7F00 fs-24">
  26. 你个这次外卖体验打多少分吗?
  27. </view>
  28. </view>
  29. </view>
  30. <view class="flex-justify-end">
  31. <view class="fc-41ABF5 fs-28 item-but" @click="goToUrl">
  32. 评价
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. </scroll-view>
  38. </view>
  39. </template>
  40. <script>
  41. export default {
  42. components: {},
  43. data() {
  44. return {
  45. tabNum: 0,
  46. tabOneNum: 0,
  47. tabTwoNum: 0,
  48. itemData: [{
  49. name: '猪油拌饭猪油拌(回兴店)'
  50. }]
  51. };
  52. },
  53. computed: {
  54. tabList() {
  55. return ['待评价(' + this.tabOneNum + ')', '已评价(' + this.tabTwoNum + ')'];
  56. }
  57. },
  58. onLoad(data) {},
  59. mounted() {},
  60. methods: {
  61. tabStitle(index) {
  62. this.tabNum = index
  63. },
  64. scrolltolower() {
  65. console.log('触底');
  66. },
  67. goToUrl() {
  68. uni.navigateTo({
  69. url:'/pages-my/appraise'
  70. })
  71. }
  72. },
  73. }
  74. </script>
  75. <style lang="scss" scoped>
  76. .tab-box {
  77. padding: 22rpx 0 4rpx 0;
  78. }
  79. .tab-hr {
  80. width: 40rpx;
  81. height: 4rpx;
  82. border-radius: 2rpx;
  83. }
  84. .list-box {
  85. padding: 24rpx;
  86. box-sizing: border-box;
  87. }
  88. .item-box {
  89. padding: 24rpx;
  90. box-sizing: border-box;
  91. }
  92. .goods-img {
  93. width: 100rpx;
  94. height: 100rpx;
  95. border-radius: 8rpx;
  96. }
  97. .item-but {
  98. width: 152rpx;
  99. height: 56rpx;
  100. line-height: 56rpx;
  101. text-align: center;
  102. border: 2rpx solid #41ABF5;
  103. border-radius: 200rpx;
  104. }
  105. </style>