index.vue 63 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825
  1. <template>
  2. <view class="content">
  3. <!-- 背景图片 -->
  4. <image class="bg" src="https://user.test.ylrztop.com/images/home_top_bg.png" mode="widthFix"></image>
  5. <view>
  6. <view class="top-inner">
  7. <view class="fixed-top-box" :style="{ background: bgColor }">
  8. <!-- 这里是状态栏 -->
  9. <view class="status_bar" :style="{height: statusBarHeight}"></view>
  10. <view class="top-title">
  11. <view class="name">壹柒玖康养集团</view>
  12. <!-- <view class="dot">•</view><view class="sub-name">七彩互联网医院</view> -->
  13. </view>
  14. <!-- 搜索框、购物车、客服 -->
  15. <view class="func-cont">
  16. <view class="search-cont">
  17. <image class="icon-search" src="../../static/images/search.png" mode=""></image>
  18. <input type="text" disabled value="" placeholder="搜索商品、症状、功能主治"
  19. placeholder-style="font-size:28rpx;color:#BBBBBB;font-family: PingFang SC;"
  20. @click="toSearch" />
  21. </view>
  22. <!-- 购物车 -->
  23. <uni-badge size="small" :text="cartCount" absolute="rightTop" type="error">
  24. <view class="img-item" @click="goAuthUrl('../shopping/cart')">
  25. <image src="../../static/images/cart_wihte.png" mode=""></image>
  26. </view>
  27. </uni-badge>
  28. <view class="img-item" style="position: relative;">
  29. <image src="../../static/images/customer.png" mode=""></image>
  30. <button class="contact-btn" open-type="contact"></button>
  31. </view>
  32. </view>
  33. <!-- <view class="tips">
  34. <view class="left"></view>
  35. <view class="right" @click="navTo('./cert')">资质证明</view>
  36. </view> -->
  37. </view>
  38. </view>
  39. <!-- 头部间距 -->
  40. <view style="padding-bottom:220rpx">
  41. <view class="status_bar" :style="{height: statusBarHeight}"></view>
  42. </view>
  43. <!-- 轮播图 -->
  44. <view class="banner-box">
  45. <view class="inner">
  46. <swiper class="swiper" :indicator-dots="true" :circular="true" :autoplay="true" :interval="3000"
  47. :duration="1000" indicator-color="rgba(255, 255, 255, 0.6)" indicator-active-color="#ffffff">
  48. <swiper-item class="swiper-item" v-for="(item,index) in advList" :key="index"
  49. @click="handleAdvClick(item)">
  50. <image :src="item.imageUrl" mode=""></image>
  51. </swiper-item>
  52. </swiper>
  53. </view>
  54. </view>
  55. <!-- 菜单 -->
  56. <view class="menu-content">
  57. <text class="weight-600 mb26 ml32">我的健康数据</text>
  58. <view class="menu-box">
  59. <Menu :list="menus" @menuClick="menuClick" v-if="menus.length>0" style="width:100%;"></Menu>
  60. </view>
  61. </view>
  62. </view>
  63. <!-- 在线问诊、处方查询 -->
  64. <view class="online-inquiry">
  65. <!-- <view class="item" @click="navTo('/pages/doctor/doctorQr')"> -->
  66. <view class="item" @click="navTo('/pages_health/healthConsulting')">
  67. <image class="bg-img" src="https://user.test.ylrztop.com/images/online_treat.png" mode="aspectFill"></image>
  68. <view class="inner">
  69. <text class="title">健康<text class="color-pink">咨询</text></text>
  70. <text class="sub-title">三师在线服务</text>
  71. </view>
  72. </view>
  73. <!-- <view class="item" @click="goAuthUrl('/pages_user/user/prescribeOrder')"> -->
  74. <view class="item" @click="navTo('/pages_health/healthfiles')">
  75. <image class="bg-img" src="https://user.test.ylrztop.com/images/chu_query.png" mode="aspectFill"></image>
  76. <view class="inner">
  77. <text class="title">健康<text class="color-yellow">专管</text></text>
  78. <text class="sub-title">糖尿病/体重</text>
  79. </view>
  80. </view>
  81. </view>
  82. <view class="modules">
  83. <view class="module">
  84. <!--养生有道-->
  85. <view class="depts">
  86. <view class="title">养生有道</view>
  87. <view class="dept-box">
  88. <view @click="yangshengClick(item)" class="dept" :key="index"
  89. v-for="(item,index) in yangshengs">
  90. <image class="icon" :src="item.icon"></image>
  91. <view class="title">{{item.title}} </view>
  92. </view>
  93. </view>
  94. </view>
  95. <!-- 养生讲堂 -->
  96. <view class="doctor-articles">
  97. <view class="title-box">
  98. <!-- <view class="title">养生讲堂</view> -->
  99. <u-tabs :list="livetabList"
  100. :activeStyle="{fontWeight: '600',color: '#222426',fontSize: '34rpx'}"
  101. :inactiveStyle="{color: '#222426',fontSize: '32rpx'}" @click="selectlivetab"
  102. scrollable="false"></u-tabs>
  103. <view class="more" @click="navTo('/pages_index/index/doctorArticleList')">
  104. <view class="text">更多</view>
  105. <image src="/static/images/right.png"></image>
  106. </view>
  107. </view>
  108. <scroll-view :scroll-x="true">
  109. <view class="article-box">
  110. <view class="article"
  111. @click="navTo('/pages_index/index/doctorArticleDetails?articleId='+item.articleId)"
  112. v-for="(item,index) in doctocArticles" :key="index">
  113. <view class="image-box">
  114. <image mode="aspectFill" :src="item.imageUrl"></image>
  115. <view class="views">
  116. {{item.views}}人观看
  117. </view>
  118. <view class="doctor">
  119. <image mode="aspectFill" :src="item.avatar||''"></image>
  120. <view class="right">
  121. <view class="doc-name ellipsis">{{item.doctorName||''}}</view>
  122. <view class="doc-position ellipsis">{{item.position||''}}</view>
  123. </view>
  124. </view>
  125. </view>
  126. <view class="article-title-box">
  127. <view class="article-title more-t">{{item.title}}</view>
  128. </view>
  129. </view>
  130. </view>
  131. </scroll-view>
  132. </view>
  133. <!--养生干货-->
  134. <view class="articles">
  135. <view class="title-box">
  136. <!-- <view class="title">养生干货</view> -->
  137. <u-tabs :list="articletabList"
  138. :activeStyle="{fontWeight: '600',color: '#222426',fontSize: '34rpx'}"
  139. :inactiveStyle="{color: '#222426',fontSize: '32rpx'}" @click="selectarticletab"
  140. scrollable="false"></u-tabs>
  141. <view class="more" @click="navTo('/pages_index/index/articleList')">
  142. <view class="text">更多</view>
  143. <image src="../../static/images/right.png"></image>
  144. </view>
  145. </view>
  146. <view class="article-box" v-if="articles.length>0">
  147. <view class="item" :key="index"
  148. @click="navTo('/pages_index/index/articleDetails?articleId='+item.articleId)"
  149. v-for="(item,index) in articles">
  150. <view class="left">
  151. <view class="title ellipsis1">
  152. {{item.title}}
  153. </view>
  154. <!-- 新加的文章内容 -->
  155. <view class="txt ellipsis2">
  156. {{item.title}}
  157. </view>
  158. <view class="views">
  159. 浏览量 {{item.views}}
  160. </view>
  161. </view>
  162. <view class="right">
  163. <image :src="item.imageUrl"></image>
  164. </view>
  165. </view>
  166. </view>
  167. </view>
  168. </view>
  169. </view>
  170. <view class="index-cont">
  171. <!-- 医生团队 -->
  172. <!-- <view class="pub-item">
  173. <view class="pub-title-box">
  174. <text class="left">医生团队</text>
  175. <view class="right" @click="navTo('/pages_doctor/doctorList')">
  176. <text class="text">全部医生</text>
  177. <image src="../../static/images/arrow_gray.png" mode=""></image>
  178. </view>
  179. </view>
  180. <view class="doc-cont">
  181. <view class="inner">
  182. <view class="item" v-for="(item,index) in doctorList" :key="index" @click="shopDoctor(item)">
  183. <view class="head-box">
  184. <image :src="item.headImg" mode="aspectFill"></image>
  185. </view>
  186. <text class="name ellipsis">{{ item.doctorName }}</text>
  187. <text class="position ellipsis">
  188. {{utils.getDictLabelName("doctorPosition",item.position)}}
  189. </text>
  190. </view>
  191. </view>
  192. </view>
  193. </view> -->
  194. <!-- <view class="pub-item">
  195. <view class="tabs">
  196. <view class="tab" @click="docTabChange(1)">
  197. <image v-if="docTab==1" class="img" src="../../static/images/tab1.png" mode=""></image>
  198. <view class="inner">
  199. <text :class="docTab == 1?'title active':'title'" >推荐医生</text>
  200. </view>
  201. </view>
  202. <view class="tab" @click="docTabChange(2)">
  203. <image v-if="docTab==2" class="img" src="../../static/images/tab2.png" mode=""></image>
  204. <view class="inner">
  205. <text :class="docTab == 2?'title active':'title'" >推荐药师</text>
  206. </view>
  207. </view>
  208. <view class="tab" @click="docTabChange(3)">
  209. <image v-if="docTab==3" class="img" src="../../static/images/tab3.png" mode=""></image>
  210. <view class="inner">
  211. <text :class="docTab == 3?'title active':'title'" >推荐营养师</text>
  212. </view>
  213. </view>
  214. </view>
  215. <view class="doc-tab-box">
  216. <view class="tab-inner" >
  217. <view
  218. v-for="(item,index) in depts"
  219. :key="index"
  220. :class="item.departmentId == deptId?'item active':'item'"
  221. @click="deptChange(item)"
  222. >
  223. <view class="text">
  224. {{ item.departmentName }}
  225. <image v-show="item.departmentId == deptId" class="tab-bg" src="../../static/images/tab_bg.png" mode=""></image>
  226. </view>
  227. </view>
  228. </view>
  229. <image class="right-mask" src="../../static/images/mask.png" mode=""></image>
  230. </view>
  231. <view class="doc-list">
  232. <view class="item" v-for="(item,index) in doctorList" :key="index" @click="shopDoctor(item)"> -->
  233. <!-- 头像 -->
  234. <!-- <view class="head-box">
  235. <image :src="item.headImg" mode="aspectFill"></image>
  236. </view> -->
  237. <!-- 详细信息 -->
  238. <!-- <view class="info"> -->
  239. <!-- 姓名等 -->
  240. <!-- <view class="top">
  241. <text class="name">{{ item.doctorName }}</text>
  242. <view class="line"></view>
  243. <text class="other">{{utils.getDictLabelName("doctorPosition",item.position)}}</text>
  244. <view class="line"></view>
  245. <text class="other">{{ item.departmentName }}</text>
  246. </view> -->
  247. <!-- 单位 -->
  248. <!-- <view class="unit-box"> -->
  249. <!-- <view class="level">三甲</view> -->
  250. <!-- <view class="name">{{ item.hospitalName }}</view>
  251. </view> -->
  252. <!-- 擅长 -->
  253. <!-- <view class="expertise ellipsis2">
  254. 擅长:{{ item.doctorDesc }}
  255. </view> -->
  256. <!-- 评分 -->
  257. <!-- <view class="rate-box">
  258. <view class="star">
  259. <image src="../../static/images/star.png" mode=""></image>
  260. <text>{{ item.pings }}</text>
  261. </view>
  262. <view class="line"></view>
  263. <view class="num-box">
  264. <text class="label">接诊数</text>
  265. <text class="num">{{ item.orders }}</text>
  266. </view>
  267. <view class="line"></view>
  268. <view class="num-box">
  269. <text class="label">响应速度</text>
  270. <text class="num">{{ item.speed }}分钟</text>
  271. </view>
  272. </view> -->
  273. <!-- 价格 -->
  274. <!-- <view class="price-box">
  275. <view class="btn-item" v-for="(subitme) in item.price">
  276. <text class="label" >{{subitme.priceType==1?'图文':'语音'}}</text>
  277. <text class="num">¥{{subitme.price.toFixed(2)}}</text>
  278. </view>
  279. </view>
  280. </view>
  281. </view>
  282. <view class="bottom-title" @click="navTo('/pages_doctor/doctorList?doctorType='+docTab)">
  283. <text >{{allDoctorTitle}}</text>
  284. <image src="../../static/images/arrow3.png" mode=""></image>
  285. </view>
  286. </view>
  287. -->
  288. <!-- <view class="doc-cont">
  289. <view class="inner">
  290. <view class="item" v-for="(item,index) in doctorList" :key="index" @click="shopDoctor(item)">
  291. <view class="head-box">
  292. <image :src="item.headImg" mode="aspectFill"></image>
  293. </view>
  294. <text class="name ellipsis">{{ item.doctorName }}</text>
  295. <text class="position ellipsis">
  296. {{utils.getDictLabelName("doctorPosition",item.position)}}
  297. </text>
  298. </view>
  299. </view>
  300. </view> -->
  301. <!-- </view> -->
  302. <!-- 问诊案例 -->
  303. <!-- <view class="pub-item">
  304. <view class="pub-title-box">
  305. <text class="left">问诊案例</text>
  306. <view class="right" @click="viewAll('doctorCase')">
  307. <text class="text">全部案例</text>
  308. <image src="../../static/images/arrow_gray.png" mode=""></image>
  309. </view>
  310. </view>
  311. <view class="inner">
  312. <view class="pub-tab-box">
  313. <view class="tab-inner">
  314. <view
  315. v-for="(item,index) in orderTypes"
  316. :key="index"
  317. :class="item.id == orderType?'item cases active':'item cases'"
  318. @click="orderTypeChange(item)"
  319. >
  320. <view class="text">
  321. {{ item.name }}
  322. <image v-show="item.id == orderType" class="tab-bg" src="../../static/images/tab_bg.png" mode=""></image>
  323. </view>
  324. </view>
  325. </view>
  326. <image class="right-mask" src="../../static/images/mask.png" mode=""></image>
  327. </view>
  328. <view class="cases-list">
  329. <view class="item" v-for="(item,index) in doctorOrderList" :key="index">
  330. <view class="dec-text ellipsis2">{{item.title}}</view>
  331. <view class="images-box" v-if="item.imgs!=null" >
  332. <view class="img-item" v-for="(subitem,j) in utils.photosToArr(item.imgs)" @click="showImg(item.imgs)" :key="j">
  333. <image :src="subitem" mode="aspectFill" ></image>
  334. </view>
  335. </view>
  336. <view class="doc-info">
  337. <view class="head">
  338. <image :src="item.doctorHeadImg" mode="aspectFill"></image>
  339. </view>
  340. <view class="name">{{item.doctorName}}</view>
  341. <view class="line"></view>
  342. <view class="posit">
  343. {{utils.getDictLabelName("doctorPosition",item.doctorPosition)}}
  344. </view>
  345. <view class="line"></view>
  346. <view class="address">{{item.hospitalName}}</view>
  347. </view>
  348. <view class="answer-box">
  349. <text class="text-inner" v-if="item.orderType == '1' ">{{item.replyContent}}</text>
  350. <view class="voice-inner" v-if="item.orderType == '2'">
  351. <free-audio
  352. startPic='/static/images/play.png'
  353. endPic='/static/images/pause.png'
  354. activeColor="#0bb3f2"
  355. :audioId="'audio'+index"
  356. :url='item.replyAudioUrl'
  357. ></free-audio>
  358. </view>
  359. </view>
  360. <view class="read-box">
  361. <image src="../../static/images/eye.png" mode=""></image>
  362. <text class="text">{{item.views}}人看过</text>
  363. </view>
  364. </view>
  365. </view>
  366. </view>
  367. </view> -->
  368. <!-- 热门榜单 -->
  369. <NewProduct :detail="newProductList" />
  370. <HotProduct :detail="hotProductList" />
  371. <!-- 健康百科 -->
  372. <!-- <view class="pub-item" style="margin-top: 20rpx;">
  373. <view class="pub-title-box">
  374. <text class="left">健康百科</text>
  375. <view class="right" @click="switchTo('../healthy/index')">
  376. <text class="text">更多</text>
  377. <image src="../../static/images/arrow_gray.png" mode=""></image>
  378. </view>
  379. </view>
  380. <view class="inner">
  381. <view class="pub-tab-box">
  382. <view class="tab-inner">
  383. <view v-for="(item,index) in articleCateList" :key="index"
  384. :class="item.cateId == cateId?'item active':'item'" @click="articleCateChange(item)">
  385. <view class="text">
  386. {{ item.cateName }}
  387. <image v-show="item.cateId == cateId" class="tab-bg"
  388. src="../../static/images/tab_bg.png" mode=""></image>
  389. </view>
  390. </view>
  391. </view>
  392. <image class="right-mask" src="../../static/images/mask.png" mode=""></image>
  393. </view>
  394. <view class="know-list">
  395. <view class="item" v-for="(item,index) in articleList" :key="index" @click="showArticle(item)">
  396. <view class="left">
  397. <view class="title ellipsis2">{{ item.title }}</view>
  398. <view class="info-box">
  399. <view class="readers">
  400. <view class="head-box" v-if="item.viewsList!=null&&item.viewsList.length>0">
  401. <view class="head" v-for="(subitem,j) in item.viewsList" :key="j"
  402. v-if="subitem!=null">
  403. <image
  404. :src="subitem.avatar==null?'/static/images/detault_head.jpg':subitem.avatar"
  405. mode=""></image>
  406. </view>
  407. </view>
  408. <view class="readings">
  409. <image class="eye" src="../../static/images/eye.png" mode=""></image>
  410. <text class="num">{{item.views}}</text>
  411. </view>
  412. </view>
  413. <view class="time">{{item.publishTime}}</view>
  414. </view>
  415. </view>
  416. <view class="right">
  417. <image :src="item.imageUrl" mode="aspectFill"></image>
  418. </view>
  419. </view>
  420. </view>
  421. </view>
  422. </view> -->
  423. <!-- 精选药品 -->
  424. <!-- <TuiProduct ref="tuiProduct" /> -->
  425. <!-- <view class="feat-title">
  426. <image src="../../static/images/tui.png" mode=""></image>
  427. <text>精选药品</text>
  428. </view>
  429. <view class="drug-list">
  430. <view class="item" v-for="(item,index) in tuiProductList" :key="index" @click="showProduct(item)">
  431. <view class="img-box">
  432. <image :src="item.image" mode="aspectFit"></image>
  433. </view>
  434. <view class="info-box">
  435. <view class="title ellipsis2">{{ item.productName }}</view>
  436. <view class="price-box">
  437. <view class="now">
  438. <text class="unit">¥</text>
  439. <text class="num">{{item.price.toFixed(2)}}</text>
  440. </view>
  441. <view class="old">¥{{item.otPrice.toFixed(2)}}</view>
  442. </view>
  443. </view>
  444. </view>
  445. </view> -->
  446. </view>
  447. <!-- 限时消息 -->
  448. <!-- <view class="message-box" >
  449. <view class="left">
  450. <image src="../../static/images/close24.png" mode="" @click="closeMsg"></image>
  451. <view class="text ellipsis">关注公众号了解更新</view>
  452. </view>
  453. <view class="btn">查看</view>
  454. </view> -->
  455. <!-- #ifdef MP-WEIXIN -->
  456. <!-- <view class="official-account">
  457. <official-account @load="bindload" @error="binderror"></official-account>
  458. </view> -->
  459. <!-- #endif -->
  460. <view class="popup-box" v-if="activityShow">
  461. <view class="info-mask" @tap="closeActivity()"></view>
  462. <view class="info-form">
  463. <image :src="activity.logoUrl" @tap="showActivity()" />
  464. </view>
  465. </view>
  466. <!-- <z-modal :show="tuiModalControl" placeholderText="请输入邀请码" :btnGroup="btnGroup" :contentType="2"
  467. titleText="填写邀请码" @cancle="cancleTui" @sure="submitTui"></z-modal> -->
  468. </view>
  469. </template>
  470. <script>
  471. // import zModal from '@/components/z-modal/z-modal.vue'
  472. import {
  473. getStoreActivity
  474. } from '@/api/activity.js'
  475. import {
  476. getDepartmentList
  477. } from '@/api/doctorOrder.js'
  478. import {
  479. getMenu,
  480. getCanvas,
  481. getIndexData,
  482. getTuiDoctor,
  483. getTuiArticle,
  484. getTuiDoctorOrder,
  485. getCartCount
  486. } from '@/api/index'
  487. import {
  488. getDoctorArticleList
  489. } from '@/api/doctorArticle.js'
  490. import {
  491. getArticleList
  492. } from '@/api/article.js'
  493. import {
  494. getStoreConfig
  495. } from '@/api/common'
  496. import tabBg from "@/static/images/tab_bg.png"
  497. import freeAudio from '@/components/chengpeng-audio/free-audio.vue'
  498. import Menu from '@/components/Menu.vue'
  499. import HotProduct from './components/HotProduct.vue'
  500. import NewProduct from './components/NewProduct.vue'
  501. // import TuiProduct from '@/components/tuiProduct.vue'
  502. import {
  503. getUserInfo,
  504. bindPromoter
  505. } from '@/api/user'
  506. export default {
  507. components: {
  508. // zModal,
  509. freeAudio,
  510. Menu,
  511. HotProduct,
  512. NewProduct
  513. },
  514. data() {
  515. return {
  516. btnGroup: [{
  517. text: '取消',
  518. color: '#FFFFFF',
  519. bgColor: '#999999',
  520. width: '150rpx',
  521. height: '80rpx',
  522. shape: 'fillet',
  523. eventName: 'cancle'
  524. }, {
  525. text: '确定',
  526. color: '#FFFFFF',
  527. bgColor: '#0bb3f2',
  528. width: '150rpx',
  529. height: '80rpx',
  530. shape: 'fillet',
  531. eventName: 'sure'
  532. }],
  533. tuiModalControl: false,
  534. activity: null,
  535. activityShow: false,
  536. newProductList: [],
  537. hotProductList: [],
  538. tuiProductList: [],
  539. menus: [],
  540. canvas: [],
  541. allDoctorTitle: "全部医生",
  542. topLen: 0,
  543. deptId: 0,
  544. depts: [],
  545. docTab: 1,
  546. top: 0,
  547. cartCount: 0,
  548. doctorOrderList: [],
  549. orderType: 0,
  550. cateId: null,
  551. articleList: [],
  552. advList: [],
  553. doctorList: [],
  554. articleCateList: [],
  555. doctocArticles: [], //养生讲堂
  556. articles: [], //养生干货
  557. livetabList: [{
  558. name: '养生讲堂'
  559. },
  560. {
  561. name: '健康管理'
  562. },
  563. {
  564. name: '养生滋补'
  565. }
  566. ], //养生讲堂TAB
  567. articletabList: [{
  568. name: '健康案例分享'
  569. },
  570. {
  571. name: '药事服务'
  572. }
  573. ], //文章TAB
  574. // 状态栏的高度
  575. statusBarHeight: uni.getStorageSync('menuInfo').statusBarHeight,
  576. tabBg: tabBg, // tab切换背景
  577. // 问诊案例类型
  578. orderTypes: [{
  579. name: '全部',
  580. id: 0,
  581. }, {
  582. name: '图文',
  583. id: 1,
  584. }, {
  585. name: '语音',
  586. id: 2,
  587. }],
  588. // 限时消息是否显示
  589. messageShow: true,
  590. yangshengs: [{
  591. id: "1",
  592. title: "药膳食疗",
  593. page: "/pages_index/index/medicatedFoodList",
  594. icon: "https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/3cfbd47911cf4753aa9497eac500728d.png"
  595. },
  596. {
  597. id: "2",
  598. title: "穴位保健",
  599. page: "/pages_index/index/vesselList",
  600. icon: "https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/e93536a9dc1a4f8ca09545097b12fdea.png"
  601. },
  602. {
  603. id: "3",
  604. title: "特供中药",
  605. page: "/pages_index/index/questionsList",
  606. icon: "https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/e896972bd56f4e358188af36f2c5af42.png"
  607. },
  608. {
  609. id: "4",
  610. title: "营养特医",
  611. page: "/pages_index/index/diseaseList",
  612. icon: "https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/d6f1851cccae414b8baf2ba07782f91b.png"
  613. },
  614. {
  615. id: "5",
  616. title: "古方精方",
  617. page: "/pages_index/index/chineseMedicineList",
  618. icon: "https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/ff43572d0d004285b5a3b0ef2663c471.png"
  619. },
  620. {
  621. id: "6",
  622. title: "健康案例",
  623. page: "/pages_index/index/famousPrescribeList",
  624. icon: "https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/45db770e58c34963b0d2ba24a958b617.png"
  625. },
  626. {
  627. id: "7",
  628. title: "中西药房",
  629. page: "/pages_index/index/doctorArticleList",
  630. icon: "https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/e793942797b24035b51f94d894bdfa0b.png"
  631. },
  632. {
  633. id: "8",
  634. title: "更多",
  635. page: "",
  636. icon: "/static/images/ysyd_more_icon.png"
  637. }
  638. ],
  639. }
  640. this.getStoreActivity();
  641. },
  642. onLoad(option) {
  643. if (option.userCode != null) {
  644. uni.setStorageSync('userCode', option.userCode);
  645. if (this.utils.checkLoginState()) {
  646. this.getUserInfo();
  647. }
  648. }
  649. if (option.hasOwnProperty('q') && option.q) {
  650. // 通过下面这步解码,可以拿到url的值
  651. const url = decodeURIComponent(option.q)
  652. this.url = url;
  653. // // 对url中携带的参数提取处理
  654. const obj = this.utils.urlToObj(url)
  655. uni.setStorageSync('userCode', obj.userCode);
  656. if (this.utils.checkLoginState()) {
  657. this.getUserInfo();
  658. }
  659. }
  660. this.getStoreActivity()
  661. },
  662. // 暂停所有音频(一般用于页面切换时停止正在播放的音频)
  663. onUnload() { //普通页面在 onUnload 生命周期中执行
  664. uni.$emit('stop')
  665. },
  666. onHide() { //tabBar页面在onHide生命周期中执行
  667. uni.$emit('stop')
  668. },
  669. onPageScroll(e) {
  670. //console.log(e)
  671. this.top = e.scrollTop;
  672. },
  673. mounted() {
  674. //this.getDepartmentList();
  675. },
  676. onShareAppMessage(res) {
  677. return {
  678. title: '壹柒玖康养集团-您的专属健康解决方案',
  679. path: `/pages/common/launch`,
  680. imageUrl: 'https://user.test.ylrztop.com/images/logo.png' //分享图标,路径可以是本地文件路径、代码包文件路径或者网络图片路径.支持PNG及JPG。显示图片长宽比是 5:4
  681. }
  682. },
  683. onReachBottom() {
  684. console.log("onReachBottom")
  685. // this.$refs.tuiProduct.getTuiProducts();
  686. },
  687. //分享到朋友圈
  688. onShareTimeline(res) {
  689. return {
  690. title: '壹柒玖康养集团-您的专属健康解决方案',
  691. query: '', //页面参数
  692. imageUrl: 'https://user.test.ylrztop.com/images/logo.png' //分享图标,路径可以是本地文件路径、代码包文件路径或者网络图片路径.支持PNG及JPG。显示图片长宽比是 5:4
  693. }
  694. },
  695. computed: {
  696. // 计算属性的 getter
  697. bgColor: function() {
  698. var top = this.top / 30;
  699. return 'rgba(11,179,242, ' + top + ')';
  700. },
  701. },
  702. onShow() {
  703. this.getMenu();
  704. this.getIndexData()
  705. //this.getTuiDoctorOrder();
  706. // console.log(uni.getStorageSync('isLocation'))
  707. // if(uni.getStorageSync('isLocation')==""){
  708. // this.getLocation();
  709. // }
  710. if (this.utils.checkLoginState()) {
  711. this.getCartCount();
  712. }
  713. this.getStoreConfig();
  714. //this.getTuiDoctor()
  715. // this.getCanvas();
  716. this.getDoctorArticleList();
  717. this.getArticleList();
  718. },
  719. methods: {
  720. getUserInfo() {
  721. getUserInfo().then(
  722. res => {
  723. if (res.code == 200) {
  724. if (res.user != null) {
  725. if (res.user.isPromoter == null || res.user.isPromoter == 0) {
  726. this.tuiModalControl = true
  727. }
  728. }
  729. } else {
  730. uni.showToast({
  731. icon: 'none',
  732. title: "请求失败",
  733. });
  734. }
  735. },
  736. rej => {}
  737. );
  738. },
  739. cancleTui(e) {
  740. this.tuiModalControl = false
  741. },
  742. submitTui(e) {
  743. console.log(e)
  744. // uni.navigateTo({
  745. // url: '/pages_company/distribution'
  746. // })
  747. if (e.inputText == null || e.inputText == "") {
  748. uni.showToast({
  749. icon: 'none',
  750. title: "请输入邀请码",
  751. });
  752. return;
  753. }
  754. var data = {
  755. userCode: e.inputText
  756. };
  757. bindPromoter(data).then(
  758. res => {
  759. if (res.code == 200) {
  760. uni.showToast({
  761. icon: 'none',
  762. title: res.msg,
  763. });
  764. this.tuiModalControl = false
  765. } else {
  766. uni.showToast({
  767. icon: 'none',
  768. title: res.msg,
  769. });
  770. }
  771. },
  772. rej => {}
  773. );
  774. },
  775. bindload: function(detail) {},
  776. binderror: function(detail) {},
  777. closeActivity() {
  778. this.activityShow = false;
  779. // uni.setStorageSync(this.activity.activityId,null);
  780. },
  781. getStoreActivity() {
  782. let data = {}
  783. getStoreActivity(data).then(res => {
  784. this.activity = res.activity;
  785. if (this.activity != null) {
  786. // if(uni.getStorageSync(this.activity.activityId)!=null)
  787. // {
  788. // uni.setStorageSync(this.activity.activityId,1);
  789. // this.activityShow=true;
  790. // }
  791. // else{
  792. // this.activityShow=false;
  793. // }
  794. this.activityShow = true;
  795. } else {
  796. this.activityShow = false;
  797. }
  798. })
  799. },
  800. showActivity() {
  801. this.activityShow = false;
  802. uni.navigateTo({
  803. url: '/pages_shopping/shopping/activityDetails?activityId=' + this.activity.activityId
  804. })
  805. },
  806. menuClick(item) {
  807. if (item.linkType == 1) {
  808. if (item.linkUrl == "/pages/shopping/index") {
  809. uni.switchTab({
  810. url: item.linkUrl
  811. })
  812. } else if (item.linkUrl == "/pages/healthy/index") {
  813. uni.switchTab({
  814. url: item.linkUrl
  815. })
  816. } else {
  817. uni.navigateTo({
  818. url: item.linkUrl
  819. })
  820. }
  821. } else if (item.linkType == 0) {
  822. uni.showToast({
  823. icon: 'none',
  824. title: "开发中...",
  825. });
  826. }
  827. },
  828. goDev() {
  829. uni.showToast({
  830. icon: 'none',
  831. title: "开发中...",
  832. });
  833. },
  834. //养生讲堂等直播tab
  835. selectlivetab(item) {
  836. // console.log('item', item);
  837. },
  838. // 健康案例分享等文章tab
  839. selectarticletab(item) {
  840. // console.log('item', item);
  841. },
  842. handleAdvClick(item) {
  843. console.log(item);
  844. if (item.showType == 1) {
  845. uni.setStorageSync('url', item.advUrl);
  846. uni.navigateTo({
  847. url: "h5"
  848. })
  849. } else if (item.showType == 2) {
  850. uni.navigateTo({
  851. url: item.advUrl
  852. })
  853. } else if (item.showType == 3) {
  854. uni.setStorageSync('content', item.content);
  855. uni.navigateTo({
  856. url: "content"
  857. })
  858. }
  859. },
  860. deptChange(item) {
  861. this.deptId = item.departmentId;
  862. this.getTuiDoctor();
  863. },
  864. getMenu() {
  865. getMenu().then(res => {
  866. console.log(res)
  867. if (res.code == 200) {
  868. this.menus = res.data
  869. } else {
  870. }
  871. });
  872. },
  873. getCanvas() {
  874. getCanvas().then(res => {
  875. if (res.code == 200) {
  876. console.log(res.data)
  877. this.canvas = JSON.parse(res.data.json)
  878. }
  879. });
  880. },
  881. getDepartmentList() {
  882. this.depts = [];
  883. getDepartmentList().then(res => {
  884. if (res.code == 200) {
  885. var allDept = {
  886. departmentId: 0,
  887. departmentName: "全部"
  888. }
  889. this.depts.push(allDept);
  890. this.depts = this.depts.concat(res.data);
  891. } else {
  892. uni.showToast({
  893. icon: 'none',
  894. title: "请求失败",
  895. });
  896. }
  897. });
  898. },
  899. getTuiDoctor() {
  900. let data = {
  901. departmentId: this.deptId,
  902. doctorType: this.docTab
  903. };
  904. getTuiDoctor(data).then(
  905. res => {
  906. if (res.code == 200) {
  907. this.doctorList = res.data;
  908. } else {
  909. uni.showToast({
  910. icon: 'none',
  911. title: "请求失败",
  912. });
  913. }
  914. },
  915. rej => {}
  916. );
  917. },
  918. docTabChange(val) {
  919. if (val == 1) {
  920. this.allDoctorTitle = "全部医师"
  921. }
  922. if (val == 2) {
  923. this.allDoctorTitle = "全部药师"
  924. }
  925. if (val == 3) {
  926. this.allDoctorTitle = "全部营养师"
  927. }
  928. this.docTab = val;
  929. this.getTuiDoctor();
  930. },
  931. showImg(urls) {
  932. var imgArr = urls.split(',');
  933. //预览图片
  934. uni.previewImage({
  935. urls: imgArr,
  936. current: imgArr[0]
  937. });
  938. },
  939. getStoreConfig() {
  940. getStoreConfig().then(
  941. res => {
  942. if (res.code == 200) {
  943. uni.setStorageSync('config', JSON.stringify(res.data));
  944. }
  945. },
  946. rej => {}
  947. );
  948. },
  949. goAuthUrl(url) {
  950. this.utils.isLogin().then(res => {
  951. if (res) {
  952. uni.navigateTo({
  953. url: url
  954. })
  955. }
  956. })
  957. },
  958. // 跳转页面
  959. navTo(url) {
  960. uni.navigateTo({
  961. url: url
  962. })
  963. },
  964. getLocation() {
  965. var that = this;
  966. uni.authorize({
  967. scope: 'scope.userLocation',
  968. success() {
  969. uni.getLocation({
  970. type: 'gcj02', //腾讯地图使用gcj02获取位置坐标
  971. success: function(res) {
  972. uni.setStorageSync('isLocation', 1);
  973. uni.setStorageSync('lng', res.longitude);
  974. uni.setStorageSync('lat', res.latitude);
  975. },
  976. })
  977. },
  978. fail(err) {
  979. console.log(err)
  980. }
  981. })
  982. },
  983. getIndexData() {
  984. let data = {};
  985. getIndexData(data).then(
  986. res => {
  987. if (res.code == 200) {
  988. this.advList = res.data.advList;
  989. this.articleCateList = res.data.articleCateList;
  990. if (this.articleCateList != null && this.articleCateList.length > 0) {
  991. this.cateId = this.articleCateList[0].cateId;
  992. this.getTuiArticle()
  993. }
  994. this.tuiProductList = res.data.tuiProductList
  995. this.newProductList = res.data.newProductList
  996. this.hotProductList = res.data.hotProductList
  997. } else {
  998. uni.showToast({
  999. icon: 'none',
  1000. title: "请求失败",
  1001. });
  1002. }
  1003. },
  1004. rej => {}
  1005. );
  1006. },
  1007. getCartCount() {
  1008. this.utils.isLogin().then(res => {
  1009. if (res) {
  1010. getCartCount().then(
  1011. cartRes => {
  1012. if (cartRes.code == 200) {
  1013. this.cartCount = cartRes.data;
  1014. }
  1015. },
  1016. rej => {}
  1017. );
  1018. }
  1019. })
  1020. },
  1021. getTuiArticle() {
  1022. let data = {
  1023. cateId: this.cateId
  1024. };
  1025. getTuiArticle(data).then(
  1026. res => {
  1027. if (res.code == 200) {
  1028. this.articleList = res.data;
  1029. } else {
  1030. uni.showToast({
  1031. icon: 'none',
  1032. title: "请求失败",
  1033. });
  1034. }
  1035. },
  1036. rej => {}
  1037. );
  1038. },
  1039. getTuiDoctorOrder() {
  1040. let data = {
  1041. orderType: this.orderType
  1042. };
  1043. getTuiDoctorOrder(data).then(
  1044. res => {
  1045. if (res.code == 200) {
  1046. this.doctorOrderList = res.data;
  1047. } else {
  1048. uni.showToast({
  1049. icon: 'none',
  1050. title: "请求失败",
  1051. });
  1052. }
  1053. },
  1054. rej => {}
  1055. );
  1056. },
  1057. showArticle(item) {
  1058. uni.navigateTo({
  1059. url: '../healthy/detail?articleId=' + item.articleId
  1060. })
  1061. },
  1062. showProduct(item) {
  1063. uni.navigateTo({
  1064. url: '../shopping/productDetails?productId=' + item.productId
  1065. })
  1066. },
  1067. // 顶部搜索
  1068. toSearch() {
  1069. uni.navigateTo({
  1070. url: './productSearch'
  1071. })
  1072. },
  1073. // 健康知识选中
  1074. articleCateChange(item) {
  1075. this.cateId = item.cateId;
  1076. this.getTuiArticle();
  1077. },
  1078. // 问诊案例选中
  1079. orderTypeChange(item) {
  1080. this.orderType = item.id;
  1081. console.log(this.orderType)
  1082. this.getTuiDoctorOrder();
  1083. },
  1084. // 关闭限时消息
  1085. closeMsg() {
  1086. this.messageShow = false
  1087. },
  1088. // 查看全部
  1089. viewAll(url) {
  1090. uni.navigateTo({
  1091. url: '/pages/home/' + url,
  1092. });
  1093. },
  1094. shopDoctor(item) {
  1095. console.log(item);
  1096. uni.navigateTo({
  1097. url: "/pages_doctor/doctorDetail?doctorId=" + item.doctorId
  1098. })
  1099. },
  1100. switchTo(url) {
  1101. uni.switchTab({
  1102. url: url
  1103. })
  1104. return
  1105. },
  1106. yangshengClick(item) {
  1107. if (item.page == "") {
  1108. uni.showToast({
  1109. icon: "none",
  1110. title: '暂无更多'
  1111. })
  1112. return;
  1113. }
  1114. uni.navigateTo({
  1115. url: item.page
  1116. })
  1117. },
  1118. // 在线问诊
  1119. openIm() {
  1120. uni.navigateTo({
  1121. url: '/pages_doctor/doctorOrderIM?orderId=10'
  1122. })
  1123. },
  1124. getDoctorArticleList() {
  1125. //联网加载数据
  1126. var that = this;
  1127. var data = {
  1128. pageNum: 1,
  1129. pageSize: 10
  1130. };
  1131. getDoctorArticleList(data).then(res => {
  1132. if (res.code == 200) {
  1133. this.doctocArticles = res.data.list;
  1134. }
  1135. });
  1136. },
  1137. getArticleList() {
  1138. //联网加载数据
  1139. var that = this;
  1140. var data = {
  1141. isTui: 1,
  1142. pageNum: 1,
  1143. pageSize: 10,
  1144. };
  1145. getArticleList(data).then(res => {
  1146. if (res.code == 200) {
  1147. this.articles = res.data.list;
  1148. } else {
  1149. uni.showToast({
  1150. icon: 'none',
  1151. title: "请求失败",
  1152. });
  1153. }
  1154. });
  1155. },
  1156. }
  1157. }
  1158. </script>
  1159. <style lang="scss">
  1160. .ellipsis1 {
  1161. overflow: hidden;
  1162. text-overflow: ellipsis;
  1163. white-space: nowrap;
  1164. }
  1165. .fixed-top-box {
  1166. width: 100%;
  1167. position: fixed;
  1168. top: 0;
  1169. left: 0;
  1170. z-index: 1000;
  1171. transition: all 0.5s;
  1172. background-color: #0bb3f2;
  1173. &.show-back {
  1174. // background: linear-gradient(135deg, #66b2ef 0%, #0bb3f2 100%);
  1175. }
  1176. .status_bar {
  1177. width: 100%;
  1178. }
  1179. }
  1180. .content {
  1181. width: 100%;
  1182. background: #EFF3F7;
  1183. position: relative;
  1184. .bg {
  1185. width: 100%;
  1186. height: 380rpx;
  1187. position: absolute;
  1188. top: 0;
  1189. left: 0;
  1190. }
  1191. .top-inner {
  1192. width: 100%;
  1193. position: absolute;
  1194. top: 0;
  1195. left: 0;
  1196. z-index: 5;
  1197. .top-title {
  1198. height: 88upx;
  1199. line-height: 88upx;
  1200. display: flex;
  1201. align-items: center;
  1202. justify-content: flex-start;
  1203. .name {
  1204. font-size: 42upx;
  1205. font-family: Source Han Sans CN;
  1206. font-weight: bold;
  1207. color: #FFFFFF;
  1208. padding-left: 41upx;
  1209. }
  1210. .dot {
  1211. margin: 0upx 10upx;
  1212. font-size: 28upx;
  1213. color: #FFFFFF;
  1214. opacity: 0.5;
  1215. }
  1216. .sub-name {
  1217. font-size: 30upx;
  1218. font-family: Source Han Sans CN;
  1219. color: #FFFFFF;
  1220. }
  1221. }
  1222. .func-cont {
  1223. box-sizing: border-box;
  1224. display: flex;
  1225. align-items: center;
  1226. padding: 30upx 20upx 30upx 20upx;
  1227. .search-cont {
  1228. box-sizing: border-box;
  1229. display: flex;
  1230. align-items: center;
  1231. width: 552upx;
  1232. height: 72upx;
  1233. background: #FFFFFF;
  1234. border-radius: 36upx;
  1235. padding: 0 30upx;
  1236. .icon-search {
  1237. width: 28upx;
  1238. height: 28upx;
  1239. margin-right: 20upx;
  1240. }
  1241. input {
  1242. height: 60upx;
  1243. line-height: 60upx;
  1244. flex: 1;
  1245. }
  1246. }
  1247. ;
  1248. ;
  1249. v-deep.uni-badge {
  1250. border: none;
  1251. background-color: #FF3636;
  1252. font-family: Roboto;
  1253. }
  1254. .img-item {
  1255. width: 44upx;
  1256. height: 44upx;
  1257. margin-left: 30upx;
  1258. image {
  1259. width: 100%;
  1260. height: 100%;
  1261. }
  1262. }
  1263. }
  1264. .tips {
  1265. margin: 0upx 20rpx 30rpx;
  1266. height: 40upx;
  1267. line-height: 40upx;
  1268. display: flex;
  1269. justify-content: space-between;
  1270. align-items: center;
  1271. .left {
  1272. font-size: 30upx;
  1273. color: #FFFFFF;
  1274. }
  1275. .right {
  1276. padding: 5upx 20rpx;
  1277. font-size: 24upx;
  1278. color: #FFFFFF;
  1279. background-color: #0bb3f2;
  1280. border-radius: 50rpx;
  1281. }
  1282. }
  1283. }
  1284. .banner-box {
  1285. display: flex;
  1286. align-items: center;
  1287. justify-content: center;
  1288. width: 100%;
  1289. .inner {
  1290. width: 702rpx;
  1291. height: 228rpx;
  1292. border-radius: 10upx;
  1293. overflow: hidden;
  1294. .swiper,
  1295. .swiper-item,
  1296. .swiper-item image {
  1297. width: 702rpx;
  1298. height: 228rpx;
  1299. }
  1300. }
  1301. }
  1302. .menu-content {
  1303. border-radius: 16rpx 16rpx 16rpx 16rpx;
  1304. margin: 20rpx 24rpx;
  1305. overflow: hidden;
  1306. padding: 30upx 0;
  1307. background-color: #ffffff;
  1308. }
  1309. .menu-box {
  1310. display: flex;
  1311. align-items: center;
  1312. background-color: #FFFFFF;
  1313. padding-top: 20rpx;
  1314. border-radius: 12rpx;
  1315. }
  1316. .online-inquiry {
  1317. box-sizing: border-box;
  1318. width: 100%;
  1319. height: 170upx;
  1320. padding: 0 20upx;
  1321. margin-top: 20rpx;
  1322. // background: linear-gradient(180deg, rgba(255, 255, 255, 0.38) 62%, rgba(255, 255, 255, 0) 100%);
  1323. display: flex;
  1324. justify-content: space-between;
  1325. .item {
  1326. // width: 46.13%;
  1327. width: 346upx;
  1328. height: 190upx;
  1329. position: relative;
  1330. .bg-img,
  1331. .inner {
  1332. width: 100%;
  1333. height: 100%;
  1334. position: absolute;
  1335. top: 0;
  1336. left: 0;
  1337. z-index: 1;
  1338. border-radius: 12rpx;
  1339. }
  1340. .inner {
  1341. box-sizing: border-box;
  1342. z-index: 2;
  1343. display: flex;
  1344. flex-direction: column;
  1345. justify-content: center;
  1346. padding-left: 32upx;
  1347. .title {
  1348. font-size: 32upx;
  1349. line-height: 1;
  1350. font-family: PingFang SC;
  1351. font-weight: 500;
  1352. color: #111111;
  1353. margin-bottom: 20upx;
  1354. font-weight: bold;
  1355. }
  1356. .sub-title {
  1357. font-size: 24upx;
  1358. font-family: PingFang SC;
  1359. font-weight: 500;
  1360. color: #898E91;
  1361. }
  1362. image {
  1363. width: 80upx;
  1364. height: 90upx;
  1365. position: absolute;
  1366. right: 7upx;
  1367. bottom: 7upx;
  1368. }
  1369. }
  1370. }
  1371. }
  1372. .index-cont {
  1373. box-sizing: border-box;
  1374. // padding: 0 20upx 120rpx;
  1375. padding: 0 24upx 20upx;
  1376. .pub-item {
  1377. background: #FFFFFF;
  1378. border-radius: 16upx;
  1379. margin-bottom: 20upx;
  1380. .tabs {
  1381. width: 100%;
  1382. display: flex;
  1383. align-items: center;
  1384. justify-content: flex-start;
  1385. height: 110rpx;
  1386. background-color: #F0F3F4;
  1387. .tab {
  1388. height: 110rpx;
  1389. display: flex;
  1390. align-items: center;
  1391. justify-content: center;
  1392. position: relative;
  1393. flex: 1;
  1394. .img {
  1395. z-index: 1;
  1396. position: absolute;
  1397. top: 0rpx;
  1398. left: 0rpx;
  1399. width: 100%;
  1400. height: 100%;
  1401. }
  1402. .inner {
  1403. z-index: 2;
  1404. .title {
  1405. font-size: 32upx;
  1406. font-family: PingFang SC;
  1407. font-weight: bold;
  1408. color: #666666;
  1409. }
  1410. .active {
  1411. color: #0bb3f2;
  1412. }
  1413. }
  1414. }
  1415. }
  1416. .pub-title-box {
  1417. box-sizing: border-box;
  1418. padding: 36upx 30upx;
  1419. display: flex;
  1420. align-items: center;
  1421. justify-content: space-between;
  1422. .left {
  1423. font-size: 32upx;
  1424. line-height: 1;
  1425. font-family: PingFang SC;
  1426. font-weight: bold;
  1427. color: #111111;
  1428. }
  1429. .right {
  1430. display: flex;
  1431. align-items: center;
  1432. justify-content: center;
  1433. .text {
  1434. font-size: 24rpx;
  1435. line-height: 1;
  1436. font-family: PingFang SC;
  1437. font-weight: 500;
  1438. color: #999999;
  1439. margin-right: 10upx;
  1440. }
  1441. image {
  1442. width: 14upx;
  1443. height: 24upx;
  1444. }
  1445. }
  1446. }
  1447. .doc-tab-box {
  1448. padding: 14rpx 30rpx 0rpx 30rpx;
  1449. position: relative;
  1450. .tab-inner {
  1451. padding: 14upx 0 30upx;
  1452. display: flex;
  1453. overflow-x: auto;
  1454. }
  1455. .item {
  1456. font-size: 28upx;
  1457. white-space: nowrap;
  1458. line-height: 1;
  1459. font-family: PingFang SC;
  1460. font-weight: 500;
  1461. color: #666666;
  1462. margin-right: 40upx;
  1463. position: relative;
  1464. &:last-child {
  1465. margin-right: 0;
  1466. }
  1467. &.active {
  1468. font-weight: bold;
  1469. color: #333333;
  1470. }
  1471. &.cases {
  1472. margin-right: 60upx;
  1473. }
  1474. .text {
  1475. position: relative;
  1476. z-index: 1;
  1477. }
  1478. .tab-bg {
  1479. width: 72upx;
  1480. height: 28upx;
  1481. position: absolute;
  1482. top: 17upx;
  1483. left: 50%;
  1484. transform: translateX(-36upx);
  1485. z-index: -1;
  1486. }
  1487. }
  1488. .right-mask {
  1489. width: 56upx;
  1490. height: 34upx;
  1491. position: absolute;
  1492. top: 25upx;
  1493. right: 0upx;
  1494. z-index: 1;
  1495. }
  1496. }
  1497. .doc-list {
  1498. padding: 20upx;
  1499. .item {
  1500. box-sizing: border-box;
  1501. background: #FFFFFF;
  1502. // border-radius: 16upx;
  1503. display: flex;
  1504. border-bottom: 1px solid #F0F0F0;
  1505. margin-bottom: 30rpx;
  1506. .head-box {
  1507. width: 120upx;
  1508. height: 120upx;
  1509. background: #EDF1F4;
  1510. border-radius: 50%;
  1511. overflow: hidden;
  1512. margin-right: 30upx;
  1513. image {
  1514. width: 100%;
  1515. height: 100%;
  1516. }
  1517. }
  1518. .info {
  1519. width: calc(100% - 150upx);
  1520. .top {
  1521. display: flex;
  1522. align-items: center;
  1523. font-family: PingFang SC;
  1524. line-height: 1;
  1525. .name {
  1526. font-size: 34upx;
  1527. font-weight: bold;
  1528. color: #111111;
  1529. }
  1530. .line {
  1531. width: 1px;
  1532. height: 26upx;
  1533. background: #DDDDDD;
  1534. margin: 0 20upx;
  1535. }
  1536. .other {
  1537. font-size: 28upx;
  1538. font-weight: 500;
  1539. color: #333333;
  1540. }
  1541. }
  1542. .unit-box {
  1543. display: flex;
  1544. margin-top: 24upx;
  1545. .level {
  1546. padding: 0 10upx;
  1547. height: 30upx;
  1548. line-height: 30upx;
  1549. font-size: 22upx;
  1550. font-family: PingFang SC;
  1551. font-weight: 500;
  1552. color: #FFFFFF;
  1553. background: #0bb3f2;
  1554. border-radius: 10upx 4upx 10upx 4upx;
  1555. margin-right: 12upx;
  1556. }
  1557. .name {
  1558. font-size: 28upx;
  1559. font-family: PingFang SC;
  1560. font-weight: 500;
  1561. color: #333333;
  1562. line-height: 30upx;
  1563. }
  1564. }
  1565. .expertise {
  1566. font-size: 26upx;
  1567. font-family: PingFang SC;
  1568. font-weight: 500;
  1569. color: #666666;
  1570. line-height: 42upx;
  1571. margin: 22upx 0 26upx;
  1572. }
  1573. .rate-box {
  1574. display: flex;
  1575. align-items: center;
  1576. .star {
  1577. display: flex;
  1578. align-items: center;
  1579. image {
  1580. width: 22upx;
  1581. height: 22upx;
  1582. margin-right: 10upx;
  1583. }
  1584. text {
  1585. font-size: 26upx;
  1586. font-family: PingFang SC;
  1587. font-weight: bold;
  1588. color: #CEA764;
  1589. line-height: 1;
  1590. }
  1591. }
  1592. .line {
  1593. width: 1px;
  1594. height: 20upx;
  1595. background: #DDDDDD;
  1596. margin: 0 20upx;
  1597. }
  1598. .num-box {
  1599. display: flex;
  1600. align-items: center;
  1601. font-family: PingFang SC;
  1602. .label {
  1603. font-size: 24upx;
  1604. font-weight: 500;
  1605. color: #999999;
  1606. line-height: 1;
  1607. margin-right: 7px;
  1608. }
  1609. .num {
  1610. font-size: 26upx;
  1611. font-weight: bold;
  1612. color: #CEA764;
  1613. line-height: 1;
  1614. }
  1615. }
  1616. }
  1617. .price-box {
  1618. display: flex;
  1619. align-items: center;
  1620. margin-top: 38upx;
  1621. .btn-item {
  1622. display: flex;
  1623. align-items: center;
  1624. justify-content: center;
  1625. width: 164upx;
  1626. height: 56upx;
  1627. line-height: 56upx;
  1628. border: 1px solid rgba(43, 199, 185, 0.5);
  1629. border-radius: 28upx;
  1630. font-family: PingFang SC;
  1631. margin-right: 30upx;
  1632. &:last-child {
  1633. margin-right: 0;
  1634. }
  1635. .label {
  1636. font-size: 26upx;
  1637. font-weight: 500;
  1638. color: #0bb3f2;
  1639. margin-right: 5upx;
  1640. }
  1641. .num {
  1642. font-size: 28upx;
  1643. font-weight: bold;
  1644. color: #0bb3f2;
  1645. }
  1646. }
  1647. }
  1648. }
  1649. }
  1650. .item:last-child {
  1651. border-bottom: none;
  1652. margin-bottom: 0rpx;
  1653. }
  1654. .bottom-title {
  1655. height: 50rpx;
  1656. display: flex;
  1657. align-items: center;
  1658. justify-content: center;
  1659. font-size: 26rpx;
  1660. font-family: PingFang SC;
  1661. font-weight: bold;
  1662. color: #0bb3f2;
  1663. image {
  1664. margin-left: 8rpx;
  1665. width: 14rpx;
  1666. height: 24rpx;
  1667. }
  1668. }
  1669. }
  1670. // 医师团队
  1671. .doc-cont {
  1672. box-sizing: border-box;
  1673. padding: 0 30upx;
  1674. .inner {
  1675. padding: 4upx 0 40upx;
  1676. display: flex;
  1677. overflow-x: auto;
  1678. }
  1679. .item {
  1680. display: flex;
  1681. align-items: center;
  1682. flex-direction: column;
  1683. margin-right: 40upx;
  1684. &:last-child {
  1685. margin-right: 0;
  1686. }
  1687. .head-box {
  1688. width: 120upx;
  1689. height: 120upx;
  1690. background: #F2F5F9;
  1691. border-radius: 50%;
  1692. margin-bottom: 20upx;
  1693. overflow: hidden;
  1694. image {
  1695. width: 100%;
  1696. height: 100%;
  1697. }
  1698. }
  1699. .name {
  1700. max-width: 120upx;
  1701. font-size: 28upx;
  1702. line-height: 1;
  1703. font-family: PingFang SC;
  1704. font-weight: 500;
  1705. color: #111111;
  1706. margin-bottom: 16upx;
  1707. text-align: center;
  1708. }
  1709. .position {
  1710. max-width: 120upx;
  1711. font-size: 24upx;
  1712. line-height: 1;
  1713. font-family: PingFang SC;
  1714. font-weight: 500;
  1715. color: #999999;
  1716. text-align: center;
  1717. }
  1718. }
  1719. }
  1720. .inner {
  1721. padding: 0 30upx;
  1722. }
  1723. // 健康知识
  1724. .pub-tab-box {
  1725. position: relative;
  1726. .tab-inner {
  1727. padding: 14upx 0 30upx;
  1728. display: flex;
  1729. overflow-x: auto;
  1730. }
  1731. .item {
  1732. font-size: 28upx;
  1733. white-space: nowrap;
  1734. line-height: 1;
  1735. font-family: PingFang SC;
  1736. font-weight: 500;
  1737. color: #666666;
  1738. margin-right: 40upx;
  1739. position: relative;
  1740. &:last-child {
  1741. margin-right: 0;
  1742. }
  1743. &.active {
  1744. font-weight: bold;
  1745. color: #333333;
  1746. }
  1747. &.cases {
  1748. margin-right: 60upx;
  1749. }
  1750. .text {
  1751. position: relative;
  1752. z-index: 1;
  1753. }
  1754. .tab-bg {
  1755. width: 72upx;
  1756. height: 28upx;
  1757. position: absolute;
  1758. top: 17upx;
  1759. left: 50%;
  1760. transform: translateX(-36upx);
  1761. z-index: -1;
  1762. }
  1763. }
  1764. .right-mask {
  1765. width: 56upx;
  1766. height: 34upx;
  1767. position: absolute;
  1768. top: 14upx;
  1769. right: -30upx;
  1770. z-index: 1;
  1771. }
  1772. }
  1773. .know-list {
  1774. padding-right: 10upx;
  1775. .item {
  1776. padding: 30upx 0;
  1777. display: flex;
  1778. align-items: center;
  1779. justify-content: space-between;
  1780. border-bottom: 1px solid #F0F0F0;
  1781. &:last-child {
  1782. border-bottom: none;
  1783. }
  1784. .left {
  1785. flex: 1;
  1786. padding-right: 40upx;
  1787. height: 190upx;
  1788. display: flex;
  1789. flex-direction: column;
  1790. justify-content: space-between;
  1791. .title {
  1792. font-size: 32upx;
  1793. font-family: PingFang SC;
  1794. font-weight: 500;
  1795. color: #111111;
  1796. line-height: 48upx;
  1797. }
  1798. .info-box {
  1799. width: 100%;
  1800. display: flex;
  1801. align-items: center;
  1802. justify-content: space-between;
  1803. .readers {
  1804. display: flex;
  1805. align-items: center;
  1806. .head-box {
  1807. margin-right: 27upx;
  1808. display: flex;
  1809. align-items: center;
  1810. .head {
  1811. width: 48upx;
  1812. height: 48upx;
  1813. border-radius: 50%;
  1814. overflow: hidden;
  1815. box-shadow: 0 0 0 1px #fff;
  1816. margin-right: -10upx;
  1817. image {
  1818. width: 100%;
  1819. height: 100%;
  1820. }
  1821. }
  1822. }
  1823. .readings {
  1824. display: flex;
  1825. align-items: center;
  1826. .eye {
  1827. width: 26upx;
  1828. height: 20upx;
  1829. margin-right: 9upx;
  1830. }
  1831. .num {
  1832. font-size: 24upx;
  1833. font-family: PingFang SC;
  1834. font-weight: 500;
  1835. color: #999999;
  1836. line-height: 1;
  1837. }
  1838. }
  1839. }
  1840. .time {
  1841. font-size: 24upx;
  1842. line-height: 1;
  1843. font-family: PingFang SC;
  1844. font-weight: 500;
  1845. color: #999999;
  1846. }
  1847. }
  1848. }
  1849. .right {
  1850. width: 250upx;
  1851. height: 190upx;
  1852. border-radius: 8upx;
  1853. overflow: hidden;
  1854. image {
  1855. width: 100%;
  1856. height: 100%;
  1857. }
  1858. }
  1859. }
  1860. }
  1861. // 问诊案例
  1862. .cases-list {
  1863. padding-bottom: 10upx;
  1864. .item {
  1865. padding: 30upx 0;
  1866. border-bottom: 1px solid #F0F0F0;
  1867. &:last-child {
  1868. border-bottom: none;
  1869. }
  1870. .dec-text {
  1871. font-size: 32upx;
  1872. font-family: PingFang SC;
  1873. font-weight: bold;
  1874. color: #111111;
  1875. line-height: 48upx;
  1876. }
  1877. .images-box {
  1878. margin-top: 10upx;
  1879. display: flex;
  1880. flex-wrap: wrap;
  1881. .img-item {
  1882. width: 155upx;
  1883. height: 155upx;
  1884. background: #F5F5F5;
  1885. border-radius: 8upx;
  1886. margin: 0 10upx 10upx 0;
  1887. overflow: hidden;
  1888. image {
  1889. width: 48rpx;
  1890. height: 48rpx;
  1891. }
  1892. &:nth-child(4n) {
  1893. margin-right: 0;
  1894. }
  1895. }
  1896. }
  1897. .doc-info {
  1898. display: flex;
  1899. align-items: center;
  1900. margin: 30upx 0 20upx;
  1901. .head {
  1902. width: 60upx;
  1903. height: 60upx;
  1904. background: #F2F5F9;
  1905. border-radius: 50%;
  1906. margin-right: 20upx;
  1907. overflow: hidden;
  1908. image {
  1909. width: 100%;
  1910. height: 100%;
  1911. }
  1912. }
  1913. .name {
  1914. font-size: 28upx;
  1915. line-height: 1;
  1916. font-family: PingFang SC;
  1917. font-weight: 500;
  1918. color: #111111;
  1919. }
  1920. .line {
  1921. width: 1px;
  1922. height: 22upx;
  1923. background: #DDDDDD;
  1924. margin: 0 16upx;
  1925. }
  1926. .posit,
  1927. .address {
  1928. font-size: 26upx;
  1929. font-family: PingFang SC;
  1930. font-weight: 500;
  1931. color: #999999;
  1932. }
  1933. }
  1934. .answer-box {
  1935. width: 100%;
  1936. // height: 117upx;
  1937. background: #F5F7F7;
  1938. border-radius: 10upx;
  1939. display: flex;
  1940. flex-direction: column;
  1941. justify-content: center;
  1942. .text-inner {
  1943. // height: 84upx;
  1944. font-size: 28upx;
  1945. font-family: PingFang SC;
  1946. font-weight: 500;
  1947. color: #666666;
  1948. line-height: 42upx;
  1949. padding: 15upx;
  1950. }
  1951. }
  1952. .read-box {
  1953. margin-top: 30upx;
  1954. display: flex;
  1955. align-items: center;
  1956. justify-content: flex-end;
  1957. image {
  1958. width: 24upx;
  1959. height: 19upx;
  1960. margin-right: 10upx;
  1961. }
  1962. .text {
  1963. font-size: 24upx;
  1964. font-family: PingFang SC;
  1965. font-weight: 500;
  1966. color: #999999;
  1967. }
  1968. }
  1969. }
  1970. }
  1971. }
  1972. // 精选药品
  1973. .feat-title {
  1974. margin-top: 30upx;
  1975. padding: 10upx 0 33upx;
  1976. display: flex;
  1977. align-items: center;
  1978. justify-content: center;
  1979. image {
  1980. width: 37upx;
  1981. height: 37upx;
  1982. margin: 0upx 20upx;
  1983. }
  1984. text {
  1985. font-size: 36upx;
  1986. line-height: 1;
  1987. font-family: PingFang SC;
  1988. font-weight: bold;
  1989. color: #111111;
  1990. }
  1991. }
  1992. .drug-list {
  1993. display: flex;
  1994. flex-wrap: wrap;
  1995. // margin-bottom: 20upx;
  1996. .item {
  1997. margin-right: 20rpx;
  1998. margin-bottom: 20rpx;
  1999. width: 345rpx;
  2000. background: #FFFFFF;
  2001. box-shadow: 0px 0px 10rpx 4rpx rgba(199, 199, 199, 0.22);
  2002. border-radius: 20rpx;
  2003. overflow: hidden;
  2004. &:nth-child(2n) {
  2005. margin-right: 0;
  2006. }
  2007. .img-box {
  2008. width: 100%;
  2009. height: 334upx;
  2010. image {
  2011. width: 100%;
  2012. height: 100%;
  2013. }
  2014. }
  2015. .info-box {
  2016. box-sizing: border-box;
  2017. height: 182upx;
  2018. padding: 20upx;
  2019. .title {
  2020. height: 80upx;
  2021. font-size: 26upx;
  2022. font-family: PingFang SC;
  2023. font-weight: 500;
  2024. color: #111111;
  2025. line-height: 40upx;
  2026. }
  2027. .price-box {
  2028. display: flex;
  2029. align-items: center;
  2030. margin-top: 20upx;
  2031. .now {
  2032. color: #FF6633;
  2033. display: flex;
  2034. align-items: flex-end;
  2035. margin-right: 20upx;
  2036. font-family: PingFang SC;
  2037. .unit {
  2038. font-size: 24upx;
  2039. line-height: 1.4;
  2040. margin-right: 4upx;
  2041. }
  2042. .num {
  2043. font-size: 36upx;
  2044. font-weight: bold;
  2045. line-height: 1;
  2046. }
  2047. }
  2048. .old {
  2049. font-size: 26upx;
  2050. font-family: PingFang SC;
  2051. text-decoration: line-through;
  2052. color: #BBBBBB;
  2053. line-height: 1;
  2054. }
  2055. }
  2056. }
  2057. }
  2058. }
  2059. }
  2060. .modules {
  2061. .module {
  2062. .depts {
  2063. z-index: 101;
  2064. margin: 40rpx 24rpx 0rpx;
  2065. padding: 30rpx 0;
  2066. background-color: #fff;
  2067. border-radius: 16rpx;
  2068. .title {
  2069. margin-left: 32rpx;
  2070. font-family: PingFang SC;
  2071. font-weight: 600;
  2072. font-size: 34rpx;
  2073. color: #222426;
  2074. }
  2075. .dept-box {
  2076. margin-top: 22rpx;
  2077. display: flex;
  2078. align-items: center;
  2079. justify-content: flex-start;
  2080. flex-wrap: wrap;
  2081. .dept {
  2082. width: 25%;
  2083. display: flex;
  2084. flex-direction: column;
  2085. align-items: center;
  2086. justify-content: center;
  2087. padding: 14rpx 0;
  2088. .icon {
  2089. width: 58rpx;
  2090. height: 58rpx;
  2091. }
  2092. .title {
  2093. margin-left: 0;
  2094. margin-top: 10rpx;
  2095. font-size: 24upx;
  2096. font-family: PingFang SC;
  2097. font-weight: 500;
  2098. color: #111111;
  2099. }
  2100. }
  2101. }
  2102. }
  2103. .doctor-articles {
  2104. z-index: 101;
  2105. margin: 20rpx 24rpx 0rpx;
  2106. padding: 32rpx;
  2107. background-color: #fff;
  2108. border-radius: 16rpx;
  2109. .title-box {
  2110. display: flex;
  2111. flex-direction: row;
  2112. align-items: center;
  2113. justify-content: space-between;
  2114. .title {
  2115. font-size: 32upx;
  2116. font-family: PingFang SC;
  2117. font-weight: bold;
  2118. color: #111111;
  2119. }
  2120. .more {
  2121. display: flex;
  2122. align-items: center;
  2123. justify-content: flex-end;
  2124. .text {
  2125. font-size: 24rpx;
  2126. font-family: PingFang SC;
  2127. color: #9B9B9B;
  2128. }
  2129. image {
  2130. // margin-left: 10rpx;
  2131. width: 48rpx;
  2132. height: 48rpx;
  2133. }
  2134. }
  2135. }
  2136. .article-box {
  2137. padding: 32rpx 0rpx;
  2138. overflow-x: auto;
  2139. box-sizing: border-box;
  2140. display: flex;
  2141. align-items: center;
  2142. justify-content: flex-start;
  2143. .article {
  2144. width: 300rpx;
  2145. margin-right: 20rpx;
  2146. // background: #f9f8fe;
  2147. display: flex;
  2148. flex-direction: column;
  2149. align-items: flex-start;
  2150. justify-content: flex-start;
  2151. &:last-child {
  2152. margin-right: 0rpx;
  2153. }
  2154. .image-box {
  2155. width: 300rpx;
  2156. height: 400rpx;
  2157. position: relative;
  2158. border-radius: 20rpx;
  2159. image {
  2160. border-radius: 20rpx;
  2161. width: 300rpx;
  2162. height: 400rpx;
  2163. }
  2164. .views {
  2165. position: absolute;
  2166. top: 0rpx;
  2167. left: 0rpx;
  2168. padding: 4rpx 12rpx;
  2169. background: rgba(0, 0, 0, 0.25);
  2170. border-radius: 12rpx 0rpx 12rpx 0rpx;
  2171. opacity: 1;
  2172. font-weight: 400;
  2173. font-size: 20rpx;
  2174. color: #FFFFFF;
  2175. font-family: PingFang SC-Bold, PingFang SC;
  2176. }
  2177. .doctor {
  2178. margin: 10rpx;
  2179. display: flex;
  2180. align-items: center;
  2181. justify-content: flex-start;
  2182. position: absolute;
  2183. bottom: 0rpx;
  2184. left: 0rpx;
  2185. image {
  2186. border-radius: 50%;
  2187. width: 64rpx;
  2188. height: 64rpx;
  2189. }
  2190. .right {
  2191. width: 200rpx;
  2192. margin-left: 10rpx;
  2193. display: flex;
  2194. flex-direction: column;
  2195. align-items: flex-start;
  2196. justify-content: space-between;
  2197. .doc-name {
  2198. width: 200rpx;
  2199. font-size: 30rpx;
  2200. font-weight: bold;
  2201. font-family: PingFang SC;
  2202. color: #fff;
  2203. }
  2204. .doc-position {
  2205. width: 100%;
  2206. font-size: 28rpx;
  2207. font-family: PingFang SC;
  2208. color: #fff;
  2209. font-weight: bold;
  2210. opacity: 0.8;
  2211. }
  2212. }
  2213. }
  2214. }
  2215. .article-title-box {
  2216. width: 100%;
  2217. margin-top: 10rpx;
  2218. display: flex;
  2219. align-items: center;
  2220. justify-content: flex-start;
  2221. height: 80upx;
  2222. .article-title {
  2223. font-size: 30rpx;
  2224. // font-weight: bold;
  2225. font-family: PingFang SC;
  2226. color: #2A2B2E;
  2227. }
  2228. }
  2229. }
  2230. }
  2231. }
  2232. .doctors {
  2233. z-index: 101;
  2234. margin: 20rpx 15rpx;
  2235. padding: 20rpx;
  2236. box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  2237. background-color: #fff;
  2238. border-radius: 15rpx;
  2239. .title-box {
  2240. display: flex;
  2241. flex-direction: row;
  2242. align-items: center;
  2243. justify-content: space-between;
  2244. .title {
  2245. font-size: 32upx;
  2246. font-family: PingFang SC;
  2247. font-weight: bold;
  2248. color: #111111;
  2249. }
  2250. .more {
  2251. display: flex;
  2252. align-items: center;
  2253. justify-content: flex-end;
  2254. .text {
  2255. font-size: 24rpx;
  2256. font-family: PingFang SC;
  2257. color: #898E91;
  2258. }
  2259. image {
  2260. margin-left: 10rpx;
  2261. width: 15rpx;
  2262. height: 20rpx;
  2263. }
  2264. }
  2265. }
  2266. }
  2267. .articles {
  2268. z-index: 101;
  2269. // margin: 20rpx 15rpx;
  2270. margin: 20rpx 24rpx 0rpx;
  2271. padding: 32rpx;
  2272. // box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  2273. background-color: #fff;
  2274. border-radius: 16rpx;
  2275. .title-box {
  2276. display: flex;
  2277. flex-direction: row;
  2278. align-items: center;
  2279. justify-content: space-between;
  2280. .title {
  2281. font-size: 32upx;
  2282. font-family: PingFang SC;
  2283. font-weight: bold;
  2284. color: #111111;
  2285. }
  2286. .more {
  2287. display: flex;
  2288. align-items: center;
  2289. justify-content: flex-end;
  2290. .text {
  2291. font-size: 24rpx;
  2292. font-family: PingFang SC;
  2293. color:#898E91;
  2294. // width: calc(100% - 556rpx);
  2295. }
  2296. image {
  2297. // margin-left: 10rpx;
  2298. width: 48rpx;
  2299. height: 48rpx;
  2300. }
  2301. }
  2302. }
  2303. .article-box {
  2304. margin-top: 15rpx;
  2305. padding: 20rpx 0rpx 0rpx;
  2306. display: flex;
  2307. flex-direction: column;
  2308. align-items: flex-start;
  2309. justify-content: flex-start;
  2310. .item {
  2311. width: 100%;
  2312. margin-bottom: 32rpx;
  2313. display: flex;
  2314. align-items: flex-start;
  2315. justify-content: flex-start;
  2316. border-bottom: 1px solid #ECECEC;
  2317. padding-bottom: 32rpx;
  2318. &:last-child {
  2319. margin-bottom: 0rpx;
  2320. border-bottom: 0;
  2321. }
  2322. .left {
  2323. flex: 1;
  2324. height: 160rpx;
  2325. margin-right: 30rpx;
  2326. display: flex;
  2327. flex-direction: column;
  2328. align-items: flex-start;
  2329. justify-content: space-between;
  2330. width: calc(100% - 260upx);
  2331. .title {
  2332. width: 100%;
  2333. font-size: 28upx;
  2334. font-family: PingFang SC;
  2335. font-weight: bold;
  2336. color: #111111;
  2337. }
  2338. .txt {
  2339. font-family: PingFang SC, PingFang SC;
  2340. font-size: 26rpx;
  2341. color: #898E91;
  2342. }
  2343. .views {
  2344. font-size: 24upx;
  2345. font-family: PingFang SC;
  2346. color: #B2B2B2;
  2347. }
  2348. }
  2349. .right {
  2350. image {
  2351. border-radius: 10rpx;
  2352. width: 220rpx;
  2353. height: 160rpx;
  2354. // border: 1px solid #eeeeee;
  2355. }
  2356. }
  2357. }
  2358. }
  2359. }
  2360. .packages {
  2361. z-index: 101;
  2362. margin: 20rpx 15rpx;
  2363. padding: 20rpx;
  2364. box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  2365. background-color: #fff;
  2366. border-radius: 15rpx;
  2367. .title-box {
  2368. display: flex;
  2369. flex-direction: row;
  2370. align-items: center;
  2371. justify-content: space-between;
  2372. .title {
  2373. font-size: 32upx;
  2374. font-family: PingFang SC;
  2375. font-weight: bold;
  2376. color: #111111;
  2377. }
  2378. .more {
  2379. display: flex;
  2380. align-items: center;
  2381. justify-content: flex-end;
  2382. .text {
  2383. font-size: 24rpx;
  2384. font-family: PingFang SC;
  2385. color: #9B9B9B;
  2386. }
  2387. image {
  2388. margin-left: 10rpx;
  2389. width: 15rpx;
  2390. height: 20rpx;
  2391. }
  2392. }
  2393. }
  2394. .package-box {
  2395. padding: 20rpx 0rpx 0rpx;
  2396. display: flex;
  2397. align-items: flex-start;
  2398. justify-content: flex-start;
  2399. flex-wrap: wrap;
  2400. .item {
  2401. width: calc(50% - 20rpx);
  2402. border-radius: 15rpx;
  2403. margin: 10rpx;
  2404. display: flex;
  2405. flex-direction: column;
  2406. align-items: flex-start;
  2407. justify-content: flex-start;
  2408. &:last-child {}
  2409. .top {
  2410. width: 100%;
  2411. height: 300rpx;
  2412. image {
  2413. border-radius: 15rpx 15rpx 0rpx 0rpx;
  2414. width: 100%;
  2415. height: 300rpx;
  2416. }
  2417. }
  2418. .bottom {
  2419. width: 100%;
  2420. margin-top: 15rpx;
  2421. .title {
  2422. font-weight: bold;
  2423. font-size: 28upx;
  2424. font-family: PingFang SC;
  2425. color: #111111;
  2426. }
  2427. .price-box {
  2428. margin-top: 10rpx;
  2429. display: flex;
  2430. align-items: center;
  2431. justify-content: space-between;
  2432. width: 100%;
  2433. .price {
  2434. padding: 5rpx 10rpx;
  2435. background-color: #0bb3f2;
  2436. border-radius: 30rpx;
  2437. font-size: 20upx;
  2438. font-family: PingFang SC;
  2439. color: #ffffff;
  2440. }
  2441. .count {
  2442. font-size: 24upx;
  2443. font-family: PingFang SC;
  2444. color: #333333;
  2445. }
  2446. }
  2447. }
  2448. }
  2449. }
  2450. }
  2451. }
  2452. }
  2453. }
  2454. .official-account {
  2455. box-sizing: border-box;
  2456. width: 100%;
  2457. height: 100upx;
  2458. position: fixed;
  2459. bottom: 30upx;
  2460. z-index: 99;
  2461. padding: 0 20upx 180rpx 20upx;
  2462. }
  2463. // 消息
  2464. .message-box {
  2465. box-sizing: border-box;
  2466. width: 100%;
  2467. height: 84upx;
  2468. background: #F3FFFD;
  2469. border: 1px solid #C7E9E5;
  2470. box-shadow: 0px 4upx 12upx 0px rgba(90, 203, 138, 0.16);
  2471. border-radius: 16upx;
  2472. position: fixed;
  2473. left: 50%;
  2474. transform: translateX(-50%);
  2475. bottom: 30upx;
  2476. z-index: 99;
  2477. display: flex;
  2478. align-items: center;
  2479. justify-content: space-between;
  2480. padding: 0 20upx 0 30upx;
  2481. .left {
  2482. flex: 1;
  2483. display: flex;
  2484. align-items: center;
  2485. image {
  2486. width: 24upx;
  2487. height: 24upx;
  2488. margin-right: 18upx;
  2489. }
  2490. .text {
  2491. width: 90%;
  2492. font-size: 28upx;
  2493. font-family: PingFang SC;
  2494. font-weight: 500;
  2495. color: #0bb3f2;
  2496. }
  2497. }
  2498. .btn {
  2499. width: 100upx;
  2500. height: 48upx;
  2501. line-height: 48upx;
  2502. text-align: center;
  2503. font-size: 24upx;
  2504. font-family: PingFang SC;
  2505. font-weight: 500;
  2506. color: #FFFFFF;
  2507. border: 1px solid #D2E6FF;
  2508. background: linear-gradient(135deg, #66b2ef 0%, #0bb3f2 100%);
  2509. border-radius: 24upx;
  2510. margin-left: 30upx;
  2511. }
  2512. }
  2513. .contact-btn {
  2514. display: inline-block;
  2515. position: absolute;
  2516. top: 0;
  2517. left: 0;
  2518. width: 100%;
  2519. height: 100%;
  2520. opacity: 0;
  2521. }
  2522. .popup-box {
  2523. position: fixed;
  2524. top: 0;
  2525. right: 0;
  2526. left: 0;
  2527. bottom: 0;
  2528. z-index: 999;
  2529. display: flex;
  2530. justify-content: center;
  2531. align-items: center;
  2532. .info-mask {
  2533. position: fixed;
  2534. top: 0;
  2535. right: 0;
  2536. bottom: 0;
  2537. left: 0;
  2538. background-color: rgba($color: #000000, $alpha: 0.5);
  2539. z-index: 999;
  2540. }
  2541. .info-form {
  2542. z-index: 1000;
  2543. width: 450rpx;
  2544. display: flex;
  2545. flex-direction: column;
  2546. justify-content: center;
  2547. align-items: center;
  2548. position: relative;
  2549. image {
  2550. width: 100%;
  2551. }
  2552. }
  2553. }
  2554. </style>