index.vue 56 KB

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