| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349 | <template>	<view class="content">		<view class="cont">			<view class="bg">				<image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/image/index_img/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 v-if="!isTop" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/dui1.png"></image>						<image v-if="isTop" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/dui1.png"></image>												<view class="desc" :style="{ color: descColor }">卫健部门权威认证机构,世界各地千万用户健康选择</view>					</view>				</view>							<view class="search">					<view class="search-box" @click="navTo('/pages_index/search')">						<image class="img" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/icon_search.png" mode=""></image>						<input disabled type="text" placeholder="搜索医生、疾病、知识" placeholder-class="input-place">					</view>					<!-- 购物车 -->					<view class="img-item" @click="loginNavTo('/pages_shopping/cart')">						<u-badge type="error" max="99" :value="cartCount" :offset="[-10,-10]" :absolute="true"></u-badge>						<image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/fs/20250925/9a8fa2e310704a8b9ed078e10a2ab6c5.png" mode=""></image>					</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="menu-box box">					<view class="menu-item" @click="navTo('/pages_index/healthy/index?cateId=2')">						<image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/index/medical_news_icon.png" mode="aspectFill"></image>						<view>医药资讯</view>					</view>					<view class="menu-item" @click="loginNavTo('/pages_user/complaint')">						<image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/index/consultation_complaints_icon.png" mode="aspectFill"></image>						<view>咨询投诉</view>					</view>					<view class="menu-item" @click="navTo('/pages_order/inquirySelect?inquiryType=3')">						<image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/index/consultant_pharmacist_icon.png" mode="aspectFill"></image>						<view>咨询药师</view>					</view>					<view class="menu-item" @click="navTo('/pages_shopping/registerMerchant')">						<image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/index/merchants_settle_in_icon.png" mode="aspectFill"></image>						<view>商家入驻</view>					</view>				</view>				<view class="modules">					<view class="module" v-for="(it,index) in layouts" :key="index">						<!-- 推荐药品 -->						<tuiProduct ref="tuiProduct" v-if="it.id==8&&it.isShow"></tuiProduct>						<!-- 特色药店 -->						<view class="pharmacy-box box" v-if="it.id==9&&it.isShow&&storeIndexList.length>0">							<view class="title-box">								<view class="title">{{it.name}}</view>								<view class="more"  @click="navTo('/pages_store/index')" >									<view class="text">更多药店</view>									<image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/arrow_gray.png"></image>								</view>							</view>							<view class="pharmacy">								<image :src="store.logoUrl" mode="aspectFill" v-for="(store,i) in storeIndexList" :key="i" 								@click="navTo('/pages_store/storeIndex?storeId='+store.storeId)"></image>							</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://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/acbb520df8284c6aaff601cb06411c2a.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://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/arrow_gray.png"></image>								</view>							</view>							<scroll-view :scroll-x="true" style="white-space: nowrap;">							<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">											{{item.views}}人观看										</view>										<view class="doctor">											<image mode="aspectFill" :src="item.avatar"></image>											<view class="right">												<view class="doc-name ellipsis">{{item.doctorName}}</view>												<view class="doc-position ellipsis">{{item.position}}</view>											</view>										</view>									</view>									<view class="article-title-box">										<view class="article-title ellipsis">{{item.title}}</view>									</view>								</view>							</view>							</scroll-view>						</view> -->						<view class="doctors box" v-if="it.id==5&&it.isShow&&doctors.length>0">							<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://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/arrow_gray.png"></image>								</view>							</view>							<view class="doctor-box" v-if="doctors.length>0" style="padding: 0;margin: 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://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/index/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">{{item.position}}</view>												<view class="doc-dept">{{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="btn">													咨询医生¥													<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 box" v-if="it.id==6&&it.isShow&&articles.length>0">							<view class="title-box">								<view class="title">{{it.name}}</view>								<view class="more" @click="navTo('/pages_index/healthy/index')">									<view class="text">更多</view>									<image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/arrow_gray.png"></image>								</view>							</view>							<view class="article-box" v-if="articles.length>0">								<view class="item" @click="navTo('/pages_index/healthy/detail?articleId='+item.articleId)" v-for="(item,index) in articles" :key="index">									<view class="left">										<view class="title ellipsis2">											{{item.title}}										</view>										<view class="views">											浏览量 {{item.views}}										</view>									</view>									<view class="right">										<image :src="item.imageUrl" mode="aspectFill"></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://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/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">¥{{item.price.toFixed(2)}}元/日</view>											<view class="count">{{item.sales}}人已购</view>										</view>									</view>								</view>							</view>						</view> -->					</view>				</view>				<!-- 资质 -->				<view class="qualifications-box">					<view class="qualifications-con">						<image class="qualifications-icon" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/index/certificate_icon68.svg" mode=""></image>						<view class="qualifications-r">							<view class="x-bc">								<text>资质证书展示</text>								<view class="desc x-f" @click="navTo('/pages_user/cert')">									<text>查看详情</text>									<image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/index/white_right_arrow_right_icon.png" mode="aspectFill"></image>								</view>							</view>							<view class="text" style="margin-top: 6rpx;">药品交易平台备案:{{qual.icpztbah}}</view>							<view class="text" style="margin-top: 6rpx;">医疗器械交易平台备案:{{qual.ylqxwljyfwdsfptbah}}</view>							<view class="text" style="margin-top: 6rpx;">互联网药品信息服务备案:{{qual.hlwypxxfwba}}</view>							<view class="text" style="margin-top: 6rpx;">第三方平台备案:{{qual.ypwljyfwdsfpt}}</view>						</view>					</view>					<view>						<text class="text" style="margin-right: 40rpx;">投诉举报邮箱:{{qual.jbyx}}</text>						<text class="text">联系电话:{{qual.baxx}}</text>					</view>				</view>			</view>					</view>	</view></template><script>	import tuiProduct from "@/components/tuiProduct.vue"	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'	import {validList,getCartCount}from '@/api/index.js'	export default {		components: {			tuiProduct		},		data() {			return {				cartCount: 0,				layouts:[],				yangshengs:[					{id:"0",title:"AI舌诊",page:"/pages_user/tongue/index",icon:"https://cos.his.cdwjyyh.com/fs/20240919/647fb42de0ab4e96a6c3097f3c3d9cf5.png"},					{id:"1",title:"药膳食疗",page:"/pages_index/medicatedFoodList",icon:"https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/3cfbd47911cf4753aa9497eac500728d.png"},					{id:"2",title:"经络穴位",page:"/pages_index/vesselList",icon:"https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/e93536a9dc1a4f8ca09545097b12fdea.png"},					{id:"3",title:"问答专区",page:"/pages_index/questionsList",icon:"https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/e896972bd56f4e358188af36f2c5af42.png"},					{id:"4",title:"疾病",page:"/pages_index/diseaseList",icon:"https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/d6f1851cccae414b8baf2ba07782f91b.png"},					{id:"5",title:"中药图解",page:"/pages_index/chineseMedicineList",icon:"https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/ff43572d0d004285b5a3b0ef2663c471.png"},					{id:"6",title:"名方今用",page:"/pages_index/famousPrescribeList",icon:"https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/45db770e58c34963b0d2ba24a958b617.png"},					{id:"7",title:"康复医案",page:"/pages_doctor/doctorArticleList",icon:"https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/e793942797b24035b51f94d894bdfa0b.png"}									],				isTop:false,				titleColor:"#ffffff",				descColor:"#ffffff",				top:0,				// 状态栏的高度				statusBarHeight: uni.getStorageSync('menuInfo').statusBarHeight,				advImgs:[],				doctors:[],				advs:[],				articles:[],				depts:[],				doctocArticles:[],				hosLevelOptions:[],				packages:[],				storeIndexList: [],				qual: {}			}		},		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");			this.getQual()			this.getStore()			var that=this;			uni.$emit('refreshMsgCount');			this.$isLogin().then(				res => {					if(res){						this.getCartCount();					}				}			);		},		onPageScroll(e) {			this.top=e.scrollTop;		},		//发送给朋友		onShareAppMessage(res) {			if(this.$isLogin()){				return {					title: "医健宝医药",					path: '/pages/index/index',					imageUrl: 'https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/sharelogo.png' //分享图标,路径可以是本地文件路径、代码包文件路径或者网络图片路径.支持PNG及JPG。显示图片长宽比是 5:4				}			}					},		//分享到朋友圈		onShareTimeline(res) {			if(this.$isLogin()){				return {					title: "医健宝医药",					imageUrl: 'https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/sharelogo.png' //分享图标,路径可以是本地文件路径、代码包文件路径或者网络图片路径.支持PNG及JPG。显示图片长宽比是 5:4				}			}					},		computed: {			bg: function() {				var top=this.top/120;				if(top>0){					this.isTop=true;					this.titleColor="#fff"					this.descColor="#fff"				}				else{					this.isTop=false;					this.titleColor="#fff"					this.descColor="#fff"				}				return 'rgba(37, 131, 235, ' + top + ')';			},		},		methods: {			dev(){				uni.showToast({					icon:"none",					title: '敬请期待'				})			},			getStore() {				validList().then(res=>{					if(res.code==200) {						this.storeIndexList =res.rows					}				})			},			getCartCount(){				let data = {};				getCartCount(data).then(					cartRes => {						if(cartRes.code==200){							 this.cartCount=cartRes.data;						}					},					rej => {}				);							},			getQual(){				let param = {key:"his.zzzs"};				getConfigByKey(param).then(					res => {						if(res.code==200){							this.qual = res.data ? JSON.parse(res.data) : {}						}					},					rej => {}				);			},			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)							this.layouts.forEach(function(element) {								if(element.id=="4"){									if(!element.isShow){										that.yangshengs.splice(6,1);										}								}								if(element.id=="7"){									// if(!element.isShow){									// 	uni.setTabBarItem({									// 		index:2, //从左到右 0开始									// 		visible:false //默认true false隐藏									// 	})									// }									// else{									// 	uni.setTabBarItem({									// 		index:2, //从左到右 0开始									// 		visible:true //默认true false隐藏									// 	})									// }								}							});						}					},					rej => {}				);			},			yangshengClick(item){				// uni.navigateTo({				//   url: '/pages/index/webview?url=' + encodeURIComponent('rtlive://course?courseId=1')				// });				// return;				if(item.id==0){					// this.$isLogin().then(					// 	res => {					// 		if(res){								uni.navigateTo({									url:item.page								}); 					// 		}					// 		else{					// 			uni.navigateTo({					// 				url:'/pages/auth/login'					// 			})					// 		}					// 	}					// );				}				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: '跳转不成功'						// })					}				})			},			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)				 })			 }		}	}</script><style scoped lang="scss">	.img-item{		position: relative;		width: 44rpx;		height: 44rpx;		margin: 0 20rpx 0 10rpx;		image{			width: 100%;			height: 100%;		}	}	.qualifications {		&-box {			margin: 24rpx;			padding: 24rpx;			box-sizing: border-box;			overflow: hidden;			background-image: url('https://cos.his.cdwjyyh.com/fs/20250826/54a29c58e06c431cbe3286335bb0da1b.png');			background-repeat: no-repeat;			background-size: 100% 100%;			.text {				font-family: PingFang SC, PingFang SC;				font-weight: 400;				font-size: 20rpx;				color: #FFFFFF;			}		}		&-con {			display: flex;			align-items: flex-start;		}		&-icon {			height: 136rpx;			width: 136rpx		}		&-r {			flex: 1;			font-family: PingFang SC, PingFang SC;			font-weight: 600;			font-size: 40rpx;			color: #FFFFFF;			.desc {				font-family: PingFang SC, PingFang SC;				font-weight: 400;				font-size: 24rpx;				color: #FFFFFF;				image {					height: 48rpx;					width: 48rpx				}			}		}	}	.content{		height: 100%;		.cont{			position: relative;			width: 100%;			display: flex;			flex-direction: column;			.bg{				width: 100%;				height:450rpx;				// background-color: #2583EB;				// background: linear-gradient(#2583EB, #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: #fff;					}					.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;						.img{							width: 30upx;							height: 30upx;							margin-right: 10upx;						}						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;						}					}				}			}			.box {				background: #FFFFFF;				border-radius: 16rpx 16rpx 16rpx 16rpx;				margin: 24rpx;				box-sizing: border-box;				.title-box{					display: flex;					flex-direction: row;					align-items: center;					justify-content: space-between;					padding: 28rpx 0;					box-sizing: border-box;					.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;						}											}				}				.price-box {					font-family: Roboto, Roboto;					font-weight: bold;					font-size: 36rpx;					color: #FF5C03;					margin-top: 22rpx;					&-unit {						font-weight: 600;						font-size: 26rpx;					}					&-decimal {						font-weight: 600;						font-size: 26rpx;					}					&-text {						font-family: PingFang SC, PingFang SC;						font-weight: 500;						font-size: 26rpx;					}				}			}			.menu-box {				display: flex;				align-items: center;				justify-content: space-evenly;				padding: 26rpx 0 34rpx 0;				.menu-item {					width: 25%;					font-family: PingFang SC, PingFang SC;					font-weight: 400;					font-size: 24rpx;					color: #222222;					display: flex;					flex-direction: column;					align-items: center;					align-items: center;				}				image {					width: 104rpx;					height: 104rpx;					margin-bottom: 26rpx;				}			}						.pharmacy-box {				padding: 8rpx 24rpx 32rpx 24rpx;				.pharmacy {					background: #FFFFFF;					display: flex;					align-items: center;					flex-wrap: wrap;					margin-right: -18rpx;					image {						flex-shrink: 0;						width: 150rpx;						height: 150rpx;						border-radius: 16rpx 16rpx 16rpx 16rpx;						border: 1rpx solid #F5F6F6;						margin-right: 18rpx;						margin-bottom: 18rpx;						box-sizing: border-box;					}				}			}			.cont-box{				z-index: 100;				.banner{					margin: 20rpx auto auto;					width: 702rpx;				}				.modules{					.module{						.depts{							z-index: 101;							margin: 20rpx 15rpx 0rpx;							padding: 20rpx;							box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.05);							background-color: #fff;							border-radius: 15rpx;							.title{								font-size: 32upx;								font-family: PingFang SC;								font-weight: bold;								color: #2A2B2E;							}							.dept-box{								margin-top: 15rpx;								display: flex;								align-items: center;								justify-content: flex-start;								flex-wrap:wrap;								.dept{									padding: 15rpx 5rpx;									width:25%;									display: flex;									flex-direction: column;									align-items: center;									justify-content: center;									.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{								overflow-x: auto;								box-sizing: border-box;								display: flex;								align-items: center;								justify-content: flex-start;								.article{									width: 300rpx;									margin-right: 20rpx;									background: #f9f8fe;									display: flex;									flex-direction: column;									align-items: flex-start;									justify-content: flex-start;									&:last-child{										margin-right: 0rpx;									}									.image-box{										width: 300rpx;										height:400rpx;										position: relative;										border-radius: 20rpx;										image{											border-radius: 20rpx;											width: 300rpx;											height:400rpx;										}										.views{											position: absolute;											top:0rpx;											left:0rpx;											padding: 5rpx 10rpx;											background: rgba(0,0,0,0.25);											border-radius: 12rpx 0px 12rpx 0px;											opacity: 1;											font-size: 20rpx;											font-family: PingFang SC-Bold, PingFang SC;											font-weight: bold;											color: #FFFFFF;										}										.doctor{											margin: 10rpx;											display: flex;											align-items: center;											justify-content: flex-start;											position: absolute;											bottom:0rpx;											left:0rpx;											image{												border-radius: 50%;												width: 64rpx;												height:64rpx;											}											.right{												width: 200rpx;												margin-left: 10rpx;												display: flex;												flex-direction: column;												align-items: flex-start;												justify-content: space-between;												.doc-name{													width: 200rpx;													font-size: 30rpx;													font-weight: bold;													font-family: PingFang SC;													color: #fff;												}												.doc-position{													width: 100%;													font-size: 28rpx;													font-family: PingFang SC;													color: #fff;													font-weight: bold;													opacity: 0.8;												}											}										}									}									.article-title-box{										width: 100%;										margin-top: 10rpx;										display: flex;										align-items: center;										justify-content: flex-start;										.article-title{											font-size: 30rpx;											font-weight: bold;											font-family: PingFang SC;											color: #2A2B2E;										}																			}									 								}															}						}						.doctors {							padding: 0 24rpx 24rpx 24rpx;						}						.articles{							padding: 0 24rpx 24rpx 24rpx;							.article-box{								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{											width: 180rpx;											height: 136rpx;											background: #F5F6F6;											border-radius: 10rpx 10rpx 10rpx 10rpx;										}									}								}							}						}						.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: #2583EB;												border-radius: 30rpx;												font-size: 20upx;												font-family: PingFang SC;												color: #ffffff;											}											.count{												font-size: 24upx;												font-family: PingFang SC;												color: #333333;											}																					}									}								}							}																				}					}									}							}					}	}	 </style>
 |