This commit is contained in:
changjinpeng
2022-03-10 15:34:11 +08:00
parent f61a5d5e12
commit 22c0bda07b
2 changed files with 15 additions and 16 deletions

View File

@@ -27,7 +27,7 @@
</div>
<div class="cards-bottom">
<span>走访人<AiOpenData v-if="item.createUserName" type="userName" :openid="item.createUserName" style="display:inline-block;" /></span>
<span>走访人<AiOpenData v-if="item.createUserName" type="userName" :openid="item.createUserName" style="display: inline-block" /></span>
<span style="margin-left: 8px">{{ item.createTime }}</span>
</div>
</template>
@@ -49,8 +49,8 @@
</div>
</div> -->
<div class="empty" v-else>
<img src="https://cdn.cunwuyun.cn/dvcp/h5/no-data.png" alt="">
<p>您还未添加过走访慰问<br/>点击<span @click="toAdd()">新增按钮</span>试试吧</p>
<img src="https://cdn.cunwuyun.cn/dvcp/h5/no-data.png" alt="" />
<p>您还未添加过走访慰问<br />点击<span @click="toAdd()">新增按钮</span>试试吧</p>
</div>
</div>
</div>
@@ -350,21 +350,21 @@ uni-page-body {
bottom: 106px;
z-index: 9;
}
.empty{
.empty {
height: 100%;
img{
img {
width: 282px;
height: 306px;
margin: 168px 0 0 234px;
}
p{
p {
text-align: center;
font-size: 28px;
font-family: PingFangSC-Regular, PingFang SC;
color: #999;
line-height: 44px;
span{
color: #467DFE;
span {
color: #467dfe;
}
}
}

View File

@@ -53,10 +53,9 @@
<div>确定选择</div>
</div>
<AiFixedBtn>
<div class="addBtn iconfont iconfont-iconfangda" @tap="toAdd()"/>
<div class="addBtn iconfont iconfont-iconfangda" @tap="toAdd()" />
</AiFixedBtn>
<!-- <AiBck /> -->
</div>
</template>
@@ -76,19 +75,19 @@ export default {
applicationName: '',
applicationId: '',
selectUser: {},
type: ''
type: '',
}
},
onLoad() {
this.$dict.load('appSpecialTypeFive').then(() => {
this.typeList = this.$dict.getDict('appSpecialTypeFive')
console.log(this.typeList)
})
},
methods: {
toAdd() {
uni.navigateTo({ url: '../AppSpecialPeople/add'})
uni.navigateTo({ url: '../AppSpecialPeople/add' })
},
userClick(row, index) {
if (this.userList[index].isChecked) {
this.userList[index].isChecked = false //取消
@@ -110,7 +109,7 @@ export default {
getUsers() {
this.$http.post(`/app/appspecialadjustment/allList?size=20&current=${this.current}`, { type: this.type, name: this.keyword }).then((res) => {
if (res.code == 0) {
if(this.current > res.data.total) {
if (this.current > res.data.pages) {
return
}
res.data.records.map((item) => {
@@ -163,9 +162,9 @@ export default {
},
},
onReachBottom() {
this.current ++
this.current++
this.getUsers()
}
},
}
</script>