pingLunList.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <template>
  2. <view class="tabs">
  3. <customNav :shownav="true" :title="$t('index.pinglunlb')" titledetl=""></customNav>
  4. <!-- <tongji></tongji> -->
  5. <view class="linesp"></view>
  6. <view class="linesp"></view>
  7. <view class="tabbarct">
  8. <!--
  9. <view class="xialakuang">
  10. <uni-data-select class="" v-model="value" :localdata="range" @change="selectchange" ></uni-data-select>
  11. </view>
  12. -->
  13. <view class="listCT">
  14. <view class="" v-for="item in tabList">
  15. <view class="tabbarct">
  16. <view class="tabitemct">
  17. <text class="pltitle">{{$t('order.danhao')}}:{{item.ddId}}</text>
  18. <view class="viewinrow">
  19. <image class="xingxing" src="/static/images/xingxing@3x.png" mode=""></image>
  20. <text class="pltitle">{{item.score}}</text>
  21. <image class="timeimage" src="/static/images/time@3x.png" mode=""></image>
  22. <text class="pltitle">{{item.cretim}}</text>
  23. </view>
  24. </view>
  25. <view class="tabitemct">
  26. <text class="contentTxt">{{item.content}}</text>
  27. </view>
  28. </view>
  29. <view class="linesp"></view>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </template>
  35. <script>
  36. import tongji from "./pingLunTongji.vue";
  37. import api from "@/pages/api/api.js"
  38. export default {
  39. components: {
  40. tongji
  41. },
  42. data() {
  43. return {
  44. tabList: [],
  45. tabIndex: 0,
  46. page:1,
  47. cacheTab: [],
  48. value: 0,
  49. mendid:'',
  50. range: [
  51. { value: 0, text:this.$t('pinglun.zxpinglun') },
  52. { value: 1, text: this.$t('pinglun.zzpinglun') },
  53. { value: 2, text: this.$t('pinglun.nmpinglun') },
  54. ],
  55. }
  56. },
  57. onLoad(option) {
  58. this.mendid = option.mendid;
  59. this.getmdrevew(this.page);
  60. },
  61. methods: {
  62. selectchange(e){
  63. console.log(e)
  64. this.value = e.value;
  65. },
  66. getmdrevew(page){//
  67. api('getmdrevew',{
  68. page:page,
  69. size:10,
  70. mdid:this.mendid
  71. },res=>{
  72. console.log('getHours',res)
  73. this.tabList=res.data.data;
  74. },failc=>{
  75. //console.log('getadvertis----',failc)
  76. })
  77. },
  78. },
  79. }
  80. </script>
  81. <style>
  82. .linesp{
  83. width: 100%;
  84. height: 8rpx;
  85. background-color: aliceblue;
  86. }
  87. .tabs {
  88. flex: 1;
  89. flex-direction: column;
  90. overflow: hidden;
  91. background-color: #ffffff;
  92. }
  93. .tabbarct{
  94. display: flex;
  95. flex-direction: column;
  96. justify-content: flex-start;
  97. }
  98. .xialakuang{
  99. width: 92%;
  100. height: 60rpx;
  101. margin-left: 20rpx;
  102. border-radius: 30rpx;
  103. }
  104. .listCT{
  105. margin-top: 24rpx;
  106. }
  107. .tabitemct{
  108. display: flex;
  109. flex-direction: row;
  110. justify-content:space-between;
  111. margin: 8rpx;
  112. width: 96%;
  113. align-items: center;
  114. }
  115. .viewinrow{
  116. display: flex;
  117. flex-direction: row;
  118. justify-content:center;
  119. align-items: center;
  120. }
  121. .xingxing{
  122. width: 30rpx;
  123. height: 30rpx;
  124. }
  125. .timeimage{
  126. margin-left: 20rpx;
  127. width: 30rpx;
  128. height: 30rpx;
  129. }
  130. .pltitle{
  131. font-size: 26rpx;
  132. height: 30rpx;
  133. line-height: 30rpx;
  134. align-items: center;
  135. }
  136. .contentTxt{
  137. font-size: 30rpx;
  138. }
  139. </style>