index.vue 57 KB

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