index.vue 36 KB

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