index.vue 56 KB

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