me_evaluate.vue 5.1 KB

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