| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757 |
- <template>
- <view class="content">
- <view class="cont">
- <view class="bg">
- <image src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/home_top_bg.png">
- </image>
- </view>
- <view class="top-box" :style="{ background: bg }">
- <view class="status_bar" :style="{height: statusBarHeight}"></view>
- <view class="top-title">
- <view class="name" :style="{ color: titleColor }">泰安泰医堂中医医院</view>
- <view class="desc-box">
- <image src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/images/dui1.png"></image>
- <view class="desc" :style="{ color: descColor }">国家卫健委权威认证机构</view>
- </view>
- </view>
- <view class="search">
- <view class="search-box" @click="navTo('/pages_index/search')">
- <!-- <view class="position-box">
- <image class="position-img" src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/images/positon.png" mode=""></image>
- <view class="position-text">
- {{positiontext}}
- </view>
- </view> -->
- <image class="img" src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/images/icon_search.png" mode=""></image>
- <!-- <input disabled type="text" placeholder="请输入疾病 | 科室 | 医生 | 知识" placeholder-class="input-place"> -->
- <view class="input-box">
- <view class="input-text" v-for="(item,index) in inputtext" :key="index">
- {{item}}
- </view>
- </view>
- </view>
- <view class="msg">
- <image class="msg" src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/images/msg1.png"></image>
- <button class='contact-btn' open-type="contact">
- </button>
- </view>
- </view>
- </view>
- <view class="cont-box">
- <view class="status_bar" :style="{height: statusBarHeight}"></view>
- <view style="padding-bottom:178rpx">
- </view>
- <view class="banner" v-if="advImgs.length>0">
- <u-swiper
- :list="advImgs"
- indicator
- indicatorMode="line"
- circular
- height="233rpx"
- @click="handleAdvClick">
- </u-swiper>
- </view>
- <view class="btns">
- <view class="btn1" @click="navTo('/pages_doctor/doctorList')">
- <view class="title-box">
- <view class="title">专家问诊</view>
- <view class="desc">名医问诊处方</view>
- </view>
- <image
- src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/expert_consultation_icon56.png">
- </image>
- <image class="mask" src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/images/mask.png"></image>
- </view>
- <view class="btn2" @click="navTo('/pages_order/inquirySelectType')">
- <view class="title-box">
- <view class="title">健康咨询</view>
- <view class="desc">快速健康咨询</view>
- </view>
- <image
- src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/quick_consultation_icon56.png">
- </image>
- <image class="mask" src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/images/mask.png"></image>
- </view>
- </view>
- <view class="modules">
- <view class="module" v-for="(it,index) in layouts" :key="index">
- <view class="menus" v-if="it.id==1&&it.isShow">
- <view class="title">{{it.name}}</view>
- <view class="menu-box">
- <view class="menu" v-for="(item,index) in menuarr" :key="index" @click="golist(index)">
- <view class="image" :style="{'backgroundImage':'url(' + item.img + ')'}">
- <view class="text-box">
- <view class="image-title1" v-if="index==0">
- {{item.title}}
- </view>
- <view class="image-title2" v-if="index==1">
- {{item.title}}
- </view>
- <view class="image-title3" v-if="index==2">
- {{item.title}}
- </view>
- <view class="image-title4" v-if="index==3">
- {{item.title}}
- </view>
- <view class="image-content1" v-if="index==0">
- {{item.content}}
- </view>
- <view class="image-content2" v-if="index==1">
- {{item.content}}
- </view>
- <view class="image-content3" v-if="index==2">
- {{item.content}}
- </view>
- <view class="image-content4" v-if="index==3">
- {{item.content}}
- </view>
- <view class="image-button1" v-if="index==0">
- {{item.button}}
- </view>
- <view class="image-button2" v-if="index==1">
- {{item.button}}
- </view>
- <view class="image-button3" v-if="index==2">
- {{item.button}}
- </view>
- <view class="image-button4" v-if="index==3">
- {{item.button}}
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- <view class="depts" v-if="it.id==2&&it.isShow">
- <view class="title">
- {{it.name}}
- </view>
- <view class="dept-box">
- <view @click="navTo('/pages_doctor/doctorList?deptId='+item.deptId)" class="dept"
- v-for="(item,index) in depts" :key="index">
- <image class="icon" :src="item.iconUrl"></image>
- <view class="title">{{item.deptName}}</view>
- </view>
- <view @click="navTo('/pages_doctor/doctorList?deptId=0')" class="dept">
- <image class="icon"
- src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/gengduokeshi_icon28.png">
- </image>
- <view class="title">更多科室</view>
- </view>
- </view>
- </view>
- <view class="depts" v-if="it.id==3&&it.isShow">
- <view class="title">
- {{it.name}}
- </view>
- <view class="dept-box">
- <view @click="yangshengClick(item)" class="dept" v-for="(item,index) in yangshengs"
- :key="index">
- <image class="icon" :src="item.icon"></image>
- <view class="title">{{item.title}}</view>
- </view>
- </view>
- </view>
- <view class="doctor-articles" v-if="it.id==4&&it.isShow">
- <view class="title-box">
- <view class="title">{{it.name}}</view>
- <view class="more" @click="navTo('/pages_doctor/doctorArticleList')">
- <view class="text">更多讲堂</view>
- <image src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/images/arrow_gray.png"></image>
- </view>
- </view>
- <view class="article-box">
- <view class="article"
- @click="navTo('/pages_doctor/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" v-if="item.views.toString().split('').length<5">
- {{item.views}}人观看
- </view>
- <view class="views" v-else>
- {{item.views.toString().split('').slice(0,-4).join('')}}万人观看
- </view>
- <view class="doctor">
- <image mode="aspectFill" :src="item.avatar"></image>
- <view class="right">
- <view class="doc-name ellipsis" v-if="item.doctorName">
- {{item.doctorName}}
- </view>
- <view class="doc-position ellipsis" v-if="item.position">
- {{item.position}}
- </view>
- </view>
- </view>
- </view>
- <view class="article-title-box">
- <view class="article-title ellipsis">{{item.title}}</view>
- </view>
- </view>
- </view>
- </view>
- <view class="doctors" v-if="it.id==5&&it.isShow">
- <view class="title-box">
- <view class="title">{{it.name}}</view>
- <view class="more" @click="navTo('/pages_doctor/doctorList')">
- <view class="text">更多医生</view>
- <image src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/images/arrow_gray.png"></image>
- </view>
- </view>
- <view class="doctor-box" v-if="doctors.length>0">
- <view class="doctor"
- @click="navTo('/pages_doctor/doctorDetails?doctorId='+item.doctorId)"
- v-for="(item,index) in doctors" :key="index">
- <view class="item">
- <view class="left">
- <view class="head-box">
- <image mode="aspectFill" class="doc-img" :src="item.avatar"></image>
- <view class="isline" v-if="item.workStatus==1">
- <view class="img">
- <image src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/images/isline.png"></image>
- <view class="name">在线</view>
- </view>
- </view>
- </view>
- </view>
- <view class="right">
- <view class="doc-box">
- <view class="doc-name">
- {{item.doctorName}}
- </view>
- <view class="doc-position" v-if="item.position">{{item.position}}</view>
- <view class="doc-dept" v-if="item.deptName">{{item.deptName}}</view>
- </view>
- <view class="hospital-box">
- <view class="tag" v-if="item.hospitalLevel!=null">
- <text>{{$getDictLabelName(hosLevelOptions,item.hospitalLevel)}}</text>
- </view>
- <view class="name">{{item.hospitalName}} </view>
- </view>
- <view class="doc-spec">
- <view class="spec ellipsis2">{{item.speciality}}</view>
- </view>
- <view class="doc-count">
- <view class="name">好评:</view>
- <view class="count">{{item.pingStar}}分</view>
- <view class="name">接诊量:</view>
- <view class="count">{{item.orderNumber}}</view>
- <view class="name">平均响应:</view>
- <view class="count"></view>
- </view>
- <view class="doc-price">
- <view class="pricebutton">
- <span>立即咨询</span>
- <text v-for="(price,index) in item.prices" :key="index">
- ¥{{price.price.toFixed(2)}} <text v-if="index==0">/</text>
- </text>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- <view class="articles" v-if="it.id==6&&it.isShow">
- <view class="title-box">
- <view class="title">{{it.name}}</view>
- <view class="more" @click="navTo('/pages_index/articleList')">
- <view class="text">更多</view>
- <image src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/images/arrow_gray.png"></image>
- </view>
- </view>
- <view class="article-box" v-if="articles.length>0">
- <view class="item"
- @click="navTo('/pages_index/articleDetails?articleId='+item.articleId)"
- v-for="(item,index) in articles" :key="index">
- <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 class="packages" v-if="it.id==7&&it.isShow">
- <view class="title-box">
- <view class="title">{{it.name}}</view>
- <view class="more" @click="navTo('/pages_index/packageList')">
- <view class="text">更多</view>
- <image src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/images/arrow_gray.png"></image>
- </view>
- </view>
- <view class="package-box">
- <view class="item"
- @click="navTo('/pages_index/packageDetails?packageId='+item.packageId)"
- v-for="(item,index) in packages" :key="index">
- <view class="top">
- <image :src="item.imgUrl"></image>
- </view>
- <view class="bottom">
- <view class="title ellipsis2">
- {{item.packageName}}
- </view>
- <view class="price-box">
- <view class="price">¥
- <span
- class="price-one">{{item.price.toFixed(2).toString().split('.')[0]}}
- </span>
- <span>.</span>
- <span>{{item.price.toFixed(2).toString().split('.')[1]}}</span>
- <span>元/日</span>
- </view>
- <view class="count">{{item.sales}}人已购</view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- import {
- getConfigByKey
- } from '@/api/common'
- import {
- getPackageList
- } from '@/api/package.js'
- import {
- getDoctorArticleList
- } from '@/api/doctorArticle.js'
- import {
- getDoctorList
- } from '@/api/doctor.js'
- import {
- getArticleList
- } from '@/api/article.js'
- import {
- getAdvList
- } from '@/api/adv.js'
- import {
- getDepartmentList
- } from '@/api/department.js'
- import {
- getDictByKey
- } from '@/api/common.js'
- export default {
- data() {
- return {
- layouts: [],
- yangshengs: [
- // {
- // id: "0",
- // title: "AI舌诊",
- // page: "/pages_user/tongue/index",
- // icon: "https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/tongue_diagnosis_icon28.png"
- // },
- {
- id: "1",
- title: "药膳食疗",
- page: "/pages_index/medicatedFoodList",
- icon: "https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/medicinal_cuisine_icon2.png"
- },
- {
- id: "2",
- title: "经络穴位",
- page: "/pages_index/vesselList",
- icon: "https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/meridian_acupoints_icon28.png"
- },
- {
- id: "3",
- title: "问答专区",
- page: "/pages_index/questionsList",
- icon: "https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/ques_section_icon28.png"
- },
- {
- id: "4",
- title: "疾病",
- page: "/pages_index/diseaseList",
- icon: "https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/disease_icon28.png"
- },
- {
- id: "5",
- title: "中药图解",
- page: "/pages_index/chineseMedicineList",
- icon: "https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/traditional_illustration_icon28.png"
- },
- {
- id: "6",
- title: "名方今用",
- page: "/pages_index/famousPrescribeList",
- icon: "https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/mingfangjinyong_icon28.png"
- },
- {
- id: "7",
- title: "康复医案",
- page: "/pages_doctor/doctorArticleList",
- icon: "https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/rehabilitation_consilia_icon28.png"
- }
- ],
- isTop: false,
- titleColor: "#fff",
- descColor: "#fff",
- top: 0,
- // 状态栏的高度
- statusBarHeight: uni.getStorageSync('menuInfo').statusBarHeight,
- advImgs: [],
- doctors: [],
- advs: [],
- articles: [],
- depts: [],
- doctocArticles: [],
- hosLevelOptions: [],
- packages: [],
- inputtext: ['请输入疾病', '科室', '医生', '知识'],
- menuarr: [{
- img: 'https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/mini_source_myhk_jiankangzice_img1.png',
- title: '健康自测',
- content: '一测便知身体好不好',
- button: '测一测'
- },
- {
- img: 'https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/mini_source_myhk_jiankangzice_img2.png',
- title: '积分商城',
- content: '健康好药 免费兑换',
- button: '领一领'
- },
- {
- img: 'https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/anfanggouyao_img.png',
- title: '按方购药',
- content: '简单、便捷、便宜',
- button: '试一试'
- },
- {
- img: 'https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/jiankangshangcheng_img.png',
- title: '健康产品',
- content: '千万用户的健康选择',
- button: '逛一逛'
- },
- ],
- }
- },
- onLoad() {
- this.getDictByKey("sys_hospital_level");
- uni.$on('refreshMsgCount', () => {
- try {
- let totalUnreadCount = uni.$TUIKit.getTotalUnreadMessageCount();
- if (totalUnreadCount > 0) {
- try {
- uni.setTabBarBadge({ //显示数字
- index: 1, //tabbar下标
- text: totalUnreadCount + "" //数字
- })
- } catch (e) {
- }
- } else {
- try {
- uni.hideTabBarRedDot({ //隐藏红点
- index: 1 //tabbar下标
- })
- } catch (e) {
- }
- }
- } catch (e) {}
- })
- },
- onShow() {
- this.getDoctorList();
- this.getArticleList();
- this.getAdvList();
- this.getDepartmentList();
- this.getDoctorArticleList();
- this.getPackageList();
- this.getConfigByKey("his.appShow");
- var that = this;
- uni.$emit('refreshMsgCount');
- },
- onPageScroll(e) {
- this.top = e.scrollTop;
- },
- //发送给朋友
- onShareAppMessage(res) {
- if (this.$isLogin()) {
- return {
- title: "泰安泰医堂中医医院",
- path: '/pages/index/index',
- imageUrl: 'https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/logo.jpg' //分享图标,路径可以是本地文件路径、代码包文件路径或者网络图片路径.支持PNG及JPG。显示图片长宽比是 5:4
- }
- }
- },
- //分享到朋友圈
- onShareTimeline(res) {
- if (this.utils.isLogin()) {
- return {
- title: "泰安泰医堂中医医院",
- imageUrl: 'https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/logo.jpg' //分享图标,路径可以是本地文件路径、代码包文件路径或者网络图片路径.支持PNG及JPG。显示图片长宽比是 5:4
- }
- }
- },
- computed: {
- bg: function() {
- var top = this.top / 120;
- // console.log(top)
- if (top > 0) {
- this.isTop = true;
- this.titleColor = "#fff"
- this.descColor = "#fff"
- } else {
- this.isTop = false;
- this.titleColor = "#fff"
- this.descColor = "#fff"
- }
- return 'rgba(7, 140, 157, ' + top + ')';
- },
- },
- methods: {
- dev() {
- uni.showToast({
- icon: "none",
- title: '敬请期待'
- })
- },
- getConfigByKey(key) {
- var that = this;
- var data = {
- key: key
- }
- getConfigByKey(data).then(
- res => {
- if (res.code == 200) {
- this.layouts = JSON.parse(res.data);
- this.layouts.sort((a, b) => a.sort - b.sort)
- console.log(this.layouts)
- this.layouts.forEach(function(element) {
- if (element.id == "7") {
- }
- });
- }
- },
- rej => {}
- );
- },
- yangshengClick(item) {
- if (item.id == 0) {
- // this.$isLogin().then(
- // res => {
- // if(res){
- uni.navigateTo({
- url: item.page
- })
- } else {
- if (item.page == "") {
- uni.showToast({
- icon: "none",
- title: '暂无更多'
- })
- return;
- }
- uni.navigateTo({
- url: item.page
- })
- }
- },
- switchTab(url) {
- uni.switchTab({
- url: url
- })
- },
- navToMiniProgram() {
- uni.navigateToMiniProgram({
- // appid 写你要跳转的小程序的 appid
- appId: 'wx45cf09091aead547',
- // 路径写 src下的路径,假如你跳转的是pages下的页面,就可以写pages/index
- path: '/pages/common/launch',
- extraData: {
- // 'type': 'out'
- },
- // 这个不写的话会显示开发环境,不能正常跳转,写上就能正常跳转了
- envVersion: 'develop',
- success(res) {
- // 打开成功
- // uni.showToast({
- // title: '跳转成功'
- // })
- },
- fail(err) {
- // 打开失败/取消
- uni.showToast({
- title: '跳转不成功',
- icon: 'none',
- })
- }
- })
- },
- getDictByKey(key) {
- var data = {
- key: key
- }
- getDictByKey(data).then(
- res => {
- if (res.code == 200) {
- if (key == "sys_hospital_level") {
- this.hosLevelOptions = res.data;
- }
- }
- },
- err => {}
- );
- },
- getDoctorArticleList(page) {
- //联网加载数据
- var that = this;
- var data = {
- pageNum: 1,
- pageSize: 10,
- };
- getDoctorArticleList(data).then(res => {
- if (res.code == 200) {
- this.doctocArticles = res.data.list;
- } else {}
- });
- },
- getDepartmentList(page) {
- //联网加载数据
- var that = this;
- var data = {
- isTui: 1
- };
- getDepartmentList(data).then(res => {
- if (res.code == 200) {
- this.depts = res.data;
- }
- });
- },
- handleAdvClick(index) {
- var ad = this.advs[index];
- console.log(ad.advUrl);
- if (ad.showType == 1) {
- uni.setStorageSync('url', ad.advUrl);
- uni.navigateTo({
- url: "h5"
- })
- } else if (ad.showType == 2) {
- uni.navigateTo({
- url: ad.advUrl
- })
- } else if (ad.showType == 3) {
- uni.setStorageSync('content', ad.content);
- uni.navigateTo({
- url: "content"
- })
- }
- },
- getAdvList() {
- //联网加载数据
- var that = this;
- var data = {
- advType: 1
- };
- getAdvList(data).then(res => {
- if (res.code == 200) {
- that.advImgs = [];
- that.advs = [];
- res.data.forEach(function(element) {
- if (element.imageUrl != null && element.imageUrl != "") {
- that.advs.push(element);
- that.advImgs.push(element.imageUrl);
- }
- });
- } else {
- uni.showToast({
- icon: 'none',
- title: "请求失败",
- });
- }
- });
- },
- 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: "请求失败",
- });
- }
- });
- },
- getDoctorList() {
- //联网加载数据
- var that = this;
- var data = {
- isTui: 1,
- pageNum: 1,
- pageSize: 10,
- };
- getDoctorList(data).then(res => {
- if (res.code == 200) {
- this.doctors = res.data.list;
- this.doctors.forEach(function(value, index, array) {
- value.prices = JSON.parse(value.priceJson)
- });
- } else {
- uni.showToast({
- icon: 'none',
- title: "请求失败",
- });
- }
- });
- },
- getPackageList() {
- //联网加载数据
- var that = this;
- var data = {
- isShow: 1,
- pageNum: 1,
- pageSize: 10,
- };
- getPackageList(data).then(res => {
- if (res.code == 200) {
- this.packages = res.data.list;
- } else {
- uni.showToast({
- icon: 'none',
- title: "请求失败",
- });
- }
- });
- },
- loginNavTo(url) {
- this.$isLogin().then(
- res => {
- if (res) {
- console.log(res)
- uni.navigateTo({
- url: url
- })
- } else {
- uni.navigateTo({
- url: '/pages/auth/login'
- })
- }
- }
- );
- },
- navTo(url) {
- if (url == "dev") {
- uni.showToast({
- icon: 'none',
- title: "尽情期待...",
- });
- return;
- }
- console.log(url)
- uni.navigateTo({
- url: url
- })
- },
- navToTest() {
- const course = {
- "companyId": 100,
- "companyUserId": 6806,
- "corpId": "ww5a88c4f879f204c5",
- "courseId": 63,
- "link": "1899022782092541952",
- "linkType": 3,
- "qwExternalId": 9914983,
- "qwUserId": "18931",
- "videoId": 409
- }
- uni.navigateTo({
- url: '/pages_course/video?course=' + JSON.stringify(course)
- })
- },
- golist(index) {
- if (index == 3) {
- uni.navigateTo({
- url: '/pages_shopping/index'
- })
- } else if (index == 0) {
- uni.navigateTo({
- url: '/pages_index/testList'
- })
-
- } else if (index == 1) {
- uni.navigateTo({
- url: '/pages_user/integralGoodsList'
- })
- } else if (index == 2) {
- uni.navigateTo({
- url: '/pages_order/inquirySelect?inquiryType=3'
- })
- }
- }
- }
- }
- </script>
- <style scoped lang="scss">
- .content {
- height: 100%;
- .cont {
- position: relative;
- width: 100%;
- display: flex;
- flex-direction: column;
- .bg {
- width: 100%;
- height: 450rpx;
- // background-color: #2BC7B9;
- // background: linear-gradient(#2BC7B9, #88e2da);
- position: fixed;
- image {
- border-radius: 0rpx 0rpx 50rpx 50rpx;
- width: 100%;
- height: 100%;
- }
- }
- .top-box {
- width: 100%;
- position: fixed;
- top: 0;
- left: 0;
- z-index: 1001;
- .top-title {
- height: 88upx;
- // line-height: 88upx;
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- justify-content: center;
- margin-left: 15rpx;
- .name {
- font-size: 32upx;
- font-family: Source Han Sans CN;
- font-weight: bold;
- color: #2A2B2E;
- }
- .desc-box {
- display: flex;
- align-items: center;
- justify-content: flex-start;
- margin-top: 10rpx;
- image {
- width: 24rpx;
- height: 24rpx;
- }
- .desc {
- margin-left: 5rpx;
- font-size: 20upx;
- font-family: Source Han Sans CN;
- color: #626468;
- }
- }
- }
- .search {
- box-sizing: border-box;
- z-index: 101;
- padding: 15rpx;
- width: 100%;
- display: flex;
- align-items: center;
- justify-content: center;
- .search-box {
- flex: 1;
- margin-right: 10rpx;
- height: 60upx;
- line-height: 60upx;
- border-radius: 30upx;
- background-color: #fff;
- padding: 0 30upx;
- display: flex;
- align-items: center;
- transition: all .5s;
- .position-box {
- display: flex;
- justify-content: center;
- align-items: center;
- position: relative;
- &::after {
- content: "";
- position: absolute;
- width: 10rpx;
- height: 26upx;
- border-right: 1rpx solid rgba(0, 0, 0, 0.15);
- right: 0rpx;
- top: 17rpx;
- }
- .position-img {
- width: 30upx;
- height: 30upx;
- margin-right: 10rpx;
- margin-left: 2rpx;
- }
- .position-text {
- font-size: 24upx;
- width: 120upx;
- overflow: hidden; //超出的文本隐藏
- text-overflow: ellipsis; //溢出用省略号显示
- white-space: nowrap; //溢出不换行
- margin-right: 10rpx;
- font-family: PingFang SC;
- font-weight: 600;
- }
- }
- .img {
- width: 30upx;
- height: 30upx;
- margin-right: 10upx;
- margin-left: 10rpx;
- }
- .input-box {
- display: flex;
- font-size: 24upx;
- color: #878787;
- .input-text {
- position: relative;
- margin-right: 20rpx;
- &:not(:last-child)::after {
- content: "";
- position: absolute;
- width: 10rpx;
- height: 22upx;
- border-right: 1rpx solid rgba(0, 0, 0, 0.3);
- right: -11rpx;
- top: 21rpx;
- }
- }
- }
- input {
- flex: 1;
- font-size: 24upx;
- color: #000;
- }
- // .input-place{
- // font-size: 24upx;
- // color: #878787;
- // }
- }
- .msg {
- position: relative;
- width: 50rpx;
- height: 50rpx;
- image {
- width: 100%;
- height: 100%;
- }
- .contact-btn {
- top: 0;
- position: absolute;
- width: 100%;
- height: 100%;
- opacity: 0;
- }
- }
- }
- }
- .cont-box {
- z-index: 1000;
- .banner {
- margin-top: 20rpx;
- width: calc(100% - 40upx);
- margin: auto;
- border-radius: 20rpx;
- overflow: hidden;
- .swiper-item {
- width: 100%;
- height: 100%;
- }
- .swiper-item image {
- width: 100%;
- height: 100%;
- }
- }
- .btns {
- padding: 0 20upx;
- margin-top: 20rpx;
- width: 100%;
- display: flex;
- align-items: center;
- justify-content: center;
- .btn1 {
- position: relative;
- background: linear-gradient( 180deg, #51BFEF 0%, #22AAD5 100%);
- box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
- margin-right: 30rpx;
- border-radius: 15rpx;
- height: 180rpx;
- padding: 15rpx 30rpx;
- width: 50%;
- display: flex;
- align-items: center;
- justify-content: space-between;
- &:last-child {
- margin-right: 0rpx;
- }
- image {
- width: 104rpx;
- height: 104rpx;
- }
- .mask {
- position: absolute;
- top: 0rpx;
- right: 0rpx;
- width: 100rpx;
- height: 100rpx;
- }
- .title-box {
- display: flex;
- align-items: flex-start;
- justify-content: center;
- flex-direction: column;
- .title {
- font-size: 36upx;
- font-weight: bold;
- color: #ffffff;
- }
- .desc {
- margin-top: 6rpx;
- opacity: 0.8;
- font-size: 26upx;
- color: #ffffff;
- }
- }
- }
- .btn2 {
- position: relative;
- background: linear-gradient( 180deg, #40D4B6 0%, #05B6AC 100%);
- box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
- margin-right: 30rpx;
- border-radius: 15rpx;
- height: 180rpx;
- padding: 15rpx 30rpx;
- width: 50%;
- display: flex;
- align-items: center;
- justify-content: space-between;
- &:last-child {
- margin-right: 0rpx;
- }
- image {
- width: 104rpx;
- height: 104rpx;
- }
- .mask {
- position: absolute;
- top: 0rpx;
- right: 0rpx;
- width: 100rpx;
- height: 100rpx;
- }
- .title-box {
- display: flex;
- align-items: flex-start;
- justify-content: center;
- flex-direction: column;
- .title {
- font-size: 36upx;
- font-weight: bold;
- color: #ffffff;
- }
- .desc {
- margin-top: 6rpx;
- opacity: 0.8;
- font-size: 26upx;
- font-weight: bold;
- color: #ffffff;
- }
- }
- }
- }
- .modules {
- .module {
- .menus {
- 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;
- }
- .menu-box {
- display: flex;
- align-items: center;
- justify-content: flex-start;
- flex-wrap: wrap;
- .menu {
- padding: 15rpx;
- width: 50%;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- flex-wrap: wrap;
- .image {
- width: 100%;
- height: 180rpx;
- background-size: 100% 100%;
- border-radius: 16rpx;
- .text-box {
- margin-left: 20rpx;
- margin-top: 20rpx;
- [class^='image-title'] {
- font-weight: bold;
- font-size: 28rpx;
- }
- [class^='image-content'] {
- font-size: 20rpx;
- margin-top: 15rpx;
- }
- [class^='image-button'] {
- font-size: 20rpx;
- color: white;
- border-radius: 20rpx;
- width: 100rpx;
- padding: 6rpx 20rpx;
- margin-top: 15rpx;
- }
- .image-title1 {
- color: #140300;
- }
- .image-title2 {
- color: #140300;
- }
- .image-title3 {
- color: #140300;
- }
- .image-title4 {
- color: #140300;
- }
- .image-content1 {
- color: #626468;
- }
- .image-content2 {
- color: #626468;
- }
- .image-content3 {
- color: #626468;
- }
- .image-content4 {
- color: #626468;
- }
- .image-button1 {
- background-color: #E9662C;
- }
- .image-button2 {
- background-color: #32C8BE;
- }
- .image-button3 {
- background-color: #208BED;
- }
- .image-button4 {
- background-color: #ED8A24;
- }
- }
- }
- }
- }
- }
- .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: 20%;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- .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;
- }
- image {
- margin-left: 10rpx;
- width: 15rpx;
- height: 20rpx;
- }
- }
- }
- .article-box {
- padding: 20rpx 0rpx;
- overflow-x: auto;
- overflow-y: auto;
- box-sizing: border-box;
- display: flex;
- .article {
- width: 300rpx;
- margin-right: 20rpx;
- background: #f9f8fe;
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- justify-content: flex-start;
- background-color: white;
- &: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;
- background-color: white;
- .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: white;
- border-radius: 15rpx;
- .doctor-box {
- background-color: white;
- .doctor {
- background-color: white;
- .right {
- .tag {
- display: flex;
- .tag-item {
- background-color: #E4EFFF;
- color: #3D74F7;
- font-size: 22rpx;
- padding: 6rpx 12rpx;
- margin-right: 10rpx;
- border-radius: 4rpx;
- margin-top: 20rpx;
- }
- }
- }
- }
- }
- .title-box {
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: space-between;
- .doc-price {}
- .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;
- }
- image {
- margin-left: 10rpx;
- width: 15rpx;
- height: 20rpx;
- }
- }
- }
- .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;
- border-radius: 30rpx;
- font-size: 20upx;
- font-family: PingFang SC;
- color: #FB4F43;
- font-weight: 600;
- .price-one {
- font-size: 32upx;
- }
- }
- .count {
- font-size: 26upx;
- font-family: PingFang SC;
- color: #757575;
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- .pricebutton {
- background-color: #F9F4F0;
- color: #96663D;
- display: inline-block;
- padding: 10rpx 26rpx;
- border-radius: 40rpx;
- text {
- color: #EA2C2C;
- font-weight: bold;
- }
- span {
- margin-right: 15rpx;
- font-weight: bold;
- }
- }
- </style>
|