comment-detail.vue 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template>
  2. <v-header title="评价详情" border backgroundColor="#fff">
  3. <flat-list
  4. @changeData="flatChangeData"
  5. background="transparent"
  6. :ref="base_flat_id"
  7. @fetch="fetch"
  8. mode="skeleton"
  9. :refresh="false"
  10. :skeleton="parentItem.replay >= 10 ? 10: parentItem.replay"
  11. >
  12. <view slot="header">
  13. <view class="detail-header overflow" >
  14. <layout-comment
  15. size="big"
  16. :item="parentItem"
  17. ></layout-comment>
  18. </view>
  19. <view class="detail-list-title">评价回复<text v-if="parentItem.replay">({{parentItem.replay}})</text></view>
  20. </view>
  21. <view class="detail-list">
  22. <view class="detail-item"
  23. v-for="(item,index) in base_flat_data.data"
  24. :key="index"
  25. >
  26. <layout-comment
  27. size="big"
  28. :item="item"
  29. :rate="false"
  30. :image="false"
  31. ></layout-comment>
  32. </view>
  33. </view>
  34. <!-- 底部 -->
  35. <view class="detail-footer row aCenter" slot="end-footer">
  36. <view class="flex-all-1 detail-input jCenter">
  37. <input v-model="value" confirm-type="send" @confirm="sendMessage" type="text" maxlength="200" placeholder="写个评论聊聊" placeholder-class="detail-input-placeholder" class="detail-input-target" />
  38. </view>
  39. <view v-if="isLogin"
  40. class="detail-button center"
  41. :class="{'detail-button-disabled':disabled}"
  42. @click="sendMessage">评价</view>
  43. <view v-else class="detail-login-button center" @click="routerLogin">登录后发表评论</view>
  44. </view>
  45. </flat-list>
  46. </v-header>
  47. </template>
  48. <script>
  49. import vHeader from '@/components/v-header/main.vue';
  50. import flatList from '@/components/flat-list/src/main';
  51. import layoutComment from '@/layout/layout-commet/main';
  52. import mixins from './mixins';
  53. export default {
  54. name: "comment-detail",
  55. components:{
  56. vHeader,
  57. flatList,
  58. layoutComment
  59. },
  60. mixins
  61. }
  62. </script>
  63. <style scoped src="./style.scss" lang="scss"></style>