pingLunTongji.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <template>
  2. <view class="contentV">
  3. <view class="titlect">
  4. <label class="titletext">{{$t('pinglun.suoyoupingf')}}(4000+)</label>
  5. <view class="rightct">
  6. <image class="xingimage" src="/static/images/xingxing@3x.png" mode="aspectFit"></image>
  7. <label class="">4.9</label>
  8. </view>
  9. </view>
  10. <view class="linect">
  11. <view class="linev">
  12. <image class="xingimage" src="/static/images/xingxing@3x.png" mode="aspectFit"></image>
  13. <label class="textsize">5</label>
  14. <view class="progress_box">
  15. <progress :percent="pgList[0]" activeColor="#005500" stroke-width="7.5" show-info font-size='14' active='true' />
  16. </view>
  17. </view>
  18. <view class="linev">
  19. <image class="xingimage" src="/static/images/xingxing@3x.png" mode="aspectFit"></image>
  20. <label class="textsize">4</label>
  21. <view class="progress_box">
  22. <progress :percent="pgList[1]" activeColor="#005500" stroke-width="7.5" show-info font-size='14' active='true' />
  23. </view>
  24. </view>
  25. <view class="linev">
  26. <image class="xingimage" src="/static/images/xingxing@3x.png" mode="aspectFit"></image>
  27. <label class="textsize">3</label>
  28. <view class="progress_box">
  29. <progress :percent="pgList[2]" activeColor="#005500" stroke-width="7.5" show-info font-size='14' active='true' />
  30. </view>
  31. </view>
  32. <view class="linev">
  33. <image class="xingimage" src="/static/images/xingxing@3x.png" mode="aspectFit"></image>
  34. <label class="textsize">2</label>
  35. <view class="progress_box">
  36. <progress :percent="pgList[3]" activeColor="#005500" stroke-width="7.5" show-info font-size='14' active='true' />
  37. </view>
  38. </view>
  39. <view class="linev">
  40. <image class="xingimage" src="/static/images/xingxing@3x.png" mode="aspectFit"></image>
  41. <label class="textsize">1</label>
  42. <view class="progress_box">
  43. <progress :percent="pgList[4]" activeColor="#005500" stroke-width="7.5" show-info font-size='14' active='true' />
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. </template>
  49. <script>
  50. export default {
  51. data() {
  52. return {
  53. pgList: [60, 80, 20,40, 10]
  54. }
  55. },
  56. onShow(){
  57. this.setProgress()
  58. },
  59. methods: {
  60. setProgress() {
  61. this.pgList = [60, 80, 20, 40, 100]
  62. },
  63. }
  64. }
  65. </script>
  66. <style>
  67. .contentV{
  68. width: 100%;
  69. height: 330rpx;
  70. }
  71. .titlect{
  72. display: flex;
  73. flex-direction: row;
  74. align-items: center;
  75. justify-content: left;
  76. }
  77. .titletext{
  78. padding-top: 10rpx;
  79. padding-left: 10rpx;
  80. font-size: 40rpx;
  81. color: #000;
  82. font-weight:bold;
  83. }
  84. .rightct{
  85. margin-left: auto;
  86. margin-right: 30rpx;
  87. flex-direction: row;
  88. align-items: center;
  89. }
  90. .xingimage{
  91. padding-right: 10rpx;
  92. width: 30rpx;
  93. height: 30rpx;
  94. }
  95. .linect{
  96. width: 96%;
  97. justify-content: center;
  98. padding:10rpx;
  99. }
  100. .linev{
  101. display: flex;
  102. flex-direction: row;
  103. align-items: center;
  104. }
  105. .progress_box {
  106. padding-left: 16rpx;
  107. padding-right: 40rpx;
  108. width: 100%;
  109. }
  110. .textsize{
  111. font-size: 20rpx;
  112. }
  113. </style>