consultingInfo.vue 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. <template>
  2. <view class="main">
  3. <view class="list">
  4. <!-- 头像 -->
  5. <view class="portrait">
  6. <view style="padding-top: 20rpx;">
  7. <!-- <image class="img" :src=""></image> -->
  8. <u-avatar :src="orderInfo.docter.avatar" mode="circle"></u-avatar>
  9. </view>
  10. </view>
  11. <!-- 文字 -->
  12. <view class="text">
  13. <!-- 名字+标签 -->
  14. <view class="name">
  15. <view style="margin-right: 15rpx;">{{orderInfo.docter.name}}</view>
  16. <view class="label" v-for="(itm,idx) in orderInfo.docter.label" :key="index">{{itm}}</view>
  17. </view>
  18. <!-- 科室 -->
  19. <view class="department">
  20. <text>科室:</text>
  21. <text style="color: #333333;">{{orderInfo.docter.office.name}}</text>
  22. <text style="color: #333333;">{{orderInfo.docter.qualification.name}}</text>
  23. </view>
  24. </view>
  25. </view>
  26. <view class="padding-sm bg-white margin-top-sm">
  27. <view class="text-lg text-black text-bold">
  28. 订单信息
  29. </view>
  30. <view class="text-gray margin-top-xs padding-tb-xs">
  31. <text class="text-leftstyle">订单号:</text>
  32. <text class="font_style">{{orderInfo.order_sn}}</text>
  33. </view>
  34. <view class="text-gray margin-top-xs padding-tb-xs">
  35. <text class="text-leftstyle">状态:</text><text v-if="orderInfo.order_status==1" class="font_style" style="color: rgb(238, 170, 63);">未支付</text>
  36. <text v-else-if="orderInfo.order_status==2" class="font_style" style="color: rgb(238, 170, 63);">待接单</text>
  37. <text v-else-if="orderInfo.order_status==3" class="font_style" style="color: rgb(238, 170, 63);">进行中</text>
  38. <text v-else-if="orderInfo.order_status==4" class="font_style" style="color: rgb(238, 170, 63);">已完成</text>
  39. <text v-else-if="orderInfo.order_status==5" class="font_style" style="color: rgb(238, 170, 63);">已取消</text>
  40. </view>
  41. <view class="text-gray margin-top-xs padding-tb-xs">
  42. <text class="text-leftstyle">下单时间:</text><text class="font_style">{{orderInfo.created_at}}</text>
  43. </view>
  44. <view class="text-gray margin-top-xs padding-tb-xs">
  45. <text class="text-leftstyle">结束时间:</text><text class="font_style">{{orderInfo.order_patient.appoint_end_time}}</text>
  46. </view>
  47. <view class="text-gray margin-top-xs padding-tb-xs">
  48. <text class="text-leftstyle">咨询时长:</text><text class="font_style"></text>
  49. </view>
  50. <view class="text-gray margin-top-xs padding-tb-xs">
  51. <text class="text-leftstyle">咨询患者:</text><text class="font_style">{{orderInfo.order_patient.name}}</text>
  52. </view>
  53. <view class="text-gray margin-top-xs padding-tb-xs">
  54. <text class="text-leftstyle">已付款:</text><text class="font_style">¥{{orderInfo.total_amount/100}}</text>
  55. </view>
  56. </view>
  57. <view class="cu-tabbar-height"></view>
  58. <view class="cu-tabbar-height"></view>
  59. <view class="cu-bar bg-white tabbar" v-if="orderInfo.order_status==4&&orderInfo.product_type==2" style="position: fixed;bottom: 0;width: 100%;display: flex;justify-content: flex-end;height: 108rpx;">
  60. <u-button shape="circle" :custom-style="customStyle" :ripple="true">咨询会话</u-button>
  61. <u-button shape="circle" :custom-style="customStyle" :ripple="true">评价</u-button>
  62. <u-button shape="circle" :custom-style="customStylebtn" :ripple="true">意见单</u-button>
  63. </view>
  64. <view class="cu-bar bg-white tabbar" v-else style="position: fixed;bottom: 0;width: 100%;">
  65. <view class="submit" style="background-color: #0B73B9;color: white;" @click="">
  66. {{orderInfo.product_type==1?'回拨':'咨询会话'}}
  67. </view>
  68. </view>
  69. </view>
  70. </template>
  71. <script>
  72. export default {
  73. onLoad(options) {
  74. this.order_id = options.id
  75. },
  76. mounted() {
  77. this.getordersInfo()
  78. },
  79. data() {
  80. return {
  81. order_id: "",
  82. orderInfo: {},
  83. customStyle: {
  84. marginRight: '20rpx'
  85. },
  86. customStylebtn: {
  87. marginRight: '20rpx',
  88. color: "#0B73B9",
  89. borderColor: "#0B73B9"
  90. }
  91. }
  92. },
  93. methods: {
  94. getordersInfo: async function() {
  95. let res = await this.$request.post("/api/v1/order/orderDetail", {
  96. order_id: this.order_id
  97. })
  98. console.log(res)
  99. if (res.status == 0) {
  100. this.orderInfo = res.data
  101. }
  102. }
  103. }
  104. };
  105. </script>
  106. <style scoped lang="scss">
  107. .main {}
  108. .text-leftstyle {
  109. text-align: right;
  110. width: 60px;
  111. display: inline-block;
  112. }
  113. .font_style {
  114. color: rgb(51, 51, 51);
  115. }
  116. .footer {
  117. width: 100%;
  118. height: auto;
  119. display: flex;
  120. position: fixed;
  121. bottom: 0;
  122. }
  123. .round {
  124. height: 45rpx;
  125. width: 50rpx;
  126. border-radius: 50%;
  127. background-color: #ececec;
  128. }
  129. .card {
  130. padding: 30rpx 30rpx;
  131. box-sizing: border-box;
  132. .card_view {
  133. width: 100%;
  134. background-color: #ffffff;
  135. border-radius: 15rpx;
  136. .title {
  137. width: 100%;
  138. height: 20vh;
  139. display: flex;
  140. justify-content: center;
  141. align-items: flex-end;
  142. .img {
  143. width: 90%;
  144. height: 90%;
  145. }
  146. }
  147. .describe {
  148. width: 100%;
  149. height: 1;
  150. padding: 100rpx 40rpx 20rpx 40rpx;
  151. }
  152. }
  153. }
  154. .list {
  155. margin: 20rpx 0 10rpx 0;
  156. padding: 20rpx 0;
  157. align-items: center;
  158. display: flex;
  159. width: 100%;
  160. border-radius: 15rpx;
  161. background-color: #FFFFFF;
  162. box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.08);
  163. .portrait {
  164. width: 20%;
  165. display: flex;
  166. justify-content: center;
  167. align-items: center;
  168. .img {
  169. width: 100rpx;
  170. height: 100rpx;
  171. border-radius: 50%;
  172. }
  173. .bun_true {
  174. text-align: center;
  175. width: 80rpx;
  176. height: 36rpx;
  177. background-color: #D92975;
  178. margin: 0 10rpx;
  179. border-radius: 60rpx;
  180. position: relative;
  181. top: -20rpx;
  182. font-size: 20rpx;
  183. color: #FFFFFF;
  184. padding: 3rpx 0;
  185. }
  186. .bun_false {
  187. border: 1rpx solid #D92975;
  188. text-align: center;
  189. width: 80rpx;
  190. height: 36rpx;
  191. background-color: #FFFFFF;
  192. margin: 0 10rpx;
  193. border-radius: 60rpx;
  194. position: relative;
  195. top: -20rpx;
  196. font-size: 20rpx;
  197. color: #D92975;
  198. padding: 3rpx 0;
  199. }
  200. }
  201. //文字
  202. .text {
  203. width: 70%;
  204. //名字+标签
  205. .name {
  206. font-size: 30rpx;
  207. font-weight: bold;
  208. display: flex;
  209. align-items: center;
  210. .label {
  211. font-weight: 400;
  212. margin-right: 15rpx;
  213. background-color: #E5F5FF;
  214. color: #0B73B9;
  215. width: 100rpx;
  216. height: 28rpx;
  217. font-size: 20rpx;
  218. border-radius: 10rpx;
  219. text-align: center;
  220. }
  221. }
  222. //科室
  223. .department {
  224. margin-top: 15rpx;
  225. color: #666666;
  226. text {
  227. margin-right: 15rpx;
  228. }
  229. }
  230. // 选项
  231. .option {
  232. display: flex;
  233. view {
  234. background-color: #E4E4E4;
  235. width: 100rpx;
  236. height: 48rpx;
  237. border-radius: 12px;
  238. margin-right: 15rpx;
  239. display: flex;
  240. justify-content: center;
  241. align-items: center;
  242. }
  243. }
  244. }
  245. }
  246. </style>