index.vue 56 KB

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