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

View File

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