index.vue 55 KB

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