员工积分注释

This commit is contained in:
liuye
2022-05-16 11:33:35 +08:00
parent 12089dced6
commit 2c73f6616e
4 changed files with 72 additions and 5 deletions

View File

@@ -7,6 +7,7 @@
</div> </div>
<family-rank v-if="tabIndex == 0" :showDetail="showDetail"></family-rank> <family-rank v-if="tabIndex == 0" :showDetail="showDetail"></family-rank>
<user-rank v-if="tabIndex == 1" :showDetail="showDetail"></user-rank> <user-rank v-if="tabIndex == 1" :showDetail="showDetail"></user-rank>
<work-rank v-if="tabIndex == 2"></work-rank>
</div> </div>
</div> </div>
</div> </div>
@@ -37,11 +38,17 @@ export default {
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: options.title title: options.title
}) })
uni.$on('toBindWorkUser', () => {
this.toBind()
})
}, },
methods: { methods: {
tabClick(index) { tabClick(index) {
this.tabIndex = index this.tabIndex = index
}, },
toBind() {
this.$linkTo('./bindWorkUser')
}
}, },
} }
</script> </script>

View File

@@ -17,7 +17,6 @@ import userRank from './components/userRank.vue'
import familyRank from './components/familyRank.vue' import familyRank from './components/familyRank.vue'
import workRank from './components/workRank.vue' import workRank from './components/workRank.vue'
export default { export default {
name: "AppIntegralRanking",
appName: "积分排行", appName: "积分排行",
computed: { computed: {
...mapState(['user', 'token']) ...mapState(['user', 'token'])

View File

@@ -1,6 +1,22 @@
<template> <template>
<div class="page"> <div class="page">
<div class="form">
<div class="item">
<div class="label">员工账号</div>
<div class="value">
<u-input placeholder="请输入员工账号" type="number" v-model="form.phone" :maxlength="11" input-align="right" height="44" />
</div>
</div>
<div class="item">
<div class="label">密码</div>
<div class="value">
<u-input placeholder="请输入密码" type="text" v-model="form.password" :maxlength="11" input-align="right" height="44" />
</div>
</div>
</div>
<div class="footer">
<div class="btn">提交</div>
</div>
</div> </div>
</template> </template>
<script> <script>
@@ -13,7 +29,7 @@ export default {
}, },
data() { data() {
return { return {
form: {}
} }
}, },
onLoad(options) { onLoad(options) {
@@ -30,6 +46,47 @@ export default {
.page { .page {
width: 100vw; width: 100vw;
overflow-x: hidden; overflow-x: hidden;
background-color: #f3f6f9; background-color: #F4F5FA;
.form{
width: 720px;
background: #FFFFFF;
border-radius: 32px;
margin: 50px 0 0 16px;
padding-left: 32px;
box-sizing: border-box;
.item{
display: flex;
justify-content: space-between;
padding: 44px 32px 44px 0;
height: 42px;
line-height: 42px;
font-size: 30px;
font-family: PingFangSC-Regular, PingFang SC;
.label{
color: #666;
}
.value{
color: #333;
font-weight: 500;
}
}
}
.footer{
position: fixed;
bottom: 84px;
left: 32px;
.btn{
width: 686px;
height: 88px;
line-height: 88px;
text-align: center;
background: #2D7DFF;
border-radius: 44px;
font-size: 34px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #FFF;
}
}
} }
</style> </style>

View File

@@ -21,7 +21,7 @@
<div class="cancel-btn">解除账号绑定</div> <div class="cancel-btn">解除账号绑定</div>
<img src="https://cdn.cunwuyun.cn/dvcp/credit/head.png" alt=""> <img src="https://cdn.cunwuyun.cn/dvcp/credit/head.png" alt="">
</div> </div>
<div class="btn">进行账号绑定</div> <div class="btn" @click="toBind()">进行账号绑定</div>
<div class="detail-content" v-if="list.length"> <div class="detail-content" v-if="list.length">
<div class="title">积分明细</div> <div class="title">积分明细</div>
<div class="item" v-for="(item, index) in list" :key="index"> <div class="item" v-for="(item, index) in list" :key="index">
@@ -79,6 +79,10 @@ export default {
} }
}) })
}, },
toBind() {
console.log(123)
uni.$emit('toBindWorkUser')
}
}, },
onReachBottom() { onReachBottom() {
if (this.list.length < 50) { if (this.list.length < 50) {