index.vue 64 KB

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