|
@@ -2,7 +2,7 @@
|
|
|
<view class="content">
|
|
<view class="content">
|
|
|
<view class="order-body">
|
|
<view class="order-body">
|
|
|
<view class="empty-body" v-if="loginState">
|
|
<view class="empty-body" v-if="loginState">
|
|
|
- <view class="img">
|
|
|
|
|
|
|
+ <view class="imgs">
|
|
|
<image src="/static/image/empty.png" mode="widthFix"></image>
|
|
<image src="/static/image/empty.png" mode="widthFix"></image>
|
|
|
<view class="tip">请先登录</view>
|
|
<view class="tip">请先登录</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -53,7 +53,7 @@ export default {
|
|
|
if (token) {
|
|
if (token) {
|
|
|
this.loginState = false;
|
|
this.loginState = false;
|
|
|
}
|
|
}
|
|
|
- this.queryList(1,10)
|
|
|
|
|
|
|
+ this.queryList(1,100)
|
|
|
},
|
|
},
|
|
|
onLoad() {
|
|
onLoad() {
|
|
|
app = this;
|
|
app = this;
|
|
@@ -82,7 +82,7 @@ export default {
|
|
|
if (res.code !== 1) {
|
|
if (res.code !== 1) {
|
|
|
return app.$dialog.showSuccess(res.msg);
|
|
return app.$dialog.showSuccess(res.msg);
|
|
|
}
|
|
}
|
|
|
- app.dataList = app.dataList.concat(res.data.rows);
|
|
|
|
|
|
|
+ app.dataList = res.data.rows;
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -91,9 +91,9 @@ export default {
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
.empty-body{display: flex;align-items: center;justify-content: center;flex-direction: column;height: 100vh;}
|
|
.empty-body{display: flex;align-items: center;justify-content: center;flex-direction: column;height: 100vh;}
|
|
|
-.empty-body .img{text-align: center;font-size: 28upx;color: #666;}
|
|
|
|
|
-.empty-body .img image{height: 160upx;width: 160upx;}
|
|
|
|
|
-.empty-body .img .tip{margin-top: 20upx;}
|
|
|
|
|
|
|
+.empty-body .imgs{text-align: center;font-size: 28upx;color: #666;}
|
|
|
|
|
+.empty-body .imgs image{height: 160upx;width: 160upx;}
|
|
|
|
|
+.empty-body .imgs .tip{margin-top: 20upx;}
|
|
|
.empty-body .re-btn{width: 180upx;height: 80upx;line-height: 80upx;text-align: center;font-size: 28upx;color: #fff;background-color: #007aff;border-radius: 10upx;margin-top: 60upx;}
|
|
.empty-body .re-btn{width: 180upx;height: 80upx;line-height: 80upx;text-align: center;font-size: 28upx;color: #fff;background-color: #007aff;border-radius: 10upx;margin-top: 60upx;}
|
|
|
.page {
|
|
.page {
|
|
|
padding: 0 32rpx;
|
|
padding: 0 32rpx;
|