员工积分注释
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
</div>
|
||||
<family-rank v-if="tabIndex == 0" :showDetail="showDetail"></family-rank>
|
||||
<user-rank v-if="tabIndex == 1" :showDetail="showDetail"></user-rank>
|
||||
<work-rank v-if="tabIndex == 2"></work-rank>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -37,11 +38,17 @@ export default {
|
||||
uni.setNavigationBarTitle({
|
||||
title: options.title
|
||||
})
|
||||
uni.$on('toBindWorkUser', () => {
|
||||
this.toBind()
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
tabClick(index) {
|
||||
this.tabIndex = index
|
||||
},
|
||||
toBind() {
|
||||
this.$linkTo('./bindWorkUser')
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -17,7 +17,6 @@ import userRank from './components/userRank.vue'
|
||||
import familyRank from './components/familyRank.vue'
|
||||
import workRank from './components/workRank.vue'
|
||||
export default {
|
||||
name: "AppIntegralRanking",
|
||||
appName: "积分排行",
|
||||
computed: {
|
||||
...mapState(['user', 'token'])
|
||||
|
||||
@@ -1,6 +1,22 @@
|
||||
<template>
|
||||
<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>
|
||||
</template>
|
||||
<script>
|
||||
@@ -13,7 +29,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
form: {}
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
@@ -30,6 +46,47 @@ export default {
|
||||
.page {
|
||||
width: 100vw;
|
||||
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>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<div class="cancel-btn">解除账号绑定</div>
|
||||
<img src="https://cdn.cunwuyun.cn/dvcp/credit/head.png" alt="">
|
||||
</div>
|
||||
<div class="btn">进行账号绑定</div>
|
||||
<div class="btn" @click="toBind()">进行账号绑定</div>
|
||||
<div class="detail-content" v-if="list.length">
|
||||
<div class="title">积分明细</div>
|
||||
<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() {
|
||||
if (this.list.length < 50) {
|
||||
|
||||
Reference in New Issue
Block a user