index.vue 63 KB

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