index.vue 48 KB

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