index.vue 62 KB

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