index.vue 57 KB

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