index.vue 56 KB

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