<template>
	<view class="test2-wrapper">
		<view class="test2-title">测试页面</view>
		<view class="test2-info">
			<view class="info-row">
				<text class="info-label">就诊人：</text>
				<text>{{ $store.user.name }}</text>
			</view>
			<view class="info-row">
				<text class="info-label">身份证：</text>
				<text>{{ $store.user.id_number }}</text>
			</view>
			<view class="info-row">
				<text class="info-label">person_id：</text>
				<text>{{ $store.user.person_id }}</text>
			</view>
		</view>
		<view class="test2-btn" @click="goJump">跳转小程序页面</view>
	</view>
</template>

<script setup>
import wx from 'weixin-js-sdk'
import { useStore } from '@/store'
const $store = useStore()

const goJump = () => {
	wx.miniProgram.navigateTo({
		url: '/pages/other/entry/index?scene=1002&hospitalAreaId=6&path=/pages/outpatient/doctor-appointment/index&departmentCode=A0030003&subDepartmentCode='
	})
}
</script>

<style scoped>
.test2-wrapper {
	padding: 40rpx;
}
.test2-title {
	font-size: 36rpx;
	font-weight: 500;
	color: #323232;
	margin-bottom: 40rpx;
}
.info-row {
	display: flex;
	align-items: center;
	margin-bottom: 20rpx;
	font-size: 28rpx;
}
.info-label {
	color: #939393;
	margin-right: 10rpx;
}
.test2-btn {
	width: 100%;
	height: 80rpx;
	line-height: 80rpx;
	text-align: center;
	background: #35ACB2;
	color: #FFFFFF;
	font-size: 28rpx;
	border-radius: 10rpx;
	margin-top: 40rpx;
}
</style>