index.vue 57 KB

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