appraise.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <template>
  2. <mobile-frame>
  3. <view class="main">
  4. <view class="one">
  5. <view class="one_1">
  6. <view class="text1">{{info.name}}{{info.specs}}</view>
  7. <view class="text2">好评率 <text>{{info.rate}}%</text></view>
  8. </view>
  9. <view class="one_2">
  10. <view class="one_2_1" v-for="(item,index) in btnlist" :key="index">
  11. <text>{{item.name}}</text><text>({{item.num||0}})</text>
  12. </view>
  13. </view>
  14. </view>
  15. <view class="two">
  16. </view>
  17. </view>
  18. </mobile-frame>
  19. </template>
  20. <script>
  21. export default {
  22. data() {
  23. return {
  24. btnlist: [{
  25. name: '全部好评',
  26. num: '1',
  27. code: '0'
  28. },
  29. {
  30. name: '好评',
  31. num: '1',
  32. code: '0'
  33. },
  34. {
  35. name: '中评',
  36. num: '1',
  37. code: '0'
  38. },
  39. {
  40. name: '差评',
  41. num: '1',
  42. code: '0'
  43. }
  44. ],
  45. info: {
  46. name: '高精面粉',
  47. specs: '5g',
  48. rate: '95'
  49. },
  50. list: []
  51. };
  52. },
  53. onLoad: function(e) {
  54. },
  55. methods: {
  56. }
  57. }
  58. </script>
  59. <style lang="scss">
  60. .main {
  61. display: flex;
  62. flex-direction: column;
  63. width: 100vw;
  64. height: 100vh;
  65. background-color: var(--f1Color);
  66. .one {
  67. margin: 0 0 2vw 0;
  68. .one_1 {
  69. display: flex;
  70. justify-content: space-around;
  71. background-color: var(--mainColor);
  72. margin: 0 0 0.5vw 0;
  73. padding: 2vw;
  74. .text1 {
  75. font-size: var(--font16Szie);
  76. }
  77. .text2 {
  78. font-size: var(--font16Szie);
  79. color: var(--f85Color);
  80. text {
  81. margin: 0 0 0 1vw;
  82. color: var(--ff0Color);
  83. }
  84. }
  85. }
  86. .one_2 {
  87. display: flex;
  88. justify-content: space-between;
  89. padding: 2vw;
  90. background-color: var(--mainColor);
  91. }
  92. }
  93. }
  94. </style>