index.vue 52 KB

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