index.vue 63 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822
  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. if (e.inputText == null || e.inputText == "") {
  745. uni.showToast({
  746. icon: 'none',
  747. title: "请输入邀请码",
  748. });
  749. return;
  750. }
  751. var data = {
  752. userCode: e.inputText
  753. };
  754. bindPromoter(data).then(
  755. res => {
  756. if (res.code == 200) {
  757. uni.showToast({
  758. icon: 'none',
  759. title: res.msg,
  760. });
  761. this.tuiModalControl = false
  762. } else {
  763. uni.showToast({
  764. icon: 'none',
  765. title: res.msg,
  766. });
  767. }
  768. },
  769. rej => {}
  770. );
  771. },
  772. bindload: function(detail) {},
  773. binderror: function(detail) {},
  774. closeActivity() {
  775. this.activityShow = false;
  776. // uni.setStorageSync(this.activity.activityId,null);
  777. },
  778. getStoreActivity() {
  779. let data = {}
  780. getStoreActivity(data).then(res => {
  781. this.activity = res.activity;
  782. if (this.activity != null) {
  783. // if(uni.getStorageSync(this.activity.activityId)!=null)
  784. // {
  785. // uni.setStorageSync(this.activity.activityId,1);
  786. // this.activityShow=true;
  787. // }
  788. // else{
  789. // this.activityShow=false;
  790. // }
  791. this.activityShow = true;
  792. } else {
  793. this.activityShow = false;
  794. }
  795. })
  796. },
  797. showActivity() {
  798. this.activityShow = false;
  799. uni.navigateTo({
  800. url: '/pages_shopping/shopping/activityDetails?activityId=' + this.activity.activityId
  801. })
  802. },
  803. menuClick(item) {
  804. if (item.linkType == 1) {
  805. if (item.linkUrl == "/pages/shopping/index") {
  806. uni.switchTab({
  807. url: item.linkUrl
  808. })
  809. } else if (item.linkUrl == "/pages/healthy/index") {
  810. uni.switchTab({
  811. url: item.linkUrl
  812. })
  813. } else {
  814. uni.navigateTo({
  815. url: item.linkUrl
  816. })
  817. }
  818. } else if (item.linkType == 0) {
  819. uni.showToast({
  820. icon: 'none',
  821. title: "开发中...",
  822. });
  823. }
  824. },
  825. goDev() {
  826. uni.showToast({
  827. icon: 'none',
  828. title: "开发中...",
  829. });
  830. },
  831. //养生讲堂等直播tab
  832. selectlivetab(item) {
  833. // console.log('item', item);
  834. },
  835. // 健康案例分享等文章tab
  836. selectarticletab(item) {
  837. // console.log('item', item);
  838. },
  839. handleAdvClick(item) {
  840. console.log(item);
  841. if (item.showType == 1) {
  842. uni.setStorageSync('url', item.advUrl);
  843. uni.navigateTo({
  844. url: "h5"
  845. })
  846. } else if (item.showType == 2) {
  847. uni.navigateTo({
  848. url: item.advUrl
  849. })
  850. } else if (item.showType == 3) {
  851. uni.setStorageSync('content', item.content);
  852. uni.navigateTo({
  853. url: "content"
  854. })
  855. }
  856. },
  857. deptChange(item) {
  858. this.deptId = item.departmentId;
  859. this.getTuiDoctor();
  860. },
  861. getMenu() {
  862. getMenu().then(res => {
  863. console.log(res)
  864. if (res.code == 200) {
  865. this.menus = res.data
  866. } else {
  867. }
  868. });
  869. },
  870. getCanvas() {
  871. getCanvas().then(res => {
  872. if (res.code == 200) {
  873. console.log(res.data)
  874. this.canvas = JSON.parse(res.data.json)
  875. }
  876. });
  877. },
  878. getDepartmentList() {
  879. this.depts = [];
  880. getDepartmentList().then(res => {
  881. if (res.code == 200) {
  882. var allDept = {
  883. departmentId: 0,
  884. departmentName: "全部"
  885. }
  886. this.depts.push(allDept);
  887. this.depts = this.depts.concat(res.data);
  888. } else {
  889. uni.showToast({
  890. icon: 'none',
  891. title: "请求失败",
  892. });
  893. }
  894. });
  895. },
  896. getTuiDoctor() {
  897. let data = {
  898. departmentId: this.deptId,
  899. doctorType: this.docTab
  900. };
  901. getTuiDoctor(data).then(
  902. res => {
  903. if (res.code == 200) {
  904. this.doctorList = res.data;
  905. } else {
  906. uni.showToast({
  907. icon: 'none',
  908. title: "请求失败",
  909. });
  910. }
  911. },
  912. rej => {}
  913. );
  914. },
  915. docTabChange(val) {
  916. if (val == 1) {
  917. this.allDoctorTitle = "全部医师"
  918. }
  919. if (val == 2) {
  920. this.allDoctorTitle = "全部药师"
  921. }
  922. if (val == 3) {
  923. this.allDoctorTitle = "全部营养师"
  924. }
  925. this.docTab = val;
  926. this.getTuiDoctor();
  927. },
  928. showImg(urls) {
  929. var imgArr = urls.split(',');
  930. //预览图片
  931. uni.previewImage({
  932. urls: imgArr,
  933. current: imgArr[0]
  934. });
  935. },
  936. getStoreConfig() {
  937. getStoreConfig().then(
  938. res => {
  939. if (res.code == 200) {
  940. uni.setStorageSync('config', JSON.stringify(res.data));
  941. }
  942. },
  943. rej => {}
  944. );
  945. },
  946. goAuthUrl(url) {
  947. this.utils.isLogin().then(res => {
  948. if (res) {
  949. uni.navigateTo({
  950. url: url
  951. })
  952. }
  953. })
  954. },
  955. // 跳转页面
  956. navTo(url) {
  957. uni.navigateTo({
  958. url: url
  959. })
  960. },
  961. getLocation() {
  962. var that = this;
  963. uni.authorize({
  964. scope: 'scope.userLocation',
  965. success() {
  966. uni.getLocation({
  967. type: 'gcj02', //腾讯地图使用gcj02获取位置坐标
  968. success: function(res) {
  969. uni.setStorageSync('isLocation', 1);
  970. uni.setStorageSync('lng', res.longitude);
  971. uni.setStorageSync('lat', res.latitude);
  972. },
  973. })
  974. },
  975. fail(err) {
  976. console.log(err)
  977. }
  978. })
  979. },
  980. getIndexData() {
  981. let data = {};
  982. getIndexData(data).then(
  983. res => {
  984. if (res.code == 200) {
  985. this.advList = res.data.advList;
  986. this.articleCateList = res.data.articleCateList;
  987. if (this.articleCateList != null && this.articleCateList.length > 0) {
  988. this.cateId = this.articleCateList[0].cateId;
  989. this.getTuiArticle()
  990. }
  991. this.tuiProductList = res.data.tuiProductList
  992. this.newProductList = res.data.newProductList
  993. this.hotProductList = res.data.hotProductList
  994. } else {
  995. uni.showToast({
  996. icon: 'none',
  997. title: "请求失败",
  998. });
  999. }
  1000. },
  1001. rej => {}
  1002. );
  1003. },
  1004. getCartCount() {
  1005. this.utils.isLogin().then(res => {
  1006. if (res) {
  1007. getCartCount().then(
  1008. cartRes => {
  1009. if (cartRes.code == 200) {
  1010. this.cartCount = cartRes.data;
  1011. }
  1012. },
  1013. rej => {}
  1014. );
  1015. }
  1016. })
  1017. },
  1018. getTuiArticle() {
  1019. let data = {
  1020. cateId: this.cateId
  1021. };
  1022. getTuiArticle(data).then(
  1023. res => {
  1024. if (res.code == 200) {
  1025. this.articleList = res.data;
  1026. } else {
  1027. uni.showToast({
  1028. icon: 'none',
  1029. title: "请求失败",
  1030. });
  1031. }
  1032. },
  1033. rej => {}
  1034. );
  1035. },
  1036. getTuiDoctorOrder() {
  1037. let data = {
  1038. orderType: this.orderType
  1039. };
  1040. getTuiDoctorOrder(data).then(
  1041. res => {
  1042. if (res.code == 200) {
  1043. this.doctorOrderList = res.data;
  1044. } else {
  1045. uni.showToast({
  1046. icon: 'none',
  1047. title: "请求失败",
  1048. });
  1049. }
  1050. },
  1051. rej => {}
  1052. );
  1053. },
  1054. showArticle(item) {
  1055. uni.navigateTo({
  1056. url: '../healthy/detail?articleId=' + item.articleId
  1057. })
  1058. },
  1059. showProduct(item) {
  1060. uni.navigateTo({
  1061. url: '../shopping/productDetails?productId=' + item.productId
  1062. })
  1063. },
  1064. // 顶部搜索
  1065. toSearch() {
  1066. uni.navigateTo({
  1067. url: './productSearch'
  1068. })
  1069. },
  1070. // 健康知识选中
  1071. articleCateChange(item) {
  1072. this.cateId = item.cateId;
  1073. this.getTuiArticle();
  1074. },
  1075. // 问诊案例选中
  1076. orderTypeChange(item) {
  1077. this.orderType = item.id;
  1078. console.log(this.orderType)
  1079. this.getTuiDoctorOrder();
  1080. },
  1081. // 关闭限时消息
  1082. closeMsg() {
  1083. this.messageShow = false
  1084. },
  1085. // 查看全部
  1086. viewAll(url) {
  1087. uni.navigateTo({
  1088. url: '/pages/home/' + url,
  1089. });
  1090. },
  1091. shopDoctor(item) {
  1092. console.log(item);
  1093. uni.navigateTo({
  1094. url: "/pages_doctor/doctorDetail?doctorId=" + item.doctorId
  1095. })
  1096. },
  1097. switchTo(url) {
  1098. uni.switchTab({
  1099. url: url
  1100. })
  1101. return
  1102. },
  1103. yangshengClick(item) {
  1104. if (item.page == "") {
  1105. uni.showToast({
  1106. icon: "none",
  1107. title: '暂无更多'
  1108. })
  1109. return;
  1110. }
  1111. uni.navigateTo({
  1112. url: item.page
  1113. })
  1114. },
  1115. // 在线问诊
  1116. openIm() {
  1117. uni.navigateTo({
  1118. url: '/pages_doctor/doctorOrderIM?orderId=10'
  1119. })
  1120. },
  1121. getDoctorArticleList() {
  1122. //联网加载数据
  1123. var that = this;
  1124. var data = {
  1125. pageNum: 1,
  1126. pageSize: 10
  1127. };
  1128. getDoctorArticleList(data).then(res => {
  1129. if (res.code == 200) {
  1130. this.doctocArticles = res.data.list;
  1131. }
  1132. });
  1133. },
  1134. getArticleList() {
  1135. //联网加载数据
  1136. var that = this;
  1137. var data = {
  1138. isTui: 1,
  1139. pageNum: 1,
  1140. pageSize: 10,
  1141. };
  1142. getArticleList(data).then(res => {
  1143. if (res.code == 200) {
  1144. this.articles = res.data.list;
  1145. } else {
  1146. uni.showToast({
  1147. icon: 'none',
  1148. title: "请求失败",
  1149. });
  1150. }
  1151. });
  1152. },
  1153. }
  1154. }
  1155. </script>
  1156. <style lang="scss">
  1157. .ellipsis1 {
  1158. overflow: hidden;
  1159. text-overflow: ellipsis;
  1160. white-space: nowrap;
  1161. }
  1162. .fixed-top-box {
  1163. width: 100%;
  1164. position: fixed;
  1165. top: 0;
  1166. left: 0;
  1167. z-index: 1000;
  1168. transition: all 0.5s;
  1169. background-color: #0bb3f2;
  1170. &.show-back {
  1171. // background: linear-gradient(135deg, #66b2ef 0%, #0bb3f2 100%);
  1172. }
  1173. .status_bar {
  1174. width: 100%;
  1175. }
  1176. }
  1177. .content {
  1178. width: 100%;
  1179. background: #EFF3F7;
  1180. position: relative;
  1181. .bg {
  1182. width: 100%;
  1183. height: 380rpx;
  1184. position: absolute;
  1185. top: 0;
  1186. left: 0;
  1187. }
  1188. .top-inner {
  1189. width: 100%;
  1190. position: absolute;
  1191. top: 0;
  1192. left: 0;
  1193. z-index: 5;
  1194. .top-title {
  1195. height: 88upx;
  1196. line-height: 88upx;
  1197. display: flex;
  1198. align-items: center;
  1199. justify-content: flex-start;
  1200. .name {
  1201. font-size: 42upx;
  1202. font-family: Source Han Sans CN;
  1203. font-weight: bold;
  1204. color: #FFFFFF;
  1205. padding-left: 41upx;
  1206. }
  1207. .dot {
  1208. margin: 0upx 10upx;
  1209. font-size: 28upx;
  1210. color: #FFFFFF;
  1211. opacity: 0.5;
  1212. }
  1213. .sub-name {
  1214. font-size: 30upx;
  1215. font-family: Source Han Sans CN;
  1216. color: #FFFFFF;
  1217. }
  1218. }
  1219. .func-cont {
  1220. box-sizing: border-box;
  1221. display: flex;
  1222. align-items: center;
  1223. padding: 30upx 20upx 30upx 20upx;
  1224. .search-cont {
  1225. box-sizing: border-box;
  1226. display: flex;
  1227. align-items: center;
  1228. width: 552upx;
  1229. height: 72upx;
  1230. background: #FFFFFF;
  1231. border-radius: 36upx;
  1232. padding: 0 30upx;
  1233. .icon-search {
  1234. width: 28upx;
  1235. height: 28upx;
  1236. margin-right: 20upx;
  1237. }
  1238. input {
  1239. height: 60upx;
  1240. line-height: 60upx;
  1241. flex: 1;
  1242. }
  1243. }
  1244. ;
  1245. ;
  1246. v-deep.uni-badge {
  1247. border: none;
  1248. background-color: #FF3636;
  1249. font-family: Roboto;
  1250. }
  1251. .img-item {
  1252. width: 44upx;
  1253. height: 44upx;
  1254. margin-left: 30upx;
  1255. image {
  1256. width: 100%;
  1257. height: 100%;
  1258. }
  1259. }
  1260. }
  1261. .tips {
  1262. margin: 0upx 20rpx 30rpx;
  1263. height: 40upx;
  1264. line-height: 40upx;
  1265. display: flex;
  1266. justify-content: space-between;
  1267. align-items: center;
  1268. .left {
  1269. font-size: 30upx;
  1270. color: #FFFFFF;
  1271. }
  1272. .right {
  1273. padding: 5upx 20rpx;
  1274. font-size: 24upx;
  1275. color: #FFFFFF;
  1276. background-color: #0bb3f2;
  1277. border-radius: 50rpx;
  1278. }
  1279. }
  1280. }
  1281. .banner-box {
  1282. display: flex;
  1283. align-items: center;
  1284. justify-content: center;
  1285. width: 100%;
  1286. .inner {
  1287. width: 702rpx;
  1288. height: 228rpx;
  1289. border-radius: 10upx;
  1290. overflow: hidden;
  1291. .swiper,
  1292. .swiper-item,
  1293. .swiper-item image {
  1294. width: 702rpx;
  1295. height: 228rpx;
  1296. }
  1297. }
  1298. }
  1299. .menu-content {
  1300. border-radius: 16rpx 16rpx 16rpx 16rpx;
  1301. margin: 20rpx 24rpx;
  1302. overflow: hidden;
  1303. padding: 30upx 0;
  1304. background-color: #ffffff;
  1305. }
  1306. .menu-box {
  1307. display: flex;
  1308. align-items: center;
  1309. background-color: #FFFFFF;
  1310. padding-top: 20rpx;
  1311. border-radius: 12rpx;
  1312. }
  1313. .online-inquiry {
  1314. box-sizing: border-box;
  1315. width: 100%;
  1316. height: 170upx;
  1317. padding: 0 20upx;
  1318. margin-top: 20rpx;
  1319. // background: linear-gradient(180deg, rgba(255, 255, 255, 0.38) 62%, rgba(255, 255, 255, 0) 100%);
  1320. display: flex;
  1321. justify-content: space-between;
  1322. .item {
  1323. // width: 46.13%;
  1324. width: 346upx;
  1325. height: 190upx;
  1326. position: relative;
  1327. .bg-img,
  1328. .inner {
  1329. width: 100%;
  1330. height: 100%;
  1331. position: absolute;
  1332. top: 0;
  1333. left: 0;
  1334. z-index: 1;
  1335. border-radius: 12rpx;
  1336. }
  1337. .inner {
  1338. box-sizing: border-box;
  1339. z-index: 2;
  1340. display: flex;
  1341. flex-direction: column;
  1342. justify-content: center;
  1343. padding-left: 32upx;
  1344. .title {
  1345. font-size: 32upx;
  1346. line-height: 1;
  1347. font-family: PingFang SC;
  1348. font-weight: 500;
  1349. color: #111111;
  1350. margin-bottom: 20upx;
  1351. font-weight: bold;
  1352. }
  1353. .sub-title {
  1354. font-size: 24upx;
  1355. font-family: PingFang SC;
  1356. font-weight: 500;
  1357. color: #898E91;
  1358. }
  1359. image {
  1360. width: 80upx;
  1361. height: 90upx;
  1362. position: absolute;
  1363. right: 7upx;
  1364. bottom: 7upx;
  1365. }
  1366. }
  1367. }
  1368. }
  1369. .index-cont {
  1370. box-sizing: border-box;
  1371. // padding: 0 20upx 120rpx;
  1372. padding: 0 24upx 20upx;
  1373. .pub-item {
  1374. background: #FFFFFF;
  1375. border-radius: 16upx;
  1376. margin-bottom: 20upx;
  1377. .tabs {
  1378. width: 100%;
  1379. display: flex;
  1380. align-items: center;
  1381. justify-content: flex-start;
  1382. height: 110rpx;
  1383. background-color: #F0F3F4;
  1384. .tab {
  1385. height: 110rpx;
  1386. display: flex;
  1387. align-items: center;
  1388. justify-content: center;
  1389. position: relative;
  1390. flex: 1;
  1391. .img {
  1392. z-index: 1;
  1393. position: absolute;
  1394. top: 0rpx;
  1395. left: 0rpx;
  1396. width: 100%;
  1397. height: 100%;
  1398. }
  1399. .inner {
  1400. z-index: 2;
  1401. .title {
  1402. font-size: 32upx;
  1403. font-family: PingFang SC;
  1404. font-weight: bold;
  1405. color: #666666;
  1406. }
  1407. .active {
  1408. color: #0bb3f2;
  1409. }
  1410. }
  1411. }
  1412. }
  1413. .pub-title-box {
  1414. box-sizing: border-box;
  1415. padding: 36upx 30upx;
  1416. display: flex;
  1417. align-items: center;
  1418. justify-content: space-between;
  1419. .left {
  1420. font-size: 32upx;
  1421. line-height: 1;
  1422. font-family: PingFang SC;
  1423. font-weight: bold;
  1424. color: #111111;
  1425. }
  1426. .right {
  1427. display: flex;
  1428. align-items: center;
  1429. justify-content: center;
  1430. .text {
  1431. font-size: 24rpx;
  1432. line-height: 1;
  1433. font-family: PingFang SC;
  1434. font-weight: 500;
  1435. color: #999999;
  1436. margin-right: 10upx;
  1437. }
  1438. image {
  1439. width: 14upx;
  1440. height: 24upx;
  1441. }
  1442. }
  1443. }
  1444. .doc-tab-box {
  1445. padding: 14rpx 30rpx 0rpx 30rpx;
  1446. position: relative;
  1447. .tab-inner {
  1448. padding: 14upx 0 30upx;
  1449. display: flex;
  1450. overflow-x: auto;
  1451. }
  1452. .item {
  1453. font-size: 28upx;
  1454. white-space: nowrap;
  1455. line-height: 1;
  1456. font-family: PingFang SC;
  1457. font-weight: 500;
  1458. color: #666666;
  1459. margin-right: 40upx;
  1460. position: relative;
  1461. &:last-child {
  1462. margin-right: 0;
  1463. }
  1464. &.active {
  1465. font-weight: bold;
  1466. color: #333333;
  1467. }
  1468. &.cases {
  1469. margin-right: 60upx;
  1470. }
  1471. .text {
  1472. position: relative;
  1473. z-index: 1;
  1474. }
  1475. .tab-bg {
  1476. width: 72upx;
  1477. height: 28upx;
  1478. position: absolute;
  1479. top: 17upx;
  1480. left: 50%;
  1481. transform: translateX(-36upx);
  1482. z-index: -1;
  1483. }
  1484. }
  1485. .right-mask {
  1486. width: 56upx;
  1487. height: 34upx;
  1488. position: absolute;
  1489. top: 25upx;
  1490. right: 0upx;
  1491. z-index: 1;
  1492. }
  1493. }
  1494. .doc-list {
  1495. padding: 20upx;
  1496. .item {
  1497. box-sizing: border-box;
  1498. background: #FFFFFF;
  1499. // border-radius: 16upx;
  1500. display: flex;
  1501. border-bottom: 1px solid #F0F0F0;
  1502. margin-bottom: 30rpx;
  1503. .head-box {
  1504. width: 120upx;
  1505. height: 120upx;
  1506. background: #EDF1F4;
  1507. border-radius: 50%;
  1508. overflow: hidden;
  1509. margin-right: 30upx;
  1510. image {
  1511. width: 100%;
  1512. height: 100%;
  1513. }
  1514. }
  1515. .info {
  1516. width: calc(100% - 150upx);
  1517. .top {
  1518. display: flex;
  1519. align-items: center;
  1520. font-family: PingFang SC;
  1521. line-height: 1;
  1522. .name {
  1523. font-size: 34upx;
  1524. font-weight: bold;
  1525. color: #111111;
  1526. }
  1527. .line {
  1528. width: 1px;
  1529. height: 26upx;
  1530. background: #DDDDDD;
  1531. margin: 0 20upx;
  1532. }
  1533. .other {
  1534. font-size: 28upx;
  1535. font-weight: 500;
  1536. color: #333333;
  1537. }
  1538. }
  1539. .unit-box {
  1540. display: flex;
  1541. margin-top: 24upx;
  1542. .level {
  1543. padding: 0 10upx;
  1544. height: 30upx;
  1545. line-height: 30upx;
  1546. font-size: 22upx;
  1547. font-family: PingFang SC;
  1548. font-weight: 500;
  1549. color: #FFFFFF;
  1550. background: #0bb3f2;
  1551. border-radius: 10upx 4upx 10upx 4upx;
  1552. margin-right: 12upx;
  1553. }
  1554. .name {
  1555. font-size: 28upx;
  1556. font-family: PingFang SC;
  1557. font-weight: 500;
  1558. color: #333333;
  1559. line-height: 30upx;
  1560. }
  1561. }
  1562. .expertise {
  1563. font-size: 26upx;
  1564. font-family: PingFang SC;
  1565. font-weight: 500;
  1566. color: #666666;
  1567. line-height: 42upx;
  1568. margin: 22upx 0 26upx;
  1569. }
  1570. .rate-box {
  1571. display: flex;
  1572. align-items: center;
  1573. .star {
  1574. display: flex;
  1575. align-items: center;
  1576. image {
  1577. width: 22upx;
  1578. height: 22upx;
  1579. margin-right: 10upx;
  1580. }
  1581. text {
  1582. font-size: 26upx;
  1583. font-family: PingFang SC;
  1584. font-weight: bold;
  1585. color: #CEA764;
  1586. line-height: 1;
  1587. }
  1588. }
  1589. .line {
  1590. width: 1px;
  1591. height: 20upx;
  1592. background: #DDDDDD;
  1593. margin: 0 20upx;
  1594. }
  1595. .num-box {
  1596. display: flex;
  1597. align-items: center;
  1598. font-family: PingFang SC;
  1599. .label {
  1600. font-size: 24upx;
  1601. font-weight: 500;
  1602. color: #999999;
  1603. line-height: 1;
  1604. margin-right: 7px;
  1605. }
  1606. .num {
  1607. font-size: 26upx;
  1608. font-weight: bold;
  1609. color: #CEA764;
  1610. line-height: 1;
  1611. }
  1612. }
  1613. }
  1614. .price-box {
  1615. display: flex;
  1616. align-items: center;
  1617. margin-top: 38upx;
  1618. .btn-item {
  1619. display: flex;
  1620. align-items: center;
  1621. justify-content: center;
  1622. width: 164upx;
  1623. height: 56upx;
  1624. line-height: 56upx;
  1625. border: 1px solid rgba(43, 199, 185, 0.5);
  1626. border-radius: 28upx;
  1627. font-family: PingFang SC;
  1628. margin-right: 30upx;
  1629. &:last-child {
  1630. margin-right: 0;
  1631. }
  1632. .label {
  1633. font-size: 26upx;
  1634. font-weight: 500;
  1635. color: #0bb3f2;
  1636. margin-right: 5upx;
  1637. }
  1638. .num {
  1639. font-size: 28upx;
  1640. font-weight: bold;
  1641. color: #0bb3f2;
  1642. }
  1643. }
  1644. }
  1645. }
  1646. }
  1647. .item:last-child {
  1648. border-bottom: none;
  1649. margin-bottom: 0rpx;
  1650. }
  1651. .bottom-title {
  1652. height: 50rpx;
  1653. display: flex;
  1654. align-items: center;
  1655. justify-content: center;
  1656. font-size: 26rpx;
  1657. font-family: PingFang SC;
  1658. font-weight: bold;
  1659. color: #0bb3f2;
  1660. image {
  1661. margin-left: 8rpx;
  1662. width: 14rpx;
  1663. height: 24rpx;
  1664. }
  1665. }
  1666. }
  1667. // 医师团队
  1668. .doc-cont {
  1669. box-sizing: border-box;
  1670. padding: 0 30upx;
  1671. .inner {
  1672. padding: 4upx 0 40upx;
  1673. display: flex;
  1674. overflow-x: auto;
  1675. }
  1676. .item {
  1677. display: flex;
  1678. align-items: center;
  1679. flex-direction: column;
  1680. margin-right: 40upx;
  1681. &:last-child {
  1682. margin-right: 0;
  1683. }
  1684. .head-box {
  1685. width: 120upx;
  1686. height: 120upx;
  1687. background: #F2F5F9;
  1688. border-radius: 50%;
  1689. margin-bottom: 20upx;
  1690. overflow: hidden;
  1691. image {
  1692. width: 100%;
  1693. height: 100%;
  1694. }
  1695. }
  1696. .name {
  1697. max-width: 120upx;
  1698. font-size: 28upx;
  1699. line-height: 1;
  1700. font-family: PingFang SC;
  1701. font-weight: 500;
  1702. color: #111111;
  1703. margin-bottom: 16upx;
  1704. text-align: center;
  1705. }
  1706. .position {
  1707. max-width: 120upx;
  1708. font-size: 24upx;
  1709. line-height: 1;
  1710. font-family: PingFang SC;
  1711. font-weight: 500;
  1712. color: #999999;
  1713. text-align: center;
  1714. }
  1715. }
  1716. }
  1717. .inner {
  1718. padding: 0 30upx;
  1719. }
  1720. // 健康知识
  1721. .pub-tab-box {
  1722. position: relative;
  1723. .tab-inner {
  1724. padding: 14upx 0 30upx;
  1725. display: flex;
  1726. overflow-x: auto;
  1727. }
  1728. .item {
  1729. font-size: 28upx;
  1730. white-space: nowrap;
  1731. line-height: 1;
  1732. font-family: PingFang SC;
  1733. font-weight: 500;
  1734. color: #666666;
  1735. margin-right: 40upx;
  1736. position: relative;
  1737. &:last-child {
  1738. margin-right: 0;
  1739. }
  1740. &.active {
  1741. font-weight: bold;
  1742. color: #333333;
  1743. }
  1744. &.cases {
  1745. margin-right: 60upx;
  1746. }
  1747. .text {
  1748. position: relative;
  1749. z-index: 1;
  1750. }
  1751. .tab-bg {
  1752. width: 72upx;
  1753. height: 28upx;
  1754. position: absolute;
  1755. top: 17upx;
  1756. left: 50%;
  1757. transform: translateX(-36upx);
  1758. z-index: -1;
  1759. }
  1760. }
  1761. .right-mask {
  1762. width: 56upx;
  1763. height: 34upx;
  1764. position: absolute;
  1765. top: 14upx;
  1766. right: -30upx;
  1767. z-index: 1;
  1768. }
  1769. }
  1770. .know-list {
  1771. padding-right: 10upx;
  1772. .item {
  1773. padding: 30upx 0;
  1774. display: flex;
  1775. align-items: center;
  1776. justify-content: space-between;
  1777. border-bottom: 1px solid #F0F0F0;
  1778. &:last-child {
  1779. border-bottom: none;
  1780. }
  1781. .left {
  1782. flex: 1;
  1783. padding-right: 40upx;
  1784. height: 190upx;
  1785. display: flex;
  1786. flex-direction: column;
  1787. justify-content: space-between;
  1788. .title {
  1789. font-size: 32upx;
  1790. font-family: PingFang SC;
  1791. font-weight: 500;
  1792. color: #111111;
  1793. line-height: 48upx;
  1794. }
  1795. .info-box {
  1796. width: 100%;
  1797. display: flex;
  1798. align-items: center;
  1799. justify-content: space-between;
  1800. .readers {
  1801. display: flex;
  1802. align-items: center;
  1803. .head-box {
  1804. margin-right: 27upx;
  1805. display: flex;
  1806. align-items: center;
  1807. .head {
  1808. width: 48upx;
  1809. height: 48upx;
  1810. border-radius: 50%;
  1811. overflow: hidden;
  1812. box-shadow: 0 0 0 1px #fff;
  1813. margin-right: -10upx;
  1814. image {
  1815. width: 100%;
  1816. height: 100%;
  1817. }
  1818. }
  1819. }
  1820. .readings {
  1821. display: flex;
  1822. align-items: center;
  1823. .eye {
  1824. width: 26upx;
  1825. height: 20upx;
  1826. margin-right: 9upx;
  1827. }
  1828. .num {
  1829. font-size: 24upx;
  1830. font-family: PingFang SC;
  1831. font-weight: 500;
  1832. color: #999999;
  1833. line-height: 1;
  1834. }
  1835. }
  1836. }
  1837. .time {
  1838. font-size: 24upx;
  1839. line-height: 1;
  1840. font-family: PingFang SC;
  1841. font-weight: 500;
  1842. color: #999999;
  1843. }
  1844. }
  1845. }
  1846. .right {
  1847. width: 250upx;
  1848. height: 190upx;
  1849. border-radius: 8upx;
  1850. overflow: hidden;
  1851. image {
  1852. width: 100%;
  1853. height: 100%;
  1854. }
  1855. }
  1856. }
  1857. }
  1858. // 问诊案例
  1859. .cases-list {
  1860. padding-bottom: 10upx;
  1861. .item {
  1862. padding: 30upx 0;
  1863. border-bottom: 1px solid #F0F0F0;
  1864. &:last-child {
  1865. border-bottom: none;
  1866. }
  1867. .dec-text {
  1868. font-size: 32upx;
  1869. font-family: PingFang SC;
  1870. font-weight: bold;
  1871. color: #111111;
  1872. line-height: 48upx;
  1873. }
  1874. .images-box {
  1875. margin-top: 10upx;
  1876. display: flex;
  1877. flex-wrap: wrap;
  1878. .img-item {
  1879. width: 155upx;
  1880. height: 155upx;
  1881. background: #F5F5F5;
  1882. border-radius: 8upx;
  1883. margin: 0 10upx 10upx 0;
  1884. overflow: hidden;
  1885. image {
  1886. width: 48rpx;
  1887. height: 48rpx;
  1888. }
  1889. &:nth-child(4n) {
  1890. margin-right: 0;
  1891. }
  1892. }
  1893. }
  1894. .doc-info {
  1895. display: flex;
  1896. align-items: center;
  1897. margin: 30upx 0 20upx;
  1898. .head {
  1899. width: 60upx;
  1900. height: 60upx;
  1901. background: #F2F5F9;
  1902. border-radius: 50%;
  1903. margin-right: 20upx;
  1904. overflow: hidden;
  1905. image {
  1906. width: 100%;
  1907. height: 100%;
  1908. }
  1909. }
  1910. .name {
  1911. font-size: 28upx;
  1912. line-height: 1;
  1913. font-family: PingFang SC;
  1914. font-weight: 500;
  1915. color: #111111;
  1916. }
  1917. .line {
  1918. width: 1px;
  1919. height: 22upx;
  1920. background: #DDDDDD;
  1921. margin: 0 16upx;
  1922. }
  1923. .posit,
  1924. .address {
  1925. font-size: 26upx;
  1926. font-family: PingFang SC;
  1927. font-weight: 500;
  1928. color: #999999;
  1929. }
  1930. }
  1931. .answer-box {
  1932. width: 100%;
  1933. // height: 117upx;
  1934. background: #F5F7F7;
  1935. border-radius: 10upx;
  1936. display: flex;
  1937. flex-direction: column;
  1938. justify-content: center;
  1939. .text-inner {
  1940. // height: 84upx;
  1941. font-size: 28upx;
  1942. font-family: PingFang SC;
  1943. font-weight: 500;
  1944. color: #666666;
  1945. line-height: 42upx;
  1946. padding: 15upx;
  1947. }
  1948. }
  1949. .read-box {
  1950. margin-top: 30upx;
  1951. display: flex;
  1952. align-items: center;
  1953. justify-content: flex-end;
  1954. image {
  1955. width: 24upx;
  1956. height: 19upx;
  1957. margin-right: 10upx;
  1958. }
  1959. .text {
  1960. font-size: 24upx;
  1961. font-family: PingFang SC;
  1962. font-weight: 500;
  1963. color: #999999;
  1964. }
  1965. }
  1966. }
  1967. }
  1968. }
  1969. // 精选药品
  1970. .feat-title {
  1971. margin-top: 30upx;
  1972. padding: 10upx 0 33upx;
  1973. display: flex;
  1974. align-items: center;
  1975. justify-content: center;
  1976. image {
  1977. width: 37upx;
  1978. height: 37upx;
  1979. margin: 0upx 20upx;
  1980. }
  1981. text {
  1982. font-size: 36upx;
  1983. line-height: 1;
  1984. font-family: PingFang SC;
  1985. font-weight: bold;
  1986. color: #111111;
  1987. }
  1988. }
  1989. .drug-list {
  1990. display: flex;
  1991. flex-wrap: wrap;
  1992. // margin-bottom: 20upx;
  1993. .item {
  1994. margin-right: 20rpx;
  1995. margin-bottom: 20rpx;
  1996. width: 345rpx;
  1997. background: #FFFFFF;
  1998. box-shadow: 0px 0px 10rpx 4rpx rgba(199, 199, 199, 0.22);
  1999. border-radius: 20rpx;
  2000. overflow: hidden;
  2001. &:nth-child(2n) {
  2002. margin-right: 0;
  2003. }
  2004. .img-box {
  2005. width: 100%;
  2006. height: 334upx;
  2007. image {
  2008. width: 100%;
  2009. height: 100%;
  2010. }
  2011. }
  2012. .info-box {
  2013. box-sizing: border-box;
  2014. height: 182upx;
  2015. padding: 20upx;
  2016. .title {
  2017. height: 80upx;
  2018. font-size: 26upx;
  2019. font-family: PingFang SC;
  2020. font-weight: 500;
  2021. color: #111111;
  2022. line-height: 40upx;
  2023. }
  2024. .price-box {
  2025. display: flex;
  2026. align-items: center;
  2027. margin-top: 20upx;
  2028. .now {
  2029. color: #FF6633;
  2030. display: flex;
  2031. align-items: flex-end;
  2032. margin-right: 20upx;
  2033. font-family: PingFang SC;
  2034. .unit {
  2035. font-size: 24upx;
  2036. line-height: 1.4;
  2037. margin-right: 4upx;
  2038. }
  2039. .num {
  2040. font-size: 36upx;
  2041. font-weight: bold;
  2042. line-height: 1;
  2043. }
  2044. }
  2045. .old {
  2046. font-size: 26upx;
  2047. font-family: PingFang SC;
  2048. text-decoration: line-through;
  2049. color: #BBBBBB;
  2050. line-height: 1;
  2051. }
  2052. }
  2053. }
  2054. }
  2055. }
  2056. }
  2057. .modules {
  2058. .module {
  2059. .depts {
  2060. z-index: 101;
  2061. margin: 40rpx 24rpx 0rpx;
  2062. padding: 30rpx 0;
  2063. background-color: #fff;
  2064. border-radius: 16rpx;
  2065. .title {
  2066. margin-left: 32rpx;
  2067. font-family: PingFang SC;
  2068. font-weight: 600;
  2069. font-size: 34rpx;
  2070. color: #222426;
  2071. }
  2072. .dept-box {
  2073. margin-top: 22rpx;
  2074. display: flex;
  2075. align-items: center;
  2076. justify-content: flex-start;
  2077. flex-wrap: wrap;
  2078. .dept {
  2079. width: 25%;
  2080. display: flex;
  2081. flex-direction: column;
  2082. align-items: center;
  2083. justify-content: center;
  2084. padding: 14rpx 0;
  2085. .icon {
  2086. width: 58rpx;
  2087. height: 58rpx;
  2088. }
  2089. .title {
  2090. margin-left: 0;
  2091. margin-top: 10rpx;
  2092. font-size: 24upx;
  2093. font-family: PingFang SC;
  2094. font-weight: 500;
  2095. color: #111111;
  2096. }
  2097. }
  2098. }
  2099. }
  2100. .doctor-articles {
  2101. z-index: 101;
  2102. margin: 20rpx 24rpx 0rpx;
  2103. padding: 32rpx;
  2104. background-color: #fff;
  2105. border-radius: 16rpx;
  2106. .title-box {
  2107. display: flex;
  2108. flex-direction: row;
  2109. align-items: center;
  2110. justify-content: space-between;
  2111. .title {
  2112. font-size: 32upx;
  2113. font-family: PingFang SC;
  2114. font-weight: bold;
  2115. color: #111111;
  2116. }
  2117. .more {
  2118. display: flex;
  2119. align-items: center;
  2120. justify-content: flex-end;
  2121. .text {
  2122. font-size: 24rpx;
  2123. font-family: PingFang SC;
  2124. color: #9B9B9B;
  2125. }
  2126. image {
  2127. // margin-left: 10rpx;
  2128. width: 48rpx;
  2129. height: 48rpx;
  2130. }
  2131. }
  2132. }
  2133. .article-box {
  2134. padding: 32rpx 0rpx;
  2135. overflow-x: auto;
  2136. box-sizing: border-box;
  2137. display: flex;
  2138. align-items: center;
  2139. justify-content: flex-start;
  2140. .article {
  2141. width: 300rpx;
  2142. margin-right: 20rpx;
  2143. // background: #f9f8fe;
  2144. display: flex;
  2145. flex-direction: column;
  2146. align-items: flex-start;
  2147. justify-content: flex-start;
  2148. &:last-child {
  2149. margin-right: 0rpx;
  2150. }
  2151. .image-box {
  2152. width: 300rpx;
  2153. height: 400rpx;
  2154. position: relative;
  2155. border-radius: 20rpx;
  2156. image {
  2157. border-radius: 20rpx;
  2158. width: 300rpx;
  2159. height: 400rpx;
  2160. }
  2161. .views {
  2162. position: absolute;
  2163. top: 0rpx;
  2164. left: 0rpx;
  2165. padding: 4rpx 12rpx;
  2166. background: rgba(0, 0, 0, 0.25);
  2167. border-radius: 12rpx 0rpx 12rpx 0rpx;
  2168. opacity: 1;
  2169. font-weight: 400;
  2170. font-size: 20rpx;
  2171. color: #FFFFFF;
  2172. font-family: PingFang SC-Bold, PingFang SC;
  2173. }
  2174. .doctor {
  2175. margin: 10rpx;
  2176. display: flex;
  2177. align-items: center;
  2178. justify-content: flex-start;
  2179. position: absolute;
  2180. bottom: 0rpx;
  2181. left: 0rpx;
  2182. image {
  2183. border-radius: 50%;
  2184. width: 64rpx;
  2185. height: 64rpx;
  2186. }
  2187. .right {
  2188. width: 200rpx;
  2189. margin-left: 10rpx;
  2190. display: flex;
  2191. flex-direction: column;
  2192. align-items: flex-start;
  2193. justify-content: space-between;
  2194. .doc-name {
  2195. width: 200rpx;
  2196. font-size: 30rpx;
  2197. font-weight: bold;
  2198. font-family: PingFang SC;
  2199. color: #fff;
  2200. }
  2201. .doc-position {
  2202. width: 100%;
  2203. font-size: 28rpx;
  2204. font-family: PingFang SC;
  2205. color: #fff;
  2206. font-weight: bold;
  2207. opacity: 0.8;
  2208. }
  2209. }
  2210. }
  2211. }
  2212. .article-title-box {
  2213. width: 100%;
  2214. margin-top: 10rpx;
  2215. display: flex;
  2216. align-items: center;
  2217. justify-content: flex-start;
  2218. height: 80upx;
  2219. .article-title {
  2220. font-size: 30rpx;
  2221. // font-weight: bold;
  2222. font-family: PingFang SC;
  2223. color: #2A2B2E;
  2224. }
  2225. }
  2226. }
  2227. }
  2228. }
  2229. .doctors {
  2230. z-index: 101;
  2231. margin: 20rpx 15rpx;
  2232. padding: 20rpx;
  2233. box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  2234. background-color: #fff;
  2235. border-radius: 15rpx;
  2236. .title-box {
  2237. display: flex;
  2238. flex-direction: row;
  2239. align-items: center;
  2240. justify-content: space-between;
  2241. .title {
  2242. font-size: 32upx;
  2243. font-family: PingFang SC;
  2244. font-weight: bold;
  2245. color: #111111;
  2246. }
  2247. .more {
  2248. display: flex;
  2249. align-items: center;
  2250. justify-content: flex-end;
  2251. .text {
  2252. font-size: 24rpx;
  2253. font-family: PingFang SC;
  2254. color: #898E91;
  2255. }
  2256. image {
  2257. margin-left: 10rpx;
  2258. width: 15rpx;
  2259. height: 20rpx;
  2260. }
  2261. }
  2262. }
  2263. }
  2264. .articles {
  2265. z-index: 101;
  2266. // margin: 20rpx 15rpx;
  2267. margin: 20rpx 24rpx 0rpx;
  2268. padding: 32rpx;
  2269. // box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  2270. background-color: #fff;
  2271. border-radius: 16rpx;
  2272. .title-box {
  2273. display: flex;
  2274. flex-direction: row;
  2275. align-items: center;
  2276. justify-content: space-between;
  2277. .title {
  2278. font-size: 32upx;
  2279. font-family: PingFang SC;
  2280. font-weight: bold;
  2281. color: #111111;
  2282. }
  2283. .more {
  2284. display: flex;
  2285. align-items: center;
  2286. justify-content: flex-end;
  2287. .text {
  2288. font-size: 24rpx;
  2289. font-family: PingFang SC;
  2290. color:#898E91;
  2291. // width: calc(100% - 556rpx);
  2292. }
  2293. image {
  2294. // margin-left: 10rpx;
  2295. width: 48rpx;
  2296. height: 48rpx;
  2297. }
  2298. }
  2299. }
  2300. .article-box {
  2301. margin-top: 15rpx;
  2302. padding: 20rpx 0rpx 0rpx;
  2303. display: flex;
  2304. flex-direction: column;
  2305. align-items: flex-start;
  2306. justify-content: flex-start;
  2307. .item {
  2308. width: 100%;
  2309. margin-bottom: 32rpx;
  2310. display: flex;
  2311. align-items: flex-start;
  2312. justify-content: flex-start;
  2313. border-bottom: 1px solid #ECECEC;
  2314. padding-bottom: 32rpx;
  2315. &:last-child {
  2316. margin-bottom: 0rpx;
  2317. border-bottom: 0;
  2318. }
  2319. .left {
  2320. flex: 1;
  2321. height: 160rpx;
  2322. margin-right: 30rpx;
  2323. display: flex;
  2324. flex-direction: column;
  2325. align-items: flex-start;
  2326. justify-content: space-between;
  2327. width: calc(100% - 260upx);
  2328. .title {
  2329. width: 100%;
  2330. font-size: 28upx;
  2331. font-family: PingFang SC;
  2332. font-weight: bold;
  2333. color: #111111;
  2334. }
  2335. .txt {
  2336. font-family: PingFang SC, PingFang SC;
  2337. font-size: 26rpx;
  2338. color: #898E91;
  2339. }
  2340. .views {
  2341. font-size: 24upx;
  2342. font-family: PingFang SC;
  2343. color: #B2B2B2;
  2344. }
  2345. }
  2346. .right {
  2347. image {
  2348. border-radius: 10rpx;
  2349. width: 220rpx;
  2350. height: 160rpx;
  2351. // border: 1px solid #eeeeee;
  2352. }
  2353. }
  2354. }
  2355. }
  2356. }
  2357. .packages {
  2358. z-index: 101;
  2359. margin: 20rpx 15rpx;
  2360. padding: 20rpx;
  2361. box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  2362. background-color: #fff;
  2363. border-radius: 15rpx;
  2364. .title-box {
  2365. display: flex;
  2366. flex-direction: row;
  2367. align-items: center;
  2368. justify-content: space-between;
  2369. .title {
  2370. font-size: 32upx;
  2371. font-family: PingFang SC;
  2372. font-weight: bold;
  2373. color: #111111;
  2374. }
  2375. .more {
  2376. display: flex;
  2377. align-items: center;
  2378. justify-content: flex-end;
  2379. .text {
  2380. font-size: 24rpx;
  2381. font-family: PingFang SC;
  2382. color: #9B9B9B;
  2383. }
  2384. image {
  2385. margin-left: 10rpx;
  2386. width: 15rpx;
  2387. height: 20rpx;
  2388. }
  2389. }
  2390. }
  2391. .package-box {
  2392. padding: 20rpx 0rpx 0rpx;
  2393. display: flex;
  2394. align-items: flex-start;
  2395. justify-content: flex-start;
  2396. flex-wrap: wrap;
  2397. .item {
  2398. width: calc(50% - 20rpx);
  2399. border-radius: 15rpx;
  2400. margin: 10rpx;
  2401. display: flex;
  2402. flex-direction: column;
  2403. align-items: flex-start;
  2404. justify-content: flex-start;
  2405. &:last-child {}
  2406. .top {
  2407. width: 100%;
  2408. height: 300rpx;
  2409. image {
  2410. border-radius: 15rpx 15rpx 0rpx 0rpx;
  2411. width: 100%;
  2412. height: 300rpx;
  2413. }
  2414. }
  2415. .bottom {
  2416. width: 100%;
  2417. margin-top: 15rpx;
  2418. .title {
  2419. font-weight: bold;
  2420. font-size: 28upx;
  2421. font-family: PingFang SC;
  2422. color: #111111;
  2423. }
  2424. .price-box {
  2425. margin-top: 10rpx;
  2426. display: flex;
  2427. align-items: center;
  2428. justify-content: space-between;
  2429. width: 100%;
  2430. .price {
  2431. padding: 5rpx 10rpx;
  2432. background-color: #0bb3f2;
  2433. border-radius: 30rpx;
  2434. font-size: 20upx;
  2435. font-family: PingFang SC;
  2436. color: #ffffff;
  2437. }
  2438. .count {
  2439. font-size: 24upx;
  2440. font-family: PingFang SC;
  2441. color: #333333;
  2442. }
  2443. }
  2444. }
  2445. }
  2446. }
  2447. }
  2448. }
  2449. }
  2450. }
  2451. .official-account {
  2452. box-sizing: border-box;
  2453. width: 100%;
  2454. height: 100upx;
  2455. position: fixed;
  2456. bottom: 30upx;
  2457. z-index: 99;
  2458. padding: 0 20upx 180rpx 20upx;
  2459. }
  2460. // 消息
  2461. .message-box {
  2462. box-sizing: border-box;
  2463. width: 100%;
  2464. height: 84upx;
  2465. background: #F3FFFD;
  2466. border: 1px solid #C7E9E5;
  2467. box-shadow: 0px 4upx 12upx 0px rgba(90, 203, 138, 0.16);
  2468. border-radius: 16upx;
  2469. position: fixed;
  2470. left: 50%;
  2471. transform: translateX(-50%);
  2472. bottom: 30upx;
  2473. z-index: 99;
  2474. display: flex;
  2475. align-items: center;
  2476. justify-content: space-between;
  2477. padding: 0 20upx 0 30upx;
  2478. .left {
  2479. flex: 1;
  2480. display: flex;
  2481. align-items: center;
  2482. image {
  2483. width: 24upx;
  2484. height: 24upx;
  2485. margin-right: 18upx;
  2486. }
  2487. .text {
  2488. width: 90%;
  2489. font-size: 28upx;
  2490. font-family: PingFang SC;
  2491. font-weight: 500;
  2492. color: #0bb3f2;
  2493. }
  2494. }
  2495. .btn {
  2496. width: 100upx;
  2497. height: 48upx;
  2498. line-height: 48upx;
  2499. text-align: center;
  2500. font-size: 24upx;
  2501. font-family: PingFang SC;
  2502. font-weight: 500;
  2503. color: #FFFFFF;
  2504. border: 1px solid #D2E6FF;
  2505. background: linear-gradient(135deg, #66b2ef 0%, #0bb3f2 100%);
  2506. border-radius: 24upx;
  2507. margin-left: 30upx;
  2508. }
  2509. }
  2510. .contact-btn {
  2511. display: inline-block;
  2512. position: absolute;
  2513. top: 0;
  2514. left: 0;
  2515. width: 100%;
  2516. height: 100%;
  2517. opacity: 0;
  2518. }
  2519. .popup-box {
  2520. position: fixed;
  2521. top: 0;
  2522. right: 0;
  2523. left: 0;
  2524. bottom: 0;
  2525. z-index: 999;
  2526. display: flex;
  2527. justify-content: center;
  2528. align-items: center;
  2529. .info-mask {
  2530. position: fixed;
  2531. top: 0;
  2532. right: 0;
  2533. bottom: 0;
  2534. left: 0;
  2535. background-color: rgba($color: #000000, $alpha: 0.5);
  2536. z-index: 999;
  2537. }
  2538. .info-form {
  2539. z-index: 1000;
  2540. width: 450rpx;
  2541. display: flex;
  2542. flex-direction: column;
  2543. justify-content: center;
  2544. align-items: center;
  2545. position: relative;
  2546. image {
  2547. width: 100%;
  2548. }
  2549. }
  2550. }
  2551. </style>