index.vue 57 KB

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