index.vue 64 KB

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