index.vue 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <template>
  2. <view>
  3. <view class="evaluate-detail">
  4. <page-navbar bgColor="#fff" title="评价详情" />
  5. <dynamic-list :list="list" @message="handleMessage"></dynamic-list>
  6. <view class="fl-flex merchant-mine">
  7. <base-img
  8. src="/static/img.jpg"
  9. width="160rpx"
  10. height="160rpx"
  11. borderRadius="16rpx"
  12. ></base-img>
  13. <view class="merchant-list u-m-l-32">
  14. <view class="f-s-30 text-primary u-m-b-14 text-bold u-m-t-8">
  15. 新世纪环球购物中心
  16. </view>
  17. <view class="fl-flex u-m-b-14 fl-align-center">
  18. <u-rate
  19. v-model="value"
  20. readonly
  21. gutter="0"
  22. size="24"
  23. activeColor="#ffa033"
  24. ></u-rate>
  25. <view class="f-s-26 text-99">(3.0)</view>
  26. </view>
  27. <view class="f-s-24 text-999">世纪城国际展览中心世纪城国际展览中心</view>
  28. </view>
  29. </view>
  30. <view class="evaluate">
  31. <view class="fl-text-title u-m-b-32">全部评价</view>
  32. <evaluate-list v-for="(item, index) in 8" :key="index"></evaluate-list>
  33. </view>
  34. </view>
  35. <view class="evaluate-button">
  36. <publish-bottom></publish-bottom>
  37. </view>
  38. <publish-review :show="show" @close="handleClose"></publish-review>
  39. </view>
  40. </template>
  41. <script>
  42. export default {
  43. name: 'evaluate-detail',
  44. data() {
  45. return {
  46. list: [{}],
  47. value: 3,
  48. show: false,
  49. };
  50. },
  51. methods: {
  52. handleMessage(item) {
  53. console.log(item, 'item');
  54. this.show = true;
  55. },
  56. handleClose(val) {
  57. this.show = val;
  58. },
  59. },
  60. };
  61. </script>
  62. <style lang="scss" scoped>
  63. .evaluate-detail {
  64. height: 100%;
  65. padding: 20rpx 32rpx;
  66. background-color: #fff;
  67. .merchant-mine {
  68. padding: 16rpx;
  69. border-radius: 8rpx;
  70. border: 2rpx solid #e6e6e6;
  71. }
  72. .evaluate {
  73. margin: 32rpx 0;
  74. }
  75. }
  76. .evaluate-button {
  77. position: fixed;
  78. bottom: 0;
  79. width: 100%;
  80. background-color: #fff;
  81. }
  82. </style>