|
|
|
@ -11,7 +11,7 @@ |
|
|
|
</view> |
|
|
|
<view class="right"> |
|
|
|
<view class="btn"></view> |
|
|
|
<!-- <view class="btn">切换身份</view>--> |
|
|
|
<!-- <view class="btn">切换身份</view>--> |
|
|
|
<!-- <view class="btn" @click="openViewArrivalStatistics()">到课率统计</view> --> |
|
|
|
<!-- <view class="btn">到课率统计</view> --> |
|
|
|
<view class="btn"></view> |
|
|
|
@ -88,9 +88,14 @@ |
|
|
|
<view></view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="item" @click="openServiceDetail()"> |
|
|
|
<!-- <view class="item" @click="openServiceDetail()"> |
|
|
|
<view>服务详情</view> |
|
|
|
<view></view> |
|
|
|
</view> --> |
|
|
|
|
|
|
|
<view class="item" @click="my_contract()"> |
|
|
|
<view>我的合同</view> |
|
|
|
<view></view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
@ -107,23 +112,23 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 底部导航--> |
|
|
|
<AQTabber/> |
|
|
|
<!-- 底部导航--> |
|
|
|
<AQTabber /> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
// import memberApi from '@/api/member.js'; |
|
|
|
import AQTabber from "@/components/AQ/AQTabber.vue" |
|
|
|
import apiRoute from '@/api/apiRoute.js'; |
|
|
|
// import memberApi from '@/api/member.js'; |
|
|
|
import AQTabber from "@/components/AQ/AQTabber.vue" |
|
|
|
import apiRoute from '@/api/apiRoute.js'; |
|
|
|
|
|
|
|
export default { |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
AQTabber, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
memberInfo:{}, |
|
|
|
memberInfo: {}, |
|
|
|
statisticsInfo: [] |
|
|
|
} |
|
|
|
}, |
|
|
|
@ -135,12 +140,16 @@ export default { |
|
|
|
this.init(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
async init(){ |
|
|
|
async init() { |
|
|
|
this.getStatistics() |
|
|
|
}, |
|
|
|
|
|
|
|
my_contract(){ |
|
|
|
this.$navigateTo({ |
|
|
|
url: '/pages/common/contract/my_contract' |
|
|
|
}) |
|
|
|
}, |
|
|
|
//教练详情(个人信息详情) |
|
|
|
async getMemberInfo(){ |
|
|
|
async getMemberInfo() { |
|
|
|
let res = await apiRoute.getPersonnelInfo({}) |
|
|
|
if (res.code != 1) { |
|
|
|
uni.showToast({ |
|
|
|
@ -168,77 +177,77 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//打开到课率统计 |
|
|
|
openViewArrivalStatistics(){ |
|
|
|
openViewArrivalStatistics() { |
|
|
|
this.$navigateTo({ |
|
|
|
url: '/pages/coach/my/arrival_statistics' |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
//打开即将到期 |
|
|
|
openViewDueSoon(){ |
|
|
|
openViewDueSoon() { |
|
|
|
this.$navigateTo({ |
|
|
|
url: '/pages/coach/my/due_soon' |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
//我的消息 |
|
|
|
openViewSchoolingStatistics(){ |
|
|
|
openViewSchoolingStatistics() { |
|
|
|
this.$navigateTo({ |
|
|
|
url: '/pages/common/my_message' |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
//打开教研管理 |
|
|
|
teachingResearchManagement(){ |
|
|
|
teachingResearchManagement() { |
|
|
|
this.$navigateTo({ |
|
|
|
url: '/pages/coach/my/teaching_management' |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
//打开意见反馈 |
|
|
|
openViewFeedback(){ |
|
|
|
openViewFeedback() { |
|
|
|
this.$navigateTo({ |
|
|
|
url: '/pages/common/feedback' |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
//打开个人资料 |
|
|
|
openViewMyInfo(){ |
|
|
|
openViewMyInfo() { |
|
|
|
this.$navigateTo({ |
|
|
|
url: '/pages/coach/my/info' |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
//打开设置 |
|
|
|
openViewSetUp(){ |
|
|
|
openViewSetUp() { |
|
|
|
this.$navigateTo({ |
|
|
|
url: '/pages/coach/my/set_up' |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
//跳转页面-我的考勤 |
|
|
|
openViewMyAttendance(){ |
|
|
|
openViewMyAttendance() { |
|
|
|
this.$navigateTo({ |
|
|
|
url: `/pages/common/my_attendance` |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
//打开服务详情 |
|
|
|
openServiceDetail(){ |
|
|
|
openServiceDetail() { |
|
|
|
this.$navigateTo({ |
|
|
|
url: '/pages/coach/my/service_detail' |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
//打开授课统计(真实的授课统计页面) |
|
|
|
openViewSchoolingStatisticsReal(){ |
|
|
|
openViewSchoolingStatisticsReal() { |
|
|
|
this.$navigateTo({ |
|
|
|
url: '/pages/coach/my/schooling_statistics' |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
//打开体育场信息 |
|
|
|
openViewSportsVenue(){ |
|
|
|
openViewSportsVenue() { |
|
|
|
uni.showModal({ |
|
|
|
title: '我的体育场', |
|
|
|
content: '当前分配场馆:xxx场馆\n地址:xxx\n联系电话:xxx', |
|
|
|
@ -246,24 +255,24 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|
<style lang="less" scoped> |
|
|
|
|
|
|
|
.main_box{ |
|
|
|
.main_box { |
|
|
|
background: #292929; |
|
|
|
min-height: 28vh; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//自定义导航栏 |
|
|
|
.navbar_section{ |
|
|
|
//自定义导航栏 |
|
|
|
.navbar_section { |
|
|
|
border: 1px solid #29D3B4; |
|
|
|
display: flex; |
|
|
|
justify-content: center; |
|
|
|
align-items: center; |
|
|
|
background: #29D3B4; |
|
|
|
.title{ |
|
|
|
|
|
|
|
.title { |
|
|
|
padding: 40rpx 0rpx; |
|
|
|
|
|
|
|
/* 小程序端样式 */ |
|
|
|
@ -274,57 +283,65 @@ export default { |
|
|
|
font-size: 30rpx; |
|
|
|
color: #fff; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//用户信息 |
|
|
|
.user_section { |
|
|
|
//用户信息 |
|
|
|
.user_section { |
|
|
|
background-color: #29D3B4; |
|
|
|
padding-top: 58rpx; |
|
|
|
padding-bottom: 42rpx; |
|
|
|
color: #fff; |
|
|
|
font-size: 28rpx; |
|
|
|
.box{ |
|
|
|
|
|
|
|
.box { |
|
|
|
padding-left: 19rpx; |
|
|
|
padding-right: 29rpx; |
|
|
|
display: flex; |
|
|
|
justify-content: space-between; |
|
|
|
align-items: center; |
|
|
|
gap: 15rpx; |
|
|
|
.left{ |
|
|
|
|
|
|
|
.left { |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
gap: 20rpx; |
|
|
|
.pic{ |
|
|
|
|
|
|
|
.pic { |
|
|
|
width: 144rpx; |
|
|
|
height: 144rpx; |
|
|
|
border-radius: 50%; |
|
|
|
} |
|
|
|
.name{ |
|
|
|
|
|
|
|
.name { |
|
|
|
font-size: 28rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
.right{ |
|
|
|
|
|
|
|
.right { |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
gap: 20rpx; |
|
|
|
.btn{ |
|
|
|
|
|
|
|
.btn { |
|
|
|
min-height: 28rpx; |
|
|
|
font-size: 28rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//统计信息 |
|
|
|
.count_section{ |
|
|
|
//统计信息 |
|
|
|
.count_section { |
|
|
|
position: relative; |
|
|
|
.main{ |
|
|
|
|
|
|
|
.main { |
|
|
|
position: relative; |
|
|
|
z-index: 2; |
|
|
|
padding: 0rpx 24rpx; |
|
|
|
display: flex; |
|
|
|
justify-content: center; |
|
|
|
.course_box{ |
|
|
|
|
|
|
|
.course_box { |
|
|
|
padding: 42rpx 28rpx; |
|
|
|
width: 692rpx; |
|
|
|
border-radius: 20rpx; |
|
|
|
@ -332,54 +349,62 @@ export default { |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
gap: 32rpx; |
|
|
|
.top{ |
|
|
|
|
|
|
|
.top { |
|
|
|
display: flex; |
|
|
|
justify-content: space-between; |
|
|
|
align-items: center; |
|
|
|
.item{ |
|
|
|
|
|
|
|
.item { |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
align-items: center; |
|
|
|
gap: 12rpx; |
|
|
|
.num{ |
|
|
|
|
|
|
|
.num { |
|
|
|
color: #29D3B4; |
|
|
|
font-size: 56rpx; |
|
|
|
} |
|
|
|
.intro{ |
|
|
|
|
|
|
|
.intro { |
|
|
|
color: #AAAAAA; |
|
|
|
font-size: 24rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.bottom{ |
|
|
|
|
|
|
|
.bottom { |
|
|
|
font-size: 24rpx; |
|
|
|
color: #333333; |
|
|
|
text{ |
|
|
|
|
|
|
|
text { |
|
|
|
color: #29D3B4; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
.bg_box{ |
|
|
|
} |
|
|
|
|
|
|
|
.bg_box { |
|
|
|
z-index: 1; |
|
|
|
width: 100%; |
|
|
|
height: 150rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.bg_top{ |
|
|
|
.bg_top { |
|
|
|
position: absolute; |
|
|
|
top: 0; |
|
|
|
background-color: #29D3B4; |
|
|
|
} |
|
|
|
.bg_bottom{ |
|
|
|
|
|
|
|
.bg_bottom { |
|
|
|
top: 50%; |
|
|
|
position: absolute; |
|
|
|
background-color: #292929; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.main_section{ |
|
|
|
.main_section { |
|
|
|
background: #292929 100%; |
|
|
|
padding: 0 24rpx; |
|
|
|
padding-top: 40rpx; |
|
|
|
@ -396,21 +421,21 @@ export default { |
|
|
|
padding: 6rpx 24rpx; |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
.item{ |
|
|
|
|
|
|
|
.item { |
|
|
|
padding: 24rpx 78rpx; |
|
|
|
border-top: 1px solid #F2F2F2; |
|
|
|
font-size: 28rpx; |
|
|
|
display: flex; |
|
|
|
justify-content: space-between; |
|
|
|
} |
|
|
|
.item:nth-child(1){ |
|
|
|
|
|
|
|
.item:nth-child(1) { |
|
|
|
border-top: 0; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
</style> |