|
@@ -13,20 +13,41 @@
|
|
|
|
|
|
<view class="my-num-box">
|
|
<view class="my-num-box">
|
|
<view class="num-item-box">
|
|
<view class="num-item-box">
|
|
- <uni-badge class="uni-badge-left-margin" text="1" />
|
|
|
|
- <icon></icon>
|
|
|
|
- <text></text>
|
|
|
|
|
|
+ <uni-badge class="uni-badge-left-margin my-num-badge" v-if="myInfoData.kaoshiCount"
|
|
|
|
+ :customStyle="{background: '#ff2527'}" :text="myInfoData.kaoshiCount" />
|
|
|
|
+ <icon class="ks-icon"></icon>
|
|
|
|
+ <text class="num-title">考试管理</text>
|
|
</view>
|
|
</view>
|
|
<view class="num-item-box">
|
|
<view class="num-item-box">
|
|
- <icon></icon>
|
|
|
|
- <text></text>
|
|
|
|
|
|
+ <uni-badge class="uni-badge-left-margin my-num-badge" v-if="myInfoData.lianxiCount"
|
|
|
|
+ :customStyle="{background: '#ff2527'}" :text="myInfoData.lianxiCount" />
|
|
|
|
+ <icon class="lx-icon"></icon>
|
|
|
|
+ <text class="num-title">练习管理</text>
|
|
</view>
|
|
</view>
|
|
<view class="num-item-box">
|
|
<view class="num-item-box">
|
|
- <icon></icon>
|
|
|
|
- <text></text>
|
|
|
|
|
|
+ <uni-badge class="uni-badge-left-margin my-num-badge" v-if="myInfoData.kechengCount"
|
|
|
|
+ :customStyle="{background: '#ff2527'}" :text="myInfoData.kechengCount" />
|
|
|
|
+ <icon class="kc-icon"></icon>
|
|
|
|
+ <text class="num-title">课程管理</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
+ <view class="my-list-box">
|
|
|
|
+ <view class="list-row" @click="telClick">
|
|
|
|
+ <icon class="list-icon user-icon"></icon>
|
|
|
|
+ <text>修改个人信息</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="list-row" @click="checkWrong">
|
|
|
|
+ <icon class="list-icon score-icon"></icon>
|
|
|
|
+ <text>成绩列表</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="list-row" @click="exitLogin">
|
|
|
|
+ <icon class="list-icon login-out-icon"></icon>
|
|
|
|
+ <text>退出登录</text>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <!-- 底部区域 -->
|
|
|
|
+ <customTabbarClient></customTabbarClient>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -34,6 +55,7 @@
|
|
import {onLoad} from '@dcloudio/uni-app';
|
|
import {onLoad} from '@dcloudio/uni-app';
|
|
import {getMineUser,getMineInfo} from '@/api/my.js'
|
|
import {getMineUser,getMineInfo} from '@/api/my.js'
|
|
import {reactive,ref} from "vue";
|
|
import {reactive,ref} from "vue";
|
|
|
|
+ import customTabbarClient from "@/components/custom-tabbar/custom-tabbar-client.vue"
|
|
let myInfoData = reactive({
|
|
let myInfoData = reactive({
|
|
userImg: '',
|
|
userImg: '',
|
|
userName: '',
|
|
userName: '',
|
|
@@ -60,6 +82,10 @@
|
|
myInfoData.lianxiCount = res.data.lianxiCount;
|
|
myInfoData.lianxiCount = res.data.lianxiCount;
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+ function exitLogin(){
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
onLoad(() => {
|
|
onLoad(() => {
|
|
getMyInit()
|
|
getMyInit()
|
|
})
|
|
})
|