|
|
|
@ -26,7 +26,7 @@ |
|
|
|
type="text" |
|
|
|
class="easyinput" |
|
|
|
prefixIcon="search" |
|
|
|
@confirm="searchConfirm" |
|
|
|
@input="searchConfirm" |
|
|
|
/> |
|
|
|
</view> |
|
|
|
<scroll-list ref="list" :option="option" @load="upCallback" @refresh="downCallback" style="background-color: #ffffff"> |
|
|
|
@ -93,12 +93,10 @@ export default { |
|
|
|
supplierId: this.$store.state.supplierId || null |
|
|
|
// supplierId: '677166944742412288' |
|
|
|
}, |
|
|
|
customerInfo: {} |
|
|
|
customerInfo: {}, |
|
|
|
timer: null |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad() { |
|
|
|
this.getCustomer() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
seeDetailsTap(item) { |
|
|
|
loginGo2('paper-details', { id: item.id }) |
|
|
|
@ -123,9 +121,10 @@ export default { |
|
|
|
} else { |
|
|
|
this.list = this.list.concat(res.records) |
|
|
|
} |
|
|
|
// this.list = [] |
|
|
|
// this.list = [...this.list, ...[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]] |
|
|
|
resolve({ list: this.list, total: res.total }) |
|
|
|
} else { |
|
|
|
reject() |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
@ -155,8 +154,13 @@ export default { |
|
|
|
}, |
|
|
|
searchConfirm(value) { |
|
|
|
this.params.name = value |
|
|
|
this.pagination.pageNum = 1 |
|
|
|
this.getList() |
|
|
|
if (this.timer) { |
|
|
|
clearTimeout(this.timer) |
|
|
|
this.timer = null |
|
|
|
} |
|
|
|
this.timer = setTimeout(() => { |
|
|
|
this.downCallback() |
|
|
|
}, 500) |
|
|
|
}, |
|
|
|
transformPrice(value) { |
|
|
|
if (this.hasLogin) { |
|
|
|
@ -168,6 +172,7 @@ export default { |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
this.downCallback() |
|
|
|
this.getCustomer() |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
hasLogin() { |
|
|
|
@ -357,7 +362,7 @@ export default { |
|
|
|
height: 48rpx; |
|
|
|
background: #ff4849; |
|
|
|
border-radius: 27rpx; |
|
|
|
ont-size: 26rpx; |
|
|
|
font-size: 26rpx; |
|
|
|
color: #ffffff; |
|
|
|
letter-spacing: 0; |
|
|
|
font-weight: 400; |
|
|
|
|