index.vue 47 KB

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