index.vue 36 KB

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