index.vue 64 KB

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