个人中心新增健康档案

This commit is contained in:
唐明明
2022-01-14 13:53:57 +08:00
parent 22407a7877
commit 37c67ecd4a
10 changed files with 45 additions and 21 deletions

View File

@@ -4,8 +4,8 @@
<view class="status-main">
<view class="helloe">欢迎使用ZH健康</view>
<view class="btns">
<view class="btns-item" @click="$Router.push({name: 'signIndex'})"><image src="@/static/icon/sign-icon.gif" mode="widthFix"></image></view>
<view class="btns-item show" @click="$Router.push({name: 'noticeIndex'})"><uni-icons custom-prefix="iconfont" type="icon-pinglun" size="25"></uni-icons></view>
<view class="btns-item" @click="onBtn('signIndex')"><image src="@/static/icon/sign-icon.gif" mode="widthFix"></image></view>
<view class="btns-item show" @click="onBtn('noticeIndex')"><uni-icons custom-prefix="iconfont" type="icon-pinglun" size="25"></uni-icons></view>
</view>
</view>
</view>
@@ -29,9 +29,13 @@
</view>
</view>
</u-scroll-list>
<!-- 排行榜 -->
<view class="img-card" @click="onBtn('Record')">
<image src="@/static/dev/img-02.png" mode="widthFix"></image>
</view>
<!-- 话题广场 -->
<view class="new-box">
<view class="title">话题广场</view><view class="more" @click="$Router.push({name: 'topicIndex'})">更多分类</view>
<view class="title">话题广场</view><view class="more" @click="$Router.push({name: 'topicIndex'})">更多</view>
<oct-topic
:lists="topicArr"
@onTopic="$Router.push({ name: 'topicDetails', params: {id: $event.topic_id }})"
@@ -44,6 +48,7 @@
<script>
import { index } from '@/apis/interfaces/topic'
import userAuth from '@/public/userAuth'
export default {
data() {
return {
@@ -63,6 +68,14 @@
this.topicArr = res.topics
})
},
onBtn(name){
if(this.$store.state.token === ''){
const Auth = new userAuth()
Auth.Login()
return
}
this.$Router.push({name})
}
}
};
</script>