index.vue 35 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298
  1. <template>
  2. <view class="content">
  3. <view class="cont">
  4. <view class="bg">
  5. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/image/index_img/home_top_bg.png"></image>
  6. </view>
  7. <view class="top-box" :style="{ background: bg }" >
  8. <view class="status_bar" :style="{height: statusBarHeight}"></view>
  9. <view class="top-title">
  10. <view class="name" :style="{ color: titleColor }">医健宝互联网医院</view>
  11. <view class="desc-box" >
  12. <image v-if="!isTop" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/dui1.png"></image>
  13. <image v-if="isTop" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/dui1.png"></image>
  14. <view class="desc" :style="{ color: descColor }">卫健部门权威认证机构,世界各地千万用户健康选择</view>
  15. </view>
  16. </view>
  17. <view class="search">
  18. <view class="search-box" @click="navTo('/pages_index/search')">
  19. <image class="img" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/icon_search.png" mode=""></image>
  20. <input disabled type="text" placeholder="搜索医生、疾病、知识" placeholder-class="input-place">
  21. </view>
  22. </view>
  23. </view>
  24. <view class="cont-box">
  25. <view class="status_bar" :style="{height: statusBarHeight}"></view>
  26. <view style="padding-bottom:178rpx" >
  27. </view>
  28. <view class="banner" v-if="advImgs.length>0">
  29. <u-swiper
  30. :list="advImgs"
  31. indicator
  32. indicatorMode="line"
  33. circular
  34. height="233rpx"
  35. @click="handleAdvClick">
  36. </u-swiper>
  37. </view>
  38. <view class="menu-box box">
  39. <view class="menu-item" @click="navTo('/pages_index/healthy/index')">
  40. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/index/medical_news_icon.png" mode="aspectFill"></image>
  41. <view>医药资讯</view>
  42. </view>
  43. <view class="menu-item" @click="loginNavTo('/pages_user/complaint')">
  44. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/index/consultation_complaints_icon.png" mode="aspectFill"></image>
  45. <view>咨询投诉</view>
  46. </view>
  47. <view class="menu-item" @click="navTo('/pages_order/inquirySelect?inquiryType=3')">
  48. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/index/consultant_pharmacist_icon.png" mode="aspectFill"></image>
  49. <view>咨询药师</view>
  50. </view>
  51. <view class="menu-item" @click="navTo('/pages_shopping/registerMerchant')">
  52. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/index/merchants_settle_in_icon.png" mode="aspectFill"></image>
  53. <view>商家入驻</view>
  54. </view>
  55. </view>
  56. <!-- 推荐药品 -->
  57. <tuiProduct ref="tuiProduct"></tuiProduct>
  58. <!-- 特色药店 -->
  59. <view class="pharmacy-box box">
  60. <view class="title-box">
  61. <view class="title">特色药店</view>
  62. <view class="more" @click="navTo('/pages_store/index')" >
  63. <view class="text">更多药店</view>
  64. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/arrow_gray.png"></image>
  65. </view>
  66. </view>
  67. <view class="pharmacy">
  68. <image :src="store.logoUrl" mode="aspectFill" v-for="(store,i) in storeIndexList" :key="i"
  69. @click="navTo('/pages_store/storeIndex?storeId='+store.id)"></image>
  70. </view>
  71. </view>
  72. <view class="modules">
  73. <view class="module" v-for="(it,index) in layouts" :key="index">
  74. <!-- <view class="depts" v-if="it.id==2&&it.isShow">
  75. <view class="title">
  76. {{it.name}}
  77. </view>
  78. <view class="dept-box">
  79. <view @click="navTo('/pages_doctor/doctorList?deptId='+item.deptId)" class="dept" v-for="(item,index) in depts" :key="index">
  80. <image class="icon" :src="item.iconUrl"></image>
  81. <view class="title">{{item.deptName}}</view>
  82. </view>
  83. <view @click="navTo('/pages_doctor/doctorList?deptId=0')" class="dept">
  84. <image class="icon" src="https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/acbb520df8284c6aaff601cb06411c2a.png"></image>
  85. <view class="title">更多科室</view>
  86. </view>
  87. </view>
  88. </view>
  89. <view class="depts" v-if="it.id==3&&it.isShow">
  90. <view class="title">
  91. {{it.name}}
  92. </view>
  93. <view class="dept-box">
  94. <view @click="yangshengClick(item)" class="dept" v-for="(item,index) in yangshengs" :key="index">
  95. <image class="icon" :src="item.icon"></image>
  96. <view class="title" >{{item.title}}</view>
  97. </view>
  98. </view>
  99. </view>
  100. <view class="doctor-articles" v-if="it.id==4&&it.isShow" >
  101. <view class="title-box">
  102. <view class="title">{{it.name}}</view>
  103. <view class="more" @click="navTo('/pages_doctor/doctorArticleList')" >
  104. <view class="text">更多</view>
  105. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/arrow_gray.png"></image>
  106. </view>
  107. </view>
  108. <scroll-view :scroll-x="true" style="white-space: nowrap;">
  109. <view class="article-box" >
  110. <view class="article" @click="navTo('/pages_doctor/doctorArticleDetails?articleId='+item.articleId)" v-for="(item,index) in doctocArticles" :key="index">
  111. <view class="image-box">
  112. <image mode="aspectFill" :src="item.imageUrl"></image>
  113. <view class="views">
  114. {{item.views}}人观看
  115. </view>
  116. <view class="doctor">
  117. <image mode="aspectFill" :src="item.avatar"></image>
  118. <view class="right">
  119. <view class="doc-name ellipsis">{{item.doctorName}}</view>
  120. <view class="doc-position ellipsis">{{item.position}}</view>
  121. </view>
  122. </view>
  123. </view>
  124. <view class="article-title-box">
  125. <view class="article-title ellipsis">{{item.title}}</view>
  126. </view>
  127. </view>
  128. </view>
  129. </scroll-view>
  130. </view> -->
  131. <view class="doctors box" v-if="it.id==5&&it.isShow">
  132. <view class="title-box">
  133. <view class="title">{{it.name}}</view>
  134. <view class="more" @click="navTo('/pages_doctor/doctorList')">
  135. <view class="text">更多</view>
  136. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/arrow_gray.png"></image>
  137. </view>
  138. </view>
  139. <view class="doctor-box" v-if="doctors.length>0" style="padding: 0;margin: 0;">
  140. <view class="doctor" @click="navTo('/pages_doctor/doctorDetails?doctorId='+item.doctorId)" v-for="(item,index) in doctors" :key="index">
  141. <view class="item">
  142. <view class="left">
  143. <view class="head-box">
  144. <image mode="aspectFill" class="doc-img" :src="item.avatar"></image>
  145. <view class="isline" v-if="item.workStatus==1">
  146. <view class="img">
  147. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/index/isline.png"></image>
  148. <view class="name">在线</view>
  149. </view>
  150. </view>
  151. </view>
  152. </view>
  153. <view class="right">
  154. <view class="doc-box">
  155. <view class="doc-name">
  156. {{item.doctorName}}
  157. </view>
  158. <view class="doc-position">{{item.position}}</view>
  159. <view class="doc-dept">{{item.deptName}}</view>
  160. </view>
  161. <view class="hospital-box">
  162. <!-- <view class="tag" v-if="item.hospitalLevel!=null">
  163. <text>{{$getDictLabelName(hosLevelOptions,item.hospitalLevel)}}</text>
  164. </view> -->
  165. <view class="name">{{item.hospitalName||''}} </view>
  166. </view>
  167. <view class="doc-spec">
  168. <view class="spec ellipsis2">{{item.speciality}}</view>
  169. </view>
  170. <view class="doc-count">
  171. <view class="name">好评:</view>
  172. <view class="count">{{item.pingStar}}分</view>
  173. <view class="name">接诊量:</view>
  174. <view class="count">{{item.orderNumber}}</view>
  175. <view class="name">平均响应:</view>
  176. <view class="count"></view>
  177. </view>
  178. <view class="doc-price" >
  179. <view class="btn">
  180. 咨询医生¥
  181. <text v-for="(price,index) in item.prices" :key="index">
  182. {{price.price.toFixed(2)}} <text v-if="index==0">/</text>
  183. </text>
  184. </view>
  185. </view>
  186. </view>
  187. </view>
  188. </view>
  189. </view>
  190. </view>
  191. <view class="articles box" v-if="it.id==6&&it.isShow">
  192. <view class="title-box">
  193. <view class="title">{{it.name}}</view>
  194. <view class="more" @click="navTo('/pages_index/healthy/index')">
  195. <view class="text">更多</view>
  196. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/arrow_gray.png"></image>
  197. </view>
  198. </view>
  199. <view class="article-box" v-if="articles.length>0">
  200. <view class="item" @click="navTo('/pages_index/healthy/detail?articleId='+item.articleId)" v-for="(item,index) in articles" :key="index">
  201. <view class="left">
  202. <view class="title ellipsis2">
  203. {{item.title}}
  204. </view>
  205. <view class="views">
  206. 浏览量 {{item.views}}
  207. </view>
  208. </view>
  209. <view class="right">
  210. <image :src="item.imageUrl" mode="aspectFill"></image>
  211. </view>
  212. </view>
  213. </view>
  214. </view>
  215. <!-- <view class="packages" v-if="it.id==7&&it.isShow">
  216. <view class="title-box">
  217. <view class="title">{{it.name}}</view>
  218. <view class="more" @click="navTo('/pages_index/packageList')">
  219. <view class="text">更多</view>
  220. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/arrow_gray.png"></image>
  221. </view>
  222. </view>
  223. <view class="package-box" >
  224. <view class="item" @click="navTo('/pages_index/packageDetails?packageId='+item.packageId)" v-for="(item,index) in packages" :key="index">
  225. <view class="top">
  226. <image :src="item.imgUrl"></image>
  227. </view>
  228. <view class="bottom">
  229. <view class="title ellipsis2">
  230. {{item.packageName}}
  231. </view>
  232. <view class="price-box">
  233. <view class="price">¥{{item.price.toFixed(2)}}元/日</view>
  234. <view class="count">{{item.sales}}人已购</view>
  235. </view>
  236. </view>
  237. </view>
  238. </view>
  239. </view> -->
  240. </view>
  241. </view>
  242. <!-- 资质 -->
  243. <view class="qualifications-box">
  244. <view class="qualifications-con">
  245. <image class="qualifications-icon" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/index/certificate_icon68.svg" mode=""></image>
  246. <view class="qualifications-r">
  247. <view class="x-bc">
  248. <text>资质证书展示</text>
  249. <view class="desc x-f" @click="navTo('/pages_user/cert')">
  250. <text>查看详情</text>
  251. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/index/white_right_arrow_right_icon.png" mode="aspectFill"></image>
  252. </view>
  253. </view>
  254. <view class="text" style="margin-top: 6rpx;">药品交易平台备案:XXXXX</view>
  255. <view class="text" style="margin-top: 6rpx;">医疗器械交易平台备案:XXXXX</view>
  256. </view>
  257. </view>
  258. <view>
  259. <text class="text" style="margin-right: 40rpx;">投诉举报邮箱:Yijabao@163.com</text>
  260. <text class="text">联系电话:13466304507</text>
  261. </view>
  262. </view>
  263. </view>
  264. </view>
  265. </view>
  266. </template>
  267. <script>
  268. import tuiProduct from "@/components/tuiProduct.vue"
  269. import {getConfigByKey} from '@/api/common'
  270. import {getPackageList} from '@/api/package.js'
  271. import {getDoctorArticleList} from '@/api/doctorArticle.js'
  272. import {getDoctorList} from '@/api/doctor.js'
  273. import {getArticleList} from '@/api/article.js'
  274. import {getAdvList} from '@/api/adv.js'
  275. import {getDepartmentList} from '@/api/department.js'
  276. import {getDictByKey} from '@/api/common.js'
  277. import {validList}from '@/api/index.js'
  278. export default {
  279. components: {
  280. tuiProduct
  281. },
  282. data() {
  283. return {
  284. layouts:[],
  285. yangshengs:[
  286. {id:"0",title:"AI舌诊",page:"/pages_user/tongue/index",icon:"https://cos.his.cdwjyyh.com/fs/20240919/647fb42de0ab4e96a6c3097f3c3d9cf5.png"},
  287. {id:"1",title:"药膳食疗",page:"/pages_index/medicatedFoodList",icon:"https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/3cfbd47911cf4753aa9497eac500728d.png"},
  288. {id:"2",title:"经络穴位",page:"/pages_index/vesselList",icon:"https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/e93536a9dc1a4f8ca09545097b12fdea.png"},
  289. {id:"3",title:"问答专区",page:"/pages_index/questionsList",icon:"https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/e896972bd56f4e358188af36f2c5af42.png"},
  290. {id:"4",title:"疾病",page:"/pages_index/diseaseList",icon:"https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/d6f1851cccae414b8baf2ba07782f91b.png"},
  291. {id:"5",title:"中药图解",page:"/pages_index/chineseMedicineList",icon:"https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/ff43572d0d004285b5a3b0ef2663c471.png"},
  292. {id:"6",title:"名方今用",page:"/pages_index/famousPrescribeList",icon:"https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/45db770e58c34963b0d2ba24a958b617.png"},
  293. {id:"7",title:"康复医案",page:"/pages_doctor/doctorArticleList",icon:"https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/e793942797b24035b51f94d894bdfa0b.png"}
  294. ],
  295. isTop:false,
  296. titleColor:"#ffffff",
  297. descColor:"#ffffff",
  298. top:0,
  299. // 状态栏的高度
  300. statusBarHeight: uni.getStorageSync('menuInfo').statusBarHeight,
  301. advImgs:[],
  302. doctors:[],
  303. advs:[],
  304. articles:[],
  305. depts:[],
  306. doctocArticles:[],
  307. hosLevelOptions:[],
  308. packages:[],
  309. storeIndexList: []
  310. }
  311. },
  312. onLoad() {
  313. this.getDictByKey("sys_hospital_level");
  314. uni.$on('refreshMsgCount', () => {
  315. try{
  316. let totalUnreadCount = uni.$TUIKit.getTotalUnreadMessageCount();
  317. if(totalUnreadCount>0){
  318. try{
  319. uni.setTabBarBadge({ //显示数字
  320. index: 1, //tabbar下标
  321. text: totalUnreadCount+"" //数字
  322. })
  323. }
  324. catch(e){
  325. }
  326. }
  327. else{
  328. try{
  329. uni.hideTabBarRedDot({ //隐藏红点
  330. index: 1 //tabbar下标
  331. })
  332. }
  333. catch(e){
  334. }
  335. }
  336. }catch(e){
  337. }
  338. });
  339. },
  340. onShow() {
  341. this.getDoctorList();
  342. this.getArticleList();
  343. this.getAdvList();
  344. // this.getDepartmentList();
  345. // this.getDoctorArticleList();
  346. // this.getPackageList();
  347. this.getConfigByKey("his.appShow");
  348. this.getStore()
  349. var that=this;
  350. uni.$emit('refreshMsgCount');
  351. },
  352. onPageScroll(e) {
  353. this.top=e.scrollTop;
  354. },
  355. //发送给朋友
  356. onShareAppMessage(res) {
  357. if(this.$isLogin()){
  358. return {
  359. title: "医健宝互联网医院",
  360. path: '/pages/index/index',
  361. imageUrl: 'https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/sharelogo.png' //分享图标,路径可以是本地文件路径、代码包文件路径或者网络图片路径.支持PNG及JPG。显示图片长宽比是 5:4
  362. }
  363. }
  364. },
  365. //分享到朋友圈
  366. onShareTimeline(res) {
  367. if(this.$isLogin()){
  368. return {
  369. title: "医健宝互联网医院",
  370. imageUrl: 'https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/sharelogo.png' //分享图标,路径可以是本地文件路径、代码包文件路径或者网络图片路径.支持PNG及JPG。显示图片长宽比是 5:4
  371. }
  372. }
  373. },
  374. computed: {
  375. bg: function() {
  376. var top=this.top/120;
  377. if(top>0){
  378. this.isTop=true;
  379. this.titleColor="#fff"
  380. this.descColor="#fff"
  381. }
  382. else{
  383. this.isTop=false;
  384. this.titleColor="#fff"
  385. this.descColor="#fff"
  386. }
  387. return 'rgba(37, 131, 235, ' + top + ')';
  388. },
  389. },
  390. methods: {
  391. dev(){
  392. uni.showToast({
  393. icon:"none",
  394. title: '敬请期待'
  395. })
  396. },
  397. getStore() {
  398. validList().then(res=>{
  399. if(res.code==200) {
  400. this.storeIndexList =res.rows
  401. }
  402. })
  403. },
  404. getConfigByKey(key){
  405. var that=this;
  406. var data={key:key}
  407. getConfigByKey(data).then(
  408. res => {
  409. if(res.code==200){
  410. this.layouts=JSON.parse(res.data);
  411. this.layouts.sort((a, b) => a.sort - b.sort)
  412. this.layouts.forEach(function(element) {
  413. if(element.id=="4"){
  414. if(!element.isShow){
  415. that.yangshengs.splice(6,1);
  416. }
  417. }
  418. if(element.id=="7"){
  419. // if(!element.isShow){
  420. // uni.setTabBarItem({
  421. // index:2, //从左到右 0开始
  422. // visible:false //默认true false隐藏
  423. // })
  424. // }
  425. // else{
  426. // uni.setTabBarItem({
  427. // index:2, //从左到右 0开始
  428. // visible:true //默认true false隐藏
  429. // })
  430. // }
  431. }
  432. });
  433. }
  434. },
  435. rej => {}
  436. );
  437. },
  438. yangshengClick(item){
  439. // uni.navigateTo({
  440. // url: '/pages/index/webview?url=' + encodeURIComponent('rtlive://course?courseId=1')
  441. // });
  442. // return;
  443. if(item.id==0){
  444. // this.$isLogin().then(
  445. // res => {
  446. // if(res){
  447. uni.navigateTo({
  448. url:item.page
  449. });
  450. // }
  451. // else{
  452. // uni.navigateTo({
  453. // url:'/pages/auth/login'
  454. // })
  455. // }
  456. // }
  457. // );
  458. }
  459. else{
  460. if(item.page==""){
  461. uni.showToast({
  462. icon:"none",
  463. title: '暂无更多'
  464. })
  465. return;
  466. }
  467. uni.navigateTo({
  468. url:item.page
  469. })
  470. }
  471. },
  472. switchTab(url){
  473. uni.switchTab({
  474. url:url
  475. })
  476. },
  477. navToMiniProgram(){
  478. uni.navigateToMiniProgram({
  479. // appid 写你要跳转的小程序的 appid
  480. appId: 'wx45cf09091aead547',
  481. // 路径写 src下的路径,假如你跳转的是pages下的页面,就可以写pages/index
  482. path: '/pages/common/launch',
  483. extraData: {
  484. // 'type': 'out'
  485. },
  486. // 这个不写的话会显示开发环境,不能正常跳转,写上就能正常跳转了
  487. envVersion: 'develop',
  488. success(res) {
  489. // 打开成功
  490. // uni.showToast({
  491. // title: '跳转成功'
  492. // })
  493. },
  494. fail(err) {
  495. // 打开失败/取消
  496. // uni.showToast({
  497. // title: '跳转不成功'
  498. // })
  499. }
  500. })
  501. },
  502. getDictByKey(key){
  503. var data={key:key}
  504. getDictByKey(data).then(
  505. res => {
  506. if(res.code==200){
  507. if(key=="sys_hospital_level"){
  508. this.hosLevelOptions=res.data;
  509. }
  510. }
  511. },
  512. err => {
  513. }
  514. );
  515. },
  516. getDoctorArticleList(page) {
  517. //联网加载数据
  518. var that = this;
  519. var data = {
  520. pageNum:1,
  521. pageSize:10,
  522. };
  523. getDoctorArticleList(data).then(res => {
  524. if(res.code==200){
  525. this.doctocArticles=res.data.list;
  526. }else{
  527. }
  528. });
  529. },
  530. getDepartmentList(page) {
  531. //联网加载数据
  532. var that = this;
  533. var data = {
  534. isTui:1
  535. };
  536. getDepartmentList(data).then(res => {
  537. if(res.code==200){
  538. this.depts=res.data;
  539. }
  540. });
  541. },
  542. handleAdvClick(index){
  543. var ad=this.advs[index];
  544. console.log(ad.advUrl);
  545. if(ad.showType==1){
  546. uni.setStorageSync('url',ad.advUrl);
  547. uni.navigateTo({
  548. url:"h5"
  549. })
  550. }
  551. else if(ad.showType==2){
  552. uni.navigateTo({
  553. url:ad.advUrl
  554. })
  555. }
  556. else if(ad.showType==3){
  557. uni.setStorageSync('content',ad.content);
  558. uni.navigateTo({
  559. url:"content"
  560. })
  561. }
  562. },
  563. getAdvList() {
  564. //联网加载数据
  565. var that = this;
  566. var data = {
  567. advType:1
  568. };
  569. getAdvList(data).then(res => {
  570. if(res.code==200){
  571. that.advImgs=[];
  572. that.advs=[];
  573. res.data.forEach(function(element) {
  574. if(element.imageUrl!=null&&element.imageUrl!=""){
  575. that.advs.push(element);
  576. that.advImgs.push(element.imageUrl);
  577. }
  578. });
  579. }else{
  580. uni.showToast({
  581. icon:'none',
  582. title: "请求失败",
  583. });
  584. }
  585. });
  586. },
  587. getArticleList() {
  588. //联网加载数据
  589. var that = this;
  590. var data = {
  591. isTui:1,
  592. pageNum:1,
  593. pageSize:10,
  594. };
  595. getArticleList(data).then(res => {
  596. if(res.code==200){
  597. this.articles=res.data.list;
  598. }else{
  599. uni.showToast({
  600. icon:'none',
  601. title: "请求失败",
  602. });
  603. }
  604. });
  605. },
  606. getDoctorList() {
  607. //联网加载数据
  608. var that = this;
  609. var data = {
  610. isTui:1,
  611. pageNum:1,
  612. pageSize:10,
  613. };
  614. getDoctorList(data).then(res => {
  615. if(res.code==200){
  616. this.doctors=res.data.list;
  617. this.doctors.forEach(function(value,index,array){
  618. value.prices=JSON.parse(value.priceJson)
  619. });
  620. }else{
  621. uni.showToast({
  622. icon:'none',
  623. title: "请求失败",
  624. });
  625. }
  626. });
  627. },
  628. getPackageList() {
  629. //联网加载数据
  630. var that = this;
  631. var data = {
  632. isShow:1,
  633. pageNum:1,
  634. pageSize:10,
  635. };
  636. getPackageList(data).then(res => {
  637. if(res.code==200){
  638. this.packages=res.data.list;
  639. }else{
  640. uni.showToast({
  641. icon:'none',
  642. title: "请求失败",
  643. });
  644. }
  645. });
  646. },
  647. loginNavTo(url){
  648. this.$isLogin().then(
  649. res => {
  650. if(res){
  651. console.log(res)
  652. uni.navigateTo({
  653. url: url
  654. })
  655. }
  656. else{
  657. uni.navigateTo({
  658. url:'/pages/auth/login'
  659. })
  660. }
  661. }
  662. );
  663. },
  664. navTo(url){
  665. if(url=="dev"){
  666. uni.showToast({
  667. icon:'none',
  668. title: "尽情期待...",
  669. });
  670. return;
  671. }
  672. console.log(url)
  673. uni.navigateTo({
  674. url: url
  675. })
  676. },
  677. navToTest() {
  678. const course = {"companyId":100,"companyUserId":6806,"corpId":"ww5a88c4f879f204c5","courseId":63,"link":"1899022782092541952","linkType":3,"qwExternalId":9914983,"qwUserId":"18931","videoId":409}
  679. uni.navigateTo({
  680. url: '/pages_course/video?course='+JSON.stringify(course)
  681. })
  682. }
  683. }
  684. }
  685. </script>
  686. <style scoped lang="scss">
  687. .qualifications {
  688. &-box {
  689. margin: 24rpx;
  690. padding: 24rpx;
  691. box-sizing: border-box;
  692. overflow: hidden;
  693. background-image: url('https://cos.his.cdwjyyh.com/fs/20250826/54a29c58e06c431cbe3286335bb0da1b.png');
  694. background-repeat: no-repeat;
  695. background-size: 100% 100%;
  696. .text {
  697. font-family: PingFang SC, PingFang SC;
  698. font-weight: 400;
  699. font-size: 20rpx;
  700. color: #FFFFFF;
  701. }
  702. }
  703. &-con {
  704. display: flex;
  705. align-items: flex-start;
  706. }
  707. &-icon {
  708. height: 136rpx;
  709. width: 136rpx
  710. }
  711. &-r {
  712. flex: 1;
  713. font-family: PingFang SC, PingFang SC;
  714. font-weight: 600;
  715. font-size: 40rpx;
  716. color: #FFFFFF;
  717. .desc {
  718. font-family: PingFang SC, PingFang SC;
  719. font-weight: 400;
  720. font-size: 24rpx;
  721. color: #FFFFFF;
  722. image {
  723. height: 48rpx;
  724. width: 48rpx
  725. }
  726. }
  727. }
  728. }
  729. .content{
  730. height: 100%;
  731. .cont{
  732. position: relative;
  733. width: 100%;
  734. display: flex;
  735. flex-direction: column;
  736. .bg{
  737. width: 100%;
  738. height:450rpx;
  739. // background-color: #2583EB;
  740. // background: linear-gradient(#2583EB, #88e2da);
  741. position: fixed;
  742. image{
  743. border-radius: 0rpx 0rpx 50rpx 50rpx;
  744. width: 100%;
  745. height:100%;
  746. }
  747. }
  748. .top-box{
  749. width: 100%;
  750. position: fixed;
  751. top: 0;
  752. left: 0;
  753. z-index: 1001;
  754. .top-title{
  755. height: 88upx;
  756. // line-height: 88upx;
  757. display: flex;
  758. flex-direction: column;
  759. align-items: flex-start;
  760. justify-content: center;
  761. margin-left: 15rpx;
  762. .name{
  763. font-size: 32upx;
  764. font-family: Source Han Sans CN;
  765. font-weight: bold;
  766. color: #fff;
  767. }
  768. .desc-box{
  769. display: flex;
  770. align-items: center;
  771. justify-content: flex-start;
  772. margin-top: 10rpx;
  773. image{
  774. width:24rpx;
  775. height:24rpx;
  776. }
  777. .desc{
  778. margin-left: 5rpx;
  779. font-size: 20upx;
  780. font-family: Source Han Sans CN;
  781. color: #626468;
  782. }
  783. }
  784. }
  785. .search{
  786. box-sizing: border-box;
  787. z-index: 101;
  788. padding: 15rpx;
  789. width: 100%;
  790. display: flex;
  791. align-items: center;
  792. justify-content: center;
  793. .search-box{
  794. flex: 1;
  795. margin-right: 10rpx;
  796. height: 60upx;
  797. line-height: 60upx;
  798. border-radius: 30upx;
  799. background-color: #fff;
  800. padding: 0 30upx;
  801. display: flex;
  802. align-items: center;
  803. transition: all .5s;
  804. .img{
  805. width: 30upx;
  806. height: 30upx;
  807. margin-right: 10upx;
  808. }
  809. input{
  810. flex: 1;
  811. font-size: 24upx;
  812. color: #000;
  813. }
  814. .input-place{
  815. font-size: 24upx;
  816. color: #878787;
  817. }
  818. }
  819. .msg{
  820. position: relative;
  821. width:50rpx;
  822. height:50rpx;
  823. image{
  824. width: 100%;
  825. height:100%;
  826. }
  827. .contact-btn {
  828. top: 0;
  829. position: absolute;
  830. width:100%;
  831. height:100%;
  832. opacity: 0;
  833. }
  834. }
  835. }
  836. }
  837. .box {
  838. background: #FFFFFF;
  839. border-radius: 16rpx 16rpx 16rpx 16rpx;
  840. margin: 24rpx;
  841. box-sizing: border-box;
  842. .title-box{
  843. display: flex;
  844. flex-direction: row;
  845. align-items: center;
  846. justify-content: space-between;
  847. padding: 28rpx 0;
  848. box-sizing: border-box;
  849. .title{
  850. font-size: 32upx;
  851. font-family: PingFang SC;
  852. font-weight: bold;
  853. color: #111111;
  854. }
  855. .more{
  856. display: flex;
  857. align-items: center;
  858. justify-content: flex-end;
  859. .text{
  860. font-size: 24rpx;
  861. font-family: PingFang SC;
  862. color: #9B9B9B;
  863. }
  864. image{
  865. margin-left: 10rpx;
  866. width:15rpx;
  867. height:20rpx;
  868. }
  869. }
  870. }
  871. .price-box {
  872. font-family: Roboto, Roboto;
  873. font-weight: bold;
  874. font-size: 36rpx;
  875. color: #FF5C03;
  876. margin-top: 22rpx;
  877. &-unit {
  878. font-weight: 600;
  879. font-size: 26rpx;
  880. }
  881. &-decimal {
  882. font-weight: 600;
  883. font-size: 26rpx;
  884. }
  885. &-text {
  886. font-family: PingFang SC, PingFang SC;
  887. font-weight: 500;
  888. font-size: 26rpx;
  889. }
  890. }
  891. }
  892. .menu-box {
  893. display: flex;
  894. align-items: center;
  895. justify-content: space-evenly;
  896. padding: 26rpx 0 34rpx 0;
  897. .menu-item {
  898. width: 25%;
  899. font-family: PingFang SC, PingFang SC;
  900. font-weight: 400;
  901. font-size: 24rpx;
  902. color: #222222;
  903. display: flex;
  904. flex-direction: column;
  905. align-items: center;
  906. align-items: center;
  907. }
  908. image {
  909. width: 104rpx;
  910. height: 104rpx;
  911. margin-bottom: 26rpx;
  912. }
  913. }
  914. .pharmacy-box {
  915. padding: 8rpx 24rpx 32rpx 24rpx;
  916. .pharmacy {
  917. background: #FFFFFF;
  918. display: flex;
  919. align-items: center;
  920. flex-wrap: wrap;
  921. margin-right: -18rpx;
  922. image {
  923. flex-shrink: 0;
  924. width: 150rpx;
  925. height: 150rpx;
  926. border-radius: 16rpx 16rpx 16rpx 16rpx;
  927. border: 1rpx solid #F5F6F6;
  928. margin-right: 18rpx;
  929. margin-bottom: 18rpx;
  930. box-sizing: border-box;
  931. }
  932. }
  933. }
  934. .cont-box{
  935. z-index: 100;
  936. .banner{
  937. margin: 20rpx auto auto;
  938. width: 702rpx;
  939. }
  940. .modules{
  941. .module{
  942. .depts{
  943. z-index: 101;
  944. margin: 20rpx 15rpx 0rpx;
  945. padding: 20rpx;
  946. box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.05);
  947. background-color: #fff;
  948. border-radius: 15rpx;
  949. .title{
  950. font-size: 32upx;
  951. font-family: PingFang SC;
  952. font-weight: bold;
  953. color: #2A2B2E;
  954. }
  955. .dept-box{
  956. margin-top: 15rpx;
  957. display: flex;
  958. align-items: center;
  959. justify-content: flex-start;
  960. flex-wrap:wrap;
  961. .dept{
  962. padding: 15rpx 5rpx;
  963. width:25%;
  964. display: flex;
  965. flex-direction: column;
  966. align-items: center;
  967. justify-content: center;
  968. .icon{
  969. width:58rpx;
  970. height:58rpx;
  971. }
  972. .title{
  973. margin-top: 10rpx;
  974. font-size: 24upx;
  975. font-family: PingFang SC;
  976. font-weight: 500;
  977. color: #111111;
  978. }
  979. }
  980. }
  981. }
  982. .doctor-articles{
  983. z-index: 101;
  984. margin: 20rpx 15rpx 0rpx;
  985. padding: 20rpx;
  986. box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.05);
  987. background-color: #fff;
  988. border-radius: 15rpx;
  989. .title-box{
  990. display: flex;
  991. flex-direction: row;
  992. align-items: center;
  993. justify-content: space-between;
  994. .title{
  995. font-size: 32upx;
  996. font-family: PingFang SC;
  997. font-weight: bold;
  998. color: #111111;
  999. }
  1000. .more{
  1001. display: flex;
  1002. align-items: center;
  1003. justify-content: flex-end;
  1004. .text{
  1005. font-size: 24rpx;
  1006. font-family: PingFang SC;
  1007. color: #9B9B9B;
  1008. }
  1009. image{
  1010. margin-left: 10rpx;
  1011. width:15rpx;
  1012. height:20rpx;
  1013. }
  1014. }
  1015. }
  1016. .article-box{
  1017. overflow-x: auto;
  1018. box-sizing: border-box;
  1019. display: flex;
  1020. align-items: center;
  1021. justify-content: flex-start;
  1022. .article{
  1023. width: 300rpx;
  1024. margin-right: 20rpx;
  1025. background: #f9f8fe;
  1026. display: flex;
  1027. flex-direction: column;
  1028. align-items: flex-start;
  1029. justify-content: flex-start;
  1030. &:last-child{
  1031. margin-right: 0rpx;
  1032. }
  1033. .image-box{
  1034. width: 300rpx;
  1035. height:400rpx;
  1036. position: relative;
  1037. border-radius: 20rpx;
  1038. image{
  1039. border-radius: 20rpx;
  1040. width: 300rpx;
  1041. height:400rpx;
  1042. }
  1043. .views{
  1044. position: absolute;
  1045. top:0rpx;
  1046. left:0rpx;
  1047. padding: 5rpx 10rpx;
  1048. background: rgba(0,0,0,0.25);
  1049. border-radius: 12rpx 0px 12rpx 0px;
  1050. opacity: 1;
  1051. font-size: 20rpx;
  1052. font-family: PingFang SC-Bold, PingFang SC;
  1053. font-weight: bold;
  1054. color: #FFFFFF;
  1055. }
  1056. .doctor{
  1057. margin: 10rpx;
  1058. display: flex;
  1059. align-items: center;
  1060. justify-content: flex-start;
  1061. position: absolute;
  1062. bottom:0rpx;
  1063. left:0rpx;
  1064. image{
  1065. border-radius: 50%;
  1066. width: 64rpx;
  1067. height:64rpx;
  1068. }
  1069. .right{
  1070. width: 200rpx;
  1071. margin-left: 10rpx;
  1072. display: flex;
  1073. flex-direction: column;
  1074. align-items: flex-start;
  1075. justify-content: space-between;
  1076. .doc-name{
  1077. width: 200rpx;
  1078. font-size: 30rpx;
  1079. font-weight: bold;
  1080. font-family: PingFang SC;
  1081. color: #fff;
  1082. }
  1083. .doc-position{
  1084. width: 100%;
  1085. font-size: 28rpx;
  1086. font-family: PingFang SC;
  1087. color: #fff;
  1088. font-weight: bold;
  1089. opacity: 0.8;
  1090. }
  1091. }
  1092. }
  1093. }
  1094. .article-title-box{
  1095. width: 100%;
  1096. margin-top: 10rpx;
  1097. display: flex;
  1098. align-items: center;
  1099. justify-content: flex-start;
  1100. .article-title{
  1101. font-size: 30rpx;
  1102. font-weight: bold;
  1103. font-family: PingFang SC;
  1104. color: #2A2B2E;
  1105. }
  1106. }
  1107. }
  1108. }
  1109. }
  1110. .doctors {
  1111. padding: 0 24rpx 24rpx 24rpx;
  1112. }
  1113. .articles{
  1114. padding: 0 24rpx 24rpx 24rpx;
  1115. .article-box{
  1116. display: flex;
  1117. flex-direction: column;
  1118. align-items: flex-start;
  1119. justify-content: flex-start;
  1120. .item{
  1121. width: 100%;
  1122. margin-bottom: 20rpx;
  1123. display: flex;
  1124. align-items: flex-start;
  1125. justify-content: flex-start;
  1126. &:last-child{
  1127. margin-bottom: 0rpx;
  1128. }
  1129. .left{
  1130. flex:1;
  1131. height:160rpx;
  1132. margin-right: 15rpx;
  1133. display: flex;
  1134. flex-direction: column;
  1135. align-items: flex-start;
  1136. justify-content: space-between;
  1137. .title{
  1138. font-size: 28upx;
  1139. font-family: PingFang SC;
  1140. font-weight: bold;
  1141. color: #111111;
  1142. }
  1143. .views{
  1144. font-size: 24upx;
  1145. font-family: PingFang SC;
  1146. color: #9a9a9c;
  1147. }
  1148. }
  1149. .right{
  1150. image{
  1151. width: 180rpx;
  1152. height: 136rpx;
  1153. background: #F5F6F6;
  1154. border-radius: 10rpx 10rpx 10rpx 10rpx;
  1155. }
  1156. }
  1157. }
  1158. }
  1159. }
  1160. .packages{
  1161. z-index: 101;
  1162. margin: 20rpx 15rpx;
  1163. padding: 20rpx;
  1164. box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.05);
  1165. background-color: #fff;
  1166. border-radius: 15rpx;
  1167. .title-box{
  1168. display: flex;
  1169. flex-direction: row;
  1170. align-items: center;
  1171. justify-content: space-between;
  1172. .title{
  1173. font-size: 32upx;
  1174. font-family: PingFang SC;
  1175. font-weight: bold;
  1176. color: #111111;
  1177. }
  1178. .more{
  1179. display: flex;
  1180. align-items: center;
  1181. justify-content: flex-end;
  1182. .text{
  1183. font-size: 24rpx;
  1184. font-family: PingFang SC;
  1185. color: #9B9B9B;
  1186. }
  1187. image{
  1188. margin-left: 10rpx;
  1189. width:15rpx;
  1190. height:20rpx;
  1191. }
  1192. }
  1193. }
  1194. .package-box{
  1195. padding: 20rpx 0rpx 0rpx;
  1196. display: flex;
  1197. align-items: flex-start;
  1198. justify-content: flex-start;
  1199. flex-wrap: wrap;
  1200. .item{
  1201. width: calc(50% - 20rpx);
  1202. border-radius: 15rpx;
  1203. margin: 10rpx;
  1204. display: flex;
  1205. flex-direction: column;
  1206. align-items: flex-start;
  1207. justify-content: flex-start;
  1208. &:last-child{
  1209. }
  1210. .top{
  1211. width:100%;
  1212. height:300rpx;
  1213. image{
  1214. border-radius: 15rpx 15rpx 0rpx 0rpx;
  1215. width:100%;
  1216. height:300rpx;
  1217. }
  1218. }
  1219. .bottom{
  1220. width: 100%;
  1221. margin-top: 15rpx;
  1222. .title{
  1223. font-weight: bold;
  1224. font-size: 28upx;
  1225. font-family: PingFang SC;
  1226. color: #111111;
  1227. }
  1228. .price-box{
  1229. margin-top: 10rpx;
  1230. display: flex;
  1231. align-items: center;
  1232. justify-content: space-between;
  1233. width: 100%;
  1234. .price{
  1235. padding: 5rpx 10rpx;
  1236. background-color: #2583EB;
  1237. border-radius: 30rpx;
  1238. font-size: 20upx;
  1239. font-family: PingFang SC;
  1240. color: #ffffff;
  1241. }
  1242. .count{
  1243. font-size: 24upx;
  1244. font-family: PingFang SC;
  1245. color: #333333;
  1246. }
  1247. }
  1248. }
  1249. }
  1250. }
  1251. }
  1252. }
  1253. }
  1254. }
  1255. }
  1256. }
  1257. </style>