5 changed files with 55 additions and 4 deletions
@ -0,0 +1,46 @@ |
|||||
|
<template> |
||||
|
<view> |
||||
|
<!-- #ifdef MP-WEIXIN --> |
||||
|
<!-- :is-back="false" --> |
||||
|
<u-navbar :custom-back="onBack" class="overflow-hidden"> |
||||
|
<view class="flex justify-start flex-1 px-3 min-0 text-base"> |
||||
|
<view class="truncate" v-if="code === 'NLCP'">脑力测评</view> |
||||
|
<view class="truncate" v-if="code === 'ZARIT'">Zarit照顾者负担量表</view> |
||||
|
</view> |
||||
|
</u-navbar> |
||||
|
<!-- #endif --> |
||||
|
<!-- h5标题 --> |
||||
|
<!-- #ifdef H5 --> |
||||
|
<view class="overflow-hidden py-3"> |
||||
|
<view class="flex justify-start flex-1 px-3 min-0 text-base"> |
||||
|
<u-icon name="arrow-left" @click="onBack" class="mr-3" size="40" /> |
||||
|
<view class="truncate" v-if="code === 'NLCP'">脑力测评</view> |
||||
|
<view class="truncate" v-if="code === 'ZARIT'">Zarit照顾者负担量表</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
<!-- #endif --> |
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { mapState } from 'vuex'; |
||||
|
|
||||
|
export default { |
||||
|
name: 'AssessTitle', |
||||
|
data() { |
||||
|
return {}; |
||||
|
}, |
||||
|
|
||||
|
computed: { ...mapState('yanyuan', ['code']) }, |
||||
|
|
||||
|
methods: { |
||||
|
// 点击返回按钮 |
||||
|
onBack() { |
||||
|
// eslint-disable-next-line no-undef |
||||
|
uni.navigateBack(); |
||||
|
}, |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
||||
|
|
||||
|
<style lang="scss" scoped></style> |
||||
Loading…
Reference in new issue