index.vue 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980
  1. <template>
  2. <view class="content">
  3. <!-- 背景图片 -->
  4. <image class="bg" src="../../static/images/hp_top_bg.png" mode=""></image>
  5. <view >
  6. <view class="top-inner" >
  7. <view class="fixed-top-box" :style="{ background: bg }">
  8. <!-- 这里是状态栏 -->
  9. <view class="status_bar" :style="{height: statusBarHeight}"></view>
  10. <view class="top-title">
  11. <image class="name" src="../../static/images/name.png"></image>
  12. <!-- <view class="name">芳华佳选</view> -->
  13. <!-- <view class="dot">•</view><view class="sub-name">七彩互联网医院</view> -->
  14. </view>
  15. <!-- 搜索框、购物车、客服 -->
  16. <view class="func-cont" >
  17. <view class="search-cont">
  18. <image class="icon-search" src="../../static/images/search.png" mode=""></image>
  19. <input type="text" disabled value="" placeholder="搜索商品、症状、功能主治" placeholder-style="font-size:28rpx;color:#BBBBBB;font-family: PingFang SC;" @click="toSearch" />
  20. </view>
  21. <!-- 购物车 -->
  22. <!-- <uni-badge size="small" :text="cartCount" absolute="rightTop" type="error">
  23. <view class="img-item" @click="goAuthUrl('../shopping/cart')">
  24. <image src="../../static/images/cart_wihte.png" mode=""></image>
  25. </view>
  26. </uni-badge> -->
  27. <view class="img-item" style="position: relative;">
  28. <image src="../../static/images/customer.png" mode=""></image>
  29. <button class="contact-btn" open-type="contact"></button>
  30. </view>
  31. </view>
  32. <!-- <view class="tips">
  33. <view class="left"></view>
  34. <view class="right" @click="navTo('./cert')">资质证明</view>
  35. </view> -->
  36. </view>
  37. </view>
  38. <!-- 头部间距 -->
  39. <view style="padding-bottom:220rpx" >
  40. <view class="status_bar" :style="{height: statusBarHeight}"></view>
  41. </view>
  42. <!-- 轮播图 -->
  43. <view class="banner-box" >
  44. <view class="inner">
  45. <swiper
  46. class="swiper"
  47. :indicator-dots="true"
  48. :circular="true"
  49. :autoplay="true"
  50. :interval="3000"
  51. :duration="1000"
  52. indicator-color="rgba(255, 255, 255, 0.6)"
  53. indicator-active-color="#ffffff"
  54. >
  55. <swiper-item class="swiper-item" v-for="(item,index) in advList" :key="index" @click="handleAdvClick(item)">
  56. <image :src="item.imageUrl" mode=""></image>
  57. </swiper-item>
  58. </swiper>
  59. </view>
  60. </view>
  61. <!-- 菜单 -->
  62. <view class="menu-content" >
  63. <view class="menu-box">
  64. <Menu :list="menus" @menuClick="menuClick" v-if="menus.length>0" style="width:100%;"></Menu>
  65. </view>
  66. </view>
  67. </view>
  68. <!-- 在线问诊、处方查询 -->
  69. <view class="online-inquiry">
  70. <view class="item" @click="navTo('/pages_shopping/shopping/productSalesList')" >
  71. <!-- <image class="bg-img" src="../../static/images/banner1.png" mode=""></image> -->
  72. <image class="bg-img" src="https://hos-1309931967.cos.ap-chongqing.myqcloud.com/fs/20250320/f2d3ba32a9344dc79b4df7c228189243.png" mode=""></image>
  73. <!-- <view class="inner">
  74. <text class="title">用药榜</text>
  75. <text class="sub-title"></text>
  76. <image src="https://hos-1309931967.cos.ap-chongqing.myqcloud.com/fs/20250320/f2d3ba32a9344dc79b4df7c228189243.png" mode=""></image>
  77. </view> -->
  78. </view>
  79. <!-- <view class="item" @click="navTo('/pages_user/user/userShareList')"> -->
  80. <view class="item" @click="navTo('/pages_shopping/shopping/productSalesList')">
  81. <!-- <image class="bg-img" src="../../static/images/banner2.png" mode=""></image> -->
  82. <image class="bg-img" src="https://hos-1309931967.cos.ap-chongqing.myqcloud.com/fs/20250320/0a47b5c6b5fb43eab0b4426d5db27471.png" mode=""></image>
  83. <!-- <view class="inner">
  84. <text class="title">分享榜</text>
  85. <text class="sub-title"></text>
  86. <image src="../../static/images/cu_search.png" mode=""></image>
  87. </view> -->
  88. </view>
  89. </view>
  90. <view class="index-cont">
  91. <!-- 医生团队 -->
  92. <!-- <view class="pub-item">
  93. <view class="pub-title-box">
  94. <text class="left">医生团队</text>
  95. <view class="right" @click="navTo('../doctor/doctorList')">
  96. <text class="text">全部医生</text>
  97. <image src="../../static/images/arrow_gray.png" mode=""></image>
  98. </view>
  99. </view>
  100. <view class="doc-cont">
  101. <view class="inner">
  102. <view class="item" v-for="(item,index) in doctorList" :key="index" @click="shopDoctor(item)">
  103. <view class="head-box">
  104. <image :src="item.headImg" mode="aspectFill"></image>
  105. </view>
  106. <text class="name ellipsis">{{ item.doctorName }}</text>
  107. <text class="position ellipsis">
  108. {{utils.getDictLabelName("doctorPosition",item.position)}}
  109. </text>
  110. </view>
  111. </view>
  112. </view>
  113. </view> -->
  114. <!-- <view class="pub-item">
  115. <view class="tabs">
  116. <view class="tab" @click="docTabChange(1)">
  117. <image v-if="docTab==1" class="img" src="../../static/images/tab1.png" mode=""></image>
  118. <view class="inner">
  119. <text :class="docTab == 1?'title active':'title'" >推荐医生</text>
  120. </view>
  121. </view>
  122. <view class="tab" @click="docTabChange(2)">
  123. <image v-if="docTab==2" class="img" src="../../static/images/tab2.png" mode=""></image>
  124. <view class="inner">
  125. <text :class="docTab == 2?'title active':'title'" >推荐药师</text>
  126. </view>
  127. </view>
  128. <view class="tab" @click="docTabChange(3)">
  129. <image v-if="docTab==3" class="img" src="../../static/images/tab3.png" mode=""></image>
  130. <view class="inner">
  131. <text :class="docTab == 3?'title active':'title'" >推荐营养师</text>
  132. </view>
  133. </view>
  134. </view>
  135. <view class="doc-tab-box">
  136. <view class="tab-inner" >
  137. <view
  138. v-for="(item,index) in depts"
  139. :key="index"
  140. :class="item.departmentId == deptId?'item active':'item'"
  141. @click="deptChange(item)"
  142. >
  143. <view class="text">
  144. {{ item.departmentName }}
  145. <image v-show="item.departmentId == deptId" class="tab-bg" src="../../static/images/tab_bg.png" mode=""></image>
  146. </view>
  147. </view>
  148. </view>
  149. <image class="right-mask" src="../../static/images/mask.png" mode=""></image>
  150. </view>
  151. <view class="doc-list">
  152. <view class="item" v-for="(item,index) in doctorList" :key="index" @click="shopDoctor(item)"> -->
  153. <!-- 头像 -->
  154. <!-- <view class="head-box">
  155. <image :src="item.headImg" mode="aspectFill"></image>
  156. </view> -->
  157. <!-- 详细信息 -->
  158. <!-- <view class="info"> -->
  159. <!-- 姓名等 -->
  160. <!-- <view class="top">
  161. <text class="name">{{ item.doctorName }}</text>
  162. <view class="line"></view>
  163. <text class="other">{{utils.getDictLabelName("doctorPosition",item.position)}}</text>
  164. <view class="line"></view>
  165. <text class="other">{{ item.departmentName }}</text>
  166. </view> -->
  167. <!-- 单位 -->
  168. <!-- <view class="unit-box"> -->
  169. <!-- <view class="level">三甲</view> -->
  170. <!-- <view class="name">{{ item.hospitalName }}</view>
  171. </view> -->
  172. <!-- 擅长 -->
  173. <!-- <view class="expertise ellipsis2">
  174. 擅长:{{ item.doctorDesc }}
  175. </view> -->
  176. <!-- 评分 -->
  177. <!-- <view class="rate-box">
  178. <view class="star">
  179. <image src="../../static/images/star.png" mode=""></image>
  180. <text>{{ item.pings }}</text>
  181. </view>
  182. <view class="line"></view>
  183. <view class="num-box">
  184. <text class="label">接诊数</text>
  185. <text class="num">{{ item.orders }}</text>
  186. </view>
  187. <view class="line"></view>
  188. <view class="num-box">
  189. <text class="label">响应速度</text>
  190. <text class="num">{{ item.speed }}分钟</text>
  191. </view>
  192. </view> -->
  193. <!-- 价格 -->
  194. <!-- <view class="price-box">
  195. <view class="btn-item" v-for="(subitme) in item.price">
  196. <text class="label" >{{subitme.priceType==1?'图文':'语音'}}</text>
  197. <text class="num">¥{{subitme.price.toFixed(2)}}</text>
  198. </view>
  199. </view>
  200. </view>
  201. </view>
  202. <view class="bottom-title" @click="navTo('../doctor/doctorList?doctorType='+docTab)">
  203. <text >{{allDoctorTitle}}</text>
  204. <image src="../../static/images/arrow3.png" mode=""></image>
  205. </view>
  206. </view>
  207. -->
  208. <!-- <view class="doc-cont">
  209. <view class="inner">
  210. <view class="item" v-for="(item,index) in doctorList" :key="index" @click="shopDoctor(item)">
  211. <view class="head-box">
  212. <image :src="item.headImg" mode="aspectFill"></image>
  213. </view>
  214. <text class="name ellipsis">{{ item.doctorName }}</text>
  215. <text class="position ellipsis">
  216. {{utils.getDictLabelName("doctorPosition",item.position)}}
  217. </text>
  218. </view>
  219. </view>
  220. </view> -->
  221. <!-- </view> -->
  222. <!-- 问诊案例 -->
  223. <!-- <view class="pub-item">
  224. <view class="pub-title-box">
  225. <text class="left">问诊案例</text>
  226. <view class="right" @click="viewAll('doctorCase')">
  227. <text class="text">全部案例</text>
  228. <image src="../../static/images/arrow_gray.png" mode=""></image>
  229. </view>
  230. </view>
  231. <view class="inner">
  232. <view class="pub-tab-box">
  233. <view class="tab-inner">
  234. <view
  235. v-for="(item,index) in orderTypes"
  236. :key="index"
  237. :class="item.id == orderType?'item cases active':'item cases'"
  238. @click="orderTypeChange(item)"
  239. >
  240. <view class="text">
  241. {{ item.name }}
  242. <image v-show="item.id == orderType" class="tab-bg" src="../../static/images/tab_bg.png" mode=""></image>
  243. </view>
  244. </view>
  245. </view>
  246. <image class="right-mask" src="../../static/images/mask.png" mode=""></image>
  247. </view>
  248. <view class="cases-list">
  249. <view class="item" v-for="(item,index) in doctorOrderList" :key="index">
  250. <view class="dec-text ellipsis2">{{item.title}}</view>
  251. <view class="images-box" v-if="item.imgs!=null" >
  252. <view class="img-item" v-for="(subitem,j) in utils.photosToArr(item.imgs)" @click="showImg(item.imgs)" :key="j">
  253. <image :src="subitem" mode="aspectFill" ></image>
  254. </view>
  255. </view>
  256. <view class="doc-info">
  257. <view class="head">
  258. <image :src="item.doctorHeadImg" mode="aspectFill"></image>
  259. </view>
  260. <view class="name">{{item.doctorName}}</view>
  261. <view class="line"></view>
  262. <view class="posit">
  263. {{utils.getDictLabelName("doctorPosition",item.doctorPosition)}}
  264. </view>
  265. <view class="line"></view>
  266. <view class="address">{{item.hospitalName}}</view>
  267. </view>
  268. <view class="answer-box">
  269. <text class="text-inner" v-if="item.orderType == '1' ">{{item.replyContent}}</text>
  270. <view class="voice-inner" v-if="item.orderType == '2'">
  271. <free-audio
  272. startPic='/static/images/play.png'
  273. endPic='/static/images/pause.png'
  274. activeColor="#2BC7B9"
  275. :audioId="'audio'+index"
  276. :url='item.replyAudioUrl'
  277. ></free-audio>
  278. </view>
  279. </view>
  280. <view class="read-box">
  281. <image src="../../static/images/eye.png" mode=""></image>
  282. <text class="text">{{item.views}}人看过</text>
  283. </view>
  284. </view>
  285. </view>
  286. </view>
  287. </view> -->
  288. <!-- 热门榜单 -->
  289. <!-- <NewProduct :detail="newProductList" /> -->
  290. <HotProduct :detail="hotProductList" />
  291. <!-- 健康百科 -->
  292. <!-- <view class="pub-item" style="margin-top: 20rpx;">
  293. <view class="pub-title-box">
  294. <text class="left">健康百科</text>
  295. <view class="right" @click="switchTo('../healthy/index')">
  296. <text class="text">更多</text>
  297. <image src="../../static/images/arrow_gray.png" mode=""></image>
  298. </view>
  299. </view>
  300. <view class="inner">
  301. <view class="pub-tab-box">
  302. <view class="tab-inner">
  303. <view
  304. v-for="(item,index) in articleCateList"
  305. :key="index"
  306. :class="item.cateId == cateId?'item active':'item'"
  307. @click="articleCateChange(item)"
  308. >
  309. <view class="text">
  310. {{ item.cateName }}
  311. <image v-show="item.cateId == cateId" class="tab-bg" src="../../static/images/tab_bg.png" mode=""></image>
  312. </view>
  313. </view>
  314. </view>
  315. <image class="right-mask" src="../../static/images/mask.png" mode=""></image>
  316. </view>
  317. <view class="know-list">
  318. <view class="item" v-for="(item,index) in articleList" :key="index" @click="showArticle(item)">
  319. <view class="left">
  320. <view class="title ellipsis2">{{ item.title }}</view>
  321. <view class="info-box">
  322. <view class="readers">
  323. <view class="head-box" v-if="item.viewsList!=null&&item.viewsList.length>0">
  324. <view class="head" v-for="(subitem,j) in item.viewsList" :key="j">
  325. <image v-if="subitem!=null" :src="subitem.avatar==null?'/static/images/detault_head.jpg':subitem.avatar" mode=""></image>
  326. </view>
  327. </view>
  328. <view class="readings">
  329. <image class="eye" src="../../static/images/eye.png" mode=""></image>
  330. <text class="num">{{item.views}}</text>
  331. </view>
  332. </view>
  333. <view class="time">{{item.publishTime}}</view>
  334. </view>
  335. </view>
  336. <view class="right">
  337. <image :src="item.imageUrl" mode="aspectFill"></image>
  338. </view>
  339. </view>
  340. </view>
  341. </view>
  342. </view> -->
  343. <!-- 精选药品 -->
  344. <TuiProduct ref="tuiProduct" />
  345. <!-- <view class="feat-title">
  346. <image src="../../static/images/tui.png" mode=""></image>
  347. <text>精选药品</text>
  348. </view>
  349. <view class="drug-list">
  350. <view class="item" v-for="(item,index) in tuiProductList" :key="index" @click="showProduct(item)">
  351. <view class="img-box">
  352. <image :src="item.image" mode="aspectFit"></image>
  353. </view>
  354. <view class="info-box">
  355. <view class="title ellipsis2">{{ item.productName }}</view>
  356. <view class="price-box">
  357. <view class="now">
  358. <text class="unit">¥</text>
  359. <text class="num">{{item.price.toFixed(2)}}</text>
  360. </view>
  361. <view class="old">¥{{item.otPrice.toFixed(2)}}</view>
  362. </view>
  363. </view>
  364. </view>
  365. </view> -->
  366. </view>
  367. <!-- 限时消息 -->
  368. <!-- <view class="message-box" >
  369. <view class="left">
  370. <image src="../../static/images/close24.png" mode="" @click="closeMsg"></image>
  371. <view class="text ellipsis">关注公众号了解更新</view>
  372. </view>
  373. <view class="btn">查看</view>
  374. </view> -->
  375. <!-- #ifdef MP-WEIXIN -->
  376. <view class="official-account" >
  377. <official-account @load="bindload" @error="binderror"></official-account>
  378. </view>
  379. <!-- #endif -->
  380. <view class="popup-box" v-if="activityShow">
  381. <view class="info-mask" @tap="closeActivity()" ></view>
  382. <view class="info-form" >
  383. <image :src="activity.logoUrl" @tap="showActivity()" />
  384. </view>
  385. </view>
  386. <z-modal :show="tuiModalControl" placeholderText="请输入邀请码" :btnGroup="btnGroup" :contentType="2" titleText="填写邀请码" @cancle="cancleTui" @sure="submitTui" ></z-modal>
  387. </view>
  388. </template>
  389. <script>
  390. import zModal from '@/components/z-modal/z-modal.vue'
  391. import {getStoreActivity} from '@/api/activity.js'
  392. import {getDepartmentList} from '@/api/doctorOrder.js'
  393. import {getMenu,getCanvas,getIndexData,getTuiDoctor,getTuiArticle,getTuiDoctorOrder,getCartCount} from '@/api/index'
  394. import {getStoreConfig} from '@/api/common'
  395. import tabBg from "@/static/images/tab_bg.png"
  396. import freeAudio from '@/components/chengpeng-audio/free-audio.vue'
  397. import Menu from '@/components/Menu.vue'
  398. import HotProduct from './components/HotProduct.vue'
  399. import NewProduct from './components/NewProduct.vue'
  400. import TuiProduct from '@/components/tuiProduct.vue'
  401. import {getUserInfo,bindPromoter} from '@/api/user'
  402. export default {
  403. components: {zModal,freeAudio,Menu,HotProduct,NewProduct,TuiProduct},
  404. data() {
  405. return {
  406. btnGroup: [{
  407. text: '取消',
  408. color: '#FFFFFF',
  409. bgColor: '#999999',
  410. width: '150rpx',
  411. height: '80rpx',
  412. shape: 'fillet',
  413. eventName: 'cancle'
  414. },{
  415. text: '确定',
  416. color: '#FFFFFF',
  417. bgColor: '#2BC7B9',
  418. width: '150rpx',
  419. height: '80rpx',
  420. shape: 'fillet',
  421. eventName: 'sure'
  422. }],
  423. tuiModalControl:false,
  424. activity:null,
  425. activityShow:false,
  426. newProductList: [],
  427. hotProductList: [],
  428. tuiProductList:[],
  429. menus:[],
  430. canvas:[],
  431. allDoctorTitle:"全部医生",
  432. topLen:0,
  433. deptId:0,
  434. depts:[],
  435. docTab:1,
  436. top:0,
  437. cartCount:0,
  438. doctorOrderList:[],
  439. orderType:0,
  440. cateId:null,
  441. articleList:[],
  442. advList:[],
  443. doctorList:[],
  444. articleCateList:[],
  445. // 状态栏的高度
  446. statusBarHeight: uni.getStorageSync('menuInfo').statusBarHeight,
  447. tabBg: tabBg, // tab切换背景
  448. // 问诊案例类型
  449. orderTypes: [{name:'全部',id:0,},{name:'图文',id:1,},{name:'语音',id:2,}],
  450. // 限时消息是否显示
  451. messageShow: true,
  452. }
  453. this.getStoreActivity();
  454. },
  455. onLoad(option) {
  456. if(option.userCode!=null){
  457. uni.setStorageSync('userCode',option.userCode);
  458. if(this.utils.checkLoginState()){
  459. this.getUserInfo();
  460. }
  461. }
  462. if (option.hasOwnProperty('q') && option.q) {
  463. // 通过下面这步解码,可以拿到url的值
  464. const url = decodeURIComponent(option.q)
  465. this.url=url;
  466. // // 对url中携带的参数提取处理
  467. const obj = this.utils.urlToObj(url)
  468. uni.setStorageSync('userCode',obj.userCode);
  469. if(this.utils.checkLoginState()){
  470. this.getUserInfo();
  471. }
  472. }
  473. this.getStoreActivity()
  474. },
  475. // 暂停所有音频(一般用于页面切换时停止正在播放的音频)
  476. onUnload() { //普通页面在 onUnload 生命周期中执行
  477. uni.$emit('stop')
  478. },
  479. onHide() { //tabBar页面在onHide生命周期中执行
  480. uni.$emit('stop')
  481. },
  482. onPageScroll(e) {
  483. //console.log(e)
  484. this.top=e.scrollTop;
  485. },
  486. mounted() {
  487. //this.getDepartmentList();
  488. },
  489. onShareAppMessage(res) {
  490. return {
  491. title: '芳华佳选',
  492. path: `/pages/common/launch`,
  493. imageUrl: 'https://hos-1309931967.cos.ap-chongqing.myqcloud.com/fs/20250310/aeb776c6aa174d7c94181e5fd212e0f1.png' //分享图标,路径可以是本地文件路径、代码包文件路径或者网络图片路径.支持PNG及JPG。显示图片长宽比是 5:4
  494. }
  495. },
  496. onReachBottom() {
  497. console.log("onReachBottom")
  498. this.$refs.tuiProduct.getTuiProducts();
  499. },
  500. //分享到朋友圈
  501. onShareTimeline(res) {
  502. return {
  503. title: '芳华佳选互联网医院',
  504. query:'',//页面参数
  505. imageUrl: 'https://hos-1309931967.cos.ap-chongqing.myqcloud.com/fs/20250310/aeb776c6aa174d7c94181e5fd212e0f1.png' //分享图标,路径可以是本地文件路径、代码包文件路径或者网络图片路径.支持PNG及JPG。显示图片长宽比是 5:4
  506. }
  507. },
  508. computed: {
  509. // 计算属性的 getter
  510. bg: function() {
  511. var top=this.top/30;
  512. // console.log(top)
  513. return 'rgba(43,199,185, ' + top + ')';
  514. },
  515. },
  516. onShow() {
  517. this.getMenu();
  518. this.getIndexData()
  519. //this.getTuiDoctorOrder();
  520. // console.log(uni.getStorageSync('isLocation'))
  521. // if(uni.getStorageSync('isLocation')==""){
  522. // this.getLocation();
  523. // }
  524. if(this.utils.checkLoginState()){
  525. this.getCartCount();
  526. }
  527. this.getStoreConfig();
  528. //this.getTuiDoctor()
  529. this.getCanvas();
  530. },
  531. methods: {
  532. navToMiniProgram(){
  533. uni.navigateToMiniProgram({
  534. // appid 写你要跳转的小程序的 appid
  535. appId: 'wx19c8813ffc33d1cb',
  536. // 路径写 src下的路径,假如你跳转的是pages下的页面,就可以写pages/index
  537. path: '/pages/common/launch',
  538. extraData: {
  539. // 'type': 'out'
  540. },
  541. // 这个不写的话会显示开发环境,不能正常跳转,写上就能正常跳转了
  542. envVersion: 'develop',
  543. success(res) {
  544. // 打开成功
  545. // uni.showToast({
  546. // title: '跳转成功'
  547. // })
  548. },
  549. fail(err) {
  550. // 打开失败/取消
  551. // uni.showToast({
  552. // title: '跳转不成功'
  553. // })
  554. }
  555. })
  556. },
  557. getUserInfo(){
  558. getUserInfo().then(
  559. res => {
  560. if(res.code==200){
  561. if(res.user!=null){
  562. if(res.user.isPromoter==null||res.user.isPromoter==0){
  563. this.tuiModalControl=true
  564. }
  565. }
  566. }else{
  567. uni.showToast({
  568. icon:'none',
  569. title: "请求失败",
  570. });
  571. }
  572. },
  573. rej => {}
  574. );
  575. },
  576. cancleTui(e){
  577. this.tuiModalControl=false
  578. },
  579. submitTui(e){
  580. console.log(e)
  581. if(e.inputText==null||e.inputText==""){
  582. uni.showToast({
  583. icon:'none',
  584. title: "请输入邀请码",
  585. });
  586. return;
  587. }
  588. var data={userCode:e.inputText};
  589. bindPromoter(data).then(
  590. res => {
  591. if(res.code==200){
  592. uni.showToast({
  593. icon:'none',
  594. title: res.msg,
  595. });
  596. this.tuiModalControl=false
  597. }else{
  598. uni.showToast({
  599. icon:'none',
  600. title: res.msg,
  601. });
  602. }
  603. },
  604. rej => {}
  605. );
  606. },
  607. bindload:function(detail){
  608. },
  609. binderror:function(detail){
  610. },
  611. closeActivity(){
  612. this.activityShow=false;
  613. // uni.setStorageSync(this.activity.activityId,null);
  614. },
  615. getStoreActivity() {
  616. let data = { }
  617. getStoreActivity(data).then(res => {
  618. this.activity=res.activity;
  619. if(this.activity!=null){
  620. // if(uni.getStorageSync(this.activity.activityId)!=null)
  621. // {
  622. // uni.setStorageSync(this.activity.activityId,1);
  623. // this.activityShow=true;
  624. // }
  625. // else{
  626. // this.activityShow=false;
  627. // }
  628. this.activityShow=true;
  629. }
  630. else{
  631. this.activityShow=false;
  632. }
  633. })
  634. },
  635. showActivity(){
  636. this.activityShow=false;
  637. uni.navigateTo({
  638. url: '/pages_shopping/shopping/activityDetails?activityId='+this.activity.activityId
  639. })
  640. },
  641. menuClick(item){
  642. if(item.linkType==1){
  643. if(item.linkUrl=="/pages/shopping/index"){
  644. uni.switchTab({
  645. url: item.linkUrl
  646. })
  647. }
  648. else if(item.linkUrl=="/pages/healthy/index"){
  649. uni.switchTab({
  650. url: item.linkUrl
  651. })
  652. }
  653. else{
  654. uni.navigateTo({
  655. url: item.linkUrl
  656. })
  657. }
  658. }
  659. else if(item.linkType==0){
  660. // this.navToMiniProgram();
  661. uni.showToast({
  662. icon:'none',
  663. title: "开发中...",
  664. });
  665. }
  666. },
  667. goDev(){
  668. uni.showToast({
  669. icon:'none',
  670. title: "开发中...",
  671. });
  672. },
  673. handleAdvClick(item){
  674. console.log(item);
  675. if(item.showType==1){
  676. uni.setStorageSync('url',item.advUrl);
  677. uni.navigateTo({
  678. url:"h5"
  679. })
  680. }
  681. else if(item.showType==2){
  682. uni.navigateTo({
  683. url:item.advUrl
  684. })
  685. }
  686. else if(item.showType==3){
  687. uni.setStorageSync('content',item.content);
  688. uni.navigateTo({
  689. url:"content"
  690. })
  691. }
  692. },
  693. deptChange(item){
  694. this.deptId=item.departmentId;
  695. this.getTuiDoctor();
  696. },
  697. getMenu(){
  698. getMenu().then(res => {
  699. console.log(res)
  700. if(res.code==200){
  701. this.menus= res.data
  702. }else{
  703. }
  704. });
  705. },
  706. getCanvas(){
  707. getCanvas().then(res => {
  708. if(res.code==200){
  709. console.log(res.data)
  710. this.canvas= JSON.parse(res.data.json)
  711. }else{
  712. }
  713. });
  714. },
  715. getDepartmentList(){
  716. this.depts=[];
  717. getDepartmentList().then(res => {
  718. if(res.code==200){
  719. var allDept={departmentId:0,departmentName:"全部"}
  720. this.depts.push(allDept);
  721. this.depts=this.depts.concat(res.data);
  722. }else{
  723. uni.showToast({
  724. icon:'none',
  725. title: "请求失败",
  726. });
  727. }
  728. });
  729. },
  730. getTuiDoctor(){
  731. let data = {departmentId:this.deptId,doctorType:this.docTab};
  732. getTuiDoctor(data).then(
  733. res => {
  734. if(res.code==200){
  735. this.doctorList=res.data;
  736. }else{
  737. uni.showToast({
  738. icon:'none',
  739. title: "请求失败",
  740. });
  741. }
  742. },
  743. rej => {}
  744. );
  745. },
  746. docTabChange(val){
  747. if(val==1){
  748. this.allDoctorTitle="全部医师"
  749. }
  750. if(val==2){
  751. this.allDoctorTitle="全部药师"
  752. }
  753. if(val==3){
  754. this.allDoctorTitle="全部营养师"
  755. }
  756. this.docTab=val;
  757. this.getTuiDoctor();
  758. },
  759. showImg(urls) {
  760. var imgArr =urls.split(',');
  761. //预览图片
  762. uni.previewImage({
  763. urls: imgArr,
  764. current: imgArr[0]
  765. });
  766. },
  767. getStoreConfig(){
  768. getStoreConfig().then(
  769. res => {
  770. if(res.code==200){
  771. uni.setStorageSync('config',JSON.stringify(res.data));
  772. }
  773. },
  774. rej => {}
  775. );
  776. },
  777. goAuthUrl(url){
  778. this.utils.isLogin().then(res => {
  779. if(res){
  780. uni.switchTab({
  781. url:url
  782. })
  783. }
  784. })
  785. },
  786. switchTo(url){
  787. uni.switchTab({
  788. url: url
  789. })
  790. return
  791. },
  792. // 跳转页面
  793. navTo(url){
  794. uni.navigateTo({
  795. url: url
  796. })
  797. },
  798. getLocation(){
  799. var that=this;
  800. uni.authorize({
  801. scope:'scope.userLocation',
  802. success() {
  803. uni.getLocation({
  804. type: 'gcj02',//腾讯地图使用gcj02获取位置坐标
  805. success: function (res) {
  806. uni.setStorageSync('isLocation',1);
  807. uni.setStorageSync('lng',res.longitude);
  808. uni.setStorageSync('lat',res.latitude);
  809. },
  810. })
  811. },
  812. fail(err){
  813. console.log(err)
  814. }
  815. })
  816. },
  817. getIndexData(){
  818. let data = {};
  819. getIndexData(data).then(
  820. res => {
  821. if(res.code==200){
  822. this.advList=res.data.advList;
  823. this.articleCateList=res.data.articleCateList;
  824. if(this.articleCateList!=null&&this.articleCateList.length>0){
  825. this.cateId=this.articleCateList[0].cateId;
  826. this.getTuiArticle()
  827. }
  828. this.tuiProductList=res.data.tuiProductList
  829. this.newProductList = res.data.newProductList
  830. this.hotProductList = res.data.hotProductList
  831. }else{
  832. uni.showToast({
  833. icon:'none',
  834. title: "请求失败",
  835. });
  836. }
  837. },
  838. rej => {}
  839. );
  840. },
  841. getCartCount(){
  842. this.utils.isLogin().then(res => {
  843. if(res){
  844. getCartCount().then(
  845. cartRes => {
  846. if(cartRes.code==200){
  847. this.cartCount=cartRes.data;
  848. }
  849. },
  850. rej => {}
  851. );
  852. }
  853. })
  854. },
  855. getTuiArticle(){
  856. let data = {cateId:this.cateId};
  857. getTuiArticle(data).then(
  858. res => {
  859. if(res.code==200){
  860. this.articleList=res.data;
  861. }else{
  862. uni.showToast({
  863. icon:'none',
  864. title: "请求失败",
  865. });
  866. }
  867. },
  868. rej => {}
  869. );
  870. },
  871. getTuiDoctorOrder(){
  872. let data = {orderType:this.orderType};
  873. getTuiDoctorOrder(data).then(
  874. res => {
  875. if(res.code==200){
  876. this.doctorOrderList=res.data;
  877. }else{
  878. uni.showToast({
  879. icon:'none',
  880. title: "请求失败",
  881. });
  882. }
  883. },
  884. rej => {}
  885. );
  886. },
  887. showArticle(item){
  888. uni.navigateTo({
  889. url: '../healthy/detail?articleId='+item.articleId
  890. })
  891. },
  892. showProduct(item){
  893. uni.navigateTo({
  894. url: '../shopping/productDetails?productId='+item.productId
  895. })
  896. },
  897. // 顶部搜索
  898. toSearch() {
  899. uni.navigateTo({
  900. url: './productSearch'
  901. })
  902. },
  903. // 健康知识选中
  904. articleCateChange(item) {
  905. this.cateId = item.cateId;
  906. this.getTuiArticle();
  907. },
  908. // 问诊案例选中
  909. orderTypeChange(item) {
  910. this.orderType = item.id;
  911. console.log(this.orderType)
  912. this.getTuiDoctorOrder();
  913. },
  914. // 关闭限时消息
  915. closeMsg() {
  916. this.messageShow = false
  917. },
  918. // 查看全部
  919. viewAll(url) {
  920. uni.navigateTo({
  921. url: '/pages/home/' + url,
  922. });
  923. },
  924. shopDoctor(item){
  925. console.log(item);
  926. uni.navigateTo({
  927. url: "../doctor/doctorDetail?doctorId="+item.doctorId
  928. })
  929. },
  930. // 跳转页面
  931. navgetTo(url) {
  932. uni.navigateTo({
  933. url: url
  934. })
  935. },
  936. switchTo(url){
  937. uni.switchTab({
  938. url: url
  939. })
  940. return
  941. },
  942. // 在线问诊
  943. openIm() {
  944. uni.navigateTo({
  945. url: '../doctor/doctorOrderIM?orderId=10'
  946. })
  947. }
  948. }
  949. }
  950. </script>
  951. <style lang="scss">
  952. .fixed-top-box{
  953. width: 100%;
  954. position: fixed;
  955. top: 0;
  956. left: 0;
  957. z-index: 1000;
  958. transition: all 0.5s;
  959. background-color: #2bc7b9;
  960. &.show-back{
  961. // background: linear-gradient(135deg, #2BC7B9 0%, #60CDC3 100%);
  962. }
  963. .status_bar {
  964. width: 100%;
  965. }
  966. }
  967. .content{
  968. width: 100%;
  969. position: relative;
  970. .bg{
  971. width: 100%;
  972. height: 380rpx;
  973. position: absolute;
  974. top: 0;
  975. left: 0;
  976. }
  977. .top-inner{
  978. width: 100%;
  979. position: absolute;
  980. top: 0;
  981. left: 0;
  982. z-index: 5;
  983. .top-title{
  984. height: 88upx;
  985. line-height: 88upx;
  986. display: flex;
  987. align-items: center;
  988. justify-content: flex-start;
  989. .name{
  990. margin-left: 15rpx;
  991. width: 183rpx;
  992. height: 75rpx;
  993. image{
  994. width:100%;
  995. height:100%;
  996. }
  997. }
  998. .dot{
  999. margin: 0upx 10upx;
  1000. font-size: 28upx;
  1001. color: #FFFFFF;
  1002. opacity: 0.5;
  1003. }
  1004. .sub-name{
  1005. font-size: 30upx;
  1006. font-family: Source Han Sans CN;
  1007. color: #FFFFFF;
  1008. }
  1009. }
  1010. .func-cont{
  1011. box-sizing: border-box;
  1012. display: flex;
  1013. align-items: center;
  1014. padding: 30upx 20upx 30upx 20upx;
  1015. .search-cont{
  1016. box-sizing: border-box;
  1017. display: flex;
  1018. align-items: center;
  1019. flex: 1;
  1020. height: 72upx;
  1021. background: #FFFFFF;
  1022. border-radius: 36upx;
  1023. padding: 0 30upx;
  1024. .icon-search{
  1025. width: 28upx;
  1026. height: 28upx;
  1027. margin-right: 20upx;
  1028. }
  1029. input{
  1030. height: 60upx;
  1031. line-height: 60upx;
  1032. flex: 1;
  1033. }
  1034. }
  1035. ::v-deep.uni-badge{
  1036. border: none;
  1037. background-color: #FF3636;
  1038. font-family: Roboto;
  1039. }
  1040. .img-item{
  1041. width: 44upx;
  1042. height: 44upx;
  1043. margin-left: 30upx;
  1044. image{
  1045. width: 100%;
  1046. height: 100%;
  1047. }
  1048. }
  1049. }
  1050. .tips{
  1051. margin: 0upx 20rpx 30rpx ;
  1052. height: 40upx;
  1053. line-height: 40upx;
  1054. display: flex;
  1055. justify-content: space-between;
  1056. align-items: center;
  1057. .left{
  1058. font-size: 30upx;
  1059. color: #FFFFFF;
  1060. }
  1061. .right{
  1062. padding: 5upx 20rpx;
  1063. font-size: 24upx;
  1064. color: #FFFFFF;
  1065. background-color: #2bc7b9;
  1066. border-radius: 50rpx;
  1067. }
  1068. }
  1069. }
  1070. .banner-box{
  1071. padding: 0 20upx;
  1072. .inner{
  1073. width: 100%;
  1074. height: 236upx;
  1075. border-radius: 10upx;
  1076. overflow: hidden;
  1077. .swiper,
  1078. .swiper-item,
  1079. .swiper-item image{
  1080. width: 100%;
  1081. height: 100%;
  1082. }
  1083. }
  1084. }
  1085. .menu-content{
  1086. // width: 100%;
  1087. background-color: #fff;
  1088. overflow: hidden;
  1089. padding: 20upx 20upx 0;
  1090. }
  1091. .menu-box{
  1092. display: flex;
  1093. align-items: center;
  1094. background-color: #FFFFFF;
  1095. }
  1096. .online-inquiry{
  1097. box-sizing: border-box;
  1098. width: 100%;
  1099. height: 170upx;
  1100. padding: 0 20upx;
  1101. background: linear-gradient(180deg, rgba(255, 255, 255, 0.38) 62%, rgba(255, 255, 255, 0) 100%);
  1102. display: flex;
  1103. justify-content: space-between;
  1104. .item{
  1105. // width: 46.13%;
  1106. width: 346upx;
  1107. height: 150upx;
  1108. position: relative;
  1109. .bg-img,
  1110. .inner{
  1111. border-radius: 15rpx;
  1112. width: 100%;
  1113. height: 100%;
  1114. position: absolute;
  1115. top: 0;
  1116. left: 0;
  1117. z-index: 1;
  1118. }
  1119. .inner{
  1120. box-sizing: border-box;
  1121. z-index: 2;
  1122. display: flex;
  1123. flex-direction: column;
  1124. justify-content: center;
  1125. padding-left: 32upx;
  1126. .title{
  1127. font-size: 30upx;
  1128. line-height: 1;
  1129. font-family: PingFang SC;
  1130. font-weight: 500;
  1131. color: #111111;
  1132. margin-bottom: 20upx;
  1133. }
  1134. .sub-title{
  1135. font-size: 24upx;
  1136. font-family: PingFang SC;
  1137. font-weight: 500;
  1138. color: #666666;
  1139. }
  1140. image{
  1141. width: 80upx;
  1142. height: 90upx;
  1143. position: absolute;
  1144. right: 7upx;
  1145. bottom: 7upx;
  1146. }
  1147. }
  1148. }
  1149. }
  1150. .index-cont{
  1151. box-sizing: border-box;
  1152. padding: 0 20upx 120rpx;
  1153. .pub-item{
  1154. background: #FFFFFF;
  1155. border-radius: 16upx;
  1156. margin-bottom: 20upx;
  1157. .tabs{
  1158. width: 100%;
  1159. display: flex;
  1160. align-items: center;
  1161. justify-content: flex-start;
  1162. height: 110rpx;
  1163. background-color: #F0F3F4;
  1164. .tab{
  1165. height: 110rpx;
  1166. display: flex;
  1167. align-items: center;
  1168. justify-content: center;
  1169. position: relative;
  1170. flex: 1;
  1171. .img{
  1172. z-index: 1;
  1173. position: absolute;
  1174. top:0rpx;
  1175. left:0rpx;
  1176. width: 100%;
  1177. height: 100%;
  1178. }
  1179. .inner{
  1180. z-index: 2;
  1181. .title{
  1182. font-size: 32upx;
  1183. font-family: PingFang SC;
  1184. font-weight: bold;
  1185. color: #666666;
  1186. }
  1187. .active{
  1188. color: #2BC7B9;
  1189. }
  1190. }
  1191. }
  1192. }
  1193. .pub-title-box{
  1194. box-sizing: border-box;
  1195. padding: 36upx 30upx;
  1196. display: flex;
  1197. align-items: center;
  1198. justify-content: space-between;
  1199. .left{
  1200. font-size: 32upx;
  1201. line-height: 1;
  1202. font-family: PingFang SC;
  1203. font-weight: bold;
  1204. color: #111111;
  1205. }
  1206. .right{
  1207. display: flex;
  1208. align-items: center;
  1209. justify-content: center;
  1210. .text{
  1211. font-size: 24rpx;
  1212. line-height: 1;
  1213. font-family: PingFang SC;
  1214. font-weight: 500;
  1215. color: #999999;
  1216. margin-right: 10upx;
  1217. }
  1218. image{
  1219. width: 14upx;
  1220. height: 24upx;
  1221. }
  1222. }
  1223. }
  1224. .doc-tab-box{
  1225. padding: 14rpx 30rpx 0rpx 30rpx;
  1226. position: relative;
  1227. .tab-inner{
  1228. padding: 14upx 0 30upx;
  1229. display: flex;
  1230. overflow-x: auto;
  1231. }
  1232. .item{
  1233. font-size: 28upx;
  1234. white-space: nowrap;
  1235. line-height: 1;
  1236. font-family: PingFang SC;
  1237. font-weight: 500;
  1238. color: #666666;
  1239. margin-right: 40upx;
  1240. position: relative;
  1241. &:last-child{
  1242. margin-right: 0;
  1243. }
  1244. &.active{
  1245. font-weight: bold;
  1246. color: #333333;
  1247. }
  1248. &.cases{
  1249. margin-right: 60upx;
  1250. }
  1251. .text{
  1252. position: relative;
  1253. z-index: 1;
  1254. }
  1255. .tab-bg{
  1256. width: 72upx;
  1257. height: 28upx;
  1258. position: absolute;
  1259. top: 17upx;
  1260. left: 50%;
  1261. transform: translateX(-36upx);
  1262. z-index: -1;
  1263. }
  1264. }
  1265. .right-mask{
  1266. width: 56upx;
  1267. height: 34upx;
  1268. position: absolute;
  1269. top: 25upx;
  1270. right: 0upx;
  1271. z-index: 1;
  1272. }
  1273. }
  1274. .doc-list{
  1275. padding: 20upx;
  1276. .item{
  1277. box-sizing: border-box;
  1278. background: #FFFFFF;
  1279. // border-radius: 16upx;
  1280. display: flex;
  1281. border-bottom: 1px solid #F0F0F0;
  1282. margin-bottom: 30rpx;
  1283. .head-box{
  1284. width: 120upx;
  1285. height: 120upx;
  1286. background: #EDF1F4;
  1287. border-radius: 50%;
  1288. overflow: hidden;
  1289. margin-right: 30upx;
  1290. image{
  1291. width: 100%;
  1292. height: 100%;
  1293. }
  1294. }
  1295. .info{
  1296. width: calc(100% - 150upx);
  1297. .top{
  1298. display: flex;
  1299. align-items: center;
  1300. font-family: PingFang SC;
  1301. line-height: 1;
  1302. .name{
  1303. font-size: 34upx;
  1304. font-weight: bold;
  1305. color: #111111;
  1306. }
  1307. .line{
  1308. width: 1px;
  1309. height: 26upx;
  1310. background: #DDDDDD;
  1311. margin: 0 20upx;
  1312. }
  1313. .other{
  1314. font-size: 28upx;
  1315. font-weight: 500;
  1316. color: #333333;
  1317. }
  1318. }
  1319. .unit-box{
  1320. display: flex;
  1321. margin-top: 24upx;
  1322. .level{
  1323. padding: 0 10upx;
  1324. height: 30upx;
  1325. line-height: 30upx;
  1326. font-size: 22upx;
  1327. font-family: PingFang SC;
  1328. font-weight: 500;
  1329. color: #FFFFFF;
  1330. background: #2BC7B9;
  1331. border-radius: 10upx 4upx 10upx 4upx;
  1332. margin-right: 12upx;
  1333. }
  1334. .name{
  1335. font-size: 28upx;
  1336. font-family: PingFang SC;
  1337. font-weight: 500;
  1338. color: #333333;
  1339. line-height: 30upx;
  1340. }
  1341. }
  1342. .expertise{
  1343. font-size: 26upx;
  1344. font-family: PingFang SC;
  1345. font-weight: 500;
  1346. color: #666666;
  1347. line-height: 42upx;
  1348. margin: 22upx 0 26upx;
  1349. }
  1350. .rate-box{
  1351. display: flex;
  1352. align-items: center;
  1353. .star{
  1354. display: flex;
  1355. align-items: center;
  1356. image{
  1357. width: 22upx;
  1358. height: 22upx;
  1359. margin-right: 10upx;
  1360. }
  1361. text{
  1362. font-size: 26upx;
  1363. font-family: PingFang SC;
  1364. font-weight: bold;
  1365. color: #CEA764;
  1366. line-height: 1;
  1367. }
  1368. }
  1369. .line{
  1370. width: 1px;
  1371. height: 20upx;
  1372. background: #DDDDDD;
  1373. margin: 0 20upx;
  1374. }
  1375. .num-box{
  1376. display: flex;
  1377. align-items: center;
  1378. font-family: PingFang SC;
  1379. .label{
  1380. font-size: 24upx;
  1381. font-weight: 500;
  1382. color: #999999;
  1383. line-height: 1;
  1384. margin-right: 7px;
  1385. }
  1386. .num{
  1387. font-size: 26upx;
  1388. font-weight: bold;
  1389. color: #CEA764;
  1390. line-height: 1;
  1391. }
  1392. }
  1393. }
  1394. .price-box{
  1395. display: flex;
  1396. align-items: center;
  1397. margin-top: 38upx;
  1398. .btn-item{
  1399. display: flex;
  1400. align-items: center;
  1401. justify-content: center;
  1402. width: 164upx;
  1403. height: 56upx;
  1404. line-height: 56upx;
  1405. border: 1px solid rgba(43, 199, 185, 0.5);
  1406. border-radius: 28upx;
  1407. font-family: PingFang SC;
  1408. margin-right: 30upx;
  1409. &:last-child{
  1410. margin-right: 0;
  1411. }
  1412. .label{
  1413. font-size: 26upx;
  1414. font-weight: 500;
  1415. color: #2BC7B9;
  1416. margin-right: 5upx;
  1417. }
  1418. .num{
  1419. font-size: 28upx;
  1420. font-weight: bold;
  1421. color: #2BC7B9;
  1422. }
  1423. }
  1424. }
  1425. }
  1426. }
  1427. .item:last-child{
  1428. border-bottom: none;
  1429. margin-bottom: 0rpx;
  1430. }
  1431. .bottom-title{
  1432. height: 50rpx;
  1433. display: flex;
  1434. align-items: center;
  1435. justify-content: center;
  1436. font-size: 26rpx;
  1437. font-family: PingFang SC;
  1438. font-weight: bold;
  1439. color: #2BC7B9;
  1440. image{
  1441. margin-left: 8rpx;
  1442. width: 14rpx;
  1443. height: 24rpx;
  1444. }
  1445. }
  1446. }
  1447. // 医师团队
  1448. .doc-cont{
  1449. box-sizing: border-box;
  1450. padding: 0 30upx;
  1451. .inner{
  1452. padding: 4upx 0 40upx;
  1453. display: flex;
  1454. overflow-x: auto;
  1455. }
  1456. .item{
  1457. display: flex;
  1458. align-items: center;
  1459. flex-direction: column;
  1460. margin-right: 40upx;
  1461. &:last-child{
  1462. margin-right: 0;
  1463. }
  1464. .head-box{
  1465. width: 120upx;
  1466. height: 120upx;
  1467. background: #F2F5F9;
  1468. border-radius: 50%;
  1469. margin-bottom: 20upx;
  1470. overflow: hidden;
  1471. image{
  1472. width: 100%;
  1473. height: 100%;
  1474. }
  1475. }
  1476. .name{
  1477. max-width: 120upx;
  1478. font-size: 28upx;
  1479. line-height: 1;
  1480. font-family: PingFang SC;
  1481. font-weight: 500;
  1482. color: #111111;
  1483. margin-bottom: 16upx;
  1484. text-align: center;
  1485. }
  1486. .position{
  1487. max-width: 120upx;
  1488. font-size: 24upx;
  1489. line-height: 1;
  1490. font-family: PingFang SC;
  1491. font-weight: 500;
  1492. color: #999999;
  1493. text-align: center;
  1494. }
  1495. }
  1496. }
  1497. .inner{
  1498. padding: 0 30upx;
  1499. }
  1500. // 健康知识
  1501. .pub-tab-box{
  1502. position: relative;
  1503. .tab-inner{
  1504. padding: 14upx 0 30upx;
  1505. display: flex;
  1506. overflow-x: auto;
  1507. }
  1508. .item{
  1509. font-size: 28upx;
  1510. white-space: nowrap;
  1511. line-height: 1;
  1512. font-family: PingFang SC;
  1513. font-weight: 500;
  1514. color: #666666;
  1515. margin-right: 40upx;
  1516. position: relative;
  1517. &:last-child{
  1518. margin-right: 0;
  1519. }
  1520. &.active{
  1521. font-weight: bold;
  1522. color: #333333;
  1523. }
  1524. &.cases{
  1525. margin-right: 60upx;
  1526. }
  1527. .text{
  1528. position: relative;
  1529. z-index: 1;
  1530. }
  1531. .tab-bg{
  1532. width: 72upx;
  1533. height: 28upx;
  1534. position: absolute;
  1535. top: 17upx;
  1536. left: 50%;
  1537. transform: translateX(-36upx);
  1538. z-index: -1;
  1539. }
  1540. }
  1541. .right-mask{
  1542. width: 56upx;
  1543. height: 34upx;
  1544. position: absolute;
  1545. top: 14upx;
  1546. right: -30upx;
  1547. z-index: 1;
  1548. }
  1549. }
  1550. .know-list{
  1551. padding-right: 10upx;
  1552. .item{
  1553. padding: 30upx 0;
  1554. display: flex;
  1555. align-items: center;
  1556. justify-content: space-between;
  1557. border-bottom: 1px solid #F0F0F0;
  1558. &:last-child{
  1559. border-bottom: none;
  1560. }
  1561. .left{
  1562. flex: 1;
  1563. padding-right: 40upx;
  1564. height: 190upx;
  1565. display: flex;
  1566. flex-direction: column;
  1567. justify-content: space-between;
  1568. .title{
  1569. font-size: 32upx;
  1570. font-family: PingFang SC;
  1571. font-weight: 500;
  1572. color: #111111;
  1573. line-height: 48upx;
  1574. }
  1575. .info-box{
  1576. width: 100%;
  1577. display: flex;
  1578. align-items: center;
  1579. justify-content: space-between;
  1580. .readers{
  1581. display: flex;
  1582. align-items: center;
  1583. .head-box{
  1584. margin-right: 27upx;
  1585. display: flex;
  1586. align-items: center;
  1587. .head{
  1588. width: 48upx;
  1589. height: 48upx;
  1590. border-radius: 50%;
  1591. overflow: hidden;
  1592. box-shadow: 0 0 0 1px #fff;
  1593. margin-right: -10upx;
  1594. image{
  1595. width: 100%;
  1596. height: 100%;
  1597. }
  1598. }
  1599. }
  1600. .readings{
  1601. display: flex;
  1602. align-items: center;
  1603. .eye{
  1604. width: 26upx;
  1605. height: 20upx;
  1606. margin-right: 9upx;
  1607. }
  1608. .num{
  1609. font-size: 24upx;
  1610. font-family: PingFang SC;
  1611. font-weight: 500;
  1612. color: #999999;
  1613. line-height: 1;
  1614. }
  1615. }
  1616. }
  1617. .time{
  1618. font-size: 24upx;
  1619. line-height: 1;
  1620. font-family: PingFang SC;
  1621. font-weight: 500;
  1622. color: #999999;
  1623. }
  1624. }
  1625. }
  1626. .right{
  1627. width: 250upx;
  1628. height: 190upx;
  1629. border-radius: 8upx;
  1630. overflow: hidden;
  1631. image{
  1632. width: 100%;
  1633. height: 100%;
  1634. }
  1635. }
  1636. }
  1637. }
  1638. // 问诊案例
  1639. .cases-list{
  1640. padding-bottom: 10upx;
  1641. .item{
  1642. padding: 30upx 0;
  1643. border-bottom: 1px solid #F0F0F0;
  1644. &:last-child{
  1645. border-bottom: none;
  1646. }
  1647. .dec-text{
  1648. font-size: 32upx;
  1649. font-family: PingFang SC;
  1650. font-weight: bold;
  1651. color: #111111;
  1652. line-height: 48upx;
  1653. }
  1654. .images-box{
  1655. margin-top: 10upx;
  1656. display: flex;
  1657. flex-wrap: wrap;
  1658. .img-item{
  1659. width: 155upx;
  1660. height: 155upx;
  1661. background: #F5F5F5;
  1662. border-radius: 8upx;
  1663. margin: 0 10upx 10upx 0;
  1664. overflow: hidden;
  1665. image{
  1666. width: 100%;
  1667. height: 100%;
  1668. }
  1669. &:nth-child(4n){
  1670. margin-right: 0;
  1671. }
  1672. }
  1673. }
  1674. .doc-info{
  1675. display: flex;
  1676. align-items: center;
  1677. margin: 30upx 0 20upx;
  1678. .head{
  1679. width: 60upx;
  1680. height: 60upx;
  1681. background: #F2F5F9;
  1682. border-radius: 50%;
  1683. margin-right: 20upx;
  1684. overflow: hidden;
  1685. image{
  1686. width: 100%;
  1687. height: 100%;
  1688. }
  1689. }
  1690. .name{
  1691. font-size: 28upx;
  1692. line-height: 1;
  1693. font-family: PingFang SC;
  1694. font-weight: 500;
  1695. color: #111111;
  1696. }
  1697. .line{
  1698. width: 1px;
  1699. height: 22upx;
  1700. background: #DDDDDD;
  1701. margin: 0 16upx;
  1702. }
  1703. .posit,
  1704. .address{
  1705. font-size: 26upx;
  1706. font-family: PingFang SC;
  1707. font-weight: 500;
  1708. color: #999999;
  1709. }
  1710. }
  1711. .answer-box{
  1712. width: 100%;
  1713. // height: 117upx;
  1714. background: #F5F7F7;
  1715. border-radius: 10upx;
  1716. display: flex;
  1717. flex-direction: column;
  1718. justify-content: center;
  1719. .text-inner{
  1720. // height: 84upx;
  1721. font-size: 28upx;
  1722. font-family: PingFang SC;
  1723. font-weight: 500;
  1724. color: #666666;
  1725. line-height: 42upx;
  1726. padding: 15upx;
  1727. }
  1728. }
  1729. .read-box{
  1730. margin-top: 30upx;
  1731. display: flex;
  1732. align-items: center;
  1733. justify-content: flex-end;
  1734. image{
  1735. width: 24upx;
  1736. height: 19upx;
  1737. margin-right: 10upx;
  1738. }
  1739. .text{
  1740. font-size: 24upx;
  1741. font-family: PingFang SC;
  1742. font-weight: 500;
  1743. color: #999999;
  1744. }
  1745. }
  1746. }
  1747. }
  1748. }
  1749. // 精选药品
  1750. .feat-title{
  1751. margin-top: 30upx;
  1752. padding: 10upx 0 33upx;
  1753. display: flex;
  1754. align-items: center;
  1755. justify-content: center;
  1756. image{
  1757. width: 37upx;
  1758. height: 37upx;
  1759. margin: 0upx 20upx;
  1760. }
  1761. text{
  1762. font-size: 36upx;
  1763. line-height: 1;
  1764. font-family: PingFang SC;
  1765. font-weight: bold;
  1766. color: #111111;
  1767. }
  1768. }
  1769. .drug-list{
  1770. display: flex;
  1771. flex-wrap: wrap;
  1772. // margin-bottom: 20upx;
  1773. .item{
  1774. margin-right: 20rpx;
  1775. margin-bottom: 20rpx;
  1776. width: 345rpx;
  1777. background: #FFFFFF;
  1778. box-shadow: 0px 0px 10rpx 4rpx rgba(199, 199, 199, 0.22);
  1779. border-radius: 20rpx;
  1780. overflow: hidden;
  1781. &:nth-child(2n){
  1782. margin-right: 0;
  1783. }
  1784. .img-box{
  1785. width: 100%;
  1786. height: 334upx;
  1787. image{
  1788. width: 100%;
  1789. height: 100%;
  1790. }
  1791. }
  1792. .info-box{
  1793. box-sizing: border-box;
  1794. height: 182upx;
  1795. padding: 20upx;
  1796. .title{
  1797. height: 80upx;
  1798. font-size: 26upx;
  1799. font-family: PingFang SC;
  1800. font-weight: 500;
  1801. color: #111111;
  1802. line-height: 40upx;
  1803. }
  1804. .price-box{
  1805. display: flex;
  1806. align-items: center;
  1807. margin-top: 20upx;
  1808. .now{
  1809. color: #FF6633;
  1810. display: flex;
  1811. align-items: flex-end;
  1812. margin-right: 20upx;
  1813. font-family: PingFang SC;
  1814. .unit{
  1815. font-size: 24upx;
  1816. line-height: 1.4;
  1817. margin-right: 4upx;
  1818. }
  1819. .num{
  1820. font-size: 36upx;
  1821. font-weight: bold;
  1822. line-height: 1;
  1823. }
  1824. }
  1825. .old{
  1826. font-size: 26upx;
  1827. font-family: PingFang SC;
  1828. text-decoration: line-through;
  1829. color: #BBBBBB;
  1830. line-height: 1;
  1831. }
  1832. }
  1833. }
  1834. }
  1835. }
  1836. }
  1837. }
  1838. .official-account{
  1839. box-sizing: border-box;
  1840. width: 100%;
  1841. height: 100upx;
  1842. position: fixed;
  1843. bottom: 30upx;
  1844. z-index: 99;
  1845. padding: 0 20upx 180rpx 20upx;
  1846. }
  1847. // 消息
  1848. .message-box{
  1849. box-sizing: border-box;
  1850. width: 100%;
  1851. height: 84upx;
  1852. background: #F3FFFD;
  1853. border: 1px solid #C7E9E5;
  1854. box-shadow: 0px 4upx 12upx 0px rgba(90, 203, 138, 0.16);
  1855. border-radius: 16upx;
  1856. position: fixed;
  1857. left: 50%;
  1858. transform: translateX(-50%);
  1859. bottom: 30upx;
  1860. z-index: 99;
  1861. display: flex;
  1862. align-items: center;
  1863. justify-content: space-between;
  1864. padding: 0 20upx 0 30upx;
  1865. .left{
  1866. flex:1;
  1867. display: flex;
  1868. align-items: center;
  1869. image{
  1870. width: 24upx;
  1871. height: 24upx;
  1872. margin-right: 18upx;
  1873. }
  1874. .text{
  1875. width: 90%;
  1876. font-size: 28upx;
  1877. font-family: PingFang SC;
  1878. font-weight: 500;
  1879. color: #2BC7B9;
  1880. }
  1881. }
  1882. .btn{
  1883. width: 100upx;
  1884. height: 48upx;
  1885. line-height: 48upx;
  1886. text-align: center;
  1887. font-size: 24upx;
  1888. font-family: PingFang SC;
  1889. font-weight: 500;
  1890. color: #FFFFFF;
  1891. border: 1px solid #D2E6FF;
  1892. background: linear-gradient(135deg, #2BC7B9 0%, #60CDC3 100%);
  1893. border-radius: 24upx;
  1894. margin-left: 30upx;
  1895. }
  1896. }
  1897. .contact-btn{
  1898. display: inline-block;
  1899. position: absolute;
  1900. top: 0;
  1901. left: 0;
  1902. width: 100%;
  1903. height: 100%;
  1904. opacity: 0;
  1905. }
  1906. .popup-box{
  1907. position: fixed;
  1908. top: 0;
  1909. right: 0;
  1910. left: 0;
  1911. bottom: 0;
  1912. z-index: 999;
  1913. display: flex;
  1914. justify-content: center;
  1915. align-items: center;
  1916. .info-mask {
  1917. position: fixed;
  1918. top: 0;
  1919. right: 0;
  1920. bottom: 0;
  1921. left: 0;
  1922. background-color: rgba($color: #000000, $alpha: 0.5);
  1923. z-index: 999;
  1924. }
  1925. .info-form {
  1926. z-index: 1000;
  1927. width: 450rpx;
  1928. display: flex;
  1929. flex-direction: column;
  1930. justify-content: center;
  1931. align-items: center;
  1932. position: relative;
  1933. image{
  1934. width:100%;
  1935. }
  1936. }
  1937. }
  1938. </style>