evaluate.vue 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. <template>
  2. <view class="flex-index-css evaluate-box box-border-box">
  3. <scroll-view scroll-y="true" class="scroll-view-css" @scrolltolower="scrolltolower">
  4. <view>
  5. <view class="card-box flex-justify-space align-items-center">
  6. <view class="align-items-center">
  7. <view class="fs-64 fc-FF7F00 fw-600 mr-12">4.6</view>
  8. <EnEva :num="3"></EnEva>
  9. </view>
  10. <view class="align-items-center">
  11. <view class="mr-30">
  12. <view class="fs-24 mb-4 fw-400">味道</view>
  13. <view class="fs-32 fw-b">4.2</view>
  14. </view>
  15. <view class="mr-30">
  16. <view class="fs-24 mb-4 fw-400">包装</view>
  17. <view class="fs-32 fw-b">4.2</view>
  18. </view>
  19. <view class="">
  20. <view class="fs-24 mb-4 fw-400">配送满意度</view>
  21. <view class="fs-32 fw-b">91%</view>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="card-box align-items-center">
  26. <view class="list-item fs-28" @click="selectType(item.id)"
  27. :class="type==item.id?'s-item':'n-item'"
  28. v-for="(item,i) in list" :key="i">{{item.name}}{{item.num||''}}</view>
  29. </view>
  30. <view class="card-box" v-for="(item,i) in 5" :key="i">
  31. <view class="item-head flex-justify-space mb-22">
  32. <view class="display-flex">
  33. <image class="left-img mr-16" src="@/static/img/my/bg.png" mode="scaleToFill"></image>
  34. <view class="mt-5">
  35. <view class="fs-28 fw-600">匿名用户</view>
  36. <view class="fs-24 fc-9">2024-05-16</view>
  37. </view>
  38. </view>
  39. <image @click="openPop" class="right-img" src="@/static/img/takeout/ddd.png" mode=""></image>
  40. </view>
  41. <view class="align-items-center mb-16">
  42. <EnEva :num="3"></EnEva>
  43. <view class="fs-24 fc-9 ml-16">非常棒</view>
  44. </view>
  45. <view class="fs-32 fw-400 mb-16">
  46. 味道好吃就是这个盒子包装不好味道好吃就1是这个盒子包装不好味道好吃就是这个盒子包装1不好味道好吃就是这个盒子包装不好
  47. </view>
  48. <view class="flex-wrap-wrap">
  49. <image v-for="(item,i) in 8" :key="i" @click="lookImg(i,item)"
  50. class="list-img" src="@/static/img/my/bg.png" mode="scaleToFill"></image>
  51. </view>
  52. <view class="bgc-F3F4F6 b-rad-12 box-border-box p-24 ">
  53. <view class="flex-justify-space align-items-center mb-12">
  54. <view class="fs-28 fw-600 fc-6">商家回复</view>
  55. <view class="fs-24 fc-9 fw-400">2024-5-16</view>
  56. </view>
  57. <view class="fs-24 fc-6 fw-400">
  58. 感谢亲亲的认可,接到亲的需求,我们就以火箭的速度准备并送出啦,亲亲能否品尝出我们的用心呢?欢迎再来哦!
  59. </view>
  60. </view>
  61. </view>
  62. </view>
  63. </scroll-view>
  64. <uni-popup ref="popup" type="bottom">
  65. <view class="pop-box" @click.stop="closePop">
  66. <view class="pop-box-1" v-if="tup">
  67. <view @click.stop="tup=false" class="text-align-center fs-32 fw-600 mb-20">我要举报</view>
  68. <view class="text-align-center fs-32 fw-600">取消</view>
  69. </view>
  70. <view v-else class="flex-index-css">
  71. <view class="flex-1"></view>
  72. <view class="pop-box-2 box-border-box p-24">
  73. <view class="pop-box-2-1 fs-36 fw-600 text-align-center mb-28">
  74. 选择举报理由
  75. <view class="pop-box-2-2" @click.stop="tup=true">
  76. <uni-icons type="closeempty" size="24"></uni-icons>
  77. </view>
  78. </view>
  79. <view class="pop-item text-align-center fs-32"
  80. v-for="(item,i) in reasonList" :key="i" @click.stop="report(item)">
  81. {{item.name}}
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. </uni-popup>
  87. </view>
  88. </template>
  89. <script>
  90. import EnEva from '@/components/en-utils/en-eva/en-eva.vue';
  91. import tools from "@/service/tools";
  92. export default {
  93. name:"evaluate-box",
  94. components:{EnEva},
  95. data(){
  96. return{
  97. type:0,
  98. list:[
  99. {name:'全部',id:0},
  100. {name:'很棒',id:1,num:11},
  101. {name:'一般',id:2},
  102. {name:'有图',id:3},
  103. ],
  104. tup:true,
  105. reasonList:[
  106. {name:'政治敏感',id:1},
  107. {name:'色情低俗',id:2},
  108. {name:'恶意辱骂',id:3},
  109. {name:'违法违规',id:4},
  110. {name:'垃圾广告',id:5},
  111. {name:'涉未成年',id:6},
  112. ]
  113. }
  114. },
  115. methods:{
  116. lookImg(i,item){
  117. tools.lookBigImg(i,item)
  118. },
  119. selectType(type){
  120. if(this.type != type){
  121. this.type = type
  122. }
  123. },
  124. scrolltolower(){
  125. console.log('触底');
  126. },
  127. openPop(){
  128. this.$refs.popup.open();
  129. },
  130. closePop(){
  131. this.$refs.popup.close();
  132. this.tup = true;
  133. },
  134. report(item){
  135. this.closePop()
  136. },
  137. },
  138. }
  139. </script>
  140. <style scoped lang="scss">
  141. .evaluate-box{
  142. background-color: #F5F4F9;
  143. padding: 16rpx 24rpx;
  144. .card-box{
  145. box-sizing: border-box;
  146. padding: 24rpx;
  147. background-color: #fff;
  148. border-radius: 20rpx;
  149. margin-bottom: 20rpx;
  150. }
  151. .list-item{
  152. min-width: 56rpx;
  153. height: 52rpx;
  154. border-radius: 8rpx;
  155. text-align: center;
  156. line-height: 52rpx;
  157. margin-right: 20rpx;
  158. padding: 0 16rpx;
  159. }
  160. .s-item{
  161. background: linear-gradient( 117deg, #57CAFF 0%, #41ABF5 100%);
  162. color: #fff;
  163. }
  164. .n-item{
  165. background: #F3F4F6;
  166. color: #333;
  167. }
  168. .item-head{
  169. .left-img{
  170. width: 80rpx;
  171. height: 80rpx;
  172. border-radius: 50%;
  173. }
  174. .right-img{
  175. width: 30rpx;
  176. height: 6rpx;
  177. }
  178. }
  179. .list-img{
  180. width: 210rpx;
  181. height: 210rpx;
  182. border-radius: 12rpx;
  183. margin: 0 10rpx 10rpx 0;
  184. }
  185. .list-img:nth-child(3){
  186. margin-right: 0 !important;
  187. }
  188. .list-img:nth-child(6){
  189. margin-right: 0 !important;
  190. }
  191. .list-img:nth-child(9){
  192. margin-right: 0 !important;
  193. }
  194. .pop-box{
  195. width: 100%;
  196. height: 100vh;
  197. background-color: #333;
  198. position: relative;
  199. .pop-box-1{
  200. position: absolute;
  201. bottom: 20rpx;
  202. left: 24rpx;
  203. view{
  204. width: 702rpx;
  205. height: 88rpx;
  206. line-height: 88rpx;
  207. background: #FFFFFF;
  208. border-radius: 16rpx;
  209. }
  210. }
  211. .pop-box-2{
  212. width: 100%;
  213. height: 820rpx;
  214. background: #FFFFFF;
  215. border-radius: 24rpx 24rpx 0rpx 0rpx;
  216. .pop-box-2-1{
  217. position: relative;
  218. .pop-box-2-2{
  219. position: absolute;
  220. top: 0;
  221. right: 0;
  222. }
  223. }
  224. .pop-item{
  225. width: 100%;
  226. height: 92rpx;
  227. line-height: 92rpx;
  228. background: #F3F4F6;
  229. border-radius: 200rpx;
  230. margin-bottom: 24rpx;
  231. }
  232. }
  233. }
  234. }
  235. </style>