<template>
	<view class="app">
		<view class="visual">
			<view class="department">
				<view class="item" v-for="(item,index) in departmentlist" :key="index"
					:class="aindex == index ?'departmentitem':''">
					{{item.name}}
				</view>
			</view>
			<view class="list">
				<view class="information">
					<view class="image">
					</view>
					<view class="name">
						某某某
					</view>
				</view>
				<view class="information">
					<view class="image">
					</view>
					<view class="name">
						某某某
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				aindex: 1,
				departmentlist: [{
						name: '内科',
					},
					{
						name: '外科',
					},
					{
						name: '皮肤科',
					},
				],
			};
		},
		//1.分享给朋友
		onShareAppMessage(res) {
			let pages = getCurrentPages();
			let url = pages[pages.length - 1].$page.fullPath
			return {
				title: '泉医到家',
				path: url,
			}
		},
		//2.分享到朋友圈
		onShareTimeline(res) {
			let pages = getCurrentPages();
			let url = pages[pages.length - 1].$page.fullPath
			return {
				title: '泉医到家',
				path: url,
			}
		},
	}
</script>

<style lang="scss">
	@import "./doctorslist.scss";
</style>
