Browse Source

新增定时任务

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

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

@ -88,9 +88,14 @@
<view></view> <view></view>
</view> </view>
<view class="item" @click="openServiceDetail()"> <!-- <view class="item" @click="openServiceDetail()">
<view>服务详情</view> <view>服务详情</view>
<view></view> <view></view>
</view> -->
<view class="item" @click="my_contract()">
<view>我的合同</view>
<view></view>
</view> </view>
</view> </view>
@ -138,7 +143,11 @@ export default {
async init() { async init() {
this.getStatistics() this.getStatistics()
}, },
my_contract(){
this.$navigateTo({
url: '/pages/common/contract/my_contract'
})
},
//() //()
async getMemberInfo() { async getMemberInfo() {
let res = await apiRoute.getPersonnelInfo({}) let res = await apiRoute.getPersonnelInfo({})
@ -250,7 +259,6 @@ export default {
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.main_box { .main_box {
background: #292929; background: #292929;
min-height: 28vh; min-height: 28vh;
@ -263,6 +271,7 @@ export default {
justify-content: center; justify-content: center;
align-items: center; align-items: center;
background: #29D3B4; background: #29D3B4;
.title { .title {
padding: 40rpx 0rpx; padding: 40rpx 0rpx;
@ -283,6 +292,7 @@ export default {
padding-bottom: 42rpx; padding-bottom: 42rpx;
color: #fff; color: #fff;
font-size: 28rpx; font-size: 28rpx;
.box { .box {
padding-left: 19rpx; padding-left: 19rpx;
padding-right: 29rpx; padding-right: 29rpx;
@ -290,23 +300,28 @@ export default {
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
gap: 15rpx; gap: 15rpx;
.left { .left {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 20rpx; gap: 20rpx;
.pic { .pic {
width: 144rpx; width: 144rpx;
height: 144rpx; height: 144rpx;
border-radius: 50%; border-radius: 50%;
} }
.name { .name {
font-size: 28rpx; font-size: 28rpx;
} }
} }
.right { .right {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 20rpx; gap: 20rpx;
.btn { .btn {
min-height: 28rpx; min-height: 28rpx;
font-size: 28rpx; font-size: 28rpx;
@ -318,12 +333,14 @@ export default {
// //
.count_section { .count_section {
position: relative; position: relative;
.main { .main {
position: relative; position: relative;
z-index: 2; z-index: 2;
padding: 0rpx 24rpx; padding: 0rpx 24rpx;
display: flex; display: flex;
justify-content: center; justify-content: center;
.course_box { .course_box {
padding: 42rpx 28rpx; padding: 42rpx 28rpx;
width: 692rpx; width: 692rpx;
@ -332,28 +349,34 @@ export default {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 32rpx; gap: 32rpx;
.top { .top {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
.item { .item {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
gap: 12rpx; gap: 12rpx;
.num { .num {
color: #29D3B4; color: #29D3B4;
font-size: 56rpx; font-size: 56rpx;
} }
.intro { .intro {
color: #AAAAAA; color: #AAAAAA;
font-size: 24rpx; font-size: 24rpx;
} }
} }
} }
.bottom { .bottom {
font-size: 24rpx; font-size: 24rpx;
color: #333333; color: #333333;
text { text {
color: #29D3B4; color: #29D3B4;
} }
@ -361,6 +384,7 @@ export default {
} }
} }
.bg_box { .bg_box {
z-index: 1; z-index: 1;
width: 100%; width: 100%;
@ -372,6 +396,7 @@ export default {
top: 0; top: 0;
background-color: #29D3B4; background-color: #29D3B4;
} }
.bg_bottom { .bg_bottom {
top: 50%; top: 50%;
position: absolute; position: absolute;
@ -396,6 +421,7 @@ export default {
padding: 6rpx 24rpx; padding: 6rpx 24rpx;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
.item { .item {
padding: 24rpx 78rpx; padding: 24rpx 78rpx;
border-top: 1px solid #F2F2F2; border-top: 1px solid #F2F2F2;
@ -403,6 +429,7 @@ export default {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
.item:nth-child(1) { .item:nth-child(1) {
border-top: 0; border-top: 0;
} }
@ -411,6 +438,4 @@ export default {
} }
} }
</style> </style>
Loading…
Cancel
Save