evaluate.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <template>
  2. <view class="container">
  3. <!-- 处理时效区域 -->
  4. <view class="score">
  5. <text>处理时效</text>
  6. <uni-rate activeColor="#FF5733" size="30" v-model="value" @change="onChange" />
  7. </view>
  8. <!-- 服务评价区域 -->
  9. <view class="evaluate">
  10. 服务评价
  11. <textarea placeholder-style="color:#CCCCCC" placeholder="您宝贵的评价对我们很重要哦"></textarea>
  12. </view>
  13. <!-- 确认提交区域 -->
  14. <view class="btn" @click="handleSub">确认提交</view>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. data() {
  20. return {
  21. value: 2
  22. }
  23. },
  24. methods: {
  25. onChange(e) {
  26. console.log('rate发生改变:' + JSON.stringify(e))
  27. },
  28. handleSub() {
  29. uni.navigateBack(1)
  30. }
  31. }
  32. }
  33. </script>
  34. <style lang="scss" scoped>
  35. .container {
  36. position: relative;
  37. padding-left: 30rpx;
  38. width: 100vw;
  39. height: 100vh;
  40. .score {
  41. display: flex;
  42. align-items: center;
  43. height: 172rpx;
  44. font-size: 28rpx;
  45. text {
  46. margin-right: 25rpx;
  47. }
  48. }
  49. .evaluate {
  50. display: flex;
  51. font-size: 28rpx;
  52. textarea {
  53. box-sizing: border-box;
  54. margin-left: 28rpx;
  55. padding: 14rpx 20rpx;
  56. width: 550rpx;
  57. height: 298rpx;
  58. font-size: 28rpx;
  59. border-radius: 11rpx;
  60. border: 1rpx solid #e6e6e6;
  61. }
  62. }
  63. .btn {
  64. position: absolute;
  65. left: 30rpx;
  66. bottom: 65rpx;
  67. display: flex;
  68. justify-content: center;
  69. align-items: center;
  70. width: 690rpx;
  71. height: 100rpx;
  72. color: #fff;
  73. font-size: 32rpx;
  74. border-radius: 12rpx;
  75. background-color: #6fb6b8;
  76. }
  77. }
  78. </style>