index.vue 56 KB

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