index.vue 62 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814
  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" style="white-space: nowrap;">
  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/arrow_gray.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 ">
  152. {{item.title}}
  153. </view>
  154. <!-- 新加的文章内容 -->
  155. <view class="txt ellipsis">
  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. .fixed-top-box {
  1159. width: 100%;
  1160. position: fixed;
  1161. top: 0;
  1162. left: 0;
  1163. z-index: 1000;
  1164. transition: all 0.5s;
  1165. background-color: #0bb3f2;
  1166. &.show-back {
  1167. // background: linear-gradient(135deg, #66b2ef 0%, #0bb3f2 100%);
  1168. }
  1169. .status_bar {
  1170. width: 100%;
  1171. }
  1172. }
  1173. .content {
  1174. width: 100%;
  1175. background: #EFF3F7;
  1176. position: relative;
  1177. .bg {
  1178. width: 100%;
  1179. height: 380rpx;
  1180. position: absolute;
  1181. top: 0;
  1182. left: 0;
  1183. }
  1184. .top-inner {
  1185. width: 100%;
  1186. position: absolute;
  1187. top: 0;
  1188. left: 0;
  1189. z-index: 5;
  1190. .top-title {
  1191. height: 88upx;
  1192. line-height: 88upx;
  1193. display: flex;
  1194. align-items: center;
  1195. justify-content: flex-start;
  1196. .name {
  1197. font-size: 42upx;
  1198. font-family: Source Han Sans CN;
  1199. font-weight: bold;
  1200. color: #FFFFFF;
  1201. padding-left: 41upx;
  1202. }
  1203. .dot {
  1204. margin: 0upx 10upx;
  1205. font-size: 28upx;
  1206. color: #FFFFFF;
  1207. opacity: 0.5;
  1208. }
  1209. .sub-name {
  1210. font-size: 30upx;
  1211. font-family: Source Han Sans CN;
  1212. color: #FFFFFF;
  1213. }
  1214. }
  1215. .func-cont {
  1216. box-sizing: border-box;
  1217. display: flex;
  1218. align-items: center;
  1219. padding: 30upx 20upx 30upx 20upx;
  1220. .search-cont {
  1221. box-sizing: border-box;
  1222. display: flex;
  1223. align-items: center;
  1224. width: 552upx;
  1225. height: 72upx;
  1226. background: #FFFFFF;
  1227. border-radius: 36upx;
  1228. padding: 0 30upx;
  1229. .icon-search {
  1230. width: 28upx;
  1231. height: 28upx;
  1232. margin-right: 20upx;
  1233. }
  1234. input {
  1235. height: 60upx;
  1236. line-height: 60upx;
  1237. flex: 1;
  1238. }
  1239. }
  1240. ;
  1241. ;
  1242. v-deep.uni-badge {
  1243. border: none;
  1244. background-color: #FF3636;
  1245. font-family: Roboto;
  1246. }
  1247. .img-item {
  1248. width: 44upx;
  1249. height: 44upx;
  1250. margin-left: 30upx;
  1251. image {
  1252. width: 100%;
  1253. height: 100%;
  1254. }
  1255. }
  1256. }
  1257. .tips {
  1258. margin: 0upx 20rpx 30rpx;
  1259. height: 40upx;
  1260. line-height: 40upx;
  1261. display: flex;
  1262. justify-content: space-between;
  1263. align-items: center;
  1264. .left {
  1265. font-size: 30upx;
  1266. color: #FFFFFF;
  1267. }
  1268. .right {
  1269. padding: 5upx 20rpx;
  1270. font-size: 24upx;
  1271. color: #FFFFFF;
  1272. background-color: #0bb3f2;
  1273. border-radius: 50rpx;
  1274. }
  1275. }
  1276. }
  1277. .banner-box {
  1278. display: flex;
  1279. align-items: center;
  1280. justify-content: center;
  1281. width: 100%;
  1282. .inner {
  1283. width: 702rpx;
  1284. height: 228rpx;
  1285. border-radius: 10upx;
  1286. overflow: hidden;
  1287. .swiper,
  1288. .swiper-item,
  1289. .swiper-item image {
  1290. width: 702rpx;
  1291. height: 228rpx;
  1292. }
  1293. }
  1294. }
  1295. .menu-content {
  1296. border-radius: 16rpx 16rpx 16rpx 16rpx;
  1297. margin: 20rpx 24rpx;
  1298. overflow: hidden;
  1299. padding: 30upx 0;
  1300. background-color: #ffffff;
  1301. }
  1302. .menu-box {
  1303. display: flex;
  1304. align-items: center;
  1305. background-color: #FFFFFF;
  1306. padding-top: 20rpx;
  1307. border-radius: 12rpx;
  1308. }
  1309. .online-inquiry {
  1310. box-sizing: border-box;
  1311. width: 100%;
  1312. height: 170upx;
  1313. padding: 0 20upx;
  1314. margin-top: 20rpx;
  1315. // background: linear-gradient(180deg, rgba(255, 255, 255, 0.38) 62%, rgba(255, 255, 255, 0) 100%);
  1316. display: flex;
  1317. justify-content: space-between;
  1318. .item {
  1319. // width: 46.13%;
  1320. width: 346upx;
  1321. height: 190upx;
  1322. position: relative;
  1323. .bg-img,
  1324. .inner {
  1325. width: 100%;
  1326. height: 100%;
  1327. position: absolute;
  1328. top: 0;
  1329. left: 0;
  1330. z-index: 1;
  1331. border-radius: 12rpx;
  1332. }
  1333. .inner {
  1334. box-sizing: border-box;
  1335. z-index: 2;
  1336. display: flex;
  1337. flex-direction: column;
  1338. justify-content: center;
  1339. padding-left: 32upx;
  1340. .title {
  1341. font-size: 32upx;
  1342. line-height: 1;
  1343. font-family: PingFang SC;
  1344. font-weight: 500;
  1345. color: #111111;
  1346. margin-bottom: 20upx;
  1347. font-weight: bold;
  1348. }
  1349. .sub-title {
  1350. font-size: 24upx;
  1351. font-family: PingFang SC;
  1352. font-weight: 500;
  1353. color: #898E91;
  1354. }
  1355. image {
  1356. width: 80upx;
  1357. height: 90upx;
  1358. position: absolute;
  1359. right: 7upx;
  1360. bottom: 7upx;
  1361. }
  1362. }
  1363. }
  1364. }
  1365. .index-cont {
  1366. box-sizing: border-box;
  1367. padding: 0 20upx 120rpx;
  1368. .pub-item {
  1369. background: #FFFFFF;
  1370. border-radius: 16upx;
  1371. margin-bottom: 20upx;
  1372. .tabs {
  1373. width: 100%;
  1374. display: flex;
  1375. align-items: center;
  1376. justify-content: flex-start;
  1377. height: 110rpx;
  1378. background-color: #F0F3F4;
  1379. .tab {
  1380. height: 110rpx;
  1381. display: flex;
  1382. align-items: center;
  1383. justify-content: center;
  1384. position: relative;
  1385. flex: 1;
  1386. .img {
  1387. z-index: 1;
  1388. position: absolute;
  1389. top: 0rpx;
  1390. left: 0rpx;
  1391. width: 100%;
  1392. height: 100%;
  1393. }
  1394. .inner {
  1395. z-index: 2;
  1396. .title {
  1397. font-size: 32upx;
  1398. font-family: PingFang SC;
  1399. font-weight: bold;
  1400. color: #666666;
  1401. }
  1402. .active {
  1403. color: #0bb3f2;
  1404. }
  1405. }
  1406. }
  1407. }
  1408. .pub-title-box {
  1409. box-sizing: border-box;
  1410. padding: 36upx 30upx;
  1411. display: flex;
  1412. align-items: center;
  1413. justify-content: space-between;
  1414. .left {
  1415. font-size: 32upx;
  1416. line-height: 1;
  1417. font-family: PingFang SC;
  1418. font-weight: bold;
  1419. color: #111111;
  1420. }
  1421. .right {
  1422. display: flex;
  1423. align-items: center;
  1424. justify-content: center;
  1425. .text {
  1426. font-size: 24rpx;
  1427. line-height: 1;
  1428. font-family: PingFang SC;
  1429. font-weight: 500;
  1430. color: #999999;
  1431. margin-right: 10upx;
  1432. }
  1433. image {
  1434. width: 14upx;
  1435. height: 24upx;
  1436. }
  1437. }
  1438. }
  1439. .doc-tab-box {
  1440. padding: 14rpx 30rpx 0rpx 30rpx;
  1441. position: relative;
  1442. .tab-inner {
  1443. padding: 14upx 0 30upx;
  1444. display: flex;
  1445. overflow-x: auto;
  1446. }
  1447. .item {
  1448. font-size: 28upx;
  1449. white-space: nowrap;
  1450. line-height: 1;
  1451. font-family: PingFang SC;
  1452. font-weight: 500;
  1453. color: #666666;
  1454. margin-right: 40upx;
  1455. position: relative;
  1456. &:last-child {
  1457. margin-right: 0;
  1458. }
  1459. &.active {
  1460. font-weight: bold;
  1461. color: #333333;
  1462. }
  1463. &.cases {
  1464. margin-right: 60upx;
  1465. }
  1466. .text {
  1467. position: relative;
  1468. z-index: 1;
  1469. }
  1470. .tab-bg {
  1471. width: 72upx;
  1472. height: 28upx;
  1473. position: absolute;
  1474. top: 17upx;
  1475. left: 50%;
  1476. transform: translateX(-36upx);
  1477. z-index: -1;
  1478. }
  1479. }
  1480. .right-mask {
  1481. width: 56upx;
  1482. height: 34upx;
  1483. position: absolute;
  1484. top: 25upx;
  1485. right: 0upx;
  1486. z-index: 1;
  1487. }
  1488. }
  1489. .doc-list {
  1490. padding: 20upx;
  1491. .item {
  1492. box-sizing: border-box;
  1493. background: #FFFFFF;
  1494. // border-radius: 16upx;
  1495. display: flex;
  1496. border-bottom: 1px solid #F0F0F0;
  1497. margin-bottom: 30rpx;
  1498. .head-box {
  1499. width: 120upx;
  1500. height: 120upx;
  1501. background: #EDF1F4;
  1502. border-radius: 50%;
  1503. overflow: hidden;
  1504. margin-right: 30upx;
  1505. image {
  1506. width: 100%;
  1507. height: 100%;
  1508. }
  1509. }
  1510. .info {
  1511. width: calc(100% - 150upx);
  1512. .top {
  1513. display: flex;
  1514. align-items: center;
  1515. font-family: PingFang SC;
  1516. line-height: 1;
  1517. .name {
  1518. font-size: 34upx;
  1519. font-weight: bold;
  1520. color: #111111;
  1521. }
  1522. .line {
  1523. width: 1px;
  1524. height: 26upx;
  1525. background: #DDDDDD;
  1526. margin: 0 20upx;
  1527. }
  1528. .other {
  1529. font-size: 28upx;
  1530. font-weight: 500;
  1531. color: #333333;
  1532. }
  1533. }
  1534. .unit-box {
  1535. display: flex;
  1536. margin-top: 24upx;
  1537. .level {
  1538. padding: 0 10upx;
  1539. height: 30upx;
  1540. line-height: 30upx;
  1541. font-size: 22upx;
  1542. font-family: PingFang SC;
  1543. font-weight: 500;
  1544. color: #FFFFFF;
  1545. background: #0bb3f2;
  1546. border-radius: 10upx 4upx 10upx 4upx;
  1547. margin-right: 12upx;
  1548. }
  1549. .name {
  1550. font-size: 28upx;
  1551. font-family: PingFang SC;
  1552. font-weight: 500;
  1553. color: #333333;
  1554. line-height: 30upx;
  1555. }
  1556. }
  1557. .expertise {
  1558. font-size: 26upx;
  1559. font-family: PingFang SC;
  1560. font-weight: 500;
  1561. color: #666666;
  1562. line-height: 42upx;
  1563. margin: 22upx 0 26upx;
  1564. }
  1565. .rate-box {
  1566. display: flex;
  1567. align-items: center;
  1568. .star {
  1569. display: flex;
  1570. align-items: center;
  1571. image {
  1572. width: 22upx;
  1573. height: 22upx;
  1574. margin-right: 10upx;
  1575. }
  1576. text {
  1577. font-size: 26upx;
  1578. font-family: PingFang SC;
  1579. font-weight: bold;
  1580. color: #CEA764;
  1581. line-height: 1;
  1582. }
  1583. }
  1584. .line {
  1585. width: 1px;
  1586. height: 20upx;
  1587. background: #DDDDDD;
  1588. margin: 0 20upx;
  1589. }
  1590. .num-box {
  1591. display: flex;
  1592. align-items: center;
  1593. font-family: PingFang SC;
  1594. .label {
  1595. font-size: 24upx;
  1596. font-weight: 500;
  1597. color: #999999;
  1598. line-height: 1;
  1599. margin-right: 7px;
  1600. }
  1601. .num {
  1602. font-size: 26upx;
  1603. font-weight: bold;
  1604. color: #CEA764;
  1605. line-height: 1;
  1606. }
  1607. }
  1608. }
  1609. .price-box {
  1610. display: flex;
  1611. align-items: center;
  1612. margin-top: 38upx;
  1613. .btn-item {
  1614. display: flex;
  1615. align-items: center;
  1616. justify-content: center;
  1617. width: 164upx;
  1618. height: 56upx;
  1619. line-height: 56upx;
  1620. border: 1px solid rgba(43, 199, 185, 0.5);
  1621. border-radius: 28upx;
  1622. font-family: PingFang SC;
  1623. margin-right: 30upx;
  1624. &:last-child {
  1625. margin-right: 0;
  1626. }
  1627. .label {
  1628. font-size: 26upx;
  1629. font-weight: 500;
  1630. color: #0bb3f2;
  1631. margin-right: 5upx;
  1632. }
  1633. .num {
  1634. font-size: 28upx;
  1635. font-weight: bold;
  1636. color: #0bb3f2;
  1637. }
  1638. }
  1639. }
  1640. }
  1641. }
  1642. .item:last-child {
  1643. border-bottom: none;
  1644. margin-bottom: 0rpx;
  1645. }
  1646. .bottom-title {
  1647. height: 50rpx;
  1648. display: flex;
  1649. align-items: center;
  1650. justify-content: center;
  1651. font-size: 26rpx;
  1652. font-family: PingFang SC;
  1653. font-weight: bold;
  1654. color: #0bb3f2;
  1655. image {
  1656. margin-left: 8rpx;
  1657. width: 14rpx;
  1658. height: 24rpx;
  1659. }
  1660. }
  1661. }
  1662. // 医师团队
  1663. .doc-cont {
  1664. box-sizing: border-box;
  1665. padding: 0 30upx;
  1666. .inner {
  1667. padding: 4upx 0 40upx;
  1668. display: flex;
  1669. overflow-x: auto;
  1670. }
  1671. .item {
  1672. display: flex;
  1673. align-items: center;
  1674. flex-direction: column;
  1675. margin-right: 40upx;
  1676. &:last-child {
  1677. margin-right: 0;
  1678. }
  1679. .head-box {
  1680. width: 120upx;
  1681. height: 120upx;
  1682. background: #F2F5F9;
  1683. border-radius: 50%;
  1684. margin-bottom: 20upx;
  1685. overflow: hidden;
  1686. image {
  1687. width: 100%;
  1688. height: 100%;
  1689. }
  1690. }
  1691. .name {
  1692. max-width: 120upx;
  1693. font-size: 28upx;
  1694. line-height: 1;
  1695. font-family: PingFang SC;
  1696. font-weight: 500;
  1697. color: #111111;
  1698. margin-bottom: 16upx;
  1699. text-align: center;
  1700. }
  1701. .position {
  1702. max-width: 120upx;
  1703. font-size: 24upx;
  1704. line-height: 1;
  1705. font-family: PingFang SC;
  1706. font-weight: 500;
  1707. color: #999999;
  1708. text-align: center;
  1709. }
  1710. }
  1711. }
  1712. .inner {
  1713. padding: 0 30upx;
  1714. }
  1715. // 健康知识
  1716. .pub-tab-box {
  1717. position: relative;
  1718. .tab-inner {
  1719. padding: 14upx 0 30upx;
  1720. display: flex;
  1721. overflow-x: auto;
  1722. }
  1723. .item {
  1724. font-size: 28upx;
  1725. white-space: nowrap;
  1726. line-height: 1;
  1727. font-family: PingFang SC;
  1728. font-weight: 500;
  1729. color: #666666;
  1730. margin-right: 40upx;
  1731. position: relative;
  1732. &:last-child {
  1733. margin-right: 0;
  1734. }
  1735. &.active {
  1736. font-weight: bold;
  1737. color: #333333;
  1738. }
  1739. &.cases {
  1740. margin-right: 60upx;
  1741. }
  1742. .text {
  1743. position: relative;
  1744. z-index: 1;
  1745. }
  1746. .tab-bg {
  1747. width: 72upx;
  1748. height: 28upx;
  1749. position: absolute;
  1750. top: 17upx;
  1751. left: 50%;
  1752. transform: translateX(-36upx);
  1753. z-index: -1;
  1754. }
  1755. }
  1756. .right-mask {
  1757. width: 56upx;
  1758. height: 34upx;
  1759. position: absolute;
  1760. top: 14upx;
  1761. right: -30upx;
  1762. z-index: 1;
  1763. }
  1764. }
  1765. .know-list {
  1766. padding-right: 10upx;
  1767. .item {
  1768. padding: 30upx 0;
  1769. display: flex;
  1770. align-items: center;
  1771. justify-content: space-between;
  1772. border-bottom: 1px solid #F0F0F0;
  1773. &:last-child {
  1774. border-bottom: none;
  1775. }
  1776. .left {
  1777. flex: 1;
  1778. padding-right: 40upx;
  1779. height: 190upx;
  1780. display: flex;
  1781. flex-direction: column;
  1782. justify-content: space-between;
  1783. .title {
  1784. font-size: 32upx;
  1785. font-family: PingFang SC;
  1786. font-weight: 500;
  1787. color: #111111;
  1788. line-height: 48upx;
  1789. }
  1790. .info-box {
  1791. width: 100%;
  1792. display: flex;
  1793. align-items: center;
  1794. justify-content: space-between;
  1795. .readers {
  1796. display: flex;
  1797. align-items: center;
  1798. .head-box {
  1799. margin-right: 27upx;
  1800. display: flex;
  1801. align-items: center;
  1802. .head {
  1803. width: 48upx;
  1804. height: 48upx;
  1805. border-radius: 50%;
  1806. overflow: hidden;
  1807. box-shadow: 0 0 0 1px #fff;
  1808. margin-right: -10upx;
  1809. image {
  1810. width: 100%;
  1811. height: 100%;
  1812. }
  1813. }
  1814. }
  1815. .readings {
  1816. display: flex;
  1817. align-items: center;
  1818. .eye {
  1819. width: 26upx;
  1820. height: 20upx;
  1821. margin-right: 9upx;
  1822. }
  1823. .num {
  1824. font-size: 24upx;
  1825. font-family: PingFang SC;
  1826. font-weight: 500;
  1827. color: #999999;
  1828. line-height: 1;
  1829. }
  1830. }
  1831. }
  1832. .time {
  1833. font-size: 24upx;
  1834. line-height: 1;
  1835. font-family: PingFang SC;
  1836. font-weight: 500;
  1837. color: #999999;
  1838. }
  1839. }
  1840. }
  1841. .right {
  1842. width: 250upx;
  1843. height: 190upx;
  1844. border-radius: 8upx;
  1845. overflow: hidden;
  1846. image {
  1847. width: 100%;
  1848. height: 100%;
  1849. }
  1850. }
  1851. }
  1852. }
  1853. // 问诊案例
  1854. .cases-list {
  1855. padding-bottom: 10upx;
  1856. .item {
  1857. padding: 30upx 0;
  1858. border-bottom: 1px solid #F0F0F0;
  1859. &:last-child {
  1860. border-bottom: none;
  1861. }
  1862. .dec-text {
  1863. font-size: 32upx;
  1864. font-family: PingFang SC;
  1865. font-weight: bold;
  1866. color: #111111;
  1867. line-height: 48upx;
  1868. }
  1869. .images-box {
  1870. margin-top: 10upx;
  1871. display: flex;
  1872. flex-wrap: wrap;
  1873. .img-item {
  1874. width: 155upx;
  1875. height: 155upx;
  1876. background: #F5F5F5;
  1877. border-radius: 8upx;
  1878. margin: 0 10upx 10upx 0;
  1879. overflow: hidden;
  1880. image {
  1881. width: 48rpx;
  1882. height: 48rpx;
  1883. }
  1884. &:nth-child(4n) {
  1885. margin-right: 0;
  1886. }
  1887. }
  1888. }
  1889. .doc-info {
  1890. display: flex;
  1891. align-items: center;
  1892. margin: 30upx 0 20upx;
  1893. .head {
  1894. width: 60upx;
  1895. height: 60upx;
  1896. background: #F2F5F9;
  1897. border-radius: 50%;
  1898. margin-right: 20upx;
  1899. overflow: hidden;
  1900. image {
  1901. width: 100%;
  1902. height: 100%;
  1903. }
  1904. }
  1905. .name {
  1906. font-size: 28upx;
  1907. line-height: 1;
  1908. font-family: PingFang SC;
  1909. font-weight: 500;
  1910. color: #111111;
  1911. }
  1912. .line {
  1913. width: 1px;
  1914. height: 22upx;
  1915. background: #DDDDDD;
  1916. margin: 0 16upx;
  1917. }
  1918. .posit,
  1919. .address {
  1920. font-size: 26upx;
  1921. font-family: PingFang SC;
  1922. font-weight: 500;
  1923. color: #999999;
  1924. }
  1925. }
  1926. .answer-box {
  1927. width: 100%;
  1928. // height: 117upx;
  1929. background: #F5F7F7;
  1930. border-radius: 10upx;
  1931. display: flex;
  1932. flex-direction: column;
  1933. justify-content: center;
  1934. .text-inner {
  1935. // height: 84upx;
  1936. font-size: 28upx;
  1937. font-family: PingFang SC;
  1938. font-weight: 500;
  1939. color: #666666;
  1940. line-height: 42upx;
  1941. padding: 15upx;
  1942. }
  1943. }
  1944. .read-box {
  1945. margin-top: 30upx;
  1946. display: flex;
  1947. align-items: center;
  1948. justify-content: flex-end;
  1949. image {
  1950. width: 24upx;
  1951. height: 19upx;
  1952. margin-right: 10upx;
  1953. }
  1954. .text {
  1955. font-size: 24upx;
  1956. font-family: PingFang SC;
  1957. font-weight: 500;
  1958. color: #999999;
  1959. }
  1960. }
  1961. }
  1962. }
  1963. }
  1964. // 精选药品
  1965. .feat-title {
  1966. margin-top: 30upx;
  1967. padding: 10upx 0 33upx;
  1968. display: flex;
  1969. align-items: center;
  1970. justify-content: center;
  1971. image {
  1972. width: 37upx;
  1973. height: 37upx;
  1974. margin: 0upx 20upx;
  1975. }
  1976. text {
  1977. font-size: 36upx;
  1978. line-height: 1;
  1979. font-family: PingFang SC;
  1980. font-weight: bold;
  1981. color: #111111;
  1982. }
  1983. }
  1984. .drug-list {
  1985. display: flex;
  1986. flex-wrap: wrap;
  1987. // margin-bottom: 20upx;
  1988. .item {
  1989. margin-right: 20rpx;
  1990. margin-bottom: 20rpx;
  1991. width: 345rpx;
  1992. background: #FFFFFF;
  1993. box-shadow: 0px 0px 10rpx 4rpx rgba(199, 199, 199, 0.22);
  1994. border-radius: 20rpx;
  1995. overflow: hidden;
  1996. &:nth-child(2n) {
  1997. margin-right: 0;
  1998. }
  1999. .img-box {
  2000. width: 100%;
  2001. height: 334upx;
  2002. image {
  2003. width: 100%;
  2004. height: 100%;
  2005. }
  2006. }
  2007. .info-box {
  2008. box-sizing: border-box;
  2009. height: 182upx;
  2010. padding: 20upx;
  2011. .title {
  2012. height: 80upx;
  2013. font-size: 26upx;
  2014. font-family: PingFang SC;
  2015. font-weight: 500;
  2016. color: #111111;
  2017. line-height: 40upx;
  2018. }
  2019. .price-box {
  2020. display: flex;
  2021. align-items: center;
  2022. margin-top: 20upx;
  2023. .now {
  2024. color: #FF6633;
  2025. display: flex;
  2026. align-items: flex-end;
  2027. margin-right: 20upx;
  2028. font-family: PingFang SC;
  2029. .unit {
  2030. font-size: 24upx;
  2031. line-height: 1.4;
  2032. margin-right: 4upx;
  2033. }
  2034. .num {
  2035. font-size: 36upx;
  2036. font-weight: bold;
  2037. line-height: 1;
  2038. }
  2039. }
  2040. .old {
  2041. font-size: 26upx;
  2042. font-family: PingFang SC;
  2043. text-decoration: line-through;
  2044. color: #BBBBBB;
  2045. line-height: 1;
  2046. }
  2047. }
  2048. }
  2049. }
  2050. }
  2051. }
  2052. .modules {
  2053. .module {
  2054. .depts {
  2055. z-index: 101;
  2056. margin: 40rpx 24rpx 0rpx;
  2057. padding: 30rpx 0;
  2058. background-color: #fff;
  2059. border-radius: 16rpx;
  2060. .title {
  2061. margin-left: 32rpx;
  2062. font-family: PingFang SC;
  2063. font-weight: 600;
  2064. font-size: 34rpx;
  2065. color: #222426;
  2066. }
  2067. .dept-box {
  2068. margin-top: 22rpx;
  2069. display: flex;
  2070. align-items: center;
  2071. justify-content: flex-start;
  2072. flex-wrap: wrap;
  2073. .dept {
  2074. width: 25%;
  2075. display: flex;
  2076. flex-direction: column;
  2077. align-items: center;
  2078. justify-content: center;
  2079. padding: 14rpx 0;
  2080. .icon {
  2081. width: 58rpx;
  2082. height: 58rpx;
  2083. }
  2084. .title {
  2085. margin-left: 0;
  2086. margin-top: 10rpx;
  2087. font-size: 24upx;
  2088. font-family: PingFang SC;
  2089. font-weight: 500;
  2090. color: #111111;
  2091. }
  2092. }
  2093. }
  2094. }
  2095. .doctor-articles {
  2096. z-index: 101;
  2097. margin: 20rpx 24rpx 0rpx;
  2098. padding: 32rpx;
  2099. background-color: #fff;
  2100. border-radius: 16rpx;
  2101. .title-box {
  2102. display: flex;
  2103. flex-direction: row;
  2104. align-items: center;
  2105. justify-content: space-between;
  2106. .title {
  2107. font-size: 32upx;
  2108. font-family: PingFang SC;
  2109. font-weight: bold;
  2110. color: #111111;
  2111. }
  2112. .more {
  2113. display: flex;
  2114. align-items: center;
  2115. justify-content: flex-end;
  2116. .text {
  2117. font-size: 24rpx;
  2118. font-family: PingFang SC;
  2119. color: #9B9B9B;
  2120. }
  2121. image {
  2122. // margin-left: 10rpx;
  2123. width: 48rpx;
  2124. height: 48rpx;
  2125. }
  2126. }
  2127. }
  2128. .article-box {
  2129. padding: 32rpx 0rpx;
  2130. overflow-x: auto;
  2131. box-sizing: border-box;
  2132. display: flex;
  2133. align-items: center;
  2134. justify-content: flex-start;
  2135. .article {
  2136. width: 300rpx;
  2137. margin-right: 20rpx;
  2138. background: #f9f8fe;
  2139. display: flex;
  2140. flex-direction: column;
  2141. align-items: flex-start;
  2142. justify-content: flex-start;
  2143. &:last-child {
  2144. margin-right: 0rpx;
  2145. }
  2146. .image-box {
  2147. width: 300rpx;
  2148. height: 400rpx;
  2149. position: relative;
  2150. border-radius: 20rpx;
  2151. image {
  2152. border-radius: 20rpx;
  2153. width: 300rpx;
  2154. height: 400rpx;
  2155. }
  2156. .views {
  2157. position: absolute;
  2158. top: 0rpx;
  2159. left: 0rpx;
  2160. padding: 4rpx 12rpx;
  2161. background: rgba(0, 0, 0, 0.25);
  2162. border-radius: 12rpx 0rpx 12rpx 0rpx;
  2163. opacity: 1;
  2164. font-weight: 400;
  2165. font-size: 20rpx;
  2166. color: #FFFFFF;
  2167. font-family: PingFang SC-Bold, PingFang SC;
  2168. }
  2169. .doctor {
  2170. margin: 10rpx;
  2171. display: flex;
  2172. align-items: center;
  2173. justify-content: flex-start;
  2174. position: absolute;
  2175. bottom: 0rpx;
  2176. left: 0rpx;
  2177. image {
  2178. border-radius: 50%;
  2179. width: 64rpx;
  2180. height: 64rpx;
  2181. }
  2182. .right {
  2183. width: 200rpx;
  2184. margin-left: 10rpx;
  2185. display: flex;
  2186. flex-direction: column;
  2187. align-items: flex-start;
  2188. justify-content: space-between;
  2189. .doc-name {
  2190. width: 200rpx;
  2191. font-size: 30rpx;
  2192. font-weight: bold;
  2193. font-family: PingFang SC;
  2194. color: #fff;
  2195. }
  2196. .doc-position {
  2197. width: 100%;
  2198. font-size: 28rpx;
  2199. font-family: PingFang SC;
  2200. color: #fff;
  2201. font-weight: bold;
  2202. opacity: 0.8;
  2203. }
  2204. }
  2205. }
  2206. }
  2207. .article-title-box {
  2208. width: 100%;
  2209. margin-top: 10rpx;
  2210. display: flex;
  2211. align-items: center;
  2212. justify-content: flex-start;
  2213. .article-title {
  2214. font-size: 30rpx;
  2215. font-weight: bold;
  2216. font-family: PingFang SC;
  2217. color: #2A2B2E;
  2218. }
  2219. }
  2220. }
  2221. }
  2222. }
  2223. .doctors {
  2224. z-index: 101;
  2225. margin: 20rpx 15rpx;
  2226. padding: 20rpx;
  2227. box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  2228. background-color: #fff;
  2229. border-radius: 15rpx;
  2230. .title-box {
  2231. display: flex;
  2232. flex-direction: row;
  2233. align-items: center;
  2234. justify-content: space-between;
  2235. .title {
  2236. font-size: 32upx;
  2237. font-family: PingFang SC;
  2238. font-weight: bold;
  2239. color: #111111;
  2240. }
  2241. .more {
  2242. display: flex;
  2243. align-items: center;
  2244. justify-content: flex-end;
  2245. .text {
  2246. font-size: 24rpx;
  2247. font-family: PingFang SC;
  2248. color: #9B9B9B;
  2249. }
  2250. image {
  2251. margin-left: 10rpx;
  2252. width: 15rpx;
  2253. height: 20rpx;
  2254. }
  2255. }
  2256. }
  2257. }
  2258. .articles {
  2259. z-index: 101;
  2260. margin: 20rpx 15rpx;
  2261. padding: 20rpx;
  2262. box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  2263. background-color: #fff;
  2264. border-radius: 15rpx;
  2265. .title-box {
  2266. display: flex;
  2267. flex-direction: row;
  2268. align-items: center;
  2269. justify-content: space-between;
  2270. .title {
  2271. font-size: 32upx;
  2272. font-family: PingFang SC;
  2273. font-weight: bold;
  2274. color: #111111;
  2275. }
  2276. .more {
  2277. display: flex;
  2278. align-items: center;
  2279. justify-content: flex-end;
  2280. .text {
  2281. font-size: 24rpx;
  2282. font-family: PingFang SC;
  2283. color: #9B9B9B;
  2284. width: calc(100% - 556rpx);
  2285. }
  2286. image {
  2287. margin-left: 10rpx;
  2288. width: 15rpx;
  2289. height: 20rpx;
  2290. }
  2291. }
  2292. }
  2293. .article-box {
  2294. margin-top: 15rpx;
  2295. padding: 20rpx 0rpx 0rpx;
  2296. display: flex;
  2297. flex-direction: column;
  2298. align-items: flex-start;
  2299. justify-content: flex-start;
  2300. .item {
  2301. width: 100%;
  2302. margin-bottom: 20rpx;
  2303. display: flex;
  2304. align-items: flex-start;
  2305. justify-content: flex-start;
  2306. &:last-child {
  2307. margin-bottom: 0rpx;
  2308. }
  2309. .left {
  2310. flex: 1;
  2311. height: 160rpx;
  2312. margin-right: 15rpx;
  2313. display: flex;
  2314. flex-direction: column;
  2315. align-items: flex-start;
  2316. justify-content: space-between;
  2317. .title {
  2318. font-size: 28upx;
  2319. font-family: PingFang SC;
  2320. font-weight: bold;
  2321. color: #111111;
  2322. }
  2323. .txt {
  2324. font-family: PingFang SC, PingFang SC;
  2325. font-size: 26rpx;
  2326. color: #898E91;
  2327. }
  2328. .views {
  2329. font-size: 24upx;
  2330. font-family: PingFang SC;
  2331. color: #9a9a9c;
  2332. }
  2333. }
  2334. .right {
  2335. image {
  2336. border-radius: 10rpx;
  2337. width: 220rpx;
  2338. height: 160rpx;
  2339. border: 1px solid #eeeeee;
  2340. }
  2341. }
  2342. }
  2343. }
  2344. }
  2345. .packages {
  2346. z-index: 101;
  2347. margin: 20rpx 15rpx;
  2348. padding: 20rpx;
  2349. box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  2350. background-color: #fff;
  2351. border-radius: 15rpx;
  2352. .title-box {
  2353. display: flex;
  2354. flex-direction: row;
  2355. align-items: center;
  2356. justify-content: space-between;
  2357. .title {
  2358. font-size: 32upx;
  2359. font-family: PingFang SC;
  2360. font-weight: bold;
  2361. color: #111111;
  2362. }
  2363. .more {
  2364. display: flex;
  2365. align-items: center;
  2366. justify-content: flex-end;
  2367. .text {
  2368. font-size: 24rpx;
  2369. font-family: PingFang SC;
  2370. color: #9B9B9B;
  2371. }
  2372. image {
  2373. margin-left: 10rpx;
  2374. width: 15rpx;
  2375. height: 20rpx;
  2376. }
  2377. }
  2378. }
  2379. .package-box {
  2380. padding: 20rpx 0rpx 0rpx;
  2381. display: flex;
  2382. align-items: flex-start;
  2383. justify-content: flex-start;
  2384. flex-wrap: wrap;
  2385. .item {
  2386. width: calc(50% - 20rpx);
  2387. border-radius: 15rpx;
  2388. margin: 10rpx;
  2389. display: flex;
  2390. flex-direction: column;
  2391. align-items: flex-start;
  2392. justify-content: flex-start;
  2393. &:last-child {}
  2394. .top {
  2395. width: 100%;
  2396. height: 300rpx;
  2397. image {
  2398. border-radius: 15rpx 15rpx 0rpx 0rpx;
  2399. width: 100%;
  2400. height: 300rpx;
  2401. }
  2402. }
  2403. .bottom {
  2404. width: 100%;
  2405. margin-top: 15rpx;
  2406. .title {
  2407. font-weight: bold;
  2408. font-size: 28upx;
  2409. font-family: PingFang SC;
  2410. color: #111111;
  2411. }
  2412. .price-box {
  2413. margin-top: 10rpx;
  2414. display: flex;
  2415. align-items: center;
  2416. justify-content: space-between;
  2417. width: 100%;
  2418. .price {
  2419. padding: 5rpx 10rpx;
  2420. background-color: #0bb3f2;
  2421. border-radius: 30rpx;
  2422. font-size: 20upx;
  2423. font-family: PingFang SC;
  2424. color: #ffffff;
  2425. }
  2426. .count {
  2427. font-size: 24upx;
  2428. font-family: PingFang SC;
  2429. color: #333333;
  2430. }
  2431. }
  2432. }
  2433. }
  2434. }
  2435. }
  2436. }
  2437. }
  2438. }
  2439. .official-account {
  2440. box-sizing: border-box;
  2441. width: 100%;
  2442. height: 100upx;
  2443. position: fixed;
  2444. bottom: 30upx;
  2445. z-index: 99;
  2446. padding: 0 20upx 180rpx 20upx;
  2447. }
  2448. // 消息
  2449. .message-box {
  2450. box-sizing: border-box;
  2451. width: 100%;
  2452. height: 84upx;
  2453. background: #F3FFFD;
  2454. border: 1px solid #C7E9E5;
  2455. box-shadow: 0px 4upx 12upx 0px rgba(90, 203, 138, 0.16);
  2456. border-radius: 16upx;
  2457. position: fixed;
  2458. left: 50%;
  2459. transform: translateX(-50%);
  2460. bottom: 30upx;
  2461. z-index: 99;
  2462. display: flex;
  2463. align-items: center;
  2464. justify-content: space-between;
  2465. padding: 0 20upx 0 30upx;
  2466. .left {
  2467. flex: 1;
  2468. display: flex;
  2469. align-items: center;
  2470. image {
  2471. width: 24upx;
  2472. height: 24upx;
  2473. margin-right: 18upx;
  2474. }
  2475. .text {
  2476. width: 90%;
  2477. font-size: 28upx;
  2478. font-family: PingFang SC;
  2479. font-weight: 500;
  2480. color: #0bb3f2;
  2481. }
  2482. }
  2483. .btn {
  2484. width: 100upx;
  2485. height: 48upx;
  2486. line-height: 48upx;
  2487. text-align: center;
  2488. font-size: 24upx;
  2489. font-family: PingFang SC;
  2490. font-weight: 500;
  2491. color: #FFFFFF;
  2492. border: 1px solid #D2E6FF;
  2493. background: linear-gradient(135deg, #66b2ef 0%, #0bb3f2 100%);
  2494. border-radius: 24upx;
  2495. margin-left: 30upx;
  2496. }
  2497. }
  2498. .contact-btn {
  2499. display: inline-block;
  2500. position: absolute;
  2501. top: 0;
  2502. left: 0;
  2503. width: 100%;
  2504. height: 100%;
  2505. opacity: 0;
  2506. }
  2507. .popup-box {
  2508. position: fixed;
  2509. top: 0;
  2510. right: 0;
  2511. left: 0;
  2512. bottom: 0;
  2513. z-index: 999;
  2514. display: flex;
  2515. justify-content: center;
  2516. align-items: center;
  2517. .info-mask {
  2518. position: fixed;
  2519. top: 0;
  2520. right: 0;
  2521. bottom: 0;
  2522. left: 0;
  2523. background-color: rgba($color: #000000, $alpha: 0.5);
  2524. z-index: 999;
  2525. }
  2526. .info-form {
  2527. z-index: 1000;
  2528. width: 450rpx;
  2529. display: flex;
  2530. flex-direction: column;
  2531. justify-content: center;
  2532. align-items: center;
  2533. position: relative;
  2534. image {
  2535. width: 100%;
  2536. }
  2537. }
  2538. }
  2539. </style>