index.vue 57 KB

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