index.vue 36 KB

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