pingLunList.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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. this.tabList=res.data.data;
  73. },failc=>{
  74. //console.log('getadvertis----',failc)
  75. })
  76. },
  77. },
  78. }
  79. </script>
  80. <style>
  81. .linesp{
  82. width: 100%;
  83. height: 8rpx;
  84. background-color: aliceblue;
  85. }
  86. .tabs {
  87. flex: 1;
  88. flex-direction: column;
  89. overflow: hidden;
  90. background-color: #ffffff;
  91. }
  92. .tabbarct{
  93. display: flex;
  94. flex-direction: column;
  95. justify-content: flex-start;
  96. }
  97. .xialakuang{
  98. width: 92%;
  99. height: 60rpx;
  100. margin-left: 20rpx;
  101. border-radius: 30rpx;
  102. }
  103. .listCT{
  104. margin-top: 24rpx;
  105. }
  106. .tabitemct{
  107. display: flex;
  108. flex-direction: row;
  109. justify-content:space-between;
  110. margin: 8rpx;
  111. width: 96%;
  112. align-items: center;
  113. }
  114. .viewinrow{
  115. display: flex;
  116. flex-direction: row;
  117. justify-content:center;
  118. align-items: center;
  119. }
  120. .xingxing{
  121. width: 30rpx;
  122. height: 30rpx;
  123. }
  124. .timeimage{
  125. margin-left: 20rpx;
  126. width: 30rpx;
  127. height: 30rpx;
  128. }
  129. .pltitle{
  130. font-size: 26rpx;
  131. height: 30rpx;
  132. line-height: 30rpx;
  133. align-items: center;
  134. }
  135. .contentTxt{
  136. font-size: 30rpx;
  137. }
  138. </style>