index.vue 51 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519
  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: 36rpx;
  877. // width: 183rpx;
  878. height: 75rpx;
  879. font-size: 40rpx;
  880. font-weight: bold;
  881. image{
  882. width:100%;
  883. height:100%;
  884. }
  885. }
  886. .dot {
  887. margin: 0upx 10upx;
  888. font-size: 28upx;
  889. color: #FFFFFF;
  890. opacity: 0.5;
  891. }
  892. .sub-name {
  893. font-size: 30upx;
  894. font-family: Source Han Sans CN;
  895. color: #FFFFFF;
  896. }
  897. }
  898. .func-cont {
  899. box-sizing: border-box;
  900. display: flex;
  901. align-items: center;
  902. padding: 30upx 20upx 30upx 20upx;
  903. .search-cont {
  904. box-sizing: border-box;
  905. display: flex;
  906. align-items: center;
  907. width: 552upx;
  908. height: 72upx;
  909. background: #FFFFFF;
  910. border: #409076 solid 2rpx;
  911. border-radius: 36upx;
  912. padding: 0 30upx;
  913. .icon-search {
  914. width: 28upx;
  915. height: 28upx;
  916. margin-right: 20upx;
  917. }
  918. input {
  919. height: 60upx;
  920. line-height: 60upx;
  921. flex: 1;
  922. }
  923. }
  924. :deep(.uni-badge) {
  925. border: none;
  926. background-color: #FF3636;
  927. font-family: Roboto;
  928. }
  929. .img-item {
  930. width: 44upx;
  931. height: 44upx;
  932. margin-left: 30upx;
  933. image {
  934. width: 100%;
  935. height: 100%;
  936. }
  937. }
  938. }
  939. .tips {
  940. margin: 0upx 20rpx 30rpx;
  941. height: 40upx;
  942. line-height: 40upx;
  943. display: flex;
  944. justify-content: space-between;
  945. align-items: center;
  946. .left {
  947. font-size: 30upx;
  948. color: #FFFFFF;
  949. }
  950. .right {
  951. padding: 5upx 20rpx;
  952. font-size: 24upx;
  953. color: #FFFFFF;
  954. background-color: #2BC7B9;
  955. border-radius: 50rpx;
  956. }
  957. }
  958. }
  959. .banner-box {
  960. padding: 0 20upx;
  961. .inner {
  962. width: 100%;
  963. height: 236upx;
  964. border-radius: 10upx;
  965. overflow: hidden;
  966. .swiper,
  967. .swiper-item,
  968. .swiper-item image {
  969. width: 100%;
  970. height: 100%;
  971. }
  972. }
  973. }
  974. .menu-content {
  975. // width: 100%;
  976. background-color: #fff;
  977. overflow: hidden;
  978. padding: 20upx 20upx 0;
  979. }
  980. .menu-box {
  981. display: flex;
  982. align-items: center;
  983. background-color: #FFFFFF;
  984. }
  985. .online-inquiry {
  986. box-sizing: border-box;
  987. width: 100%;
  988. height: 170upx;
  989. padding: 20upx;
  990. background: linear-gradient(180deg, rgba(255, 255, 255, 0.38) 62%, rgba(255, 255, 255, 0) 100%);
  991. display: flex;
  992. justify-content: space-between;
  993. .item {
  994. // width: 46.13%;
  995. width: 346upx;
  996. height: 190upx;
  997. position: relative;
  998. .bg-img,
  999. .inner {
  1000. width: 100%;
  1001. height: 100%;
  1002. position: absolute;
  1003. top: 0;
  1004. left: 0;
  1005. z-index: 1;
  1006. }
  1007. .inner {
  1008. box-sizing: border-box;
  1009. z-index: 2;
  1010. display: flex;
  1011. flex-direction: column;
  1012. justify-content: center;
  1013. padding-left: 32upx;
  1014. .title {
  1015. // font-family: Source Han Serif CN;
  1016. font-family: Source Han Serif CN;
  1017. font-size: 32upx;
  1018. line-height: 1;
  1019. // font-family: PingFang SC;
  1020. font-weight: 500;
  1021. color: #E9411C;
  1022. margin-bottom: 12upx;
  1023. }
  1024. .sub-title {
  1025. font-size: 24upx;
  1026. font-family: PingFang SC;
  1027. font-weight: 500;
  1028. color: #999999;
  1029. }
  1030. image {
  1031. width: 80upx;
  1032. height: 90upx;
  1033. position: absolute;
  1034. right: 7upx;
  1035. bottom: 7upx;
  1036. }
  1037. }
  1038. }
  1039. }
  1040. .index-cont {
  1041. box-sizing: border-box;
  1042. padding: 0 20upx 120rpx;
  1043. .pub-item {
  1044. background: #FFFFFF;
  1045. border-radius: 16upx;
  1046. margin-bottom: 20upx;
  1047. .tabs {
  1048. width: 100%;
  1049. display: flex;
  1050. align-items: center;
  1051. justify-content: flex-start;
  1052. height: 110rpx;
  1053. background-color: #F0F3F4;
  1054. .tab {
  1055. height: 110rpx;
  1056. display: flex;
  1057. align-items: center;
  1058. justify-content: center;
  1059. position: relative;
  1060. flex: 1;
  1061. .img {
  1062. z-index: 1;
  1063. position: absolute;
  1064. top: 0rpx;
  1065. left: 0rpx;
  1066. width: 100%;
  1067. height: 100%;
  1068. }
  1069. .inner {
  1070. z-index: 2;
  1071. .title {
  1072. font-size: 32upx;
  1073. font-family: PingFang SC;
  1074. font-weight: bold;
  1075. color: #666666;
  1076. }
  1077. .active {
  1078. color: #2BC7B9;
  1079. }
  1080. }
  1081. }
  1082. }
  1083. .pub-title-box {
  1084. box-sizing: border-box;
  1085. padding: 36upx 30upx;
  1086. display: flex;
  1087. align-items: center;
  1088. justify-content: space-between;
  1089. .left {
  1090. font-size: 32upx;
  1091. line-height: 1;
  1092. font-family: PingFang SC;
  1093. font-weight: bold;
  1094. color: #111111;
  1095. }
  1096. .right {
  1097. display: flex;
  1098. align-items: center;
  1099. justify-content: center;
  1100. .text {
  1101. font-size: 24rpx;
  1102. line-height: 1;
  1103. font-family: PingFang SC;
  1104. font-weight: 500;
  1105. color: #999999;
  1106. margin-right: 10upx;
  1107. }
  1108. image {
  1109. width: 14upx;
  1110. height: 24upx;
  1111. }
  1112. }
  1113. }
  1114. .doc-tab-box {
  1115. padding: 14rpx 30rpx 0rpx 30rpx;
  1116. position: relative;
  1117. .tab-inner {
  1118. padding: 14upx 0 30upx;
  1119. display: flex;
  1120. overflow-x: auto;
  1121. }
  1122. .item {
  1123. font-size: 28upx;
  1124. white-space: nowrap;
  1125. line-height: 1;
  1126. font-family: PingFang SC;
  1127. font-weight: 500;
  1128. color: #666666;
  1129. margin-right: 40upx;
  1130. position: relative;
  1131. &:last-child {
  1132. margin-right: 0;
  1133. }
  1134. &.active {
  1135. font-weight: bold;
  1136. color: #333333;
  1137. }
  1138. &.cases {
  1139. margin-right: 60upx;
  1140. }
  1141. .text {
  1142. position: relative;
  1143. z-index: 1;
  1144. }
  1145. .tab-bg {
  1146. width: 72upx;
  1147. height: 28upx;
  1148. position: absolute;
  1149. top: 17upx;
  1150. left: 50%;
  1151. transform: translateX(-36upx);
  1152. z-index: -1;
  1153. }
  1154. }
  1155. .right-mask {
  1156. width: 56upx;
  1157. height: 34upx;
  1158. position: absolute;
  1159. top: 25upx;
  1160. right: 0upx;
  1161. z-index: 1;
  1162. }
  1163. }
  1164. .doc-list {
  1165. padding: 20upx;
  1166. .item {
  1167. box-sizing: border-box;
  1168. background: #FFFFFF;
  1169. // border-radius: 16upx;
  1170. display: flex;
  1171. border-bottom: 1px solid #F0F0F0;
  1172. margin-bottom: 30rpx;
  1173. .head-box {
  1174. width: 120upx;
  1175. height: 120upx;
  1176. background: #EDF1F4;
  1177. border-radius: 50%;
  1178. overflow: hidden;
  1179. margin-right: 30upx;
  1180. image {
  1181. width: 100%;
  1182. height: 100%;
  1183. }
  1184. }
  1185. .info {
  1186. width: calc(100% - 150upx);
  1187. .top {
  1188. display: flex;
  1189. align-items: center;
  1190. font-family: PingFang SC;
  1191. line-height: 1;
  1192. .name {
  1193. font-size: 34upx;
  1194. font-weight: bold;
  1195. color: #111111;
  1196. }
  1197. .line {
  1198. width: 1px;
  1199. height: 26upx;
  1200. background: #DDDDDD;
  1201. margin: 0 20upx;
  1202. }
  1203. .other {
  1204. font-size: 28upx;
  1205. font-weight: 500;
  1206. color: #333333;
  1207. }
  1208. }
  1209. .unit-box {
  1210. display: flex;
  1211. margin-top: 24upx;
  1212. .level {
  1213. padding: 0 10upx;
  1214. height: 30upx;
  1215. line-height: 30upx;
  1216. font-size: 22upx;
  1217. font-family: PingFang SC;
  1218. font-weight: 500;
  1219. color: #FFFFFF;
  1220. background: #2BC7B9;
  1221. border-radius: 10upx 4upx 10upx 4upx;
  1222. margin-right: 12upx;
  1223. }
  1224. .name {
  1225. font-size: 28upx;
  1226. font-family: PingFang SC;
  1227. font-weight: 500;
  1228. color: #333333;
  1229. line-height: 30upx;
  1230. }
  1231. }
  1232. .expertise {
  1233. font-size: 26upx;
  1234. font-family: PingFang SC;
  1235. font-weight: 500;
  1236. color: #666666;
  1237. line-height: 42upx;
  1238. margin: 22upx 0 26upx;
  1239. }
  1240. .rate-box {
  1241. display: flex;
  1242. align-items: center;
  1243. .star {
  1244. display: flex;
  1245. align-items: center;
  1246. image {
  1247. width: 22upx;
  1248. height: 22upx;
  1249. margin-right: 10upx;
  1250. }
  1251. text {
  1252. font-size: 26upx;
  1253. font-family: PingFang SC;
  1254. font-weight: bold;
  1255. color: #CEA764;
  1256. line-height: 1;
  1257. }
  1258. }
  1259. .line {
  1260. width: 1px;
  1261. height: 20upx;
  1262. background: #DDDDDD;
  1263. margin: 0 20upx;
  1264. }
  1265. .num-box {
  1266. display: flex;
  1267. align-items: center;
  1268. font-family: PingFang SC;
  1269. .label {
  1270. font-size: 24upx;
  1271. font-weight: 500;
  1272. color: #999999;
  1273. line-height: 1;
  1274. margin-right: 7px;
  1275. }
  1276. .num {
  1277. font-size: 26upx;
  1278. font-weight: bold;
  1279. color: #CEA764;
  1280. line-height: 1;
  1281. }
  1282. }
  1283. }
  1284. .price-box {
  1285. display: flex;
  1286. align-items: center;
  1287. margin-top: 38upx;
  1288. .btn-item {
  1289. display: flex;
  1290. align-items: center;
  1291. justify-content: center;
  1292. width: 164upx;
  1293. height: 56upx;
  1294. line-height: 56upx;
  1295. border: 1px solid rgba(43, 199, 185, 0.5);
  1296. border-radius: 28upx;
  1297. font-family: PingFang SC;
  1298. margin-right: 30upx;
  1299. &:last-child {
  1300. margin-right: 0;
  1301. }
  1302. .label {
  1303. font-size: 26upx;
  1304. font-weight: 500;
  1305. color: #2BC7B9;
  1306. margin-right: 5upx;
  1307. }
  1308. .num {
  1309. font-size: 28upx;
  1310. font-weight: bold;
  1311. color: #2BC7B9;
  1312. }
  1313. }
  1314. }
  1315. }
  1316. }
  1317. .item:last-child {
  1318. border-bottom: none;
  1319. margin-bottom: 0rpx;
  1320. }
  1321. .bottom-title {
  1322. height: 50rpx;
  1323. display: flex;
  1324. align-items: center;
  1325. justify-content: center;
  1326. font-size: 26rpx;
  1327. font-family: PingFang SC;
  1328. font-weight: bold;
  1329. color: #2BC7B9;
  1330. image {
  1331. margin-left: 8rpx;
  1332. width: 14rpx;
  1333. height: 24rpx;
  1334. }
  1335. }
  1336. }
  1337. // 医师团队
  1338. .doc-cont {
  1339. box-sizing: border-box;
  1340. padding: 0 30upx;
  1341. .inner {
  1342. padding: 4upx 0 40upx;
  1343. display: flex;
  1344. overflow-x: auto;
  1345. }
  1346. .item {
  1347. display: flex;
  1348. align-items: center;
  1349. flex-direction: column;
  1350. margin-right: 40upx;
  1351. &:last-child {
  1352. margin-right: 0;
  1353. }
  1354. .head-box {
  1355. width: 120upx;
  1356. height: 120upx;
  1357. background: #F2F5F9;
  1358. border-radius: 50%;
  1359. margin-bottom: 20upx;
  1360. overflow: hidden;
  1361. image {
  1362. width: 100%;
  1363. height: 100%;
  1364. }
  1365. }
  1366. .name {
  1367. max-width: 120upx;
  1368. font-size: 28upx;
  1369. line-height: 1;
  1370. font-family: PingFang SC;
  1371. font-weight: 500;
  1372. color: #111111;
  1373. margin-bottom: 16upx;
  1374. text-align: center;
  1375. }
  1376. .position {
  1377. max-width: 120upx;
  1378. font-size: 24upx;
  1379. line-height: 1;
  1380. font-family: PingFang SC;
  1381. font-weight: 500;
  1382. color: #999999;
  1383. text-align: center;
  1384. }
  1385. }
  1386. }
  1387. .inner {
  1388. padding: 0 30upx;
  1389. }
  1390. // 健康知识
  1391. .pub-tab-box {
  1392. position: relative;
  1393. .tab-inner {
  1394. padding: 14upx 0 30upx;
  1395. display: flex;
  1396. overflow-x: auto;
  1397. }
  1398. .item {
  1399. font-size: 28upx;
  1400. white-space: nowrap;
  1401. line-height: 1;
  1402. font-family: PingFang SC;
  1403. font-weight: 500;
  1404. color: #666666;
  1405. margin-right: 40upx;
  1406. position: relative;
  1407. &:last-child {
  1408. margin-right: 0;
  1409. }
  1410. &.active {
  1411. font-weight: bold;
  1412. color: #333333;
  1413. }
  1414. &.cases {
  1415. margin-right: 60upx;
  1416. }
  1417. .text {
  1418. position: relative;
  1419. z-index: 1;
  1420. }
  1421. .tab-bg {
  1422. width: 72upx;
  1423. height: 28upx;
  1424. position: absolute;
  1425. top: 17upx;
  1426. left: 50%;
  1427. transform: translateX(-36upx);
  1428. z-index: -1;
  1429. }
  1430. }
  1431. .right-mask {
  1432. width: 56upx;
  1433. height: 34upx;
  1434. position: absolute;
  1435. top: 14upx;
  1436. right: -30upx;
  1437. z-index: 1;
  1438. }
  1439. }
  1440. .know-list {
  1441. padding-right: 10upx;
  1442. .item {
  1443. padding: 30upx 0;
  1444. display: flex;
  1445. align-items: center;
  1446. justify-content: space-between;
  1447. border-bottom: 1px solid #F0F0F0;
  1448. &:last-child {
  1449. border-bottom: none;
  1450. }
  1451. .left {
  1452. flex: 1;
  1453. padding-right: 40upx;
  1454. height: 190upx;
  1455. display: flex;
  1456. flex-direction: column;
  1457. justify-content: space-between;
  1458. .title {
  1459. font-size: 32upx;
  1460. font-family: PingFang SC;
  1461. font-weight: 500;
  1462. color: #111111;
  1463. line-height: 48upx;
  1464. }
  1465. .info-box {
  1466. width: 100%;
  1467. display: flex;
  1468. align-items: center;
  1469. justify-content: space-between;
  1470. .readers {
  1471. display: flex;
  1472. align-items: center;
  1473. .head-box {
  1474. margin-right: 27upx;
  1475. display: flex;
  1476. align-items: center;
  1477. .head {
  1478. width: 48upx;
  1479. height: 48upx;
  1480. border-radius: 50%;
  1481. overflow: hidden;
  1482. box-shadow: 0 0 0 1px #fff;
  1483. margin-right: -10upx;
  1484. image {
  1485. width: 100%;
  1486. height: 100%;
  1487. }
  1488. }
  1489. }
  1490. .readings {
  1491. display: flex;
  1492. align-items: center;
  1493. .eye {
  1494. width: 26upx;
  1495. height: 20upx;
  1496. margin-right: 9upx;
  1497. }
  1498. .num {
  1499. font-size: 24upx;
  1500. font-family: PingFang SC;
  1501. font-weight: 500;
  1502. color: #999999;
  1503. line-height: 1;
  1504. }
  1505. }
  1506. }
  1507. .time {
  1508. font-size: 24upx;
  1509. line-height: 1;
  1510. font-family: PingFang SC;
  1511. font-weight: 500;
  1512. color: #999999;
  1513. }
  1514. }
  1515. }
  1516. .right {
  1517. width: 250upx;
  1518. height: 190upx;
  1519. border-radius: 8upx;
  1520. overflow: hidden;
  1521. image {
  1522. width: 100%;
  1523. height: 100%;
  1524. }
  1525. }
  1526. }
  1527. }
  1528. // 问诊案例
  1529. .cases-list {
  1530. padding-bottom: 10upx;
  1531. .item {
  1532. padding: 30upx 0;
  1533. border-bottom: 1px solid #F0F0F0;
  1534. &:last-child {
  1535. border-bottom: none;
  1536. }
  1537. .dec-text {
  1538. font-size: 32upx;
  1539. font-family: PingFang SC;
  1540. font-weight: bold;
  1541. color: #111111;
  1542. line-height: 48upx;
  1543. }
  1544. .images-box {
  1545. margin-top: 10upx;
  1546. display: flex;
  1547. flex-wrap: wrap;
  1548. .img-item {
  1549. width: 155upx;
  1550. height: 155upx;
  1551. background: #F5F5F5;
  1552. border-radius: 8upx;
  1553. margin: 0 10upx 10upx 0;
  1554. overflow: hidden;
  1555. image {
  1556. width: 100%;
  1557. height: 100%;
  1558. }
  1559. &:nth-child(4n) {
  1560. margin-right: 0;
  1561. }
  1562. }
  1563. }
  1564. .doc-info {
  1565. display: flex;
  1566. align-items: center;
  1567. margin: 30upx 0 20upx;
  1568. .head {
  1569. width: 60upx;
  1570. height: 60upx;
  1571. background: #F2F5F9;
  1572. border-radius: 50%;
  1573. margin-right: 20upx;
  1574. overflow: hidden;
  1575. image {
  1576. width: 100%;
  1577. height: 100%;
  1578. }
  1579. }
  1580. .name {
  1581. font-size: 28upx;
  1582. line-height: 1;
  1583. font-family: PingFang SC;
  1584. font-weight: 500;
  1585. color: #111111;
  1586. }
  1587. .line {
  1588. width: 1px;
  1589. height: 22upx;
  1590. background: #DDDDDD;
  1591. margin: 0 16upx;
  1592. }
  1593. .posit,
  1594. .address {
  1595. font-size: 26upx;
  1596. font-family: PingFang SC;
  1597. font-weight: 500;
  1598. color: #999999;
  1599. }
  1600. }
  1601. .answer-box {
  1602. width: 100%;
  1603. background: #F5F7F7;
  1604. border-radius: 10upx;
  1605. display: flex;
  1606. flex-direction: column;
  1607. justify-content: center;
  1608. .text-inner {
  1609. // height: 84upx;
  1610. font-size: 28upx;
  1611. font-family: PingFang SC;
  1612. font-weight: 500;
  1613. color: #666666;
  1614. line-height: 42upx;
  1615. padding: 15upx;
  1616. }
  1617. }
  1618. .read-box {
  1619. margin-top: 30upx;
  1620. display: flex;
  1621. align-items: center;
  1622. justify-content: flex-end;
  1623. image {
  1624. width: 24upx;
  1625. height: 19upx;
  1626. margin-right: 10upx;
  1627. }
  1628. .text {
  1629. font-size: 24upx;
  1630. font-family: PingFang SC;
  1631. font-weight: 500;
  1632. color: #999999;
  1633. }
  1634. }
  1635. }
  1636. }
  1637. }
  1638. // 精选药品
  1639. .feat-title {
  1640. margin-top: 30upx;
  1641. padding: 10upx 0 33upx;
  1642. display: flex;
  1643. align-items: center;
  1644. justify-content: center;
  1645. image {
  1646. width: 37upx;
  1647. height: 37upx;
  1648. margin: 0upx 20upx;
  1649. }
  1650. text {
  1651. font-size: 36upx;
  1652. line-height: 1;
  1653. font-family: PingFang SC;
  1654. font-weight: bold;
  1655. color: #111111;
  1656. }
  1657. }
  1658. .drug-list {
  1659. display: flex;
  1660. flex-wrap: wrap;
  1661. .item {
  1662. margin-right: 20rpx;
  1663. margin-bottom: 20rpx;
  1664. width: 345rpx;
  1665. background: #FFFFFF;
  1666. box-shadow: 0px 0px 10rpx 4rpx rgba(199, 199, 199, 0.22);
  1667. border-radius: 20rpx;
  1668. overflow: hidden;
  1669. &:nth-child(2n) {
  1670. margin-right: 0;
  1671. }
  1672. .img-box {
  1673. width: 100%;
  1674. height: 334upx;
  1675. image {
  1676. width: 100%;
  1677. height: 100%;
  1678. }
  1679. }
  1680. .info-box {
  1681. box-sizing: border-box;
  1682. height: 182upx;
  1683. padding: 20upx;
  1684. .title {
  1685. height: 80upx;
  1686. font-size: 26upx;
  1687. font-family: PingFang SC;
  1688. font-weight: 500;
  1689. color: #111111;
  1690. line-height: 40upx;
  1691. }
  1692. .price-box {
  1693. display: flex;
  1694. align-items: center;
  1695. margin-top: 20upx;
  1696. .now {
  1697. color: #FF6633;
  1698. display: flex;
  1699. align-items: flex-end;
  1700. margin-right: 20upx;
  1701. font-family: PingFang SC;
  1702. .unit {
  1703. font-size: 24upx;
  1704. line-height: 1.4;
  1705. margin-right: 4upx;
  1706. }
  1707. .num {
  1708. font-size: 36upx;
  1709. font-weight: bold;
  1710. line-height: 1;
  1711. }
  1712. }
  1713. .old {
  1714. font-size: 26upx;
  1715. font-family: PingFang SC;
  1716. text-decoration: line-through;
  1717. color: #BBBBBB;
  1718. line-height: 1;
  1719. }
  1720. }
  1721. }
  1722. }
  1723. }
  1724. }
  1725. // 健康生活大讲堂
  1726. .open-class {
  1727. padding: 20rpx;
  1728. margin: 20rpx 15rpx;
  1729. margin-top: 60rpx;
  1730. // background-color: #f0f4f7;
  1731. background: url(https://ysy-1329817240.cos.ap-guangzhou.myqcloud.com/shop/images/red_rmbd_bg.png) no-repeat;
  1732. background-size: 100% 100%;
  1733. .title-box {
  1734. display: flex;
  1735. justify-content: space-between;
  1736. align-items: center;
  1737. .title {
  1738. font-size: 32rpx;
  1739. font-weight: bold;
  1740. }
  1741. .more {
  1742. font-size: 24rpx;
  1743. padding-left: 30rpx;
  1744. color: #999999;
  1745. display: flex;
  1746. align-items: center;
  1747. image {
  1748. width: 24rpx;
  1749. height: 24rpx;
  1750. }
  1751. }
  1752. }
  1753. .class-item {
  1754. font-size: 24rpx;
  1755. margin-top: 24rpx;
  1756. // background-color: #fff;
  1757. border-radius: 16rpx;
  1758. padding: 0 16rpx;
  1759. margin-right: 14rpx;
  1760. width: 32%;
  1761. height: 280rpx;
  1762. font-size: 26rpx;
  1763. font-weight: 500;
  1764. .img-box {
  1765. height: 220rpx;
  1766. border-radius: 16rpx;
  1767. overflow: hidden;
  1768. margin-bottom: 12rpx;
  1769. image {
  1770. width: 100%;
  1771. height: 100%;
  1772. }
  1773. }
  1774. &:last-child {
  1775. margin-right: 0rpx;
  1776. }
  1777. }
  1778. }
  1779. .modules {
  1780. .module {
  1781. .depts {
  1782. z-index: 101;
  1783. margin: 20rpx 15rpx 0rpx;
  1784. padding: 20rpx;
  1785. box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  1786. background-color: #fff;
  1787. border-radius: 15rpx;
  1788. .title {
  1789. font-size: 32upx;
  1790. font-family: PingFang SC;
  1791. font-weight: bold;
  1792. color: #2A2B2E;
  1793. }
  1794. .dept-box {
  1795. margin-top: 15rpx;
  1796. display: flex;
  1797. align-items: center;
  1798. justify-content: flex-start;
  1799. flex-wrap: wrap;
  1800. .dept {
  1801. padding: 15rpx 5rpx;
  1802. width: 25%;
  1803. display: flex;
  1804. flex-direction: column;
  1805. align-items: center;
  1806. justify-content: center;
  1807. padding: 14rpx 0;
  1808. .icon {
  1809. width: 58rpx;
  1810. height: 58rpx;
  1811. }
  1812. .title {
  1813. margin-top: 10rpx;
  1814. font-size: 24upx;
  1815. font-family: PingFang SC;
  1816. font-weight: 500;
  1817. color: #111111;
  1818. }
  1819. }
  1820. }
  1821. }
  1822. .doctor-articles {
  1823. z-index: 101;
  1824. margin: 20rpx 15rpx 0rpx;
  1825. padding: 20rpx;
  1826. box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  1827. background-color: #fff;
  1828. border-radius: 15rpx;
  1829. .title-box {
  1830. display: flex;
  1831. flex-direction: row;
  1832. align-items: center;
  1833. justify-content: space-between;
  1834. .title {
  1835. font-size: 32upx;
  1836. font-family: PingFang SC;
  1837. font-weight: bold;
  1838. color: #111111;
  1839. }
  1840. .more {
  1841. display: flex;
  1842. align-items: center;
  1843. justify-content: flex-end;
  1844. .text {
  1845. font-size: 24rpx;
  1846. font-family: PingFang SC;
  1847. color: #9B9B9B;
  1848. }
  1849. image {
  1850. margin-left: 10rpx;
  1851. width: 15rpx;
  1852. height: 20rpx;
  1853. }
  1854. }
  1855. }
  1856. .article-box {
  1857. padding: 20rpx 0rpx;
  1858. overflow-x: auto;
  1859. box-sizing: border-box;
  1860. display: flex;
  1861. align-items: center;
  1862. justify-content: flex-start;
  1863. .article {
  1864. width: 300rpx;
  1865. margin-right: 20rpx;
  1866. background: #f9f8fe;
  1867. display: flex;
  1868. flex-direction: column;
  1869. align-items: flex-start;
  1870. justify-content: flex-start;
  1871. &:last-child {
  1872. margin-right: 0rpx;
  1873. }
  1874. .image-box {
  1875. width: 300rpx;
  1876. height: 400rpx;
  1877. position: relative;
  1878. border-radius: 20rpx;
  1879. image {
  1880. border-radius: 20rpx;
  1881. width: 300rpx;
  1882. height: 400rpx;
  1883. }
  1884. .views {
  1885. position: absolute;
  1886. top: 0rpx;
  1887. left: 0rpx;
  1888. padding: 5rpx 10rpx;
  1889. background: rgba(0, 0, 0, 0.25);
  1890. border-radius: 12rpx 0px 12rpx 0px;
  1891. opacity: 1;
  1892. font-size: 20rpx;
  1893. font-family: PingFang SC-Bold, PingFang SC;
  1894. font-weight: bold;
  1895. color: #FFFFFF;
  1896. }
  1897. .doctor {
  1898. margin: 10rpx;
  1899. display: flex;
  1900. align-items: center;
  1901. justify-content: flex-start;
  1902. position: absolute;
  1903. bottom: 0rpx;
  1904. left: 0rpx;
  1905. image {
  1906. border-radius: 50%;
  1907. width: 64rpx;
  1908. height: 64rpx;
  1909. }
  1910. .right {
  1911. width: 200rpx;
  1912. margin-left: 10rpx;
  1913. display: flex;
  1914. flex-direction: column;
  1915. align-items: flex-start;
  1916. justify-content: space-between;
  1917. .doc-name {
  1918. width: 200rpx;
  1919. font-size: 30rpx;
  1920. font-weight: bold;
  1921. font-family: PingFang SC;
  1922. color: #fff;
  1923. }
  1924. .doc-position {
  1925. width: 100%;
  1926. font-size: 28rpx;
  1927. font-family: PingFang SC;
  1928. color: #fff;
  1929. font-weight: bold;
  1930. opacity: 0.8;
  1931. }
  1932. }
  1933. }
  1934. }
  1935. .article-title-box {
  1936. width: 100%;
  1937. margin-top: 10rpx;
  1938. display: flex;
  1939. align-items: center;
  1940. justify-content: flex-start;
  1941. .article-title {
  1942. font-size: 30rpx;
  1943. font-weight: bold;
  1944. font-family: PingFang SC;
  1945. color: #2A2B2E;
  1946. }
  1947. }
  1948. }
  1949. }
  1950. }
  1951. .doctors {
  1952. z-index: 101;
  1953. margin: 20rpx 15rpx;
  1954. padding: 20rpx;
  1955. box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  1956. background-color: #fff;
  1957. border-radius: 15rpx;
  1958. .title-box {
  1959. display: flex;
  1960. flex-direction: row;
  1961. align-items: center;
  1962. justify-content: space-between;
  1963. .title {
  1964. font-size: 32upx;
  1965. font-family: PingFang SC;
  1966. font-weight: bold;
  1967. color: #111111;
  1968. }
  1969. .more {
  1970. display: flex;
  1971. align-items: center;
  1972. justify-content: flex-end;
  1973. .text {
  1974. font-size: 24rpx;
  1975. font-family: PingFang SC;
  1976. color: #9B9B9B;
  1977. }
  1978. image {
  1979. margin-left: 10rpx;
  1980. width: 15rpx;
  1981. height: 20rpx;
  1982. }
  1983. }
  1984. }
  1985. }
  1986. .articles {
  1987. z-index: 101;
  1988. margin: 20rpx 15rpx;
  1989. padding: 20rpx;
  1990. box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  1991. background-color: #fff;
  1992. border-radius: 15rpx;
  1993. .title-box {
  1994. display: flex;
  1995. flex-direction: row;
  1996. align-items: center;
  1997. justify-content: space-between;
  1998. .title {
  1999. font-size: 32upx;
  2000. font-family: PingFang SC;
  2001. font-weight: bold;
  2002. color: #111111;
  2003. }
  2004. .more {
  2005. display: flex;
  2006. align-items: center;
  2007. justify-content: flex-end;
  2008. .text {
  2009. font-size: 24rpx;
  2010. font-family: PingFang SC;
  2011. color: #9B9B9B;
  2012. }
  2013. image {
  2014. margin-left: 10rpx;
  2015. width: 15rpx;
  2016. height: 20rpx;
  2017. }
  2018. }
  2019. }
  2020. .article-box {
  2021. margin-top: 15rpx;
  2022. padding: 20rpx 0rpx 0rpx;
  2023. display: flex;
  2024. flex-direction: column;
  2025. align-items: flex-start;
  2026. justify-content: flex-start;
  2027. .item {
  2028. width: 100%;
  2029. margin-bottom: 20rpx;
  2030. display: flex;
  2031. align-items: flex-start;
  2032. justify-content: flex-start;
  2033. &:last-child {
  2034. margin-bottom: 0rpx;
  2035. }
  2036. .left {
  2037. flex: 1;
  2038. height: 160rpx;
  2039. margin-right: 15rpx;
  2040. display: flex;
  2041. flex-direction: column;
  2042. align-items: flex-start;
  2043. justify-content: space-between;
  2044. .title {
  2045. font-size: 28upx;
  2046. font-family: PingFang SC;
  2047. font-weight: bold;
  2048. color: #111111;
  2049. }
  2050. .views {
  2051. font-size: 24upx;
  2052. font-family: PingFang SC;
  2053. color: #9a9a9c;
  2054. }
  2055. }
  2056. .right {
  2057. image {
  2058. border-radius: 10rpx;
  2059. width: 220rpx;
  2060. height: 160rpx;
  2061. border: 1px solid #eeeeee;
  2062. }
  2063. }
  2064. }
  2065. }
  2066. }
  2067. .packages {
  2068. z-index: 101;
  2069. margin: 20rpx 15rpx;
  2070. padding: 20rpx;
  2071. box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  2072. background-color: #fff;
  2073. border-radius: 15rpx;
  2074. .title-box {
  2075. display: flex;
  2076. flex-direction: row;
  2077. align-items: center;
  2078. justify-content: space-between;
  2079. .title {
  2080. font-size: 32upx;
  2081. font-family: PingFang SC;
  2082. font-weight: bold;
  2083. color: #111111;
  2084. }
  2085. .more {
  2086. display: flex;
  2087. align-items: center;
  2088. justify-content: flex-end;
  2089. .text {
  2090. font-size: 24rpx;
  2091. font-family: PingFang SC;
  2092. color: #9B9B9B;
  2093. }
  2094. image {
  2095. margin-left: 10rpx;
  2096. width: 15rpx;
  2097. height: 20rpx;
  2098. }
  2099. }
  2100. }
  2101. .package-box {
  2102. padding: 20rpx 0rpx 0rpx;
  2103. display: flex;
  2104. align-items: flex-start;
  2105. justify-content: flex-start;
  2106. flex-wrap: wrap;
  2107. .item {
  2108. width: calc(50% - 20rpx);
  2109. border-radius: 15rpx;
  2110. margin: 10rpx;
  2111. display: flex;
  2112. flex-direction: column;
  2113. align-items: flex-start;
  2114. justify-content: flex-start;
  2115. &:last-child {}
  2116. .top {
  2117. width: 100%;
  2118. height: 300rpx;
  2119. image {
  2120. border-radius: 15rpx 15rpx 0rpx 0rpx;
  2121. width: 100%;
  2122. height: 300rpx;
  2123. }
  2124. }
  2125. .bottom {
  2126. width: 100%;
  2127. margin-top: 15rpx;
  2128. .title {
  2129. font-weight: bold;
  2130. font-size: 28upx;
  2131. font-family: PingFang SC;
  2132. color: #111111;
  2133. }
  2134. .price-box {
  2135. margin-top: 10rpx;
  2136. display: flex;
  2137. align-items: center;
  2138. justify-content: space-between;
  2139. width: 100%;
  2140. .price {
  2141. padding: 5rpx 10rpx;
  2142. background-color: #2BC7B9;
  2143. border-radius: 30rpx;
  2144. font-size: 20upx;
  2145. font-family: PingFang SC;
  2146. color: #ffffff;
  2147. }
  2148. .count {
  2149. font-size: 24upx;
  2150. font-family: PingFang SC;
  2151. color: #333333;
  2152. }
  2153. }
  2154. }
  2155. }
  2156. }
  2157. }
  2158. }
  2159. }
  2160. }
  2161. .official-account {
  2162. box-sizing: border-box;
  2163. width: 100%;
  2164. height: 100upx;
  2165. position: fixed;
  2166. bottom: 30upx;
  2167. z-index: 99;
  2168. padding: 0 20upx 180rpx 20upx;
  2169. }
  2170. // 消息
  2171. .message-box {
  2172. box-sizing: border-box;
  2173. width: 100%;
  2174. height: 84upx;
  2175. background: #F3FFFD;
  2176. border: 1px solid #C7E9E5;
  2177. box-shadow: 0px 4upx 12upx 0px rgba(90, 203, 138, 0.16);
  2178. border-radius: 16upx;
  2179. position: fixed;
  2180. left: 50%;
  2181. transform: translateX(-50%);
  2182. bottom: 30upx;
  2183. z-index: 99;
  2184. display: flex;
  2185. align-items: center;
  2186. justify-content: space-between;
  2187. padding: 0 20upx 0 30upx;
  2188. .left {
  2189. flex: 1;
  2190. display: flex;
  2191. align-items: center;
  2192. image {
  2193. width: 24upx;
  2194. height: 24upx;
  2195. margin-right: 18upx;
  2196. }
  2197. .text {
  2198. width: 90%;
  2199. font-size: 28upx;
  2200. font-family: PingFang SC;
  2201. font-weight: 500;
  2202. color: #2BC7B9;
  2203. }
  2204. }
  2205. .btn {
  2206. width: 100upx;
  2207. height: 48upx;
  2208. line-height: 48upx;
  2209. text-align: center;
  2210. font-size: 24upx;
  2211. font-family: PingFang SC;
  2212. font-weight: 500;
  2213. color: #FFFFFF;
  2214. border: 1px solid #D2E6FF;
  2215. background: linear-gradient(135deg, #66b2ef 0%, #2BC7B9 100%);
  2216. border-radius: 24upx;
  2217. margin-left: 30upx;
  2218. }
  2219. }
  2220. .contact-btn {
  2221. display: inline-block;
  2222. position: absolute;
  2223. top: 0;
  2224. left: 0;
  2225. width: 100%;
  2226. height: 100%;
  2227. opacity: 0;
  2228. }
  2229. .popup-box {
  2230. position: fixed;
  2231. top: 0;
  2232. right: 0;
  2233. left: 0;
  2234. bottom: 0;
  2235. z-index: 999;
  2236. display: flex;
  2237. justify-content: center;
  2238. align-items: center;
  2239. .info-mask {
  2240. position: fixed;
  2241. top: 0;
  2242. right: 0;
  2243. bottom: 0;
  2244. left: 0;
  2245. background-color: rgba($color: #000000, $alpha: 0.5);
  2246. z-index: 999;
  2247. }
  2248. .info-form {
  2249. z-index: 1000;
  2250. width: 450rpx;
  2251. display: flex;
  2252. flex-direction: column;
  2253. justify-content: center;
  2254. align-items: center;
  2255. position: relative;
  2256. image {
  2257. width: 100%;
  2258. }
  2259. }
  2260. }
  2261. </style>