1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593 |
- <template>
- <view class="content">
- <!-- 背景图片 -->
- <!-- <image class="bg" src="../../static/images/bg_1.png" mode=""></image> -->
- <image class="bg"
- src="https://beiliyo-2025.obs.cn-north-4.myhuaweicloud.com/fs/20250115/1736955760372.png"
- mode=""></image>
- <view >
- <view class="top-inner">
- <view class="fixed-top-box" :style="{background:bgColor }">
- <!-- 这里是状态栏 -->
- <view class="status_bar" :style="{height: statusBarHeight}"></view>
- <view class="top-title align-center justify-start ml20">
- <image src="../../static/images/logo.png"
- class="w120 h120 "></image>
- <view class="name base-color" >倍力优</view>
- <!-- <view class="dot">•</view><view class="sub-name">七彩互联网医院</view> -->
- </view>
- <!-- 搜索框、购物车、客服 -->
- <view class="func-cont" >
- <view class="search-cont"
- :style="{width:userinfoa.isShow==0 && isuser==false?'633rpx':''}">
- <image class="icon-search" src="../../static/images/search.png" mode=""></image>
- <!-- <input type="text" disabled value="" placeholder="搜索商品、症状、功能主治" placeholder-style="font-size:28rpx;color:#BBBBBB;font-family: PingFang SC;" @click="toSearch" /> -->
- <input type="text" value="" :placeholder="pltoptext[0].text" v-if="theme=='beiliyou'"
- placeholder-style="font-size:28rpx;color:#999;font-family: PingFang SC;" @click="toSearch" />
- <input type="text" disabled value="" :placeholder="pltoptext[1].text" v-if="theme=='orange'"
- placeholder-style="font-size:28rpx;color:#999;font-family: PingFang SC;" @click="toSearch" />
- <input type="text" disabled value="" :placeholder="pltoptext[2].text" v-if="theme=='purple'"
- placeholder-style="font-size:28rpx;color:#999;font-family: PingFang SC;" @click="toSearch" />
- <input type="text" disabled value="" :placeholder="pltoptext[3].text" v-if="theme=='red'"
- placeholder-style="font-size:28rpx;color:#999;font-family: PingFang SC;" @click="toSearch" />
- </view>
- <!-- 购物车 -->
- <uni-badge size="small" :text="cartCount" absolute="rightTop" type="error"
- v-show="userinfoa.isShow==1&&isuser==false">
- <view class="img-item" @click="goAuthUrl('../shopping/cart')">
- <image :src="`../../static/images/${theme}/shopping_car.png`" mode=""></image>
- </view>
- </uni-badge>
- <view class="img-item" style="position: relative;">
- <image :src="`../../static/images/${theme}/service_gray.png`" mode=""></image>
- <button class="contact-btn" open-type="contact"></button>
- </view>
- </view>
- <!-- <view class="tips">
-
- <view class="left"></view>
- <view class="right" @click="navTo('./cert')">资质证明</view>
- </view> -->
- </view>
- </view>
- <!-- 头部间距 -->
- <view style="padding-bottom:220rpx" >
- <view class="status_bar" :style="{height: statusBarHeight}"></view>
- </view>
- <!-- 轮播图 -->
- <view class="banner-box" >
- <view class="inner">
- <swiper
- class="swiper"
- :indicator-dots="true"
- :circular="true"
- :interval="3000"
- @change='indexswiper'
- indicator-color="rgba(138, 138, 138, 0.6)"
- indicator-active-color="#666666">
- <swiper-item class="swiper-item" v-for="(item,index) in advList" :key="index" @click="handleAdvClick(item)">
- <video id="myVideo" :src='item.imageUrl'
- show-mute-btn='true' @fullscreenchange='changvideo'
- vslide-gesture-in-fullscreen='true' :muted='muted' loop='true'
- enable-danmu controls autoplay="true" object-fit="cover"
- class="videotop" v-show="item.type == 'video'"></video>
- <image :src="item.imageUrl" mode="scaleToFill" v-show="item.type == 'image'" ></image>
- </swiper-item>
- </swiper>
- </view>
- </view>
-
- <!-- 菜单 -->
- <view class="menu-content" >
- <view class="menu-box">
- <Menu :list="menus" @menuClick="menuClick" v-if="menus.length>0" style="width:100%;"></Menu>
- </view>
- </view>
-
- </view>
-
- <!-- 在线问诊、处方查询 -->
- <view class="online-inquiry mt20" >
- <view class="item " @click="navTo('/pages_index/index/doctorArticleList?cateId=4&title=5G牧场')">
- <image class="bg-img radius16"
- src="https://beiliyo-2025.obs.cn-north-4.myhuaweicloud.com/fs/20250115/1736956599556.png" mode=""></image>
- <view class="inner">
- <text class="title color" >5G牧场</text>
- <text class="sub-title">数字化管理牧场</text>
- <!-- <image src="../../static/images/doctor.png" mode=""></image> -->
- </view>
- </view>
- <view class="item " @click="navTo('/pages_index/index/doctorArticleList?cateId=7&title=智能生产线')">
- <image class="bg-img radius16" src="https://beiliyo-2025.obs.cn-north-4.myhuaweicloud.com/fs/20250115/1736956595007.png" mode=""></image>
- <view class="inner">
- <text class="title" style="color: #3390C5;">智能生产线</text>
- <text class="sub-title">高度自动化</text>
- <!-- <image src="../../static/images/cu_search.png" mode=""></image> -->
- </view>
- </view>
- </view>
-
- <view class="modules mt40" v-if="menvKey.length>0&&menvKey[0].isShow">
- <view class="module">
- <!--养生有道-->
- <view class="depts">
- <view class="title">养生有道</view>
- <view class="dept-box">
- <view @click="yangshengClick(item)" class="dept" :key="index" v-for="(item,index) in menusB" >
- <image class="icon" :src="item.icon"></image>
- <view class="title" >{{item.menuName}} </view>
- </view>
- </view>
- </view>
-
- <view class="doctor-articles" v-if="menvKey.length>0&&menvKey[1].isShow">
- <view class="title-box">
- <view class="title">养生讲堂</view>
- <view class="more" @click="navTo('/pages_index/index/doctorArticleList')" >
- <view class="text">更多</view>
- <image src="/static/images/common/arrow_right.png"></image>
- </view>
- </view>
- <scroll-view :scroll-x="true" style="white-space: nowrap;">
- <view class="article-box" >
- <view class="article" @click="navTo('/pages_index/index/doctorArticleDetails?articleId='+item.articleId)"
- v-for="(item,index) in doctocArticles" :key="index">
- <view class="image-box">
- <image mode="aspectFill" :src="item.imageUrl"></image>
- <view class="views">
- {{item.views}}人观看
- </view>
- <view class="doctor">
- <image mode="aspectFill" :src="item.avatar"></image>
- <!-- <view class="right">
- <view class="doc-name ellipsis">{{item.doctorName}}</view>
- <view class="doc-position ellipsis">{{item.position}}</view>
- </view> -->
- </view>
- </view>
- <view class="article-title-box">
- <view class="article-title ellipsis">{{item.title}}</view>
- </view>
- </view>
- </view>
- </scroll-view>
- </view>
-
-
-
- <!--养生干货-->
- <!-- <view class="articles">
- <view class="title-box">
- <view class="title">养生干货</view>
- <view class="more" @click="navTo('/pages_index/index/articleList')">
- <view class="text">更多</view>
- <image src="../../static/images/common/arrow_right.png"></image>
- </view>
- </view>
- <view class="article-box" v-if="articles.length>0">
- <view class="item" :key="index" @click="navTo('/pages_index/index/articleDetails?articleId='+item.articleId)" v-for="(item,index) in articles">
- <view class="left">
- <view class="title">
- {{item.title}}
- </view>
- <view class="views">
- 浏览量 {{item.views}}
- </view>
- </view>
- <view class="right">
- <image :src="item.imageUrl"></image>
- </view>
- </view>
- </view>
- </view> -->
-
- </view>
- </view>
-
- <view class="index-cont">
- <!-- 医生团队 -->
- <!-- <view class="pub-item">
- <view class="pub-title-box">
- <text class="left">医生团队</text>
- <view class="right" @click="navTo('/pages_doctor/doctorList')">
- <text class="text">全部医生</text>
- <image src="../../static/images/arrow_gray.png" mode=""></image>
- </view>
- </view>
- <view class="doc-cont">
- <view class="inner">
- <view class="item" v-for="(item,index) in doctorList" :key="index" @click="shopDoctor(item)">
- <view class="head-box">
- <image :src="item.headImg" mode="aspectFill"></image>
- </view>
- <text class="name ellipsis">{{ item.doctorName }}</text>
- <text class="position ellipsis">
- {{utils.getDictLabelName("doctorPosition",item.position)}}
- </text>
- </view>
- </view>
- </view>
- </view> -->
- <!-- <view class="pub-item">
- <view class="tabs">
- <view class="tab" @click="docTabChange(1)">
- <image v-if="docTab==1" class="img" src="../../static/images/tab1.png" mode=""></image>
- <view class="inner">
- <text :class="docTab == 1?'title active':'title'" >推荐医生</text>
- </view>
- </view>
- <view class="tab" @click="docTabChange(2)">
- <image v-if="docTab==2" class="img" src="../../static/images/tab2.png" mode=""></image>
- <view class="inner">
- <text :class="docTab == 2?'title active':'title'" >推荐药师</text>
- </view>
- </view>
- <view class="tab" @click="docTabChange(3)">
- <image v-if="docTab==3" class="img" src="../../static/images/tab3.png" mode=""></image>
- <view class="inner">
- <text :class="docTab == 3?'title active':'title'" >推荐营养师</text>
- </view>
- </view>
- </view>
- <view class="doc-tab-box">
- <view class="tab-inner" >
- <view
- v-for="(item,index) in depts"
- :key="index"
- :class="item.departmentId == deptId?'item active':'item'"
- @click="deptChange(item)"
- >
- <view class="text">
- {{ item.departmentName }}
- <image v-show="item.departmentId == deptId" class="tab-bg" src="../../static/images/tab_bg.png" mode=""></image>
- </view>
- </view>
- </view>
- <image class="right-mask" src="../../static/images/mask.png" mode=""></image>
- </view>
- <view class="doc-list">
- <view class="item" v-for="(item,index) in doctorList" :key="index" @click="shopDoctor(item)"> -->
- <!-- 头像 -->
- <!-- <view class="head-box">
- <image :src="item.headImg" mode="aspectFill"></image>
- </view> -->
- <!-- 详细信息 -->
- <!-- <view class="info"> -->
- <!-- 姓名等 -->
- <!-- <view class="top">
- <text class="name">{{ item.doctorName }}</text>
- <view class="line"></view>
- <text class="other">{{utils.getDictLabelName("doctorPosition",item.position)}}</text>
- <view class="line"></view>
- <text class="other">{{ item.departmentName }}</text>
- </view> -->
- <!-- 单位 -->
- <!-- <view class="unit-box"> -->
- <!-- <view class="level">三甲</view> -->
- <!-- <view class="name">{{ item.hospitalName }}</view>
- </view> -->
- <!-- 擅长 -->
- <!-- <view class="expertise ellipsis2">
- 擅长:{{ item.doctorDesc }}
- </view> -->
- <!-- 评分 -->
- <!-- <view class="rate-box">
- <view class="star">
- <image src="../../static/images/star.png" mode=""></image>
- <text>{{ item.pings }}</text>
- </view>
- <view class="line"></view>
- <view class="num-box">
- <text class="label">接诊数</text>
- <text class="num">{{ item.orders }}</text>
- </view>
- <view class="line"></view>
- <view class="num-box">
- <text class="label">响应速度</text>
- <text class="num">{{ item.speed }}分钟</text>
- </view>
- </view> -->
- <!-- 价格 -->
- <!-- <view class="price-box">
- <view class="btn-item" v-for="(subitme) in item.price">
- <text class="label" >{{subitme.priceType==1?'图文':'语音'}}</text>
- <text class="num">¥{{subitme.price.toFixed(2)}}</text>
- </view>
- </view>
- </view>
- </view>
- <view class="bottom-title" @click="navTo('/pages_doctor/doctorList?doctorType='+docTab)">
- <text >{{allDoctorTitle}}</text>
- <image src="../../static/images/arrow3.png" mode=""></image>
- </view>
-
- </view>
- -->
- <!-- <view class="doc-cont">
- <view class="inner">
- <view class="item" v-for="(item,index) in doctorList" :key="index" @click="shopDoctor(item)">
- <view class="head-box">
- <image :src="item.headImg" mode="aspectFill"></image>
- </view>
- <text class="name ellipsis">{{ item.doctorName }}</text>
- <text class="position ellipsis">
- {{utils.getDictLabelName("doctorPosition",item.position)}}
- </text>
- </view>
- </view>
- </view> -->
- <!-- </view> -->
- <!-- 问诊案例 -->
- <!-- <view class="pub-item">
- <view class="pub-title-box">
- <text class="left">问诊案例</text>
- <view class="right" @click="viewAll('doctorCase')">
- <text class="text">全部案例</text>
- <image src="../../static/images/arrow_gray.png" mode=""></image>
- </view>
- </view>
- <view class="inner">
- <view class="pub-tab-box">
- <view class="tab-inner">
- <view
- v-for="(item,index) in orderTypes"
- :key="index"
- :class="item.id == orderType?'item cases active':'item cases'"
- @click="orderTypeChange(item)"
- >
- <view class="text">
- {{ item.name }}
- <image v-show="item.id == orderType" class="tab-bg" src="../../static/images/tab_bg.png" mode=""></image>
- </view>
- </view>
- </view>
- <image class="right-mask" src="../../static/images/mask.png" mode=""></image>
- </view>
- <view class="cases-list">
- <view class="item" v-for="(item,index) in doctorOrderList" :key="index">
- <view class="dec-text ellipsis2">{{item.title}}</view>
- <view class="images-box" v-if="item.imgs!=null" >
- <view class="img-item" v-for="(subitem,j) in utils.photosToArr(item.imgs)" @click="showImg(item.imgs)" :key="j">
- <image :src="subitem" mode="aspectFill" ></image>
- </view>
- </view>
- <view class="doc-info">
- <view class="head">
- <image :src="item.doctorHeadImg" mode="aspectFill"></image>
- </view>
- <view class="name">{{item.doctorName}}</view>
- <view class="line"></view>
- <view class="posit">
- {{utils.getDictLabelName("doctorPosition",item.doctorPosition)}}
- </view>
- <view class="line"></view>
- <view class="address">{{item.hospitalName}}</view>
- </view>
- <view class="answer-box">
- <text class="text-inner" v-if="item.orderType == '1' ">{{item.replyContent}}</text>
- <view class="voice-inner" v-if="item.orderType == '2'">
- <free-audio
- startPic='/static/images/play.png'
- endPic='/static/images/pause.png'
- activeColor="#018C39"
- :audioId="'audio'+index"
- :url='item.replyAudioUrl'
- ></free-audio>
- </view>
- </view>
- <view class="read-box">
- <image src="../../static/images/eye.png" mode=""></image>
- <text class="text">{{item.views}}人看过</text>
- </view>
- </view>
- </view>
- </view>
- </view> -->
-
- <!-- 热门榜单 -->
- <view v-show="menvKey.length>0&&menvKey[2].isShow">
- <NewProduct :detail="newProductList" />
- <HotProduct :detail="hotProductList" />
- </view>
- <!-- 健康百科 -->
- <view class="pub-item" style="margin-top: 20rpx;" v-if="menvKey.length>0&&menvKey[3].isShow">
- <view class="pub-title-box">
- <text class="left">健康百科</text>
- <view class="right" @click="navTo('../healthy/index')">
- <text class="text">更多</text>
- <image src="../../static/images/common/arrow_right.png" mode=""></image>
- </view>
- </view>
- <view class="inner">
- <view class="pub-tab-box">
- <view class="tab-inner">
- <view
- v-for="(item,index) in articleCateList"
- :key="index"
- :class="item.cateId == cateId?'item active':'item'"
- @click="articleCateChange(item)">
- <view class="text">
- {{ item.cateName }}
- <image v-show="item.cateId == cateId" class="tab-bg" src="../../static/images/tab_bg.png" mode=""></image>
- </view>
- </view>
- </view>
- <image class="right-mask" src="../../static/images/mask.png" mode=""></image>
- </view>
-
- <view class="know-list">
- <view class="item" v-for="(item,index) in articleList" :key="index" @click="showArticle(item)">
- <view class="left">
- <view class="title ellipsis2">{{ item.title }}</view>
- <view class="info-box">
- <view class="readers">
- <!-- <view class="head-box" v-if="item.viewsList!=null&&item.viewsList.length>0">
- <view class="head" v-for="(subitem,j) in item.viewsList" :key="j" v-if="subitem!=null" >
- <image :src="subitem.avatar==null?'/static/images/detault_head.jpg':subitem.avatar" mode=""></image>
- </view>
- </view> -->
- <view class="readings">
- <image class="eye" src="../../static/images/eye.png" mode=""></image>
- <text class="num">{{item.views}}人阅读</text>
- </view>
- </view>
- <view class="time">{{item.publishTime}}</view>
- </view>
- </view>
- <view class="right">
- <image :src="item.imageUrl" mode="aspectFill"></image>
- </view>
- </view>
- </view>
- </view>
- </view>
- <!-- 精选商品 -->
- <TuiProduct ref="tuiProduct" />
- <!-- <view class="feat-title">
- <image src="../../static/images/tui.png" mode=""></image>
- <text>精选商品</text>
- </view>
- <view class="drug-list">
- <view class="item" v-for="(item,index) in tuiProductList" :key="index" @click="showProduct(item)">
- <view class="img-box">
- <image :src="item.image" mode="aspectFit"></image>
- </view>
- <view class="info-box">
- <view class="title ellipsis2">{{ item.productName }}</view>
- <view class="price-box">
- <view class="now">
- <text class="unit">¥</text>
- <text class="num">{{item.price.toFixed(2)}}</text>
- </view>
- <view class="old">¥{{item.otPrice.toFixed(2)}}</view>
- </view>
- </view>
- </view>
- </view> -->
-
- </view>
-
-
- <!-- 限时消息 -->
- <!-- <view class="message-box" >
- <view class="left">
- <image src="../../static/images/close24.png" mode="" @click="closeMsg"></image>
- <view class="text ellipsis">关注公众号了解更新</view>
- </view>
- <view class="btn">查看</view>
-
- </view> -->
- <!-- #ifdef MP-WEIXIN -->
- <view class="official-account" >
- <official-account @load="bindload" @error="binderror"></official-account>
- </view>
- <!-- #endif -->
- <view class="popup-box" v-if="activityShow">
- <view class="info-mask" @tap="closeActivity()" ></view>
- <view class="info-form" >
- <image :src="activity.logoUrl" @tap="showActivity()" />
- </view>
- </view>
- <!-- <tabbar :actindex="0"></tabbar> -->
- <z-modal :show="tuiModalControl" placeholderText="请输入邀请码" :btnGroup="btnGroup" :contentType="2" titleText="填写邀请码" @cancle="cancleTui" @sure="submitTui" ></z-modal>
- </view>
- </template>
- <script>
- import zModal from '@/components/z-modal/z-modal.vue'
- import {getStoreActivity} from '@/api/activity.js'
- import {getDepartmentList} from '@/api/doctorOrder.js'
- import {getMenu,getCanvas,getIndexData,getTuiDoctor
- ,getTuiArticle,getTuiDoctorOrder,getCartCount,getMenuB,getpro} from '@/api/index'
- import {getDoctorArticleList} from '@/api/doctorArticle.js'
- import {getArticleList} from '@/api/article.js'
- import {getStoreConfig} from '@/api/common'
- import tabBg from "@/static/images/tab_bg.png"
- import freeAudio from '@/components/chengpeng-audio/free-audio.vue'
- import Menu from '@/components/Menu.vue'
- import HotProduct from './components/HotProduct.vue'
- import NewProduct from './components/NewProduct.vue'
- import TuiProduct from '@/components/tuiProduct.vue'
- import {getUserInfo,bindPromoter} from '@/api/user'
- import tabbar from '../../components/tabbar/tabbar.vue'
- export default {
- components: {zModal,freeAudio,Menu,HotProduct,NewProduct,TuiProduct,tabbar},
- data() {
- return {
- theme:'beiliyou',
- pltoptext:[{
- text:'搜索健康食品、乳制品等'
- },{
- text:'搜索商品、症状、功能主治'
- },{
- text:'搜索商品、症状、功能主治2'
- },{
- text:'搜索商品、症状、功能主治3'
- }],
- btnGroup: [{
- text: '取消',
- color: '#FFFFFF',
- bgColor: '#999999',
- width: '150rpx',
- height: '80rpx',
- shape: 'fillet',
- eventName: 'cancle'
- },{
- text: '确定',
- color: '#FFFFFF',
- // bgColor: '#018C39',
- bgColor: this.$store.state.theme.currentMoban,
- width: '150rpx',
- height: '80rpx',
- shape: 'fillet',
- eventName: 'sure'
- }],
- tuiModalControl:false,
- activity:null,
- muted:true,
- activityShow:false,
- newProductList: [],
- hotProductList: [],
- tuiProductList:[],
- menus:[],
- canvas:[],
- allDoctorTitle:"全部医生",
- topLen:0,
- deptId:0,
- depts:[],
- docTab:1,
- top:0,
- cartCount:0,
- doctorOrderList:[],
- orderType:0,
- cateId:null,
- articleList:[],
- advList:[],
- doctorList:[],
- articleCateList:[],
- doctocArticles:[],//养生讲堂
- articles:[],//养生干货
- // 状态栏的高度
- statusBarHeight: uni.getStorageSync('menuInfo').statusBarHeight,
- tabBg: tabBg, // tab切换背景
- // 问诊案例类型
- orderTypes: [{name:'全部',id:0,},{name:'图文',id:1,},{name:'语音',id:2,}],
- // 限时消息是否显示
- messageShow: true,
- menusB:[],
- yangshengs:[
- {id:"1",title:"药膳食疗",page:"/pages_index/index/medicatedFoodList",icon:"https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/3cfbd47911cf4753aa9497eac500728d.png"},
- {id:"2",title:"经络穴位",page:"/pages_index/index/vesselList",icon:"https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/e93536a9dc1a4f8ca09545097b12fdea.png"},
- {id:"3",title:"问答专区",page:"/pages_index/index/questionsList",icon:"https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/e896972bd56f4e358188af36f2c5af42.png"},
- {id:"4",title:"疾病",page:"/pages_index/index/diseaseList",icon:"https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/d6f1851cccae414b8baf2ba07782f91b.png"},
- {id:"5",title:"中药图解",page:"/pages_index/index/chineseMedicineList",icon:"https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/ff43572d0d004285b5a3b0ef2663c471.png"},
- {id:"6",title:"名方今用",page:"/pages_index/index/famousPrescribeList",icon:"https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/45db770e58c34963b0d2ba24a958b617.png"},
- {id:"7",title:"康复医案",page:"/pages_index/index/doctorArticleList",icon:"https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/e793942797b24035b51f94d894bdfa0b.png"},
- // {id:"8",title:"更多",page:"",icon:"https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/3ee6160289914ee4a8126573fe4dc0ae.png"}
- ],
- userinfoa:[],
- isuser:false,
- menvKey:{},
- }
- this.getStoreActivity();
- },
- onLoad(option) {
- uni.$on('loginRefresh', () => {
- this.UserInfo = true
- this.getUserInfo()
- })
- if(option.userCode!=null){
- uni.setStorageSync('userCode',option.userCode);
- if(this.utils.checkLoginState()){
- this.getUserInfos();
- }
- }
- if (option.hasOwnProperty('q') && option.q) {
- // 通过下面这步解码,可以拿到url的值
- const url = decodeURIComponent(option.q)
- this.url=url;
- // // 对url中携带的参数提取处理
- const obj = this.utils.urlToObj(url)
- uni.setStorageSync('userCode',obj.userCode);
- if(this.utils.checkLoginState()){
- this.getUserInfos();
- }
- }
- this.getStoreActivity()
- },
- // 暂停所有音频(一般用于页面切换时停止正在播放的音频)
- onUnload() { //普通页面在 onUnload 生命周期中执行
- uni.$emit('stop')
- },
- onHide() { //tabBar页面在onHide生命周期中执行
- uni.$emit('stop')
- },
- onPageScroll(e) {
- //console.log(e)
- this.top=e.scrollTop;
- },
- mounted() {
- //this.getDepartmentList();
- },
- onShareAppMessage(res) {
- return {
- title: '倍力优-您的专属健康解决方案',
- path: `/pages/common/launch`,
- imageUrl: 'https://beiliyo-2025.obs.cn-north-4.myhuaweicloud.com/fs/20250115/1736944490230.png' //分享图标,路径可以是本地文件路径、代码包文件路径或者网络图片路径.支持PNG及JPG。显示图片长宽比是 5:4
- }
- },
- onReachBottom() {
- console.log("onReachBottom")
- this.$refs.tuiProduct.getTuiProducts();
- },
- //分享到朋友圈
- onShareTimeline(res) {
- return {
- title: '倍力优-您的专属健康解决方案',
- query:'',//页面参数
- imageUrl: 'https://beiliyo-2025.obs.cn-north-4.myhuaweicloud.com/fs/20250115/1736944490230.png' //分享图标,路径可以是本地文件路径、代码包文件路径或者网络图片路径.支持PNG及JPG。显示图片长宽比是 5:4
- }
- },
- computed: {
- // 计算属性的 getter
- bgColor: function() {
- var top=this.top/30;
- let baseRgba='255,255,255'
- return `rgba(${baseRgba}, ` + top + ')';
- },
- },
- onShow() {
- this.getMenu();
- this.getMenuB()
- this.getIndexData()
- //this.getTuiDoctorOrder();
- // console.log(uni.getStorageSync('isLocation'))
- // if(uni.getStorageSync('isLocation')==""){
- // this.getLocation();
- // }
- if(uni.getStorageSync('AppToken')){
- this.getUserInfos()
- }else{
- this.isuser=true
- }
- if(this.utils.checkLoginState()){
- this.getCartCount();
- }
- this.getStoreConfig();
- //this.getTuiDoctor()
- this.getCanvas();
- this.getDoctorArticleList();
- this.getArticleList();
- this.getshowmanv()
- },
- methods: {
- getshowmanv(){
- const data={
- key:"store.appShow"
- }
- getpro(data).then(res=>{
- this.menvKey=JSON.parse(res.data)
- console.log('排序',this.menvKey)
-
- })
- },
- changvideo(e){
- if(e.target.fullScreen==true){
- this.muted=false
- }else{
- this.muted=true
- }
- e.target.fullScreen
- console.log(e.target.fullScreen)
- },
- indexswiper(e){
- console.log(e)
- },
- getUserInfos(){
- getUserInfo().then(res => {
- if(res.code==200){
- if(res.user!=null){
- // if(res.user.isPromoter==null||res.user.isPromoter==0){
- // this.tuiModalControl=true
- // }
- this.userinfoa=res.user
- console.log(this.userinfoa.isShow,78787)
- }
- }else{
- uni.showToast({
- icon:'none',
- title: "请求失败",
- });
- }
- },
- rej => {}
- );
- },
- cancleTui(e){
- this.tuiModalControl=false
- },
- submitTui(e){
- console.log(e)
- if(e.inputText==null||e.inputText==""){
- uni.showToast({
- icon:'none',
- title: "请输入邀请码",
- });
- return;
- }
- var data={userCode:e.inputText};
- bindPromoter(data).then(
- res => {
- if(res.code==200){
- uni.showToast({
- icon:'none',
- title: res.msg,
- });
- this.tuiModalControl=false
- }else{
- uni.showToast({
- icon:'none',
- title: res.msg,
- });
- }
- },
- rej => {}
- );
-
- },
- bindload:function(detail){
- },
- binderror:function(detail){
- },
- closeActivity(){
- this.activityShow=false;
- // uni.setStorageSync(this.activity.activityId,null);
- },
- getStoreActivity() {
- let data = { }
- getStoreActivity(data).then(res => {
- this.activity=res.activity;
- if(this.activity!=null){
- // if(uni.getStorageSync(this.activity.activityId)!=null)
- // {
- // uni.setStorageSync(this.activity.activityId,1);
- // this.activityShow=true;
- // }
- // else{
- // this.activityShow=false;
- // }
- this.activityShow=true;
- }
- else{
- this.activityShow=false;
- }
- })
- },
- showActivity(){
- this.activityShow=false;
- uni.navigateTo({
- url: '/pages_shopping/shopping/activityDetails?activityId='+this.activity.activityId
- })
- },
- menuClick(item){
- if(item.linkType==1){
- if(item.linkUrl=="/pages/shopping/index"){
- uni.switchTab({
- url: item.linkUrl
- })
- }
- else if(item.linkUrl=="/pages/healthy/index"){
- uni.switchTab({
- url: item.linkUrl
- })
- }
- else{
-
- uni.navigateTo({
- url: item.linkUrl
- })
- }
-
- }
- else if(item.linkType==0){
- uni.showToast({
- icon:'none',
- title: "开发中...",
- });
- }
- },
- goDev(){
- uni.showToast({
- icon:'none',
- title: "开发中...",
- });
- },
- handleAdvClick(item){
- console.log(item);
- if(item.showType==1){
- uni.setStorageSync('url',item.advUrl);
- uni.navigateTo({
- url:"h5"
- })
- }
- else if(item.showType==2){
- uni.navigateTo({
- url:item.advUrl
- })
- }
- else if(item.showType==3){
- uni.setStorageSync('content',item.content);
- uni.navigateTo({
- url:"content"
- })
- }
-
- },
- deptChange(item){
- this.deptId=item.departmentId;
- this.getTuiDoctor();
- },
- getMenu(){
- getMenu().then(res => {
- console.log(res)
- if(res.code==200){
- this.menus= res.data
- }else{
-
- }
- });
- },
- getMenuB(){
- getMenuB().then(res => {
- console.log('标题2',res)
- if(res.code==200){
- this.menusB= res.data
- }else{
-
- }
- });
- },
- getCanvas(){
- getCanvas().then(res => {
- if(res.code==200){
- console.log(res.data)
- this.canvas= JSON.parse(res.data.json)
- }
- });
- },
- getDepartmentList(){
- this.depts=[];
- getDepartmentList().then(res => {
- if(res.code==200){
- var allDept={departmentId:0,departmentName:"全部"}
- this.depts.push(allDept);
- this.depts=this.depts.concat(res.data);
- }else{
- uni.showToast({
- icon:'none',
- title: "请求失败",
- });
- }
- });
- },
- getTuiDoctor(){
- let data = {departmentId:this.deptId,doctorType:this.docTab};
- getTuiDoctor(data).then(
- res => {
- if(res.code==200){
- this.doctorList=res.data;
- }else{
- uni.showToast({
- icon:'none',
- title: "请求失败",
- });
- }
- },
- rej => {}
- );
- },
- docTabChange(val){
- if(val==1){
- this.allDoctorTitle="全部医师"
- }
- if(val==2){
- this.allDoctorTitle="全部药师"
- }
- if(val==3){
- this.allDoctorTitle="全部营养师"
- }
- this.docTab=val;
- this.getTuiDoctor();
- },
- showImg(urls) {
- var imgArr =urls.split(',');
- //预览图片
- uni.previewImage({
- urls: imgArr,
- current: imgArr[0]
- });
- },
- getStoreConfig(){
- getStoreConfig().then(
- res => {
- if(res.code==200){
- uni.setStorageSync('config',JSON.stringify(res.data));
- }
- },
- rej => {}
- );
-
- },
- goAuthUrl(url){
- this.utils.isLogin().then(res => {
- if(res){
- uni.navigateTo({
- url:url
- })
- }
-
- })
- },
- goenper(url){
- uni.switchTab({
- url:url
- })
- },
- // 跳转页面
- navTo(url){
- uni.navigateTo({
- url: url
- })
- },
- getLocation(){
- var that=this;
- uni.authorize({
- scope:'scope.userLocation',
- success() {
- uni.getLocation({
- type: 'gcj02',//腾讯地图使用gcj02获取位置坐标
- success: function (res) {
- uni.setStorageSync('isLocation',1);
- uni.setStorageSync('lng',res.longitude);
- uni.setStorageSync('lat',res.latitude);
- },
- })
- },
- fail(err){
- console.log(err)
- }
- })
- },
- getIndexData(){
- let data = {};
- getIndexData(data).then(
- res => {
- if(res.code==200){
- console.log(1111)
- this.advList=res.data.advList;
- this.advList = res.data.advList.map(item => {
- if(item.urlType==1){
- return {
- ...item,
- type: 'image',
- }
- }else{
- return {
- ...item,
- type: 'video',
- }
- }
-
- })
- // for(let i=0;i<=this.advList;i++){
- // if(this.advList[i].urlType==2){
- // this.advList[i].type='video'
- // }
- // }
- console.log(this.advList)
- // this.advList[1].type='video'
- console.log('现在',this.advList,)
- this.articleCateList=res.data.articleCateList;
- if(this.articleCateList!=null&&this.articleCateList.length>0){
- this.cateId=this.articleCateList[0].cateId;
- this.getTuiArticle()
- }
- this.tuiProductList=res.data.tuiProductList
- this.newProductList = res.data.newProductList
- this.hotProductList = res.data.hotProductList
- }else{
- uni.showToast({
- icon:'none',
- title: "请求失败",
- });
- }
- },
- rej => {}
- );
- },
- getCartCount(){
- this.utils.isLogin().then(res => {
- if(res){
- getCartCount().then(
- cartRes => {
- if(cartRes.code==200){
- this.cartCount=cartRes.data;
- }
- },
- rej => {}
- );
- }
- })
- },
- getTuiArticle(){
- let data = {cateId:this.cateId};
- getTuiArticle(data).then(
- res => {
- if(res.code==200){
- this.articleList=res.data;
- }else{
- uni.showToast({
- icon:'none',
- title: "请求失败",
- });
- }
- },
- rej => {}
- );
- },
- getTuiDoctorOrder(){
- let data = {orderType:this.orderType};
- getTuiDoctorOrder(data).then(
- res => {
- if(res.code==200){
- this.doctorOrderList=res.data;
- }else{
- uni.showToast({
- icon:'none',
- title: "请求失败",
- });
- }
- },
- rej => {}
- );
- },
- showArticle(item){
- uni.navigateTo({
- url: '../healthy/detail?articleId='+item.articleId
- })
- },
- showProduct(item){
- uni.navigateTo({
- url: '../shopping/productDetails?productId='+item.productId
- })
- },
- // 顶部搜索
- toSearch() {
- uni.navigateTo({
- url: './productSearch'
- })
- },
- // 健康知识选中
- articleCateChange(item) {
- this.cateId = item.cateId;
- this.getTuiArticle();
- },
- // 问诊案例选中
- orderTypeChange(item) {
- this.orderType = item.id;
- console.log(this.orderType)
- this.getTuiDoctorOrder();
- },
- // 关闭限时消息
- closeMsg() {
- this.messageShow = false
- },
- // 查看全部
- viewAll(url) {
- uni.navigateTo({
- url: '/pages/home/' + url,
- });
- },
- shopDoctor(item){
- console.log(item);
- uni.navigateTo({
- url: "/pages_doctor/doctorDetail?doctorId="+item.doctorId
- })
- },
- switchTo(url){
- uni.switchTab({
- url: url
- })
- return
- },
- yangshengClick(item){
- console.log('item',item)
- if(item.page==""){
- uni.showToast({
- icon:"none",
- title: '暂无更多'
- })
- return;
- }else if(item.linkType==0){
- uni.showToast({
- icon:'none',
- title: "开发中...",
- });
- }else{
- uni.navigateTo({
- url:item.linkUrl
- })
- }
-
- },
- // 在线问诊
- openIm() {
- uni.navigateTo({
- url: '/pages_doctor/doctorOrderIM?orderId=10'
- })
- },
- getDoctorArticleList() {
- //联网加载数据
- var that = this;
- var data = {
- pageNum:1,
- pageSize:10
- };
- getDoctorArticleList(data).then(res => {
- if(res.code==200){
- this.doctocArticles=res.data.list;
- }
- });
- },
- getArticleList() {
- //联网加载数据
- var that = this;
- var data = {
- isTui:1,
- pageNum:1,
- pageSize:10,
- };
- getArticleList(data).then(res => {
- if(res.code==200){
- this.articles=res.data.list;
- }else{
- uni.showToast({
- icon:'none',
- title: "请求失败",
- });
- }
- });
- },
- }
- }
- </script>
- <style lang="scss">
- .videotop{
- width: 100%;
- height: 360rpx;
- }
- .fixed-top-box{
- width: 100%;
- position: fixed;
- top: 0;
- left: 0;
- z-index: 1000;
- transition: all 0.5s;
- background-color: #fff;
- &.show-back{
- // background: linear-gradient(135deg, #018C39 0%, #1fbd2c 100%);
- }
- .status_bar {
-
- width: 100%;
- }
- }
- .content{
- width: 100%;
- position: relative;
- .bg{
- width: 100%;
- height: 380rpx;
- position: absolute;
- top: 0;
- left: 0;
- }
- .top-inner{
- width: 100%;
- position: absolute;
- top: 0;
- left: 0;
- z-index: 5;
- .top-title{
- height: 88upx;
- line-height: 88upx;
- display: flex;
- align-items: center;
- justify-content: flex-start;
- .name{
- font-size: 42upx;
- // font-family: Source Han Sans CN;
- font-family: PingFang SC, PingFang SC;
- font-weight: bold;
- padding-left: 20upx;
- }
- .dot{
- margin: 0upx 10upx;
- font-size: 28upx;
- color: #FFFFFF;
- opacity: 0.5;
- }
- .sub-name{
- font-size: 30upx;
- font-family: Source Han Sans CN;
- color: #FFFFFF;
- }
-
-
- }
- .func-cont{
- box-sizing: border-box;
- display: flex;
- align-items: center;
- padding: 30upx 20upx 30upx 20upx;
- .search-cont{
- box-sizing: border-box;
- display: flex;
- align-items: center;
- width: 552upx;
- height: 72upx;
- background: #FFFFFF;
- border-radius: 36upx;
- padding: 0 30upx;
- border: 2rpx solid #018C39;
- .icon-search{
- width: 28upx;
- height: 28upx;
- margin-right: 20upx;
- }
- input{
- height: 60upx;
- line-height: 60upx;
- flex: 1;
- }
- }
- /deep/.uni-badge{
- border: none;
- background-color: #FF3636;
- font-family: Roboto;
- }
- .img-item{
- width: 44upx;
- height: 44upx;
- margin-left: 30upx;
- image{
- width: 100%;
- height: 100%;
- }
- }
- }
- .tips{
- margin: 0upx 20rpx 30rpx ;
- height: 40upx;
- line-height: 40upx;
- display: flex;
- justify-content: space-between;
- align-items: center;
- .left{
- font-size: 30upx;
- color: #FFFFFF;
- }
- .right{
- padding: 5upx 20rpx;
- font-size: 24upx;
- color: #FFFFFF;
- background-color: #018C39;
- border-radius: 50rpx;
- }
- }
- }
- .banner-box{
- padding: 0 20upx;
- .inner{
- width: 100%;
- height: 340upx;
- border-radius: 10upx;
- overflow: hidden;
- .swiper,
- .swiper-item,
- .swiper-item image{
- width: 100%;
- height: 100%;
- }
-
- }
- }
- .menu-content{
- // width: 100%;
- background-color: #fff;
- overflow: hidden;
- padding: 20upx 20upx 0;
- margin: 20rpx;
- border-radius: 20rpx;
- }
- .menu-box{
- display: flex;
- align-items: center;
- background-color: #FFFFFF;
- }
- .online-inquiry{
- box-sizing: border-box;
- width: 100%;
- height: 170upx;
- padding: 0 20upx;
- background: linear-gradient(180deg, rgba(255, 255, 255, 0.38) 62%, rgba(255, 255, 255, 0) 100%);
- display: flex;
- justify-content: space-between;
- .item{
- // width: 46.13%;
- width: 346upx;
- height: 180upx;
- position: relative;
- .bg-img,
- .inner{
- width: 100%;
- height: 100%;
- position: absolute;
- top: 0;
- left: 0;
- z-index: 1;
- }
- .inner{
- box-sizing: border-box;
- z-index: 2;
- display: flex;
- flex-direction: column;
- justify-content: center;
- padding-left: 32upx;
- .title{
- font-size: 36upx;
- line-height: 1;
- font-family: PingFang SC;
- font-weight: 600;
- color: #111111;
- margin-bottom: 20upx;
- }
- .sub-title{
- font-size: 24upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #666666;
- }
- image{
- width: 80upx;
- height: 90upx;
- position: absolute;
- right: 7upx;
- bottom: 7upx;
- }
- }
- }
- }
- .index-cont{
- box-sizing: border-box;
- padding: 0 20upx 120rpx;
- .pub-item{
- background: #FFFFFF;
- border-radius: 16upx;
- margin-bottom: 20upx;
- .tabs{
- width: 100%;
- display: flex;
- align-items: center;
- justify-content: flex-start;
- height: 110rpx;
- background-color: #F0F3F4;
- .tab{
- height: 110rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- position: relative;
- flex: 1;
- .img{
- z-index: 1;
- position: absolute;
- top:0rpx;
- left:0rpx;
- width: 100%;
- height: 100%;
- }
- .inner{
- z-index: 2;
- .title{
- font-size: 32upx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #666666;
- }
- .active{
- color: #018C39;
- }
- }
-
- }
-
-
- }
- .pub-title-box{
- box-sizing: border-box;
- padding: 36upx 30upx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- .left{
- font-size: 32upx;
- line-height: 1;
- font-family: PingFang SC;
- font-weight: bold;
- color: #111111;
- }
- .right{
- display: flex;
- align-items: center;
- justify-content: center;
- .text{
- font-size: 24rpx;
- line-height: 1;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- margin-right: -2rpx;
- }
- image{
- width: 40upx;
- height: 40upx;
- }
- }
-
- }
- .doc-tab-box{
- padding: 14rpx 30rpx 0rpx 30rpx;
- position: relative;
- .tab-inner{
- padding: 14upx 0 30upx;
- display: flex;
- overflow-x: auto;
- }
- .item{
- font-size: 28upx;
- white-space: nowrap;
- line-height: 1;
- font-family: PingFang SC;
- font-weight: 500;
- color: #666666;
- margin-right: 40upx;
- position: relative;
- &:last-child{
- margin-right: 0;
- }
- &.active{
- font-weight: bold;
- color: #333333;
- }
- &.cases{
- margin-right: 60upx;
- }
- .text{
- position: relative;
- z-index: 1;
- }
- .tab-bg{
- width: 72upx;
- height: 28upx;
- position: absolute;
- top: 17upx;
- left: 50%;
- transform: translateX(-36upx);
- z-index: -1;
- }
- }
- .right-mask{
- width: 56upx;
- height: 34upx;
- position: absolute;
- top: 25upx;
- right: 0upx;
- z-index: 1;
- }
- }
- .doc-list{
- padding: 20upx;
- .item{
- box-sizing: border-box;
- background: #FFFFFF;
- // border-radius: 16upx;
- display: flex;
- border-bottom: 1px solid #F0F0F0;
- margin-bottom: 30rpx;
- .head-box{
- width: 120upx;
- height: 120upx;
- background: #EDF1F4;
- border-radius: 50%;
- overflow: hidden;
- margin-right: 30upx;
- image{
- width: 100%;
- height: 100%;
- }
- }
- .info{
- width: calc(100% - 150upx);
- .top{
- display: flex;
- align-items: center;
- font-family: PingFang SC;
- line-height: 1;
- .name{
- font-size: 34upx;
- font-weight: bold;
- color: #111111;
- }
- .line{
- width: 1px;
- height: 26upx;
- background: #DDDDDD;
- margin: 0 20upx;
- }
- .other{
- font-size: 28upx;
- font-weight: 500;
- color: #333333;
- }
- }
- .unit-box{
- display: flex;
- margin-top: 24upx;
- .level{
- padding: 0 10upx;
- height: 30upx;
- line-height: 30upx;
- font-size: 22upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #FFFFFF;
- background: #018C39;
- border-radius: 10upx 4upx 10upx 4upx;
- margin-right: 12upx;
- }
- .name{
- font-size: 28upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #333333;
- line-height: 30upx;
- }
- }
- .expertise{
- font-size: 26upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #666666;
- line-height: 42upx;
- margin: 22upx 0 26upx;
- }
- .rate-box{
- display: flex;
- align-items: center;
- .star{
- display: flex;
- align-items: center;
- image{
- width: 22upx;
- height: 22upx;
- margin-right: 10upx;
- }
- text{
- font-size: 26upx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #CEA764;
- line-height: 1;
- }
- }
- .line{
- width: 1px;
- height: 20upx;
- background: #DDDDDD;
- margin: 0 20upx;
- }
- .num-box{
- display: flex;
- align-items: center;
- font-family: PingFang SC;
- .label{
- font-size: 24upx;
- font-weight: 500;
- color: #999999;
- line-height: 1;
- margin-right: 7px;
- }
- .num{
- font-size: 26upx;
- font-weight: bold;
- color: #CEA764;
- line-height: 1;
- }
- }
- }
- .price-box{
- display: flex;
- align-items: center;
- margin-top: 38upx;
- .btn-item{
- display: flex;
- align-items: center;
- justify-content: center;
- width: 164upx;
- height: 56upx;
- line-height: 56upx;
- border: 1px solid rgba(43, 199, 185, 0.5);
- border-radius: 28upx;
- font-family: PingFang SC;
- margin-right: 30upx;
- &:last-child{
- margin-right: 0;
- }
- .label{
- font-size: 26upx;
- font-weight: 500;
- color: #018C39;
- margin-right: 5upx;
- }
- .num{
- font-size: 28upx;
- font-weight: bold;
- color: #018C39;
- }
- }
- }
- }
- }
- .item:last-child{
- border-bottom: none;
- margin-bottom: 0rpx;
- }
- .bottom-title{
- height: 50rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 26rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #018C39;
- image{
- margin-left: 8rpx;
- width: 14rpx;
- height: 24rpx;
- }
- }
- }
- // 医师团队
- .doc-cont{
- box-sizing: border-box;
- padding: 0 30upx;
- .inner{
- padding: 4upx 0 40upx;
- display: flex;
- overflow-x: auto;
- }
- .item{
- display: flex;
- align-items: center;
- flex-direction: column;
- margin-right: 40upx;
- &:last-child{
- margin-right: 0;
- }
- .head-box{
- width: 120upx;
- height: 120upx;
- background: #F2F5F9;
- border-radius: 50%;
- margin-bottom: 20upx;
- overflow: hidden;
- image{
- width: 100%;
- height: 100%;
- }
- }
- .name{
- max-width: 120upx;
- font-size: 28upx;
- line-height: 1;
- font-family: PingFang SC;
- font-weight: 500;
- color: #111111;
- margin-bottom: 16upx;
- text-align: center;
- }
- .position{
- max-width: 120upx;
- font-size: 24upx;
- line-height: 1;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- text-align: center;
- }
- }
- }
- .inner{
- padding: 0 30upx;
- }
- // 健康知识
- .pub-tab-box{
- position: relative;
- .tab-inner{
- padding: 14upx 0 30upx;
- display: flex;
- overflow-x: auto;
- }
- .item{
- font-size: 28upx;
- white-space: nowrap;
- line-height: 1;
- font-family: PingFang SC;
- font-weight: 500;
- color: #666666;
- margin-right: 40upx;
- position: relative;
- &:last-child{
- margin-right: 0;
- }
- &.active{
- font-weight: bold;
- color: #333333;
- }
- &.cases{
- margin-right: 60upx;
- }
- .text{
- position: relative;
- z-index: 1;
- }
- .tab-bg{
- width: 72upx;
- height: 28upx;
- position: absolute;
- top: 17upx;
- left: 50%;
- transform: translateX(-36upx);
- z-index: -1;
- }
- }
- .right-mask{
- width: 56upx;
- height: 34upx;
- position: absolute;
- top: 14upx;
- right: -30upx;
- z-index: 1;
- }
- }
- .know-list{
- padding-right: 10upx;
- .item{
- padding: 30upx 0;
- display: flex;
- align-items: center;
- justify-content: space-between;
- border-bottom: 1px solid #F0F0F0;
- &:last-child{
- border-bottom: none;
- }
- .left{
- flex: 1;
- padding-right: 40upx;
- height: 190upx;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- .title{
- font-size: 32upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #111111;
- line-height: 48upx;
- }
- .info-box{
- width: 100%;
- display: flex;
- align-items: center;
- justify-content: space-between;
- .readers{
- display: flex;
- align-items: center;
- .head-box{
- margin-right: 27upx;
- display: flex;
- align-items: center;
- .head{
- width: 48upx;
- height: 48upx;
- border-radius: 50%;
- overflow: hidden;
- box-shadow: 0 0 0 1px #fff;
- margin-right: -10upx;
- image{
- width: 100%;
- height: 100%;
- }
- }
- }
- .readings{
- display: flex;
- align-items: center;
- .eye{
- width: 26upx;
- height: 20upx;
- margin-right: 9upx;
- }
- .num{
- font-size: 24upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- line-height: 1;
- }
- }
- }
- .time{
- font-size: 24upx;
- line-height: 1;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- }
- }
- }
- .right{
- width: 250upx;
- height: 190upx;
- border-radius: 8upx;
- overflow: hidden;
- image{
- width: 100%;
- height: 100%;
- }
- }
- }
- }
- // 问诊案例
- .cases-list{
- padding-bottom: 10upx;
- .item{
- padding: 30upx 0;
- border-bottom: 1px solid #F0F0F0;
- &:last-child{
- border-bottom: none;
- }
- .dec-text{
- font-size: 32upx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #111111;
- line-height: 48upx;
- }
- .images-box{
- margin-top: 10upx;
- display: flex;
- flex-wrap: wrap;
- .img-item{
- width: 155upx;
- height: 155upx;
- background: #F5F5F5;
- border-radius: 8upx;
- margin: 0 10upx 10upx 0;
- overflow: hidden;
- image{
- width: 100%;
- height: 100%;
- }
- &:nth-child(4n){
- margin-right: 0;
- }
- }
- }
- .doc-info{
- display: flex;
- align-items: center;
- margin: 30upx 0 20upx;
- .head{
- width: 60upx;
- height: 60upx;
- background: #F2F5F9;
- border-radius: 50%;
- margin-right: 20upx;
- overflow: hidden;
- image{
- width: 100%;
- height: 100%;
- }
- }
- .name{
- font-size: 28upx;
- line-height: 1;
- font-family: PingFang SC;
- font-weight: 500;
- color: #111111;
- }
- .line{
- width: 1px;
- height: 22upx;
- background: #DDDDDD;
- margin: 0 16upx;
- }
- .posit,
- .address{
- font-size: 26upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- }
- }
- .answer-box{
- width: 100%;
- // height: 117upx;
- background: #F5F7F7;
- border-radius: 10upx;
- display: flex;
- flex-direction: column;
- justify-content: center;
- .text-inner{
- // height: 84upx;
- font-size: 28upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #666666;
- line-height: 42upx;
- padding: 15upx;
- }
- }
- .read-box{
- margin-top: 30upx;
- display: flex;
- align-items: center;
- justify-content: flex-end;
- image{
- width: 24upx;
- height: 19upx;
- margin-right: 10upx;
- }
- .text{
- font-size: 24upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- }
- }
- }
- }
- }
- // 精选商品
- .feat-title{
- margin-top: 30upx;
- padding: 10upx 0 33upx;
- display: flex;
- align-items: center;
- justify-content: center;
- image{
- width: 37upx;
- height: 37upx;
- margin: 0upx 20upx;
- }
- text{
- font-size: 36upx;
- line-height: 1;
- font-family: PingFang SC;
- font-weight: bold;
- color: #111111;
- }
- }
- .drug-list{
- display: flex;
- flex-wrap: wrap;
- // margin-bottom: 20upx;
- .item{
- margin-right: 20rpx;
- margin-bottom: 20rpx;
- width: 345rpx;
- background: #FFFFFF;
- box-shadow: 0px 0px 10rpx 4rpx rgba(199, 199, 199, 0.22);
- border-radius: 20rpx;
- overflow: hidden;
- &:nth-child(2n){
- margin-right: 0;
- }
- .img-box{
- width: 100%;
- height: 334upx;
- image{
- width: 100%;
- height: 100%;
- }
- }
- .info-box{
- box-sizing: border-box;
- height: 182upx;
- padding: 20upx;
- .title{
- height: 80upx;
- font-size: 26upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #111111;
- line-height: 40upx;
- }
- .price-box{
- display: flex;
- align-items: center;
- margin-top: 20upx;
- .now{
- color: #FF6633;
- display: flex;
- align-items: flex-end;
- margin-right: 20upx;
- font-family: PingFang SC;
- .unit{
- font-size: 24upx;
- line-height: 1.4;
- margin-right: 4upx;
- }
- .num{
- font-size: 36upx;
- font-weight: bold;
- line-height: 1;
- }
- }
- .old{
- font-size: 26upx;
- font-family: PingFang SC;
- text-decoration: line-through;
- color: #BBBBBB;
- line-height: 1;
- }
- }
- }
- }
- }
- }
-
- .modules{
- .module{
- .depts{
- z-index: 101;
- margin: 20rpx 15rpx 0rpx;
- padding: 20rpx;
- box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.05);
- background-color: #fff;
- border-radius: 15rpx;
-
- .title{
- font-size: 32upx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #2A2B2E;
- }
- .dept-box{
- margin-top: 15rpx;
- display: flex;
- align-items: center;
- justify-content: flex-start;
- flex-wrap:wrap;
- .dept{
- padding: 15rpx 5rpx;
- width:25%;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- padding:14rpx 0;
- .icon{
- width:58rpx;
- height:58rpx;
- }
- .title{
- margin-top: 10rpx;
- font-size: 24upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #111111;
- }
- }
- }
-
- }
-
- .doctor-articles{
- z-index: 101;
- margin: 20rpx 15rpx 0rpx;
- padding: 20rpx;
- box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.05);
- background-color: #fff;
- border-radius: 15rpx;
- .title-box{
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: space-between;
- .title{
- font-size: 32upx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #111111;
- }
- .more{
- display: flex;
- align-items: center;
- justify-content: flex-end;
- .text{
- font-size: 24rpx;
- font-family: PingFang SC;
- color: #9B9B9B;
- margin-right: -12rpx;
- }
- image{
- margin-left: 10rpx;
- width:40rpx;
- height:40rpx;
- }
-
- }
- }
- .article-box{
- padding: 20rpx 0rpx;
- overflow-x: auto;
- box-sizing: border-box;
- display: flex;
- align-items: center;
- justify-content: flex-start;
- .article{
- width: 300rpx;
- margin-right: 20rpx;
- background: #f9f8fe;
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- justify-content: flex-start;
- &:last-child{
- margin-right: 0rpx;
- }
- .image-box{
- width: 300rpx;
- height:400rpx;
- position: relative;
- border-radius: 20rpx;
- image{
- border-radius: 20rpx;
- width: 300rpx;
- height:400rpx;
- }
- .views{
- position: absolute;
- top:0rpx;
- left:0rpx;
- padding: 5rpx 10rpx;
- background: rgba(0,0,0,0.25);
- border-radius: 12rpx 0px 12rpx 0px;
- opacity: 1;
- font-size: 20rpx;
- font-family: PingFang SC-Bold, PingFang SC;
- font-weight: bold;
- color: #FFFFFF;
- }
- .doctor{
- margin: 10rpx;
- display: flex;
- align-items: center;
- justify-content: flex-start;
- position: absolute;
- bottom:0rpx;
- left:0rpx;
- image{
- border-radius: 50%;
- width: 64rpx;
- height:64rpx;
- }
- .right{
- width: 200rpx;
- margin-left: 10rpx;
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- justify-content: space-between;
- .doc-name{
- width: 200rpx;
- font-size: 30rpx;
- font-weight: bold;
- font-family: PingFang SC;
- color: #fff;
- }
- .doc-position{
- width: 100%;
- font-size: 28rpx;
- font-family: PingFang SC;
- color: #fff;
- font-weight: bold;
- opacity: 0.8;
- }
- }
- }
- }
- .article-title-box{
- width: 100%;
- margin-top: 10rpx;
- display: flex;
- align-items: center;
- justify-content: flex-start;
- .article-title{
- font-size: 30rpx;
- font-weight: bold;
- font-family: PingFang SC;
- color: #2A2B2E;
- }
-
- }
-
- }
-
- }
- }
-
- .doctors{
- z-index: 101;
- margin: 20rpx 15rpx;
- padding: 20rpx;
- box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.05);
- background-color: #fff;
- border-radius: 15rpx;
- .title-box{
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: space-between;
- .title{
- font-size: 32upx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #111111;
- }
- .more{
- display: flex;
- align-items: center;
- justify-content: flex-end;
- .text{
- font-size: 24rpx;
- font-family: PingFang SC;
- color: #9B9B9B;
- }
- image{
- margin-left: 10rpx;
- width:15rpx;
- height:20rpx;
- }
-
- }
- }
-
- }
-
- .articles{
- z-index: 101;
- margin: 20rpx 15rpx;
- padding: 20rpx;
- box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.05);
- background-color: #fff;
- border-radius: 15rpx;
- .title-box{
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: space-between;
- .title{
- font-size: 32upx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #111111;
- }
- .more{
- display: flex;
- align-items: center;
- justify-content: flex-end;
- .text{
- font-size: 24rpx;
- font-family: PingFang SC;
- color: #9B9B9B;
- margin-right: -12rpx;
- }
- image{
- margin-left: 10rpx;
- width:40rpx;
- height:40rpx;
- }
-
- }
- }
- .article-box{
- margin-top: 15rpx;
- padding: 20rpx 0rpx 0rpx;
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- justify-content: flex-start;
- .item{
- width: 100%;
- margin-bottom: 20rpx;
- display: flex;
- align-items: flex-start;
- justify-content: flex-start;
- &:last-child{
- margin-bottom: 0rpx;
- }
- .left{
- flex:1;
- height:160rpx;
- margin-right: 15rpx;
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- justify-content: space-between;
- .title{
- font-size: 28upx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #111111;
- }
- .views{
- font-size: 24upx;
- font-family: PingFang SC;
- color: #9a9a9c;
- }
- }
- .right{
- image{
- border-radius: 10rpx;
- width:220rpx;
- height:160rpx;
- border: 1px solid #eeeeee;
- }
- }
- }
- }
- }
-
- .packages{
- z-index: 101;
- margin: 20rpx 15rpx;
- padding: 20rpx;
- box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.05);
- background-color: #fff;
- border-radius: 15rpx;
- .title-box{
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: space-between;
- .title{
- font-size: 32upx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #111111;
- }
- .more{
- display: flex;
- align-items: center;
- justify-content: flex-end;
- .text{
- font-size: 24rpx;
- font-family: PingFang SC;
- color: #9B9B9B;
- }
- image{
- margin-left: 10rpx;
- width:15rpx;
- height:20rpx;
- }
-
- }
- }
- .package-box{
- padding: 20rpx 0rpx 0rpx;
- display: flex;
- align-items: flex-start;
- justify-content: flex-start;
- flex-wrap: wrap;
- .item{
- width: calc(50% - 20rpx);
- border-radius: 15rpx;
- margin: 10rpx;
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- justify-content: flex-start;
- &:last-child{
- }
- .top{
- width:100%;
- height:300rpx;
- image{
- border-radius: 15rpx 15rpx 0rpx 0rpx;
- width:100%;
- height:300rpx;
- }
-
- }
- .bottom{
- width: 100%;
- margin-top: 15rpx;
- .title{
- font-weight: bold;
- font-size: 28upx;
- font-family: PingFang SC;
- color: #111111;
- }
- .price-box{
- margin-top: 10rpx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- width: 100%;
- .price{
- padding: 5rpx 10rpx;
- background-color: #018C39;
- border-radius: 30rpx;
- font-size: 20upx;
- font-family: PingFang SC;
- color: #ffffff;
- }
- .count{
- font-size: 24upx;
- font-family: PingFang SC;
- color: #333333;
- }
-
- }
- }
- }
- }
-
-
- }
- }
-
- }
- }
- .official-account{
- box-sizing: border-box;
- width: 100%;
- height: 100upx;
- position: fixed;
- bottom: 30upx;
- z-index: 99;
- padding: 0 20upx 180rpx 20upx;
- }
- // 消息
- .message-box{
- box-sizing: border-box;
- width: 100%;
- height: 84upx;
- background: #F3FFFD;
- border: 1px solid #C7E9E5;
- box-shadow: 0px 4upx 12upx 0px rgba(90, 203, 138, 0.16);
- border-radius: 16upx;
- position: fixed;
- left: 50%;
- transform: translateX(-50%);
- bottom: 30upx;
- z-index: 99;
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 0 20upx 0 30upx;
- .left{
- flex:1;
- display: flex;
- align-items: center;
- image{
- width: 24upx;
- height: 24upx;
- margin-right: 18upx;
- }
- .text{
- width: 90%;
- font-size: 28upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #018C39;
- }
- }
- .btn{
- width: 100upx;
- height: 48upx;
- line-height: 48upx;
- text-align: center;
- font-size: 24upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #FFFFFF;
- border: 1px solid #D2E6FF;
- background: linear-gradient(135deg, #018C39 0%, #1fbd2c 100%);
- border-radius: 24upx;
- margin-left: 30upx;
- }
-
- }
-
- .contact-btn{
- display: inline-block;
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- opacity: 0;
- }
-
- .popup-box{
- position: fixed;
- top: 0;
- right: 0;
- left: 0;
- bottom: 0;
- z-index: 999;
- display: flex;
- justify-content: center;
- align-items: center;
- .info-mask {
- position: fixed;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- background-color: rgba($color: #000000, $alpha: 0.5);
- z-index: 999;
- }
- .info-form {
- z-index: 1000;
- width: 450rpx;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- position: relative;
- image{
- width::100%;
- }
- }
- }
- </style>
-
|