This commit is contained in:
xiaofajia 2024-12-13 11:08:01 +08:00
parent 0352507b0e
commit fd610d1bc7
2 changed files with 10 additions and 3 deletions

View File

@ -2,7 +2,7 @@
module.exports = { module.exports = {
// baseUrl: 'https://www.nuoyunr.com/admin-api', // baseUrl: 'https://www.nuoyunr.com/admin-api',
// baseUrl: 'http://127.0.0.1:48080/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', imagesUrl: 'http://www.nuoyunr.com/lananRsc',
baseImageUrl: 'https://www.nuoyunr.com/minio', baseImageUrl: 'https://www.nuoyunr.com/minio',
wsUrl: 'ws://127.0.0.1:48080', wsUrl: 'ws://127.0.0.1:48080',

View File

@ -26,7 +26,7 @@
<view class="table-cell">是否支付</view> <view class="table-cell">是否支付</view>
<view class="table-cell">支付方式</view> <view class="table-cell">支付方式</view>
</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">{{ index + 1 }}</view>
<view class="table-cell">{{ item.carNum }}</view> <view class="table-cell">{{ item.carNum }}</view>
<view class="table-cell">{{ item.type }}</view> <view class="table-cell">{{ item.type }}</view>
@ -58,6 +58,7 @@ export default {
}, },
loading: false, // loading: false, //
payTypes: [], payTypes: [],
pages: 0,
}; };
}, },
onReady() { onReady() {
@ -69,12 +70,17 @@ export default {
this.resetOrientation(); this.resetOrientation();
}, },
onReachBottom() { // onReachBottom() { //
if (!this.loading) { if (!this.loading && this.queryParams.pageNum < this.pages) {
this.queryParams.pageNum += 1; this.queryParams.pageNum += 1;
this.getTableData(true); this.getTableData(true);
} }
}, },
methods: { methods: {
handleShow(id){
uni.navigateTo({
url: "/pages/index/orderdetails?inspectionInfoId=" + id
})
},
maskClick(){ maskClick(){
this.handleReset() this.handleReset()
}, },
@ -117,6 +123,7 @@ export default {
method: 'get', method: 'get',
params: this.queryParams params: this.queryParams
}).then(res => { }).then(res => {
this.pages = res.data.pages
const newData = res.data.records || []; const newData = res.data.records || [];
if (isLoadMore) { if (isLoadMore) {
this.tableData = this.tableData.concat(newData); // this.tableData = this.tableData.concat(newData); //