You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
106 lines
3.4 KiB
106 lines
3.4 KiB
<template>
|
|
<view class="pageBgImg">
|
|
<view class="card">
|
|
<view class="qcode" @click="$goPage('/pages/userCenter/scanCode/scanCode')">
|
|
<image src="@/static/images/coach/ic_erweima.png" mode=""></image>
|
|
</view>
|
|
<user-info/>
|
|
</view>
|
|
|
|
<view class="card">
|
|
<view class="ul">
|
|
<view class="li" v-for="(item,index) in tabData" :key="index" @click="$goPage(item.url)">
|
|
<view class="icon">
|
|
<image :src="item.icon" mode=""></image>
|
|
</view>
|
|
<view class="text">{{ item.text }}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<UserTab name ='我的'></UserTab>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
tabData: [
|
|
{text: '待结算记录', icon: require('../../../static/images/coach/ic_daijiesuan.png'), id: 1, url: '/pages/userCenter/settled/settled'},
|
|
{text: '指标充值记录', icon: require('../../../static/images/coach/ic_zhibiao.png'), id: 2, url: '/pages/userCenter/indicatorRecharge/indicatorRecharge'},
|
|
{text: '我的车辆', icon: require('../../../static/images/coach/ic_cheliang.png'), id: 3, url: '/pages/userCenter/myCar/myCar'},
|
|
{text: '考场信息', icon: require('../../../static/images/coach/ic_changdi.png'), id: 4, url: '/pages/userCenter/examinInfo/examinInfo'},
|
|
{text: '学员评价', icon: require('../../../static/images/coach/ic_pingjia.png'), id: 5, url: '/pages/userCenter/studentComment/studentComment'},
|
|
{text: '教学数据', icon: require('../../../static/images/coach/ic_shuju.png'), id: 6, url: '/pages/userCenter/teachingData/teachingData'},
|
|
{text: '学员退款', icon: require('../../../static/images/coach/ic_tuikuan.png'), id: 7, url: '/pages/userCenter/refund/refund'},
|
|
]
|
|
}
|
|
},
|
|
onLoad() {
|
|
if(this.identity==2) {
|
|
this.tabData = [
|
|
{text: '我的车辆', icon: require('../../../static/images/coach/ic_cheliang.png'), id: 3, url: '/pages/userCenter/myCar/myCar'},
|
|
{text: '学员评价', icon: require('../../../static/images/coach/ic_pingjia.png'), id: 5, url: '/pages/userCenter/studentComment/studentComment'},
|
|
{text: '学员退款', icon: require('../../../static/images/coach/ic_tuikuan.png'), id: 7, url: '/pages/userCenter/refund/refund'},
|
|
{text: '教学数据', icon: require('../../../static/images/coach/ic_shuju.png'), id: 6, url: '/pages/userCenter/teachingData/teachingData'},
|
|
]
|
|
}else if(this.identity==3) {
|
|
this.tabData = [
|
|
{text: '我的车辆', icon: require('../../../static/images/coach/ic_cheliang.png'), id: 3, url: '/pages/userCenter/myCar/myCar'},
|
|
{text: '学员评价', icon: require('../../../static/images/coach/ic_pingjia.png'), id: 5, url: '/pages/userCenter/studentComment/studentComment'},
|
|
]
|
|
}
|
|
console.log('我的页面')
|
|
},
|
|
onShow() {
|
|
uni.hideTabBar();
|
|
},
|
|
methods: {
|
|
goPage() {}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.pageBgImg {
|
|
padding: 140rpx 28rpx 40rpx 28rpx;
|
|
}
|
|
|
|
.card {
|
|
margin-bottom: 24rpx;
|
|
padding: 28rpx;
|
|
position: relative;
|
|
.qcode {
|
|
width: 76rpx;
|
|
height: 76rpx;
|
|
position: absolute;
|
|
right: 16rpx;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
}
|
|
}
|
|
|
|
.ul {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
.li {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
padding: 10rpx 0 50rpx 0;
|
|
width: 33.33%;
|
|
.icon {
|
|
width: 72rpx;
|
|
height: 72rpx;
|
|
}
|
|
|
|
.text {
|
|
font-size: 28rpx;
|
|
margin-top: 16rpx;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
</style>
|