me_evaluate.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  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. </view>
  42. </template>
  43. <script>
  44. export default {
  45. data() {
  46. return {
  47. tcTeam: [],
  48. pageindex: 1,
  49. count: 5
  50. }
  51. },
  52. mounted() {
  53. this.getevaluateList()
  54. },
  55. methods: {
  56. getevaluateList: async function() {
  57. let res = await this.$request.post("/api/v1/evaluate/evaluateList", {
  58. page: this.pageindex
  59. })
  60. console.log(res)
  61. if (res.status == 0) {
  62. this.tcTeam = res.data.data
  63. }
  64. }
  65. }
  66. }
  67. </script>
  68. <style lang="scss">
  69. .text_style {
  70. font-weight: 400;
  71. margin-left: 15rpx;
  72. background-color: #E5F5FF;
  73. color: #0B73B9;
  74. width: 100rpx;
  75. height: 28rpx;
  76. font-size: 20rpx;
  77. border-radius: 10rpx;
  78. text-align: center;
  79. align-items: center;
  80. }
  81. .nametaile {
  82. font-size: 30rpx;
  83. font-weight: 500;
  84. color: #333333;
  85. }
  86. .textstyle {
  87. font-size: 26rpx;
  88. color: #666666;
  89. font-weight: 400;
  90. }
  91. .phonezi {
  92. width: 160rpx;
  93. height: 54rpx;
  94. background: #F6F6F6;
  95. border-radius: 27rpx;
  96. font-size: 28rpx;
  97. font-family: PingFangSC-Regular, PingFang SC;
  98. font-weight: 400;
  99. color: #666666;
  100. display: flex;
  101. align-items: center;
  102. justify-content: center;
  103. }
  104. .jinxing {
  105. height: 30rpx;
  106. font-size: 30rpx;
  107. font-family: PingFangSC-Medium, PingFang SC;
  108. font-weight: 500;
  109. color: #EEAA3F;
  110. display: flex;
  111. align-items: center;
  112. }
  113. .v {
  114. margin: 20rpx 28rpx 0rpx 28rpx;
  115. border-radius: 15rpx;
  116. box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.08);
  117. width: auto;
  118. height: auto;
  119. background-color: #fbfbfb;
  120. }
  121. .list {
  122. border-radius: 15rpx;
  123. display: flex;
  124. width: auto;
  125. height: auto;
  126. background-color: #FFFFFF;
  127. .title {
  128. width: 100%;
  129. display: flex;
  130. // justify-content: center;
  131. // align-items: center;
  132. .img {
  133. width: 68rpx;
  134. height: 68rpx;
  135. border-radius: 50%;
  136. margin-right: 20rpx;
  137. }
  138. //文字
  139. .text {
  140. height: auto;
  141. //名字+标签
  142. .name {
  143. font-size: 25rpx;
  144. font-weight: bold;
  145. display: flex;
  146. align-items: center;
  147. margin-bottom: 14rpx;
  148. .label {
  149. font-weight: 400;
  150. margin-right: 15rpx;
  151. background-color: #E5F5FF;
  152. color: #0B73B9;
  153. width: 100rpx;
  154. height: 28rpx;
  155. font-size: 20rpx;
  156. border-radius: 10rpx;
  157. display: flex;
  158. justify-content: center;
  159. align-items: center;
  160. }
  161. }
  162. //科室
  163. .department {
  164. font-size: 18rpx;
  165. color: #666666;
  166. text {
  167. margin-right: 15rpx;
  168. }
  169. }
  170. // // 选项 图文电话门诊
  171. // .option {
  172. // display: flex;
  173. // view {
  174. // background-color: #E4E4E4;
  175. // width: 100rpx;
  176. // height: 48rpx;
  177. // border-radius: 12px;
  178. // margin-right: 15rpx;
  179. // display: flex;
  180. // justify-content: center;
  181. // align-items: center;
  182. // }
  183. // }
  184. }
  185. }
  186. .score {
  187. margin: 30rpx 30rpx 30rpx 78rpx;
  188. width: 100%;
  189. display: flex;
  190. background-color: #FFFFFF;
  191. }
  192. }
  193. .evaluate {
  194. font-size: 26rpx;
  195. color: #666666;
  196. }
  197. </style>