更新
This commit is contained in:
@@ -6,12 +6,16 @@
|
||||
left-icon="back" title="公司账户管理" />
|
||||
<view class="seach">
|
||||
<uni-easyinput @confirm='seachFn' style="border-radius:12rpx ;" prefixIcon="search"
|
||||
placeholder-style="color:#bbb;font-weight: 100;" confirmType="搜索" v-model="paramter.params.companyName"
|
||||
placeholder="请输入公司名称">
|
||||
placeholder-style="color:#bbb;font-weight: 100;" confirmType="搜索"
|
||||
v-model="paramter.params.companyName" placeholder="请输入公司名称">
|
||||
</uni-easyinput>
|
||||
</view>
|
||||
</view>
|
||||
<view style="flex:1;overflow: hidden;">
|
||||
<view style="flex:1;overflow: hidden;">
|
||||
<view v-if="!tableList.length"
|
||||
style="width: 100vw; height: 100%; display: flex;align-items: center;justify-content: center;">
|
||||
<image src="@/static/qx.png" style="width: 500rpx; height: 355rpx;"></image>
|
||||
</view>
|
||||
<scroll-view style="height: 100%;" scroll-y="true" @scrolltolower='scrolltolower'>
|
||||
<view class="container">
|
||||
<view class="item" v-for="item,index in tableList" :key="index"
|
||||
@@ -35,8 +39,11 @@
|
||||
paramter: {
|
||||
currentPage: 1,
|
||||
pageSize: 10,
|
||||
sorted:{
|
||||
createTime:'desc'
|
||||
},
|
||||
params: {
|
||||
companyName:''
|
||||
companyName: ''
|
||||
}
|
||||
},
|
||||
tableList: []
|
||||
@@ -46,9 +53,6 @@
|
||||
this.styles = uni.getMenuButtonBoundingClientRect()
|
||||
this.getByPage()
|
||||
},
|
||||
// onShow() {
|
||||
// this.getByPage()
|
||||
// },
|
||||
methods: {
|
||||
seachFn() {
|
||||
this.tableList = []
|
||||
@@ -58,6 +62,13 @@
|
||||
},
|
||||
getByPage() {
|
||||
serve.getByPage(this.paramter).then(res => {
|
||||
if (!res.data.list.length) {
|
||||
uni.showToast({
|
||||
title: '没有数据了哦~',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
this.tableList = this.tableList.concat(res.data.list);
|
||||
})
|
||||
},
|
||||
@@ -65,7 +76,7 @@
|
||||
scrolltolower() {
|
||||
this.paramter.currentPage += 1
|
||||
this.getByPage()
|
||||
|
||||
|
||||
},
|
||||
handlerNumber(number) {
|
||||
if (number == 0) return number
|
||||
@@ -74,8 +85,8 @@
|
||||
}
|
||||
return +number.toFixed(2)
|
||||
},
|
||||
|
||||
jump(e, path,item) {
|
||||
|
||||
jump(e, path, item) {
|
||||
console.log(123)
|
||||
switch (e) {
|
||||
case -1:
|
||||
@@ -96,7 +107,7 @@
|
||||
.uni-easyinput__content {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
|
||||
.header {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
|
||||
Reference in New Issue
Block a user