2022-07-01 15:11:11 +08:00
|
|
|
<template>
|
|
|
|
|
<div class="AppMerchantManage">
|
2022-07-01 16:16:59 +08:00
|
|
|
<AiTopFixed>
|
|
|
|
|
<u-search placeholder="请输入姓名、手机号、店面" :show-action="false" v-model="keyword" @search="current=1,getList()"/>
|
|
|
|
|
</AiTopFixed>
|
|
|
|
|
<div class="list">
|
|
|
|
|
<div class="item">
|
|
|
|
|
<div class="title">
|
|
|
|
|
<img src="./img/down-icon.png" alt="">
|
|
|
|
|
<p>采苓岩茶烟酒专营店</p>
|
|
|
|
|
<span>店员 (4) </span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="info">
|
|
|
|
|
<img src="./img/down-icon.png" alt="">
|
|
|
|
|
<div>林轶峰 18600882921</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="info">
|
|
|
|
|
<img src="./img/down-icon.png" alt="">
|
|
|
|
|
<div>陕西省西安市新城区中山门街道168号陕西省西安市新城区中山门街道168号</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="info">
|
|
|
|
|
<img src="./img/down-icon.png" alt="">
|
|
|
|
|
<div>李毅-网格长</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="btn">新增商户</div>
|
2022-07-01 15:11:11 +08:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import {mapState} from 'vuex'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: 'AppMerchantManage',
|
|
|
|
|
appName: '商户管理',
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
2022-07-01 16:16:59 +08:00
|
|
|
keyword: '',
|
|
|
|
|
current: 1,
|
|
|
|
|
pages: 2,
|
|
|
|
|
list: []
|
2022-07-01 15:11:11 +08:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
computed: {...mapState(['user'])},
|
|
|
|
|
created() {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
onShow() {
|
|
|
|
|
document.title = "商户管理"
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
2022-07-01 16:16:59 +08:00
|
|
|
getList() {
|
|
|
|
|
if(this.current > this.pages) return
|
|
|
|
|
this.$http.post('/app/appresident/list', null, {
|
|
|
|
|
params: {
|
|
|
|
|
size: 10,
|
|
|
|
|
current: this.current,
|
|
|
|
|
con: this.keyword,
|
|
|
|
|
},
|
|
|
|
|
}).then((res) => {
|
|
|
|
|
if (res.code == 0) {
|
|
|
|
|
this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records
|
|
|
|
|
this.pages = res.data.pages
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
onReachBottom() {
|
|
|
|
|
this.current ++
|
|
|
|
|
this.getList()
|
2022-07-01 15:11:11 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.AppMerchantManage {
|
2022-07-01 16:16:59 +08:00
|
|
|
.list{
|
|
|
|
|
padding: 24px 30px 136px;
|
|
|
|
|
.item{
|
|
|
|
|
width: 100%;
|
|
|
|
|
background: #FFF;
|
|
|
|
|
border-radius: 16px;
|
|
|
|
|
padding: 32px 24px 32px 32px;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
margin-bottom: 30px;
|
|
|
|
|
.title{
|
|
|
|
|
img{
|
|
|
|
|
width: 72px;
|
|
|
|
|
height: 72px;
|
|
|
|
|
margin-right: 16px;
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
}
|
|
|
|
|
p{
|
|
|
|
|
display: inline-block;
|
|
|
|
|
width: 400px;
|
|
|
|
|
font-size: 32px;
|
|
|
|
|
font-family: PingFangSC-Medium, PingFang SC;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: #000;
|
|
|
|
|
line-height: 32px;
|
|
|
|
|
}
|
|
|
|
|
span{
|
|
|
|
|
display: inline-block;
|
|
|
|
|
width: calc(100% - 488px);
|
|
|
|
|
text-align: right;
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
font-family: PingFangSC-Regular, PingFang SC;
|
|
|
|
|
color: #999;
|
|
|
|
|
line-height: 24px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.info{
|
|
|
|
|
img{
|
|
|
|
|
width: 28px;
|
|
|
|
|
height: 28px;
|
|
|
|
|
margin-right: 16px;
|
|
|
|
|
}
|
|
|
|
|
div{
|
|
|
|
|
display: inline-block;
|
|
|
|
|
width: calc(100% - 44px);
|
|
|
|
|
word-break: break-all;
|
|
|
|
|
font-size: 28px;
|
|
|
|
|
font-family: PingFangSC-Regular, PingFang SC;
|
|
|
|
|
color: #333;
|
|
|
|
|
line-height: 40px;
|
|
|
|
|
vertical-align: text-top;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.btn{
|
|
|
|
|
position: fixed;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
width: 100%;
|
|
|
|
|
text-align: center;
|
|
|
|
|
height: 112px;
|
|
|
|
|
line-height: 112px;
|
|
|
|
|
background: #3975C6;
|
|
|
|
|
box-shadow: inset 0px 2px 0px 0px #EEEEEE;
|
|
|
|
|
font-size: 32px;
|
|
|
|
|
font-family: PingFangSC-Medium, PingFang SC;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: #FFF;
|
|
|
|
|
}
|
2022-07-01 15:11:11 +08:00
|
|
|
}
|
|
|
|
|
</style>
|