me_evaluate.vue 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  1. <template>
  2. <view style="height: 100%;width: 100%;">
  3. <view class="v" v-for="item,index in tcTeam" :key='index' :data-index="index">
  4. <view class="list_view">
  5. <view class="flex justify-between" style="margin: 20rpx 0 20rpx 0;">
  6. <text class="title">{{item.user}}</text>
  7. <view>
  8. <text style="font-size: 26rpx;color: #bcbcbc;margin-right: 5rpx;">订单号:</text>
  9. <text style="font-size: 26rpx;color: #c1c1c1;">{{item.order_id}}</text>
  10. </view>
  11. </view>
  12. <view class="flex justify-between" style="margin: 0 0rpx 20rpx 0rpx;">
  13. <u-rate :count="count" :disabled="true" v-model="item.lv" size="35" inactive-color="#ececec"></u-rate>
  14. <view>
  15. <text style="font-size: 26rpx;color: #bcbcbc;margin-right: 5rpx;">时间:</text>
  16. <text style="font-size: 26rpx;color: #c1c1c1;">{{item.time}}</text>
  17. </view>
  18. </view>
  19. <u-line color="#ececec" />
  20. <view class="" style="padding: 0 20rpx;color: #666666;margin-top: 20rpx;">
  21. {{item.evaluate}}
  22. </view>
  23. </view>
  24. <!-- <view class="list">
  25. <view style="width: 100%;">
  26. <view class="flex justify-between align-center bg-white" style="padding: 28rpx;border-radius: 16rpx;">
  27. <view class="jinxing">
  28. <text style="display: inline-block;width: 12rpx;height: 12rpx;border-radius: 50%;background-color:#EEAA3F;margin-right: 8rpx;"></text>
  29. <text v-if="item.status==1">待审核</text>
  30. <text v-else-if="item.status==2">审核通过</text>
  31. <text v-else-if="item.status==3">审核拒绝</text>
  32. </view>
  33. <text class="phonezi">我的评价</text>
  34. </view>
  35. </view>
  36. </view>
  37. <view style="width: 100%;height: 100%;;border-radius: 15rpx;">
  38. <view class="flex align-center margin-top-sm">
  39. <view class="text-lg text-bold margin-left-sm">
  40. {{item.order.docter.name}}
  41. </view>
  42. <view class="text-gray margin-left-sm">
  43. {{item.order.product_type==1?'电话咨询':'图文咨询'}}
  44. </view>
  45. <view class="margin-left-sm">
  46. <u-rate :count="count" :disabled="true" v-model="item.score"></u-rate>
  47. </view>
  48. </view>
  49. <view style="margin: 30rpx 28rpx 30rpx 28rpx;">
  50. <text class="evaluate">{{item.content}}</text>
  51. </view>
  52. <u-line color="#EFEFEF" />
  53. <view style="padding: 24rpx 28rpx;font-size: 26rpx;coloepicr: #666666;display: flex;justify-content: space-between;align-items: center;">
  54. <text style="margin-right: 50rpx;">{{item.order.order_sn}}</text>
  55. <text>{{item.created_at}}</text>
  56. </view>
  57. </view> -->
  58. </view>
  59. <u-empty text="暂无数据" :show="show" mode="order" margin-top="250" v-if="tcTeam.length==0"></u-empty>
  60. <u-no-network></u-no-network>
  61. <view class="cu-tabbar-height"></view>
  62. <view class="cu-tabbar-height"></view>
  63. </view>
  64. </template>
  65. <script>
  66. export default {
  67. data() {
  68. return {
  69. tcTeam: [],
  70. pageindex: 1,
  71. count: 5,
  72. show: false
  73. }
  74. },
  75. mounted() {
  76. this.getevaluateList()
  77. },
  78. onReachBottom() {
  79. this.getevaluateList()
  80. },
  81. methods: {
  82. getevaluateList: async function() {
  83. let res = await this.$request.post("doctor/evaluate", {
  84. curPage: this.pageindex,
  85. pageSize: 15
  86. })
  87. console.log(res)
  88. if (res.status == 0) {
  89. if (res.data.length==0) {
  90. // uni.showToast({
  91. // title: "没有更多了",
  92. // icon: "none"
  93. // })
  94. // return false;
  95. } else {
  96. this.tcTeam = this.tcTeam.concat(res.data)
  97. this.pageindex++
  98. }
  99. }
  100. if (this.tcTeam.length == 0) {
  101. this.show = true
  102. } else {
  103. this.show = false
  104. }
  105. }
  106. }
  107. }
  108. </script>
  109. <style lang="scss">
  110. .list_view {
  111. // width: 100%;
  112. margin: 20rpx 25rpx 0 25rpx;
  113. padding: 30rpx 28rpx;
  114. background-color: #FFF;
  115. border-radius: 12rpx;
  116. box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.08);
  117. //标题 用户名
  118. .title {
  119. margin-left: 20rpx;
  120. font-size: 30rpx;
  121. font-weight: bold;
  122. }
  123. }
  124. // .text_style {
  125. // font-weight: 400;
  126. // margin-left: 15rpx;
  127. // background-color: #E5F5FF;
  128. // color: #0B73B9;
  129. // width: 100rpx;
  130. // height: 28rpx;
  131. // font-size: 20rpx;
  132. // border-radius: 10rpx;
  133. // text-align: center;
  134. // align-items: center;
  135. // }
  136. // .nametaile {
  137. // font-size: 30rpx;
  138. // font-weight: 500;
  139. // color: #333333;
  140. // }
  141. // .textstyle {
  142. // font-size: 26rpx;
  143. // color: #666666;
  144. // font-weight: 400;
  145. // }
  146. // .phonezi {
  147. // width: 160rpx;
  148. // height: 54rpx;
  149. // background: #F6F6F6;
  150. // border-radius: 27rpx;
  151. // font-size: 28rpx;
  152. // font-family: PingFangSC-Regular, PingFang SC;
  153. // font-weight: 400;
  154. // color: #666666;
  155. // display: flex;
  156. // align-items: center;
  157. // justify-content: center;
  158. // }
  159. // .jinxing {
  160. // height: 30rpx;
  161. // font-size: 30rpx;
  162. // font-family: PingFangSC-Medium, PingFang SC;
  163. // font-weight: 500;
  164. // color: #EEAA3F;
  165. // display: flex;
  166. // align-items: center;
  167. // }
  168. // .v {
  169. // margin: 20rpx 28rpx 0rpx 28rpx;
  170. // border-radius: 15rpx;
  171. // box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.08);
  172. // width: auto;
  173. // height: auto;
  174. // background-color: #fbfbfb;
  175. // }
  176. // .list {
  177. // border-radius: 15rpx;
  178. // display: flex;
  179. // width: auto;
  180. // height: auto;
  181. // background-color: #FFFFFF;
  182. // .title {
  183. // width: 100%;
  184. // display: flex;
  185. // // justify-content: center;
  186. // // align-items: center;
  187. // .img {
  188. // width: 68rpx;
  189. // height: 68rpx;
  190. // border-radius: 50%;
  191. // margin-right: 20rpx;
  192. // }
  193. // //文字
  194. // .text {
  195. // height: auto;
  196. // //名字+标签
  197. // .name {
  198. // font-size: 25rpx;
  199. // font-weight: bold;
  200. // display: flex;
  201. // align-items: center;
  202. // margin-bottom: 14rpx;
  203. // .label {
  204. // font-weight: 400;
  205. // margin-right: 15rpx;
  206. // background-color: #E5F5FF;
  207. // color: #0B73B9;
  208. // width: 100rpx;
  209. // height: 28rpx;
  210. // font-size: 20rpx;
  211. // border-radius: 10rpx;
  212. // display: flex;
  213. // justify-content: center;
  214. // align-items: center;
  215. // }
  216. // }
  217. // //科室
  218. // .department {
  219. // font-size: 18rpx;
  220. // color: #666666;
  221. // text {
  222. // margin-right: 15rpx;
  223. // }
  224. // }
  225. // // // 选项 图文电话门诊
  226. // // .option {
  227. // // display: flex;
  228. // // view {
  229. // // background-color: #E4E4E4;
  230. // // width: 100rpx;
  231. // // height: 48rpx;
  232. // // border-radius: 12px;
  233. // // margin-right: 15rpx;
  234. // // display: flex;
  235. // // justify-content: center;
  236. // // align-items: center;
  237. // // }
  238. // // }
  239. // }
  240. // }
  241. // .score {
  242. // margin: 30rpx 30rpx 30rpx 78rpx;
  243. // width: 100%;
  244. // display: flex;
  245. // background-color: #FFFFFF;
  246. // }
  247. // }
  248. // .evaluate {
  249. // font-size: 26rpx;
  250. // color: #666666;
  251. // }
  252. </style>