ykt-wxapp/pages/message/components/consultation-bar.vue
2026-01-20 13:21:50 +08:00

43 lines
1.1 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<view class="consultation-bar-wrapper">
<!-- 问诊功能栏仅问诊结束后显示 -->
<view class="consultation-bar">
<view class="consultation-info">
<view class="consultation-icon">
<uni-icons type="chatboxes" size="24" color="#0877F1"></uni-icons>
</view>
<view class="consultation-details">
<text class="consultation-title">图文问诊</text>
<!-- <text class="consultation-price">¥{{ doctor.price }}/</text> -->
</view>
</view>
<button class="consultation-btn" @click="toConsult">
问诊医生
</button>
</view>
</view>
</template>
<script setup>
const props = defineProps({
doctor: { type: Object, default: () => ({}) },
});
function toConsult() {
if (props.doctor.doctorId) {
uni.navigateTo({
url: `/pages-home/consultation/select-patient?doctorId=${props.doctor.doctorId}`
});
}
}
</script>
<style scoped lang="scss">
@import "../chat.scss";
.consultation-bar-wrapper {
flex-shrink: 0;
padding: 24rpx 30rpx;
}
</style>