TurnDown.vue 1.4 KB
<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>