Browse Source

新增定时任务

master
王泽彦 9 months ago
parent
commit
598ba0e24e
  1. 147
      uniapp/pages/coach/my/index.vue

147
uniapp/pages/coach/my/index.vue

@ -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>
Loading…
Cancel
Save