补正
This commit is contained in:
parent
0352507b0e
commit
fd610d1bc7
@ -2,7 +2,7 @@
|
||||
module.exports = {
|
||||
// baseUrl: 'https://www.nuoyunr.com/admin-api',
|
||||
// baseUrl: 'http://127.0.0.1:48080/admin-api',
|
||||
baseUrl: 'http://wcw8ax.natappfree.cc/admin-api',
|
||||
baseUrl: 'http://9ahrr4.natappfree.cc/admin-api',
|
||||
imagesUrl: 'http://www.nuoyunr.com/lananRsc',
|
||||
baseImageUrl: 'https://www.nuoyunr.com/minio',
|
||||
wsUrl: 'ws://127.0.0.1:48080',
|
||||
|
@ -26,7 +26,7 @@
|
||||
<view class="table-cell">是否支付</view>
|
||||
<view class="table-cell">支付方式</view>
|
||||
</view>
|
||||
<view v-for="(item, index) in tableData" :key="index" class="table-row">
|
||||
<view v-for="(item, index) in tableData" :key="index" class="table-row" @click="handleShow(item.id)">
|
||||
<view class="table-cell">{{ index + 1 }}</view>
|
||||
<view class="table-cell">{{ item.carNum }}</view>
|
||||
<view class="table-cell">{{ item.type }}</view>
|
||||
@ -58,6 +58,7 @@ export default {
|
||||
},
|
||||
loading: false, // 加载更多时的标志位
|
||||
payTypes: [],
|
||||
pages: 0,
|
||||
};
|
||||
},
|
||||
onReady() {
|
||||
@ -69,12 +70,17 @@ export default {
|
||||
this.resetOrientation();
|
||||
},
|
||||
onReachBottom() { // 当用户滚动到底部时触发
|
||||
if (!this.loading) {
|
||||
if (!this.loading && this.queryParams.pageNum < this.pages) {
|
||||
this.queryParams.pageNum += 1;
|
||||
this.getTableData(true);
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleShow(id){
|
||||
uni.navigateTo({
|
||||
url: "/pages/index/orderdetails?inspectionInfoId=" + id
|
||||
})
|
||||
},
|
||||
maskClick(){
|
||||
this.handleReset()
|
||||
},
|
||||
@ -117,6 +123,7 @@ export default {
|
||||
method: 'get',
|
||||
params: this.queryParams
|
||||
}).then(res => {
|
||||
this.pages = res.data.pages
|
||||
const newData = res.data.records || [];
|
||||
if (isLoadMore) {
|
||||
this.tableData = this.tableData.concat(newData); // 合并新旧数据
|
||||
|
Loading…
Reference in New Issue
Block a user