doctorInfo.vue 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275
  1. <template>
  2. <view class="page">
  3. <!-- 顶部导航栏 -->
  4. <view class="tabbar" :style="{ paddingTop: statusBarHeight + 'px' }">
  5. <view class="p_inner p_flexCenter">{{ pageTitle }}</view>
  6. <image class="p_back_img" mode="widthFix" :src="iconUrl.doctor_back_n"></image>
  7. <view class="iconCon" :style="{ top: statusBarHeight + 'px' }" @click="toBack">
  8. <view class="iconLeft"></view>
  9. </view>
  10. </view>
  11. <view class="container" v-if="showCon" :style="{ paddingTop: 44 + statusBarHeight + 'px' }">
  12. <view class="content">
  13. <image class="p_back_img" mode="widthFix" :src="iconUrl.doctor_back_n"></image>
  14. <view class="doc_con_outer">
  15. <view class="doc_con">
  16. <view class="doc_his p_flexCenter">
  17. <view class="p_doctor_img_con">
  18. <image class="p_doctor_img" :src="doctorInfo.DoctorPhotourl"></image>
  19. </view>
  20. <view class="doc_his_con">
  21. <view class="doc_name p_flexStart">
  22. {{ doctorInfo.DoctorName }}
  23. <image class="doc_his_code_img" :src="iconUrl.doctor_code_n" @click="codeClick"></image>
  24. </view>
  25. <view class="doc_dept p_color_6">{{ doctorInfo.DeptName }} {{ doctorInfo.TitleName }}</view>
  26. <view class="doc_tip_list p_flexCenter">
  27. <view class="doc_tip_item" v-if="doctorInfo.DoctorServiceCons != '1' && doctorInfo.DoctorServiceTelcons != '1' && doctorInfo.DoctorVideocons != '1'">暂停接单</view>
  28. <view class="doc_tip_item" v-if="doctorInfo.DoctorService1004 == '0'">不能开处方</view>
  29. </view>
  30. </view>
  31. <view class="doc_his_btn_list p_flexCenter">
  32. <view class="doc_his_btn_like p_flexCenter" :class="{ 'doc_his_btn_liked': like }">
  33. <image class="doc_his_btn_img" :src="like ? iconUrl.doctor_gz_ac : iconUrl.doctor_gz"></image>
  34. <view class="doc_his_btn_val" @click="likeFn">{{ like ? '已关注' : '关注' }}</view>
  35. </view>
  36. </view>
  37. </view>
  38. <view class="doc_info p_format">
  39. <view class="doc_info_item">
  40. <image class="doc_info_img" :src="iconUrl.doctor_sc_n"></image>
  41. <view class="doc_info_val" :class="{ 'p_lineClamp': !showAllInfo }" @click="showAllFn">
  42. 擅长:{{ doctorInfo.DoctorSkill }} 简介:{{ doctorInfo.DoctorIntro }}
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. <view class="doc_his_val p_flexCenter p_color_6">
  48. <view class="p_flexCenterCol">
  49. <text class="doc_his_val_num p_color_3" v-if="doctorInfo.ConsultAmount >= 10">{{ doctorInfo.ConsultAmount }}</text>
  50. <text class="doc_his_val_num p_color_3" v-else>{{ '<' }}10</text>咨询量
  51. </view>
  52. <view class="p_flexCenterCol">
  53. <text class="doc_his_val_num p_color_3">{{ doctorInfo.percentage }}</text>好评率
  54. </view>
  55. <view class="p_flexCenterCol">
  56. <text class="doc_his_val_num p_color_3" v-if="doctorBdInfo.CollectCount >= 10">{{ doctorBdInfo.CollectCount }}</text>
  57. <text class="doc_his_val_num p_color_3" v-else>{{ '<' }}10</text>粉丝量
  58. </view>
  59. </view>
  60. </view>
  61. <view class="consulting_con">
  62. <view class="consulting_detail p_format">
  63. <view class="consulting_option_list p_flexBetween">
  64. <view
  65. class="consulting_option p_flexCenterCol"
  66. :class="{ 'consulting_option_ac': selectedType == 'twzx' }"
  67. @click="setVal('selectedType', 'twzx')"
  68. >
  69. <image class="doctor_selected" :src="iconUrl.doctor_selected" v-if="selectedType == 'twzx'"></image>
  70. <image class="consulting_option_img" :src="doctorInfo.DoctorServiceCons == '1' ? iconUrl.doctor_twzx_ac : iconUrl.doctor_twzx"></image>
  71. <view class="consulting_option_tit">图文咨询</view>
  72. <view class="consulting_option_subtit p_color_6">¥{{ doctorInfo.consultFeeDiy }}/次</view>
  73. </view>
  74. <view
  75. class="consulting_option p_flexCenterCol"
  76. :class="{ 'consulting_option_ac': selectedType == 'spzx' }"
  77. @click="setVal('selectedType', 'spzx')"
  78. >
  79. <image class="doctor_selected" :src="iconUrl.doctor_selected_spzx" v-if="selectedType == 'spzx'"></image>
  80. <image class="consulting_option_img" :src="doctorInfo.DoctorVideocons == '1' ? iconUrl.doctor_spzx_ac : iconUrl.doctor_spzx"></image>
  81. <view class="consulting_option_tit">视频咨询</view>
  82. <view class="consulting_option_subtit p_color_6">¥{{ doctorInfo.videoFeeDiy }}/次</view>
  83. </view>
  84. </view>
  85. <view v-for="item in typeInfoList" :key="item.key">
  86. <view v-if="item.key == selectedType">
  87. <view class="consulting_detail_tips">
  88. <view class="consulting_detail_tip_tit">{{ item.tip.title }}</view>
  89. <view class="consulting_detail_tip_val p_color_6" v-for="(tip, idx) in item.tip.tipList" :key="idx">
  90. {{ tip }}
  91. </view>
  92. </view>
  93. <view class="consulting_detail_tip">
  94. <view class="consulting_detail_tip_tit">{{ item.pic.title }}</view>
  95. <view class="consulting_detail_imgtip p_flexBetween">
  96. <view class="consulting_detail_imgtip_inner p_flexBetween" v-for="(pic, picIdx) in item.pic.picList" :key="picIdx">
  97. <image class="consulting_detail_right" :src="iconUrl.home_right" v-if="picIdx != 0"></image>
  98. <view class="consulting_detail_imgtip_item p_flexCenterCol">
  99. <image class="consulting_detail_img" :src="pic.icon"></image>
  100. <view class="consulting_detail_val p_color_6">{{ pic.text }}</view>
  101. </view>
  102. </view>
  103. </view>
  104. </view>
  105. </view>
  106. </view>
  107. </view>
  108. <view class="consulting_comment p_format" v-if="doctorInfo.AppraiseRule && doctorInfo.AppraiseRule.TYPE_1.isCheck == '1'">
  109. <view class="consulting_detail_tip_tit p_flexCenter">
  110. 患者评价
  111. </view>
  112. <!-- 评价统计标签 -->
  113. <view class="statistics_item_outer" v-if="evaluateList.length > 0">
  114. <view class="statistics_item_box" v-for="(item, index) in evaluateList" :key="index">
  115. <view class="p_flexStart">
  116. <image class="statistics_item_icon" :src="item.DictRemark" mode="scaleToFill"></image>
  117. <view class="statistics_item_text">
  118. <text class="color333" v-for="(txt, idx) in item.evalua" :key="idx">{{ txt }}</text>
  119. </view>
  120. </view>
  121. <text class="p_color_FB9630">x{{ item.Num }}次</text>
  122. </view>
  123. </view>
  124. <!-- 评价列表 -->
  125. <view class="consulting_comment_list" v-if="!showNoData">
  126. <view class="consulting_comment_item p_format p_border_bottom" v-for="(item, index) in list" :key="index">
  127. <view class="consulting_comment_user p_flexBetween">
  128. <view class="p_flexStart">
  129. <image class="consulting_comment_user_phtot" src="https://weixin.fyyy.com/cdn/st1/darkGreen/static/images/icon/small_patient_icon.png"></image>
  130. <view class="consulting_comment_user_name p_color_6">评价人:{{ item.Remark ? item.Remark.memberName : '' }}</view>
  131. </view>
  132. <text class="consulting_comment_user_time p_color_6">评价时间:{{ item.AppraiseDate }}</text>
  133. </view>
  134. <view class="consulting_comment_val">{{ item.Content != '' ? item.Content : item.DictName }}</view>
  135. </view>
  136. <view class="p_load_more p_color_9">{{ stopReachBottom ? '已加载全部' : '上拉加载更多' }}</view>
  137. </view>
  138. <noData v-else :value="noDataValue"></noData>
  139. </view>
  140. </view>
  141. <view class="p_btn_con">
  142. <view class="p_btn p_flexCenter p_bgcolor" @click="toSupplement">
  143. 提交咨询({{ selectedType == 'twzx' ? doctorInfo.consultFeeDiy : selectedType == 'dhzx' ? doctorInfo.phoneFeeDiy : selectedType == 'spzx' ? doctorInfo.videoFeeDiy : 0 }}元)
  144. </view>
  145. </view>
  146. </view>
  147. <!-- 电子名片 -->
  148. <view class="p_mask p_flexCenter mask_bottom" v-if="showDocDetial" @click="codeClick">
  149. <view class="p_dialog" @click.stop="doNothing">
  150. <image class="doctor_picback1" :src="iconUrl.doctor_picback1"></image>
  151. <image class="doctor_picback2" :src="iconUrl.doctor_picback2"></image>
  152. <view class="p_dialog_tit p_flexCenter">
  153. <view class="p_dialog_tit_val">电子名片</view>
  154. <image class="p_dialog_cha" :src="iconUrl.doctor_cha" @click.stop="codeClick"></image>
  155. </view>
  156. <view class="p_dialog_inner p_format p_scroll dialog_inner_bottom">
  157. <view class="doc_detial_pic">
  158. <image class="doc_detial_pic_img" :src="iconUrl.doctor_picback"></image>
  159. <view class="doc_detial_pic_inner p_flexBetween">
  160. <view class="pic_con p_format">
  161. <view class="pic_tit">
  162. {{ hosName }}
  163. <view class="pic_tit_line p_bgcolor"></view>
  164. </view>
  165. <view class="pic_name">{{ doctorInfo.DoctorName }}</view>
  166. <view class="pic_subtit p_color_6">{{ doctorInfo.DeptName }} {{ doctorInfo.TitleName }}</view>
  167. </view>
  168. <view class="pic_img_con">
  169. <image class="doc_imgback" :src="iconUrl.doctor_docback"></image>
  170. <image class="doc_img" :src="doctorInfo.DoctorPhotourl"></image>
  171. </view>
  172. </view>
  173. </view>
  174. <view class="doc_detail_code_con p_flexCenter">
  175. <image class="doc_detail_code" :src="codeInfo.Url"></image>
  176. </view>
  177. </view>
  178. </view>
  179. </view>
  180. </view>
  181. </view>
  182. </template>
  183. <script setup lang="ts">
  184. import { ref, reactive, onMounted, getCurrentInstance } from 'vue'
  185. import { useOnLoad } from '@/hook'
  186. import icon from '@/utils/icon'
  187. import { REQUEST_CONFIG } from '@/config';
  188. import { common } from '@/uni-app-base/utils';
  189. import {
  190. queryConsultDoctorList,
  191. QueryBDoctorInfo,
  192. queryAppraiseList as queryAppraiseListApi,
  193. getUserCollectByDoctorUid as getUserCollectByDoctorUidApi,
  194. userCollect,
  195. unUserCollect,
  196. queryQrCode,
  197. addOrUpdateConsultDoctorReport,
  198. countConsultAppraise,
  199. queryConsultAppraiseList
  200. } from '@/pagesNetHos/st1/service/doctor'
  201. import { useGetMember } from '@/hook'
  202. import { doctorListHandle } from '/pagesNetHos/st1/static/js/pagesNetHosFn';
  203. import noData from '@/pages/st1/components/noData/noData.vue';
  204. // 获取全局应用实例
  205. const app = getApp()
  206. const { proxy } = getCurrentInstance()
  207. // 图片icon
  208. const iconUrl = ref(icon);
  209. const baseUrl = ref(`${REQUEST_CONFIG.BASE_URL}`);
  210. // 页面状态
  211. const showCon = ref(false)
  212. const like = ref(false)
  213. const showDocDetial = ref(false)
  214. const queryBean = reactive<any>({})
  215. const showAllInfo = ref(false)
  216. const list = ref<any[]>([])
  217. const pIndex = ref(0)
  218. const selectedType = ref('twzx')
  219. const serviceType = ref('')
  220. const showNoData = ref(false)
  221. const noDataValue = ref('暂无评价')
  222. const doctorInfo = reactive<any>({})
  223. const doctorBdInfo = reactive<any>({})
  224. const stopReachBottom = ref(false)
  225. const evaluateList = ref<any[]>([])
  226. const queryData = reactive({
  227. PassiveUid: '',
  228. StarType: 0,
  229. Page: {
  230. PSize: 10,
  231. PIndex: 0
  232. }
  233. })
  234. const codeInfo = reactive<any>({})
  235. const statusBarHeight = ref(20)
  236. const pageTitle = ref('医生主页')
  237. const hosName = ref('')
  238. // 咨询方式详情
  239. const typeInfoList = ref([
  240. {
  241. key: 'twzx',
  242. tip: {
  243. title: '图文咨询',
  244. tipList: [
  245. '与医生本人在线图文交流,一一对应充分沟通;',
  246. '医生给出明确建议,如用药指导、康复方法等;',
  247. '医生接受申请后的24小时内,图文对话上限为10次;'
  248. ]
  249. },
  250. pic: {
  251. title: '图文咨询服务流程',
  252. picList: [
  253. { icon: icon.doctor_ghzf, text: '挂号支付' },
  254. { icon: icon.doctor_bqms, text: '病情描述' },
  255. { icon: icon.doctor_yshf, text: '医生回复' },
  256. { icon: icon.doctor_wzjs, text: '问诊结束' }
  257. ]
  258. }
  259. },
  260. {
  261. key: 'spzx',
  262. tip: {
  263. title: '视频咨询',
  264. tipList: [
  265. '通过视频交流,高效直接更清楚;',
  266. '与医生本人在线视频交流,一一对应充分沟通;',
  267. '医生给出明确建议,如用药指导、康复方法等;',
  268. '视频咨询需预约医生号源,并提前20分钟签到候诊;'
  269. ]
  270. },
  271. pic: {
  272. title: '视频咨询服务流程',
  273. picList: [
  274. { icon: icon.doctor_ghzf, text: '挂号支付' },
  275. { icon: icon.doctor_bqms, text: '病情描述' },
  276. { icon: icon.doctor_yshz, text: '医生候诊' },
  277. { icon: icon.doctor_yshj, text: '医生呼叫' },
  278. { icon: icon.doctor_wzjs, text: '问诊结束' }
  279. ]
  280. }
  281. }
  282. ])
  283. // 页面加载
  284. useOnLoad((options: any) => {
  285. if (options.queryBean) {
  286. Object.assign(queryBean, common.parse(options.queryBean))
  287. }
  288. if (options.serviceType) {
  289. serviceType.value = options.serviceType
  290. }
  291. // 获取用户信息
  292. const memberInfo = useGetMember()
  293. hosName.value = memberInfo.hospitalInfo?.HospitalAlias || ''
  294. queryData.PassiveUid = queryBean.DoctorUid
  295. statusBarHeight.value = (app as any).globalData.statusBarHeight || 20
  296. main()
  297. })
  298. // 主逻辑
  299. async function main() {
  300. let selectedTypeVal = ''
  301. common.showLoading()
  302. await queryBDoctorInfo()
  303. await getUserCollectByDoctorUid()
  304. let { resp: consultList } = await queryConsultDoctorList({
  305. DoctorUid: queryBean.DoctorUid,
  306. DeptId: queryBean.DeptId
  307. })
  308. await AddOrUpdateConsultDoctorReport()
  309. common.hideLoading()
  310. if (!common.isEmpty(consultList)) {
  311. const handledDoctorInfo = doctorListHandle(consultList)[0]
  312. Object.assign(doctorInfo, handledDoctorInfo)
  313. if (handledDoctorInfo.DoctorServiceCons == '1') {
  314. selectedTypeVal = 'twzx'
  315. } else if (handledDoctorInfo.DoctorServiceTelcons == '1') {
  316. selectedTypeVal = 'dhzx'
  317. } else if (handledDoctorInfo.DoctorVideocons == '1') {
  318. selectedTypeVal = 'spzx'
  319. }
  320. }
  321. showCon.value = true
  322. selectedType.value = selectedTypeVal
  323. // 调用统计评价API
  324. await CountConsultAppraise()
  325. // 调用查询评价列表API
  326. await queryAppraiseList()
  327. }
  328. // 查询医生信息
  329. async function queryBDoctorInfo() {
  330. let data = {
  331. DoctorId: '',
  332. DeptCode: queryBean.DeptCode || '',
  333. DeptId: queryBean.DeptId || '',
  334. DoctorCode: queryBean.DoctorCode,
  335. DoctorUid: queryBean.DoctorUid,
  336. }
  337. let { resp } = await QueryBDoctorInfo(data)
  338. if (!common.isEmpty(resp)) {
  339. Object.assign(doctorBdInfo, resp[0])
  340. }
  341. }
  342. // 查询评价列表
  343. async function queryAppraiseList(reachBottom = false) {
  344. if (!reachBottom) {
  345. queryData.Page.PIndex = 1
  346. }
  347. let { resp } = await queryConsultAppraiseList(queryData)
  348. console.log(resp, 'queryConsultAppraiseList resp')
  349. // 处理评价数据
  350. if (!common.isEmpty(resp)) {
  351. const baseUrlVal = baseUrl.value || ''
  352. let url = baseUrlVal
  353. if (url.indexOf('KasiteWeb') > -1) {
  354. url = url.split('KasiteWeb/')[0]
  355. }
  356. resp.forEach((item: any) => {
  357. item.DictRemark = url + item.DictRemark
  358. item.DictName = item.DictName ? (item.DictName.substring(0, 4) + '-' + item.DictName.substring(4)) : ''
  359. item.evalua = item.DictName ? item.DictName.split('-') : []
  360. if (item.Remark) {
  361. try {
  362. item.Remark = JSON.parse(item.Remark)
  363. // 脱敏处理
  364. item.Remark.memberName = item.Remark.memberName ? item.Remark.memberName.substring(0, 1) + '**' : ''
  365. } catch (e) {
  366. item.Remark = { memberName: '' }
  367. }
  368. }
  369. })
  370. }
  371. console.log(resp, 'queryAppraiseListApiresp2')
  372. const stopReach = (resp || []).length < queryData.Page.PSize
  373. if (!common.isEmpty(resp)) {
  374. if (reachBottom) {
  375. list.value.push(...resp)
  376. } else {
  377. list.value = resp
  378. }
  379. } else {
  380. if (!reachBottom) {
  381. list.value = []
  382. }
  383. }
  384. console.log(list.value, 'list.value')
  385. showNoData.value = list.value.length > 0 ? false : true
  386. stopReachBottom.value = stopReach
  387. }
  388. // 统计咨询评价
  389. async function CountConsultAppraise() {
  390. let data = {
  391. DoctorUid: queryBean.DoctorUid
  392. }
  393. let { resp } = await countConsultAppraise(data)
  394. if (common.isNotEmpty(resp)) {
  395. const baseUrlVal = baseUrl.value || ''
  396. let url = baseUrlVal
  397. if (url.indexOf('KasiteWeb') > -1) {
  398. url = url.split('KasiteWeb/')[0]
  399. }
  400. resp.forEach((item: any) => {
  401. item.DictRemark = url + item.DictRemark
  402. item.DictName = item.DictName ? (item.DictName.substring(0, 4) + '-' + item.DictName.substring(4)) : ''
  403. item.evalua = item.DictName ? item.DictName.split('-') : []
  404. })
  405. evaluateList.value = resp
  406. }
  407. }
  408. // 获取用户是否关注
  409. async function getUserCollectByDoctorUid() {
  410. let data = {
  411. resourceId: queryBean.DoctorUid,
  412. resourceType: 1
  413. }
  414. let { resp } = await getUserCollectByDoctorUidApi(data)
  415. like.value = !common.isEmpty(resp)
  416. }
  417. // 关注/取消关注
  418. async function likeFn() {
  419. let data = {
  420. resourceId: queryBean.DoctorUid,
  421. resourceType: 1
  422. }
  423. common.showLoading()
  424. if (like.value) {
  425. // 取消关注
  426. let { resData } = await unUserCollect(data)
  427. if (resData?.RespCode == '10000') {
  428. await getUserCollectByDoctorUid()
  429. }
  430. } else {
  431. // 关注
  432. let { resData } = await userCollect(data)
  433. if (resData?.RespCode == '10000') {
  434. await getUserCollectByDoctorUid()
  435. }
  436. }
  437. await queryBDoctorInfo()
  438. common.hideLoading()
  439. }
  440. // 前往病情补充
  441. async function toSupplement() {
  442. if (!selectedType.value) {
  443. common.showToast('当前医生未开通咨询')
  444. return
  445. }
  446. let queryStr = common.stringify(doctorInfo)
  447. let url = `/pagesNetHos/st1/business/doctor/supplement/supplement?queryBean=${queryStr}&selectedType=${selectedType.value}&serviceType=${serviceType.value}`
  448. // #ifdef H5
  449. window.location.href = url
  450. // #endif
  451. // #ifndef H5
  452. uni.navigateTo({ url })
  453. // #endif
  454. }
  455. // 展示所有医生信息
  456. function showAllFn() {
  457. showAllInfo.value = !showAllInfo.value
  458. }
  459. // 设置选中值
  460. function setVal(key: string, value: string) {
  461. if (doctorInfo.DoctorServiceCons != '1' && value == 'twzx') {
  462. common.showToast('图文咨询暂未开通')
  463. return
  464. }
  465. if (doctorInfo.DoctorServiceTelcons != '1' && value == 'dhzx') {
  466. common.showToast('电话咨询暂未开通')
  467. return
  468. }
  469. if (doctorInfo.DoctorVideocons != '1' && value == 'spzx') {
  470. common.showToast('视频咨询暂未开通')
  471. return
  472. }
  473. if (value == 'dhzx') {
  474. // 电话咨询逻辑(可扩展)
  475. }
  476. selectedType.value = value
  477. }
  478. // 医生二维码点击
  479. async function codeClick() {
  480. let { resp } = await queryQrCode({ SceneStr: queryBean.DoctorUid })
  481. if (!common.isEmpty(resp)) {
  482. Object.assign(codeInfo, resp[0])
  483. // 处理二维码URL(需要根据实际API根地址)
  484. codeInfo.Url = `${baseUrl.value || ''}api/340/340/createQrCode.do?content=${codeInfo.Url}`
  485. }
  486. showDocDetial.value = !showDocDetial.value
  487. }
  488. // 上拉加载
  489. function onReachBottom() {
  490. if (stopReachBottom.value) {
  491. return
  492. }
  493. queryData.Page.PIndex += 1
  494. queryAppraiseList(true)
  495. }
  496. // 分享
  497. function onShareAppMessage() {
  498. let queryStr = common.stringify(queryBean)
  499. let url = encodeURIComponent(`/pages/st1/business/doctor/doctorInfo/doctorInfo?queryBean=${queryStr}`)
  500. return {
  501. path: `/pages/st1/business/tabbar/transferPage/transferPage?url=${url}`
  502. }
  503. }
  504. // 返回
  505. function toBack() {
  506. const pages = getCurrentPages()
  507. const currentPage = pages[pages.length - 1]
  508. if (typeof (currentPage as any).backFn == 'function') {
  509. (proxy as any).$emit('backFn')
  510. } else {
  511. common.navigateBack(1)
  512. }
  513. }
  514. // 上报医生报告
  515. async function AddOrUpdateConsultDoctorReport() {
  516. let data = {
  517. dataType: '1',
  518. doctorId: doctorBdInfo.DoctorId
  519. }
  520. addOrUpdateConsultDoctorReport(data)
  521. }
  522. // 空操作(用于阻止事件冒泡)
  523. function doNothing() {
  524. // 空函数,用于catchtap
  525. }
  526. // 生命周期钩子注册
  527. onMounted(() => {
  528. })
  529. // 暴露给父组件
  530. defineExpose({
  531. backFn: toBack
  532. })
  533. </script>
  534. <style lang="scss">
  535. @import "@/pagesNetHos/st1/static/css/common.scss";
  536. @import "@/pagesNetHos/st1/static/css/dialog.scss";
  537. .page {
  538. min-height: 100vh;
  539. background: #F0F1F6;
  540. }
  541. .p_content {
  542. padding-bottom: 150upx;
  543. }
  544. .doc_con_outer {
  545. position: relative;
  546. padding: 30upx 30upx 30upx;
  547. }
  548. .doc_con_back {
  549. position: absolute;
  550. top: 0;
  551. left: 0;
  552. right: 0;
  553. bottom: 0;
  554. }
  555. .doc_con {
  556. position: relative;
  557. z-index: 1;
  558. }
  559. .p_doctor_img_con {
  560. width: 120upx;
  561. height: 120upx;
  562. position: relative;
  563. margin-right: 20upx;
  564. flex-shrink: 0;
  565. }
  566. .p_doctor_img {
  567. border-radius: 50%;
  568. }
  569. .p_doctor_state {
  570. width: 80upx;
  571. height: 33upx;
  572. background: linear-gradient(120deg, #31D59E, #13C287);
  573. border: 2px solid #FFFFFF;
  574. border-radius: 16upx;
  575. font-size: 20upx;
  576. color: #FFFFFF;
  577. position: absolute;
  578. left: 50%;
  579. bottom: 0;
  580. transform: translateX(-50%);
  581. }
  582. .doc_his_con {
  583. width: 100%;
  584. }
  585. .doc_name {
  586. font-size: 34upx;
  587. font-weight: 500;
  588. }
  589. .name_tip {
  590. font-size: 24upx;
  591. color: #481A00;
  592. padding: 0 14upx;
  593. line-height: 34upx;
  594. margin-left: 10upx;
  595. background: linear-gradient(90deg, #EDCD94 0%, #E9B677 100%);
  596. border-radius: 20upx;
  597. line-height: 34upx;
  598. }
  599. .doc_dept {
  600. font-size: 26upx;
  601. margin-top: 7upx;
  602. }
  603. .doc_tip_list {
  604. justify-content: flex-start;
  605. margin-top: 13upx;
  606. }
  607. .doc_tip_item {
  608. padding: 0 12upx;
  609. height: 36upx;
  610. line-height: 36upx;
  611. margin-right: 10upx;
  612. background: #B8BCC3;
  613. border-radius: 6upx;
  614. font-size: 22upx;
  615. color: #fff;
  616. }
  617. .doc_his_val {
  618. justify-content: space-around;
  619. margin-top: 30upx;
  620. white-space: nowrap;
  621. position: relative;
  622. z-index: 1;
  623. font-size: 24upx;
  624. font-family: PingFang SC;
  625. font-weight: 500;
  626. color: rgba(98, 98, 109, 0.6);
  627. line-height: 48upx;
  628. }
  629. .doc_his_val_num {
  630. font-size: 36upx;
  631. font-family: JDZhengHT-EN;
  632. font-weight: bold;
  633. color: #222326;
  634. }
  635. .doc_his_val_tip {
  636. color: rgb(216, 221, 223);
  637. margin: 0 20upx;
  638. }
  639. .doc_his_btn_list {
  640. position: absolute;
  641. right: 0;
  642. top: 40upx;
  643. }
  644. .doc_his_btn {
  645. width: 54upx;
  646. height: 54upx;
  647. background: linear-gradient(120deg, #FFB363, #FF9D35);
  648. margin-right: 20upx;
  649. border-radius: 50%;
  650. }
  651. .doc_his_code_img {
  652. width: 54upx;
  653. height: 48upx;
  654. margin-left: 11upx;
  655. }
  656. .doc_his_btn_img {
  657. width: 32upx;
  658. height: 32upx;
  659. }
  660. .doc_his_btn_like {
  661. padding: 0 18upx;
  662. height: 54upx;
  663. background: linear-gradient(120deg, #FFB363, #FF9D35);
  664. border-radius: 27upx;
  665. font-size: 26upx;
  666. font-weight: 500;
  667. color: #fff;
  668. }
  669. .doc_his_btn_val {
  670. margin-left: 8upx;
  671. }
  672. .doc_his_btn_liked {
  673. background: #fff;
  674. color: #FF9D35;
  675. }
  676. .doc_info {
  677. margin: 18upx 0 10upx;
  678. }
  679. .doc_info_item {
  680. margin-top: 8upx;
  681. position: relative;
  682. }
  683. .doc_info_img {
  684. width: 107upx;
  685. height: 25upx;
  686. margin-top: 5upx;
  687. position: absolute;
  688. }
  689. .doc_info_val {
  690. font-size: 26upx;
  691. font-family: PingFang SC;
  692. color: #62626D;
  693. line-height: 36upx;
  694. text-indent: 127upx;
  695. position: relative;
  696. }
  697. .show_more {
  698. font-size: 26upx;
  699. font-family: PingFang SC;
  700. font-weight: bold;
  701. color: #0CC081;
  702. line-height: 40upx;
  703. text-align: right;
  704. float: right;
  705. }
  706. .doc_tip {
  707. display: block;
  708. width: 90upx;
  709. height: 36upx;
  710. margin: 10upx auto 0;
  711. }
  712. .doc_tip_top {
  713. transform: rotateZ(180deg);
  714. }
  715. .consulting_con {
  716. box-shadow: 0px 2upx 40upx 0px rgba(43, 46, 55, 0.04);
  717. position: relative;
  718. width: 690upx;
  719. margin-left: 30upx;
  720. margin-bottom: 30upx;
  721. }
  722. .consulting_detail {
  723. padding: 40upx 30upx 0;
  724. border-radius: 24upx;
  725. background-color: #fff;
  726. }
  727. .consulting_comment {
  728. margin: 30upx 0 220upx;
  729. border-radius: 24upx;
  730. background-color: #fff;
  731. }
  732. .consulting_option {
  733. width: 303upx;
  734. height: 210upx;
  735. background: #fff;
  736. box-shadow: 0px 2upx 40upx 0px rgba(43, 46, 55, 0.1);
  737. border-radius: 16upx;
  738. position: relative;
  739. }
  740. .consulting_option_ac {
  741. background: #F5FFFA;
  742. border: 1px solid #0CC181;
  743. box-shadow: 0px 2upx 40upx 0px rgba(43, 46, 55, 0.1);
  744. }
  745. .consulting_option_img {
  746. width: 80upx;
  747. height: 80upx;
  748. margin-bottom: 20upx;
  749. }
  750. .doctor_selected {
  751. position: absolute;
  752. width: 52upx;
  753. height: 52upx;
  754. bottom: 0;
  755. right: 0;
  756. }
  757. .consulting_option_tit {
  758. font-size: 32upx;
  759. font-family: PingFang SC;
  760. font-weight: bold;
  761. color: #222326;
  762. line-height: 36upx;
  763. }
  764. .consulting_option_subtit {
  765. font-size: 24upx;
  766. font-family: PingFang SC;
  767. color: #8A8A99;
  768. line-height: 36upx;
  769. margin-top: 7upx;
  770. }
  771. .consulting_detail_tip_tit {
  772. font-size: 34upx;
  773. font-family: PingFang SC;
  774. font-weight: 800;
  775. color: #222326;
  776. line-height: 36upx;
  777. padding: 0 30upx;
  778. }
  779. .consulting_detail .consulting_detail_tip_tit {
  780. padding-left: 0;
  781. }
  782. .consulting_detail_imgtip_inner {
  783. width: 100%;
  784. justify-content: space-around;
  785. }
  786. .consulting_detail_tip_val {
  787. font-size: 28upx;
  788. font-family: PingFang SC;
  789. color: #43434A;
  790. line-height: 44upx;
  791. margin: 5upx 0;
  792. position: relative;
  793. padding-left: 35upx;
  794. }
  795. .consulting_detail_tip_val::after {
  796. position: absolute;
  797. display: block;
  798. content: "";
  799. width: 12upx;
  800. height: 12upx;
  801. background-color: #02C28A;
  802. border-radius: 50%;
  803. left: 7upx;
  804. top: 14upx;
  805. }
  806. .consulting_detail_imgtip_item {
  807. margin-bottom: 40upx;
  808. }
  809. .consulting_detail_img {
  810. width: 48upx;
  811. height: 48upx;
  812. }
  813. .consulting_detail_val {
  814. font-size: 26upx;
  815. margin-top: 13upx;
  816. }
  817. .consulting_detail_right {
  818. width: 19upx;
  819. height: 19upx;
  820. margin-top: -48upx;
  821. }
  822. .consulting_detail_tip_tit {
  823. justify-content: flex-start;
  824. padding: 40upx 30upx 28upx;
  825. }
  826. .consulting_detail_tip_img {
  827. width: 48upx;
  828. height: 48upx;
  829. margin-right: 19upx;
  830. }
  831. .consulting_comment_item {
  832. margin-top: 25upx;
  833. padding: 0 30upx;
  834. }
  835. .consulting_comment_item:nth-last-child(1)::before {
  836. border-bottom: 0;
  837. }
  838. .consulting_comment_user_name {
  839. font-size: 28upx;
  840. font-family: PingFang SC;
  841. color: #8A8A99;
  842. }
  843. .consulting_comment_star_img {
  844. width: 24upx;
  845. height: 24upx;
  846. margin-right: 9upx;
  847. }
  848. .consulting_comment_star_img:nth-last-child(1) {
  849. margin-right: 0;
  850. }
  851. .consulting_comment_val {
  852. font-size: 30upx;
  853. margin: 20upx 0 12upx;
  854. }
  855. /* 评价统计标签容器 */
  856. .statistics_item_outer {
  857. display: flex;
  858. flex-wrap: wrap;
  859. margin-bottom: 16upx;
  860. }
  861. /* 评价统计标签 */
  862. .statistics_item_box {
  863. padding: 20upx;
  864. box-sizing: border-box;
  865. background: #FDF6EB;
  866. border-radius: 12upx;
  867. margin: 16upx;
  868. display: flex;
  869. align-items: center;
  870. justify-content: space-between;
  871. min-width: 40%;
  872. flex: 1 1 auto;
  873. }
  874. .statistics_item_box text {
  875. font-size: 28upx;
  876. white-space: nowrap;
  877. }
  878. .statistics_item_icon {
  879. width: 66upx;
  880. height: 66upx;
  881. margin-right: 16upx;
  882. flex-shrink: 0;
  883. }
  884. .statistics_item_text {
  885. display: flex;
  886. align-items: center;
  887. flex-wrap: wrap;
  888. }
  889. .statistics_item_text text {
  890. margin-right: 8upx;
  891. }
  892. .statistics_item_text text:last-child {
  893. margin-right: 0;
  894. }
  895. .consulting_comment_user_phtot {
  896. width: 36upx;
  897. height: 36upx;
  898. margin-right: 15upx;
  899. }
  900. .consulting_comment_user_time {
  901. font-size: 26upx;
  902. }
  903. .color333 {
  904. color: #333;
  905. }
  906. .consulting_comment_tips {
  907. justify-content: flex-start;
  908. margin: 13upx 0 32upx;
  909. }
  910. .consulting_comment_tip_item {
  911. height: 40upx;
  912. line-height: 40upx;
  913. text-align: center;
  914. font-size: 22upx;
  915. padding: 0 12upx;
  916. margin-right: 10upx;
  917. background: #F6F7F8;
  918. border-radius: 6px;
  919. }
  920. .consulting_comment_tip_item:nth-last-child(1) {
  921. margin-right: 0;
  922. }
  923. /* 电子名片 */
  924. .mask_bottom {
  925. align-items: flex-end;
  926. }
  927. .p_dialog {
  928. position: relative;
  929. }
  930. .dialog_inner_bottom {
  931. max-height: inherit;
  932. padding: 0 30upx;
  933. }
  934. .doctor_picback1 {
  935. width: 135upx;
  936. height: 420upx;
  937. position: absolute;
  938. left: 0;
  939. top: 64upx;
  940. }
  941. .doctor_picback2 {
  942. width: 208upx;
  943. height: 517upx;
  944. position: absolute;
  945. top: 306upx;
  946. right: 0;
  947. }
  948. .doc_detial_pic {
  949. position: relative;
  950. width: 100%;
  951. height: 347upx;
  952. border-radius: 30upxp;
  953. overflow: hidden;
  954. padding: 0 50upx;
  955. }
  956. .doc_detial_pic_img {
  957. position: absolute;
  958. top: 0;
  959. right: 0;
  960. bottom: 0;
  961. left: 0;
  962. border-radius: 24upx;
  963. }
  964. .doc_detial_pic_inner {
  965. position: relative;
  966. width: 100%;
  967. height: 100%;
  968. }
  969. .pic_con {
  970. width: 100%;
  971. }
  972. .pic_tit {
  973. font-size: 34upx;
  974. font-weight: 500;
  975. position: relative;
  976. }
  977. .pic_tit_line {
  978. width: 57upx;
  979. height: 3upx;
  980. position: absolute;
  981. left: 0;
  982. bottom: -12upx;
  983. }
  984. .pic_name {
  985. font-size: 44upx;
  986. font-weight: 500;
  987. margin: 46upx 0 15upx;
  988. }
  989. .pic_subtit {
  990. font-size: 28upx;
  991. margin-bottom: 50upx;
  992. }
  993. .pic_img_con {
  994. flex-shrink: 0;
  995. width: 210upx;
  996. height: 210upx;
  997. position: relative;
  998. }
  999. .doc_imgback {
  1000. width: 100%;
  1001. height: 100%;
  1002. }
  1003. .doc_img {
  1004. position: absolute;
  1005. width: 143upx;
  1006. height: 143upx;
  1007. left: 28upx;
  1008. top: 41upx;
  1009. border-radius: 50%;
  1010. }
  1011. .doc_detail_code_con {
  1012. width: 320upx;
  1013. height: 320upx;
  1014. background: #FFFFFF;
  1015. border-radius: 20upx;
  1016. box-shadow: 0 0 30upx 0 #eee;
  1017. margin: 48upx 0 41upx;
  1018. }
  1019. .doc_detail_inp_con {
  1020. height: 90px;
  1021. background: #FFFFFF;
  1022. border: 1px solid #CCCCCC;
  1023. border-radius: 12upx;
  1024. height: 90upx;
  1025. line-height: 90upx;
  1026. padding: 0 32upx;
  1027. font-size: 26upx;
  1028. margin-bottom: 10upx;
  1029. }
  1030. /* 暂无评价 */
  1031. .nodata_con {
  1032. padding: 100upx 0 !important;
  1033. }
  1034. .dialog_inner {
  1035. width: 650upx;
  1036. background-color: #fff;
  1037. border-radius: 16upx;
  1038. padding: 30upx;
  1039. }
  1040. .dialog_tit {
  1041. font-size: 32upx;
  1042. font-weight: 500;
  1043. color: #000000;
  1044. padding-bottom: 20upx;
  1045. }
  1046. .dialog_cha {
  1047. width: 24upx;
  1048. height: 24upx;
  1049. }
  1050. .dialog_row {
  1051. padding: 30upx 0;
  1052. }
  1053. .row_tit {
  1054. font-size: 28upx;
  1055. font-weight: 400;
  1056. color: #000000;
  1057. line-height: 40upx;
  1058. }
  1059. .row_subtit {
  1060. font-size: 24upx;
  1061. font-weight: 400;
  1062. color: #666666;
  1063. line-height: 34upx;
  1064. }
  1065. .dialog_tip {
  1066. font-size: 28upx;
  1067. color: #68BB8D;
  1068. }
  1069. .dialog_suc {
  1070. width: 28upx;
  1071. height: 28upx;
  1072. margin-right: 12upx;
  1073. }
  1074. .tabbar {
  1075. height: 44px;
  1076. line-height: 44px;
  1077. text-align: center;
  1078. color: #222;
  1079. box-sizing: content-box;
  1080. font-size: 32upx;
  1081. font-weight: 500;
  1082. background: #F0F1F6;
  1083. width: 100%;
  1084. position: fixed;
  1085. z-index: 99;
  1086. top: 0;
  1087. left: 0;
  1088. overflow: hidden;
  1089. }
  1090. .iconCon {
  1091. width: 87upx;
  1092. height: 40px;
  1093. position: absolute;
  1094. left: 0;
  1095. top: 0;
  1096. bottom: 0;
  1097. margin: auto 0;
  1098. z-index: 1;
  1099. }
  1100. .iconLeft {
  1101. width: 12px;
  1102. height: 12px;
  1103. border-top: 2px solid;
  1104. border-left: 2px solid;
  1105. color: #222;
  1106. transform: rotateZ(-45deg);
  1107. position: absolute;
  1108. top: 2px;
  1109. left: 0;
  1110. bottom: 0;
  1111. right: 0;
  1112. margin: auto;
  1113. }
  1114. </style>