鸿宇研学生前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

112 lines
2.1 KiB

  1. <template>
  2. <view class="page__view">
  3. <navbar title="我的评价" leftClick @leftClick="$utils.navigateBack" bgColor="#FFFFFF" />
  4. <view class="main">
  5. <view class="list" v-if="total">
  6. <view class="list-item" v-for="item in list" :key="item.id">
  7. <view class="flex list-item-header">
  8. <view class="flex mark">
  9. <image class="icon" src="@/static/image/icon-mark-highlight.png" mode="widthFix"></image>
  10. </view>
  11. <view class="title">
  12. {{ `来自 ${item.productName}` }}
  13. </view>
  14. </view>
  15. <commentCard :data="item"></commentCard>
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. import mixinsList from '@/mixins/list.js'
  23. import commentCard from '@/pages_order/comment/commentCard.vue'
  24. export default {
  25. mixins: [mixinsList],
  26. components: {
  27. commentCard,
  28. },
  29. data() {
  30. return {
  31. // todo
  32. mixinsListApi: '',
  33. }
  34. },
  35. onShow() {
  36. console.log('onShow')
  37. },
  38. onLoad(arg) {
  39. console.log('onLoad')
  40. const { productId } = arg
  41. this.queryParams.productId = productId
  42. this.getData()
  43. },
  44. methods: {
  45. },
  46. }
  47. </script>
  48. <style scoped lang="scss">
  49. .page__view {
  50. background: $uni-bg-color;
  51. }
  52. .main {
  53. padding: 40rpx;
  54. }
  55. .list {
  56. padding: 32rpx;
  57. background: #FFFFFF;
  58. border-radius: 24rpx;
  59. &-item {
  60. padding-bottom: 40rpx;
  61. border-bottom: 2rpx solid #F5F5F5;
  62. & + & {
  63. margin-top: 40rpx;
  64. }
  65. &:last-child {
  66. border: none;
  67. }
  68. &-header {
  69. justify-content: flex-start;
  70. column-gap: 24rpx;
  71. margin-bottom: 14rpx;
  72. .mark {
  73. width: 36rpx;
  74. height: 36rpx;
  75. background: linear-gradient(to right, #21FEEC, #019AF9);
  76. border-radius: 50%;
  77. .icon {
  78. width: 24rpx;
  79. height: auto;
  80. }
  81. }
  82. .title {
  83. flex: 1;
  84. font-size: 30rpx;
  85. font-weight: 600;
  86. line-height: 1.4;
  87. color: #00A9FF;
  88. }
  89. }
  90. }
  91. }
  92. </style>