appraise.vue 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. <template>
  2. <view class="flex-common-css">
  3. <Nav title="评价" titleColor="#333" bgckgroundBox='#fff'></Nav>
  4. <scroll-view :scroll-y="true" class="scroll-view-css" @scrolltolower="scrolltolower">
  5. <view class="content-box">
  6. <view class="fc-FB3D03 fs-24 mb-28 text-align-center">
  7. 提交好评或建议,帮助骑手和商家做的更好
  8. </view>
  9. <view class="bgc-f p-24 b-rad-20 mb-18 box-sizing-border">
  10. <view class="flex-justify-space">
  11. <view class="fs-36 fw-600 fc-3">
  12. 你对商家满意吗?
  13. </view>
  14. <view class="align-items-center mb-24" @click="clickShopCheck">
  15. <uni-icons v-if="shopCheck" color="#41ABF5" type="checkbox-filled" size="20"></uni-icons>
  16. <uni-icons v-else color="#ccc" type="circle" size="20"></uni-icons>
  17. <view class="ml-2 fs-24 fc-6">
  18. 匿名提交
  19. </view>
  20. </view>
  21. </view>
  22. <view class="shop-box align-items-center mb-48">
  23. <image class="shop-img mr-20" src="../static/img/my/bg.png" mode=""></image>
  24. <view class="fs-30 fc-3">
  25. 2024-05-21 01:05 下单
  26. </view>
  27. </view>
  28. <view class="align-items-center mb-26">
  29. <view class="fs-30 fw-600 fc-0 mr-40">
  30. 总体
  31. </view>
  32. <uni-rate v-model="formData.rateValueOne" margin="10" active-color="#FF7F00" color="#F1F1F1" />
  33. <view class="fc-FF7F00 fs-28 ml-40">
  34. {{formData.rateValueOne == 1?'非常差':formData.rateValueOne == 2?'一般':formData.rateValueOne == 3?'好':formData.rateValueOne == 4?'很棒':'非常棒'}}
  35. </view>
  36. </view>
  37. <view class="align-items-center mb-60">
  38. <view class="fs-30 fw-600 fc-0 mr-40">
  39. 包装
  40. </view>
  41. <uni-rate v-model="formData.rateValueTwo" margin="10" active-color="#FF7F00" color="#F1F1F1" />
  42. <view class="fc-FF7F00 fs-28 ml-40">
  43. {{formData.rateValueTwo == 1?'非常差':formData.rateValueTwo == 2?'一般':formData.rateValueTwo == 3?'好':formData.rateValueTwo == 4?'很棒':'非常棒'}}
  44. </view>
  45. </view>
  46. <view class="fs-36 fw-600 fc-3 mb-24">
  47. 你对商品满意吗?
  48. </view>
  49. <view class="goods-box align-items-center">
  50. <image class="goods-img mr-20" src="../static/img/my/bg.png" mode=""></image>
  51. <view class="">
  52. <view class="mb-16 fs-30 fc-3">
  53. 小炒肉
  54. </view>
  55. <view class="align-items-center">
  56. <uni-rate v-model="formData.rateValueThree" margin="10" active-color="#FF7F00"
  57. color="#F1F1F1" />
  58. <view class="fc-FF7F00 fs-28 ml-40">
  59. {{formData.rateValueThree == 1?'非常差':formData.rateValueThree == 2?'一般':formData.rateValueThree == 3?'好':formData.rateValueThree == 4?'很棒':'非常棒'}}
  60. </view>
  61. </view>
  62. </view>
  63. </view>
  64. </view>
  65. <view class="bgc-f p-24 b-rad-20 mb-18 box-sizing-border">
  66. <view class="flex-justify-space mb-24">
  67. <view class="fs-36 fw-600 fc-3">
  68. 你对骑手满意吗?
  69. </view>
  70. <view class="fs-24 fc-6">
  71. 已对骑手匿名
  72. </view>
  73. </view>
  74. <view class="rider-box align-items-center mb-50">
  75. <image class="rider-img mr-18" src="../static/img/my/bg.png" mode=""></image>
  76. <view class="">
  77. <view class="mb-4 fs-30 fc-0">
  78. 王欢
  79. </view>
  80. <view class="fc-6 fs-24">
  81. 5月21日01:15左右送达
  82. </view>
  83. </view>
  84. </view>
  85. <view class="rider-rate align-items-center">
  86. <view
  87. class="rider-rate-but mr-18 scroll-view-css align-items-center flex-justify-center b-rad-200"
  88. :class="formData.riderRate?'bgc-F6F6F6':'bgc-ECF7FE'" @click="formData.riderRate = false">
  89. <image v-if="formData.riderRate" class="rider-rate-img mr-8"
  90. src="@/static/img/my/bmy-no.png" mode=""></image>
  91. <image v-else class="rider-rate-img mr-8" src="@/static/img/my/bmy-ok.png" mode=""></image>
  92. <view class="fs-30" :class="formData.riderRate?'fc-0':'fc-41ABF5'">
  93. 不满意
  94. </view>
  95. </view>
  96. <view class="rider-rate-but scroll-view-css align-items-center flex-justify-center b-rad-200"
  97. :class="formData.riderRate?'bgc-ECF7FE':'bgc-F6F6F6'" @click="formData.riderRate = true">
  98. <image v-if="formData.riderRate" class="rider-rate-img mr-8" src="@/static/img/my/my-ok.png"
  99. mode=""></image>
  100. <image v-else class="rider-rate-img mr-8" src="@/static/img/my/my-no.png" mode=""></image>
  101. <view class="fs-30" :class="formData.riderRate?'fc-41ABF5':'fc-0'">
  102. 满意
  103. </view>
  104. </view>
  105. </view>
  106. </view>
  107. <view class="bgc-f p-24 b-rad-20 mb-18 box-sizing-border">
  108. <view class="fs-36 fw-600 fc-3 mb-8">
  109. 请说说你的评价
  110. </view>
  111. <view class="textarea-box">
  112. <textarea placeholder-style="color:#ccc" auto-height maxlength='100' placeholder="请输入" />
  113. </view>
  114. <view class="up-img-box align-items-center flex-wrap-wrap">
  115. <view class="up-img" v-for="(itme, index) in imgList" :key="index">
  116. <image class="img" src="../static/img/my/bg.png" mode=""></image>
  117. <uni-icons @click="deleteImg(index)" class="delete-icons" color="#000" type="clear" size="20"></uni-icons>
  118. </view>
  119. <view class="add-img-box flex-direction flex-justify-center align-items-center bgc-F6F6F6">
  120. <image class="add-img" src="@/static/img/my/sc.png" mode=""></image>
  121. <view class="fs-24 fc-9">
  122. 上传照片
  123. </view>
  124. <view class="fs-24 fc-9">
  125. (最多6张)
  126. </view>
  127. </view>
  128. </view>
  129. </view>
  130. </view>
  131. </scroll-view>
  132. <view class="bot-box bgc-f">
  133. <view class="bot-but fc-f fs-32 text-align-center" :class="formType?'bgc-4FB3EF':'bgc-B3DDFB'">
  134. 提交评价
  135. </view>
  136. </view>
  137. </view>
  138. </template>
  139. <script>
  140. export default {
  141. components: {},
  142. data() {
  143. return {
  144. formType: false,
  145. shopCheck: false,
  146. formData: {
  147. rateValueOne: 1, //总体
  148. rateValueTwo: 1, //包装
  149. rateValueThree: 1, //商品
  150. riderRate: false, //骑手评价
  151. rate: '',
  152. imgList: []
  153. },
  154. };
  155. },
  156. onLoad(data) {},
  157. mounted() {},
  158. methods: {
  159. deleteImg(index) {
  160. this.formData.imgList.splice(index, 1)
  161. },
  162. clickShopCheck() {
  163. this.shopCheck = !this.shopCheck
  164. },
  165. scrolltolower() {
  166. console.log('触底');
  167. },
  168. },
  169. }
  170. </script>
  171. <style lang="scss" scoped>
  172. .content-box {
  173. padding: 24rpx;
  174. box-sizing: border-box;
  175. }
  176. .bot-box {
  177. width: 100%;
  178. padding: 12rpx 32rpx;
  179. box-sizing: border-box;
  180. }
  181. .bot-but {
  182. width: 100%;
  183. height: 92rpx;
  184. line-height: 92rpx;
  185. border-radius: 200rpx;
  186. }
  187. .shop-img {
  188. width: 88rpx;
  189. height: 88rpx;
  190. border-radius: 8rpx;
  191. }
  192. .goods-img {
  193. width: 108rpx;
  194. height: 108rpx;
  195. border-radius: 8rpx;
  196. }
  197. .rider-img {
  198. width: 80rpx;
  199. height: 80rpx;
  200. border-radius: 8rpx;
  201. }
  202. .rider-rate-img {
  203. width: 48rpx;
  204. height: 48rpx;
  205. }
  206. .rider-rate-but {
  207. padding: 16rpx 0;
  208. }
  209. .textarea-box {
  210. width: 100%;
  211. height: 200rpx;
  212. }
  213. .up-img {
  214. width: 204rpx;
  215. height: 204rpx;
  216. margin: 0 8rpx 8rpx 0;
  217. position: relative;
  218. .img {
  219. width: 100%;
  220. height: 100%;
  221. border-radius: 4rpx;
  222. }
  223. .delete-icons{
  224. position: absolute;
  225. right: 0;
  226. top: 0;
  227. }
  228. }
  229. .add-img-box {
  230. width: 204rpx;
  231. height: 204rpx;
  232. border: 1px dashed #666;
  233. .add-img {
  234. width: 56rpx;
  235. height: 56rpx;
  236. }
  237. }
  238. </style>