|
@@ -89,9 +89,11 @@
|
|
|
<br>
|
|
|
<div v-if='timeinfo.remain_time && latestCase.record'>距离【目标谷活性{{timeinfo.mbghx}}%】还有{{timeinfo.remain_time}}小时</div>
|
|
|
<div class="footer">
|
|
|
+
|
|
|
<div class="jbbtn" @click="goPage('/patclockin')">注射打卡</div>
|
|
|
<div class="jbbtn" @click="goPage('/patinjectionlist')">注射记录</div>
|
|
|
- <div class="jbbtn" @click="goPage('/patclockbleed')">出血打卡</div>
|
|
|
+ <div v-if='latestCase.record.id' class="jbbtn" @click="goPage('/patclockbleed')">出血打卡</div>
|
|
|
+ <div v-else class="jbbtn" @click="tips">出血打卡</div>
|
|
|
<div class="jbbtn" @click="goPage('/patbleedlist')">出血记录</div>
|
|
|
<div class="jbbtn" @click="goPage('/procaselist')">PK及方案</div>
|
|
|
<div class="jbbtn" @click="logout">退出登录</div>
|
|
@@ -148,12 +150,14 @@
|
|
|
|
|
|
<script>
|
|
|
import {
|
|
|
- Cell
|
|
|
+ Cell,
|
|
|
+ MessageBox
|
|
|
} from 'mint-ui'
|
|
|
export default {
|
|
|
name: 'Index',
|
|
|
components: {
|
|
|
- Cell
|
|
|
+ Cell,
|
|
|
+ MessageBox
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -174,6 +178,12 @@
|
|
|
window.localStorage.removeItem('authinfo')
|
|
|
window.location.reload()
|
|
|
},
|
|
|
+ tips(){
|
|
|
+ MessageBox({
|
|
|
+ title: '提示',
|
|
|
+ message: '尚未完成注册打卡,无法进行出血打卡'
|
|
|
+ })
|
|
|
+ },
|
|
|
getData() {
|
|
|
this.$api.getAccountInfo().then(res => {
|
|
|
if (!res.data.code) {
|