index.vue 57 KB

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