index.vue 57 KB

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