黔西南积分

This commit is contained in:
liuye
2022-12-22 16:35:53 +08:00
parent f638305b49
commit a0d296b740
4 changed files with 510 additions and 0 deletions

View File

@@ -0,0 +1,86 @@
<template>
<div class="AppGirdIntegral">
<AiTopFixed>
</AiTopFixed>
<div class="list-data" v-if="list.length">
</div>
<AiEmpty v-else></AiEmpty>
</div>
</template>
<script>
import { mapState } from 'vuex'
export default {
appName: '网格员积分',
data() {
return {
current: 1,
list: [],
}
},
computed: {
...mapState(['user']),
},
created() {
this.$dict.load("workTaskType").then(() => {
this.getList()
})
uni.$on('getList', () => {
this.current = 1
this.getList()
})
},
onShow() {
document.title = '网格员积分'
this.current = 1
this.getList()
},
methods: {
getList() {
this.$http.post("/app/appworktaskinfo/list", null, {
params: {
...this.map(this.index),
size: 10,
current: this.current
}
}).then(res => {
if (res && res.data) {
if (this.current > 1 && this.current > res.data.pages) {
this.status = "已经到底啦"
}
this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records
}
})
}
},
onReachBottom() {
this.current = this.current + 1;
this.getList()
}
}
</script>
<style lang="scss" scoped>
.AppGirdIntegral {
min-height: 100%;
background-color: #F5F5F5;
padding-bottom: 32px;
::v-deep .content {
padding: 0;
}
.list-data {
box-sizing: border-box;
padding: 32px 32px 0 32px;
}
}
</style>

View File

@@ -0,0 +1,49 @@
<template>
<div class="AppPointsDetails">
</div>
</template>
<script>
import { mapState } from 'vuex'
export default {
appName: '积分排行',
data() {
return {
current: 1,
list: [],
}
},
computed: {
...mapState(['user']),
},
created() {
// this.$dict.load("workTaskType").then(() => {
// this.getList()
// })
// uni.$on('getList', () => {
// this.current = 1
// this.getList()
// })
},
onShow() {
document.title = '积分排行'
},
methods: {
},
}
</script>
<style lang="scss" scoped>
.AppPointsDetails {
min-height: 100%;
background-color: #F5F5F5;
padding-bottom: 32px;
}
</style>

View File

@@ -0,0 +1,267 @@
<template>
<div class="AppResidentsType">
<AiTopFixed>
<div class="top-num">
<div class="item-num">
<h3>5</h3>
<p>登记</p>
</div>
<div class="item-num">
<h3>5</h3>
<p>朋友</p>
</div>
<div class="item-num">
<h3>5</h3>
<p>知己</p>
</div>
</div>
<div class="top-search">
<u-search v-model="keyword" :clearabled="true" placeholder="请输入" :show-action="false" bg-color="#F5F5F5"
search-icon-color="#999" color="#333" height="58" @search="getListInit" @clear="getListInit">
</u-search>
</div>
<div class="top-select">
<div class="item">
<AiAreaPicker v-model="areaId" :areaId="user.areaId" @select="areaSelect" :name.sync="areaName" style="color: #666" selectRoot>
<span style="margin-left: 4px" v-if="areaName">{{ areaName }}</span>
<span v-else>行政区划</span>
<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" />
</AiAreaPicker>
</div>
<div class="item">
<div v-if="deptId" class="gateway-name">{{deptName || '部门'}}</div>
<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" v-if="deptId" />
<span v-else>部门<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" /></span>
</div>
</div>
</AiTopFixed>
<div class="user-list">
<div class="item">
<div class="item-top">
<div class="item-left">
<img src="https://cdn.cunwuyun.cn/dvcp/user-icon.png"/>
<div>
<h4>张三</h4>
<p>黔西南公安局</p>
</div>
</div>
<div class="item-right">2020-12-11</div>
</div>
<div class="item-bottom">
登记:<span>5</span>
朋友:<span>5</span>
知己:<span>5</span>
</div>
</div>
<div class="item">
<div class="item-top">
<div class="item-left">
<img src="https://cdn.cunwuyun.cn/dvcp/user-icon.png"/>
<div>
<h4>张三</h4>
<p>黔西南公安局</p>
</div>
</div>
<div class="item-right">2020-12-11</div>
</div>
<div class="item-bottom">
登记:<span>5</span>
朋友:<span>5</span>
知己:<span>5</span>
</div>
</div>
</div>
<div class="add-btn">
<div>添加居民数据</div>
</div>
</div>
</template>
<script>
import { mapState } from 'vuex'
export default {
appName: '居民分类信息',
data() {
return {
current: 1,
list: [],
keyword: '',
areaId: '',
areaName: '',
deptId: '',
deptName: ''
}
},
computed: {
...mapState(['user']),
},
created() {
// this.$dict.load("workTaskType").then(() => {
// this.getList()
// })
// uni.$on('getList', () => {
// this.current = 1
// this.getList()
// })
},
onShow() {
document.title = '居民分类信息'
},
methods: {
getListInit() {
this.current = 1
},
areaSelect(e) {
this.areaId =e
// this.$nextTick(() => {
// this.getListInit()
// })
// this.getTotal()
},
},
}
</script>
<style lang="scss" scoped>
.AppResidentsType {
min-height: 100%;
background-color: #F5F5F5;
padding-bottom: 32px;
::v-deep .content {
padding: 0;
}
.top-num {
height: 208px;
background: #3975C6;
padding: 0 32px;
display: flex;
.item-num {
flex: 1;
text-align: center;
padding-top: 48px;
color: #fff;
h3 {
font-family: DINAlternate-Bold;
font-weight: 700;
font-size: 64px;
line-height: 64px;
margin-bottom: 8px;
}
p {
font-family: PingFangSC-Regular;
font-size: 28px;
}
}
}
.top-search {
padding: 20px 32px;
background-color: #fff;
}
.top-select {
display: flex;
padding: 28px 0;
background-color: #fff;
box-shadow: 0 0 0 0 #E4E5E6;
.item {
flex: 1;
padding: 0 8px;
text-align: center;
display: flex;
justify-content: center;
span {
display: inline-block;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 28px;
color: #666;
line-height: 40px;
}
}
}
.user-list {
padding: 0 32px 120px 32px;
.item {
margin-top: 24px;
width: 100%;
background: #FCFCFC;
box-shadow: 0 0 8px 0 rgba(0,0,0,0.02);
border-radius: 16px;
.item-top {
display: flex;
padding: 24px;
.item-left {
width: calc(100% - 200px);
display: flex;
img {
width: 96px;
height: 96px;
margin-right: 24px;
}
div {
width: calc(100% - 120px);
h4 {
margin-bottom: 8px;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 34px;
color: #333;
}
p {
width: 100%;
font-family: PingFangSC-Regular;
font-size: 28px;
color: #999;
word-break: break-all;
}
}
}
.item-right {
width: 200px;
font-family: PingFangSC-Regular;
font-size: 28px;
color: #999;
text-align: right;
margin-top: 28px;
line-height: 40px;
}
}
.item-bottom {
border-top: 1px solid #eee;
padding: 24px;
font-family: PingFangSC-Regular;
font-size: 28px;
color: #999;
span {
display: inline-block;
color: #333;
margin: 0 48px 0 8px;
}
}
}
}
.add-btn {
position: fixed;
bottom: 0;
left: 0;
padding: 16px 32px;
width: 100%;
box-sizing: border-box;
div {
width: 100%;
height: 88px;
background: #3975C6;
border-radius: 44px;
text-align: center;
line-height: 88px;
color: #fff;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 34px;
}
}
}
</style>

View File

@@ -0,0 +1,108 @@
<template>
<div class="AppUpdateNum">
<div class="item">
<span class="label"><span class="tips">*</span>居民登记</span>
<div class="value">
<u-input type="number" placeholder="请填写数量 " v-model="num" input-align="right" placeholder-style="color:#999;font-size:15px;" height="42" :maxlength="10" :clearable="false" />
</div>
</div>
<div class="item">
<span class="label"><span class="tips">*</span>居民朋友</span>
<div class="value">
<u-input type="number" placeholder="请填写数量 " v-model="num" input-align="right" placeholder-style="color:#999;font-size:15px;" height="42" :maxlength="10" :clearable="false" />
</div>
</div>
<div class="item">
<span class="label"><span class="tips">*</span>居民知己</span>
<div class="value">
<u-input type="number" placeholder="请填写数量 " v-model="num" input-align="right" placeholder-style="color:#999;font-size:15px;" height="42" :maxlength="10" :clearable="false" />
</div>
</div>
<div class="add-btn">
<div>提交</div>
</div>
</div>
</template>
<script>
import { mapState } from 'vuex'
export default {
appName: '更新居民数据',
data() {
return {
num: ''
}
},
computed: {
...mapState(['user']),
},
onShow() {
document.title = '更新居民数据'
},
methods: {
},
}
</script>
<style lang="scss" scoped>
.AppUpdateNum {
min-height: 100%;
background-color: #F5F5F5;
padding-top: 32px;
.item{
width: calc(100% - 32px);
padding: 40px 32px 40px 16px;
background: #FFFFFF;
display: flex;
justify-content: space-between;
font-size: 30px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #666;
line-height: 48px;
box-sizing: border-box;
margin: 0 0 24px 16px;
border-radius: 32px;
.color-999{
color: #999;
}
.value{
color: #333;
.u-icon{
margin-left: 16px;
}
}
.tips{
display: inline-block;
width: 16px;
font-size: 32px;
font-family: PingFangSC-Regular, PingFang SC;
color: #FF4466;
line-height: 44px;
margin-right: 4px;
}
}
.add-btn {
position: fixed;
bottom: 0;
left: 0;
padding: 16px 32px;
width: 100%;
box-sizing: border-box;
div {
width: 100%;
height: 88px;
background: #3975C6;
border-radius: 44px;
text-align: center;
line-height: 88px;
color: #fff;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 34px;
}
}
}
</style>