index.vue 51 KB

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