index.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <template>
  2. <view :style="{ minHeight: sys.windowHeight + 'px' }"
  3. :class="[$tm.vx.state().tmVuetify.black ? 'black' : ' ']">
  4. <tm-menubars title="我的评价" :shadow="0" :showback="true"></tm-menubars>
  5. <div class="zhuti">
  6. <tm-sheet class="kuang" style="padding-bottom: 70px !important;">
  7. <view style="width: 94%;margin:0 auto;">
  8. <tm-cartCellListFood class="shangpin" :typeclick="typeclick" :mdata="item" :cart-num.sync="item.buy"></tm-cartCellListFood>
  9. <view class="tiyan">
  10. <text class="text-white mr-20">产品体验</text>
  11. <tm-rate v-model="rate1"></tm-rate>
  12. <text class="ml-20 text-size-s">非常满意</text>
  13. </view>
  14. <view class="tiyan">
  15. <text class="text-white mr-20">派送评价</text>
  16. <tm-rate v-model="rate2"></tm-rate>
  17. <text class="ml-20 text-size-s">比较满意</text>
  18. </view>
  19. <view class="tiyan">
  20. <text class="text-white mr-20">服务态度</text>
  21. <tm-rate v-model="rate3"></tm-rate>
  22. <text class="ml-20 text-size-s">一般满意</text>
  23. </view>
  24. <tm-input class="shuru" :height="150" title="" :maxlength="144" :border-bottom="false" placeholder="快来发表评论吧!" input-type="textarea" v-model="val_1" bg-color="grey-lighten-5" clear></tm-input>
  25. <view class="mt-30">
  26. <tm-upload :tips="false" :filelist.sync="filelist"></tm-upload>
  27. </view>
  28. <tm-button :round="24" class="sao" block>提交</tm-button>
  29. </view>
  30. </tm-sheet>
  31. </div>
  32. <!-- 弹出层消息 -->
  33. <tm-message ref="toast"></tm-message>
  34. </view>
  35. </template>
  36. <script>
  37. import{myRequest} from '@/api/request.js'
  38. export default {
  39. data() {
  40. return {
  41. item: {
  42. img: '../../static/img/83.png',
  43. title: '丝缎质感纹理风衣',
  44. label: '黑色 - 6518/320',
  45. size:'S',
  46. price: '1299',
  47. id: 3,
  48. buy: 0,
  49. itemId: 0,
  50. checked:false,
  51. },
  52. typeclick:5,//1加入购物车,2购物车
  53. rate1:1,
  54. rate2:2,
  55. rate3:3,
  56. val_1:'',
  57. filelist:["https://picsum.photos/200?v=555","https://picsum.photos/200?v=555"],
  58. };
  59. },
  60. onLoad() {
  61. },
  62. created() {
  63. this.sys = uni.getSystemInfoSync();
  64. },
  65. methods: {
  66. aa(num){
  67. if(num==1){
  68. this.checked1=true;
  69. this.checked2=false;
  70. this.checked3=false;
  71. }else if(num==2){
  72. this.checked1=false;
  73. this.checked2=true;
  74. this.checked3=false;
  75. }else if(num==3){
  76. this.checked1=false;
  77. this.checked2=false;
  78. this.checked3=true;
  79. }
  80. },
  81. },
  82. }
  83. </script>
  84. <style lang="scss">
  85. /deep/ .tm-menubars .body{
  86. background-color: #1b1b1b !important;
  87. }
  88. /deep/ .zhuti{padding: 10px 10px;}
  89. /deep/ .kuang{margin:0 !important;padding: 0px !important;}
  90. .sao{width: 90%;margin: 0 auto;margin-top: 20px;}
  91. /deep/ .shuliang .text-size-n{color: white !important;}
  92. /deep/ .kuang .white.bk{background-color:#1b1b1b!important;}
  93. /deep/ .shangpin .tm-cartCellListFood{padding: 0px 0px 15px 0px !important;
  94. margin-top: 5px !important;margin-bottom: 20px !important;
  95. border-bottom: 1px solid #1B1B1B;}
  96. /deep/ .kuang .border-t-1.bk{border-top:1px solid #1b1b1b!important;}
  97. /deep/ .shangpin .title{color: white !important;}
  98. /deep/ .shangpin .text-red{color: white !important;}
  99. /deep/ .shangpin .round-3{width:90px !important;height:90px !important;}
  100. /deep/ .shangpin .tm-cartCellListFood-img{width:90px !important;height:90px !important;}
  101. /deep/ .shuliang .text-size-n{color: white !important;}
  102. .tiyan text{vertical-align: middle;}
  103. .tiyan{margin-top: 20px;}
  104. /deep/ .tiyan .text-primary.bk{color: #FFCC00 !important;}
  105. /deep/ .tiyan .opacity-6{opacity:1 !important;}
  106. /deep/ .shuru .grey-darken-4{background: #0D0D0D !important;}
  107. .shuru{padding:0px !important;margin-top: 20px !important;}
  108. </style>