12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822 |
- <template>
- <view class="content">
- <!-- 背景图片 -->
- <image class="bg" src="https://user.test.ylrztop.com/images/home_top_bg.png" mode="widthFix"></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">
- <view class="name">壹柒玖康养集团</view>
- <!-- <view class="dot">•</view><view class="sub-name">七彩互联网医院</view> -->
- </view>
- <!-- 搜索框、购物车、客服 -->
- <view class="func-cont">
- <view class="search-cont">
- <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" />
- </view>
- <!-- 购物车 -->
- <uni-badge size="small" :text="cartCount" absolute="rightTop" type="error">
- <view class="img-item" @click="goAuthUrl('../shopping/cart')">
- <image src="../../static/images/cart_wihte.png" mode=""></image>
- </view>
- </uni-badge>
- <view class="img-item" style="position: relative;">
- <image src="../../static/images/customer.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" :autoplay="true" :interval="3000"
- :duration="1000" indicator-color="rgba(255, 255, 255, 0.6)" indicator-active-color="#ffffff">
- <swiper-item class="swiper-item" v-for="(item,index) in advList" :key="index"
- @click="handleAdvClick(item)">
- <image :src="item.imageUrl" mode=""></image>
- </swiper-item>
- </swiper>
- </view>
- </view>
- <!-- 菜单 -->
- <view class="menu-content">
- <text class="weight-600 mb26 ml32">我的健康数据</text>
- <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">
- <!-- <view class="item" @click="navTo('/pages/doctor/doctorQr')"> -->
- <view class="item" @click="navTo('/pages_health/healthConsulting')">
- <image class="bg-img" src="https://user.test.ylrztop.com/images/online_treat.png" mode="aspectFill"></image>
- <view class="inner">
- <text class="title">健康<text class="color-pink">咨询</text></text>
- <text class="sub-title">三师在线服务</text>
- </view>
- </view>
- <!-- <view class="item" @click="goAuthUrl('/pages_user/user/prescribeOrder')"> -->
- <view class="item" @click="navTo('/pages_health/healthfiles')">
- <image class="bg-img" src="https://user.test.ylrztop.com/images/chu_query.png" mode="aspectFill"></image>
- <view class="inner">
- <text class="title">健康<text class="color-yellow">专管</text></text>
- <text class="sub-title">糖尿病/体重</text>
- </view>
- </view>
- </view>
- <view class="modules">
- <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 yangshengs">
- <image class="icon" :src="item.icon"></image>
- <view class="title">{{item.title}} </view>
- </view>
- </view>
- </view>
- <!-- 养生讲堂 -->
- <view class="doctor-articles">
- <view class="title-box">
- <!-- <view class="title">养生讲堂</view> -->
- <u-tabs :list="livetabList"
- :activeStyle="{fontWeight: '600',color: '#222426',fontSize: '34rpx'}"
- :inactiveStyle="{color: '#222426',fontSize: '32rpx'}" @click="selectlivetab"
- scrollable="false"></u-tabs>
- <view class="more" @click="navTo('/pages_index/index/doctorArticleList')">
- <view class="text">更多</view>
- <image src="/static/images/right.png"></image>
- </view>
- </view>
- <scroll-view :scroll-x="true">
- <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 more-t">{{item.title}}</view>
- </view>
- </view>
- </view>
- </scroll-view>
- </view>
- <!--养生干货-->
- <view class="articles">
- <view class="title-box">
- <!-- <view class="title">养生干货</view> -->
- <u-tabs :list="articletabList"
- :activeStyle="{fontWeight: '600',color: '#222426',fontSize: '34rpx'}"
- :inactiveStyle="{color: '#222426',fontSize: '32rpx'}" @click="selectarticletab"
- scrollable="false"></u-tabs>
- <view class="more" @click="navTo('/pages_index/index/articleList')">
- <view class="text">更多</view>
- <image src="../../static/images/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 ellipsis1">
- {{item.title}}
- </view>
- <!-- 新加的文章内容 -->
- <view class="txt ellipsis2">
- {{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="#0bb3f2"
- :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> -->
- <!-- 热门榜单 -->
- <NewProduct :detail="newProductList" />
- <HotProduct :detail="hotProductList" />
- <!-- 健康百科 -->
- <!-- <view class="pub-item" style="margin-top: 20rpx;">
- <view class="pub-title-box">
- <text class="left">健康百科</text>
- <view class="right" @click="switchTo('../healthy/index')">
- <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 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>
- <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
- } 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'
- export default {
- components: {
- zModal,
- freeAudio,
- Menu,
- HotProduct,
- NewProduct
- },
- data() {
- return {
- btnGroup: [{
- text: '取消',
- color: '#FFFFFF',
- bgColor: '#999999',
- width: '150rpx',
- height: '80rpx',
- shape: 'fillet',
- eventName: 'cancle'
- }, {
- text: '确定',
- color: '#FFFFFF',
- bgColor: '#0bb3f2',
- width: '150rpx',
- height: '80rpx',
- shape: 'fillet',
- eventName: 'sure'
- }],
- tuiModalControl: false,
- activity: null,
- 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: [], //养生干货
- livetabList: [{
- name: '养生讲堂'
- },
- {
- name: '健康管理'
- },
- {
- name: '养生滋补'
- }
- ], //养生讲堂TAB
- articletabList: [{
- name: '健康案例分享'
- },
- {
- name: '药事服务'
- }
- ], //文章TAB
- // 状态栏的高度
- statusBarHeight: uni.getStorageSync('menuInfo').statusBarHeight,
- tabBg: tabBg, // tab切换背景
- // 问诊案例类型
- orderTypes: [{
- name: '全部',
- id: 0,
- }, {
- name: '图文',
- id: 1,
- }, {
- name: '语音',
- id: 2,
- }],
- // 限时消息是否显示
- messageShow: true,
- 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: "/static/images/ysyd_more_icon.png"
- }
- ],
- }
- this.getStoreActivity();
- },
- onLoad(option) {
- if (option.userCode != null) {
- uni.setStorageSync('userCode', option.userCode);
- if (this.utils.checkLoginState()) {
- this.getUserInfo();
- }
- }
- 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.getUserInfo();
- }
- }
- 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://user.test.ylrztop.com/images/logo.png' //分享图标,路径可以是本地文件路径、代码包文件路径或者网络图片路径.支持PNG及JPG。显示图片长宽比是 5:4
- }
- },
- onReachBottom() {
- console.log("onReachBottom")
- // this.$refs.tuiProduct.getTuiProducts();
- },
- //分享到朋友圈
- onShareTimeline(res) {
- return {
- title: '壹柒玖康养集团-您的专属健康解决方案',
- query: '', //页面参数
- imageUrl: 'https://user.test.ylrztop.com/images/logo.png' //分享图标,路径可以是本地文件路径、代码包文件路径或者网络图片路径.支持PNG及JPG。显示图片长宽比是 5:4
- }
- },
- computed: {
- // 计算属性的 getter
- bgColor: function() {
- var top = this.top / 30;
- return 'rgba(11,179,242, ' + top + ')';
- },
- },
- onShow() {
- this.getMenu();
- this.getIndexData()
- //this.getTuiDoctorOrder();
- // console.log(uni.getStorageSync('isLocation'))
- // if(uni.getStorageSync('isLocation')==""){
- // this.getLocation();
- // }
- if (this.utils.checkLoginState()) {
- this.getCartCount();
- }
- this.getStoreConfig();
- //this.getTuiDoctor()
- // this.getCanvas();
- this.getDoctorArticleList();
- this.getArticleList();
- },
- methods: {
- getUserInfo() {
- getUserInfo().then(
- res => {
- if (res.code == 200) {
- if (res.user != null) {
- if (res.user.isPromoter == null || res.user.isPromoter == 0) {
- this.tuiModalControl = true
- }
- }
- } 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: "开发中...",
- });
- },
- //养生讲堂等直播tab
- selectlivetab(item) {
- // console.log('item', item);
- },
- // 健康案例分享等文章tab
- selectarticletab(item) {
- // console.log('item', item);
- },
- 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 {
- }
- });
- },
- 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
- })
- }
- })
- },
- // 跳转页面
- 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) {
- this.advList = res.data.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) {
- if (item.page == "") {
- uni.showToast({
- icon: "none",
- title: '暂无更多'
- })
- return;
- }
- uni.navigateTo({
- url: item.page
- })
- },
- // 在线问诊
- 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">
- .ellipsis1 {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .fixed-top-box {
- width: 100%;
- position: fixed;
- top: 0;
- left: 0;
- z-index: 1000;
- transition: all 0.5s;
- background-color: #0bb3f2;
- &.show-back {
- // background: linear-gradient(135deg, #66b2ef 0%, #0bb3f2 100%);
- }
- .status_bar {
- width: 100%;
- }
- }
- .content {
- width: 100%;
- background: #EFF3F7;
- 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-weight: bold;
- color: #FFFFFF;
- padding-left: 41upx;
- }
- .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;
- .icon-search {
- width: 28upx;
- height: 28upx;
- margin-right: 20upx;
- }
- input {
- height: 60upx;
- line-height: 60upx;
- flex: 1;
- }
- }
- ;
- ;
- v-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: #0bb3f2;
- border-radius: 50rpx;
- }
- }
- }
- .banner-box {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 100%;
- .inner {
- width: 702rpx;
- height: 228rpx;
- border-radius: 10upx;
- overflow: hidden;
- .swiper,
- .swiper-item,
- .swiper-item image {
- width: 702rpx;
- height: 228rpx;
- }
- }
- }
- .menu-content {
- border-radius: 16rpx 16rpx 16rpx 16rpx;
- margin: 20rpx 24rpx;
- overflow: hidden;
- padding: 30upx 0;
- background-color: #ffffff;
- }
- .menu-box {
- display: flex;
- align-items: center;
- background-color: #FFFFFF;
- padding-top: 20rpx;
- border-radius: 12rpx;
- }
- .online-inquiry {
- box-sizing: border-box;
- width: 100%;
- height: 170upx;
- padding: 0 20upx;
- margin-top: 20rpx;
- // 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: 190upx;
- position: relative;
- .bg-img,
- .inner {
- width: 100%;
- height: 100%;
- position: absolute;
- top: 0;
- left: 0;
- z-index: 1;
- border-radius: 12rpx;
- }
- .inner {
- box-sizing: border-box;
- z-index: 2;
- display: flex;
- flex-direction: column;
- justify-content: center;
- padding-left: 32upx;
- .title {
- font-size: 32upx;
- line-height: 1;
- font-family: PingFang SC;
- font-weight: 500;
- color: #111111;
- margin-bottom: 20upx;
- font-weight: bold;
- }
- .sub-title {
- font-size: 24upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #898E91;
- }
- image {
- width: 80upx;
- height: 90upx;
- position: absolute;
- right: 7upx;
- bottom: 7upx;
- }
- }
- }
- }
- .index-cont {
- box-sizing: border-box;
- // padding: 0 20upx 120rpx;
- padding: 0 24upx 20upx;
- .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: #0bb3f2;
- }
- }
- }
- }
- .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: 10upx;
- }
- image {
- width: 14upx;
- height: 24upx;
- }
- }
- }
- .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: #0bb3f2;
- 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: #0bb3f2;
- margin-right: 5upx;
- }
- .num {
- font-size: 28upx;
- font-weight: bold;
- color: #0bb3f2;
- }
- }
- }
- }
- }
- .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: #0bb3f2;
- 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: 48rpx;
- height: 48rpx;
- }
- &: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: 40rpx 24rpx 0rpx;
- padding: 30rpx 0;
- background-color: #fff;
- border-radius: 16rpx;
- .title {
- margin-left: 32rpx;
- font-family: PingFang SC;
- font-weight: 600;
- font-size: 34rpx;
- color: #222426;
- }
- .dept-box {
- margin-top: 22rpx;
- display: flex;
- align-items: center;
- justify-content: flex-start;
- flex-wrap: wrap;
- .dept {
- width: 25%;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- padding: 14rpx 0;
- .icon {
- width: 58rpx;
- height: 58rpx;
- }
- .title {
- margin-left: 0;
- margin-top: 10rpx;
- font-size: 24upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #111111;
- }
- }
- }
- }
- .doctor-articles {
- z-index: 101;
- margin: 20rpx 24rpx 0rpx;
- padding: 32rpx;
- background-color: #fff;
- border-radius: 16rpx;
- .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: 48rpx;
- height: 48rpx;
- }
- }
- }
- .article-box {
- padding: 32rpx 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: 4rpx 12rpx;
- background: rgba(0, 0, 0, 0.25);
- border-radius: 12rpx 0rpx 12rpx 0rpx;
- opacity: 1;
- font-weight: 400;
- font-size: 20rpx;
- color: #FFFFFF;
- font-family: PingFang SC-Bold, PingFang SC;
- }
- .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;
- height: 80upx;
- .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: #898E91;
- }
- image {
- margin-left: 10rpx;
- width: 15rpx;
- height: 20rpx;
- }
- }
- }
- }
- .articles {
- z-index: 101;
- // margin: 20rpx 15rpx;
- margin: 20rpx 24rpx 0rpx;
- padding: 32rpx;
- // box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
- background-color: #fff;
- border-radius: 16rpx;
- .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:#898E91;
- // width: calc(100% - 556rpx);
- }
- image {
- // margin-left: 10rpx;
- width: 48rpx;
- height: 48rpx;
- }
- }
- }
- .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: 32rpx;
- display: flex;
- align-items: flex-start;
- justify-content: flex-start;
- border-bottom: 1px solid #ECECEC;
- padding-bottom: 32rpx;
- &:last-child {
- margin-bottom: 0rpx;
- border-bottom: 0;
- }
- .left {
- flex: 1;
- height: 160rpx;
- margin-right: 30rpx;
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- justify-content: space-between;
- width: calc(100% - 260upx);
- .title {
- width: 100%;
- font-size: 28upx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #111111;
- }
- .txt {
- font-family: PingFang SC, PingFang SC;
- font-size: 26rpx;
- color: #898E91;
- }
- .views {
- font-size: 24upx;
- font-family: PingFang SC;
- color: #B2B2B2;
- }
- }
- .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: #0bb3f2;
- 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: #0bb3f2;
- }
- }
- .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, #66b2ef 0%, #0bb3f2 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>
|