index.vue 63 KB

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