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 = {
// 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',

View File

@ -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); //