Commit bc1397d0 by 李伟康

Merge branch 'v1.0.1' of http://192.168.3.233:8090/glsx/gl_tape into v1.0.1

2 parents 25f19d86 256e89ba
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
> >
</view> </view>
</template> </template>
<template> <template v-else>
<view class="no-data"> <view class="no-data">
<glsx-image <glsx-image
class="no-data-img" class="no-data-img"
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<!-- </uni-grid-item> <!-- </uni-grid-item>
</uni-grid> --> </uni-grid> -->
</view> </view>
<view class="end-text" v-if="historyList.length > 0 && sEnd">我是一个有底线的人</view> <view class="end-text" v-if="historyList.length > 0 && isEnd">我是一个有底线的人</view>
</view> </view>
</view> </view>
</template> </template>
...@@ -112,10 +112,9 @@ export default { ...@@ -112,10 +112,9 @@ export default {
this.shopMerchantId = shopMerchantId this.shopMerchantId = shopMerchantId
this.getQuotationList(); this.getQuotationList();
}, },
async getQuotationList() { async getQuotationList(isSwitch = false) {
const { goodsName, shopMerchantId, currentPage } = this const { goodsName, shopMerchantId, currentPage } = this
this.currentPage++ this.currentPage++
this.isEnd = false
const data = await uni.$api.commonApi.getQuotationList({ const data = await uni.$api.commonApi.getQuotationList({
currentPage, currentPage,
pageSize: 18, pageSize: 18,
...@@ -123,15 +122,23 @@ export default { ...@@ -123,15 +122,23 @@ export default {
orderStatus: 3, orderStatus: 3,
goodsName goodsName
}) })
if (data.list.length !== 0) { if (isSwitch) {
this.historyList = data.list
this.isEnd = false
} else {
if (data.list.length > 0) {
this.historyList = this.historyList.concat(data.list) this.historyList = this.historyList.concat(data.list)
this.isEnd = false
} else { } else {
this.isEnd = true this.isEnd = true
} }
}
}, },
tabclick(index) { tabclick(index) {
this.goodsName = this.list[index].value this.goodsName = this.list[index].value
this.getQuotationList() this.currentPage = 1
this.getQuotationList(true)
}, },
// 脱敏 // 脱敏
nameHide(name) { nameHide(name) {
...@@ -186,7 +193,7 @@ export default { ...@@ -186,7 +193,7 @@ export default {
grid-template-columns: repeat(3, 664rpx); grid-template-columns: repeat(3, 664rpx);
justify-content: center; justify-content: center;
grid-gap: 32rpx; grid-gap: 32rpx;
min-height: calc(100vh - 380rpx); min-height: calc(100vh - 368rpx);
.card-item { .card-item {
margin: 16rpx auto; margin: 16rpx auto;
padding: 24rpx 40rpx; padding: 24rpx 40rpx;
...@@ -234,10 +241,9 @@ export default { ...@@ -234,10 +241,9 @@ export default {
margin: 50rpx 0; margin: 50rpx 0;
} }
.no-data { .no-data {
position: absolute; position: absolute;
left: 50%; left: 50%;
top: 50%; top: 30%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
&-img { &-img {
width: 640rpx; width: 640rpx;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!