TurnDown.vue
1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<template>
<div class="trundown">
<view class="trundown-bottom">
<view class="shuiyin flexC" v-if="props.isShowSY">宠物问诊</view>
<view class="flexJ zbjz" @click="jumpHandler">
<view style="width: 48rpx"></view>
<view>{{ proxy.$h.optObjectValue('ReceivePatients', state) }}</view>
<u-icon name="arrow-right" color="#10bfd1" size="24"></u-icon>
</view>
</view>
</div>
</template>
<script setup lang="ts">
import { ref, getCurrentInstance, ComponentPublicInstance } from 'vue'
const { proxy } = getCurrentInstance() as { proxy: ComponentPublicInstance }
interface IProps {
isShowSY: boolean
state: number
examineState?: string | number
}
const props = withDefaults(defineProps<IProps>(), {
isShowSY: true,
state: 0
})
const jumpHandler = () => {
if([20,'20'].includes(props.examineState)) return proxy.$h.jumpUrl(`/pages2/mineinfo/state?state=${props.state}`)
uni.$u.toast('请先完成认证')
}
</script>
<style lang="scss" scoped>
.trundown {
&-bottom {
position: fixed;
bottom: 120rpx;
left: 0;
right: 0;
.shuiyin {
margin: 0 auto;
color: #cbcbcb;
font-size: 40rpx;
font-weight: 700;
}
.zbjz {
color: #05b8d2;
font-size: 30rpx;
font-weight: 700;
width: 100%;
background: #ecfdff;
box-sizing: border-box;
padding: 24rpx;
margin-top: 32rpx;
}
}
}
</style>