From b905fa7c2925d9960c6f7696f34efc5132b74359 Mon Sep 17 00:00:00 2001 From: THK3121 Date: Wed, 6 Sep 2023 14:18:52 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/app.js | 8 ++++---- subpkg/property/chosseCompany.vue | 20 +++++++++++++++----- subpkg/property/success.vue | 4 +--- utils/logistics.js | 4 ++-- 4 files changed, 22 insertions(+), 14 deletions(-) diff --git a/config/app.js b/config/app.js index 7b60c06..18a6061 100644 --- a/config/app.js +++ b/config/app.js @@ -2,14 +2,14 @@ let httpApiThree; let httpApi; // 正式使用的域名 -// httpApi = 'https://ceshi-worker-task.lihaink.cn' //测试 +httpApi = 'https://ceshi-worker-task.lihaink.cn' //测试 // httpApi = 'https://preview-worker-task.lihaink.cn' //预上线 -httpApi = 'https://worker-task.lihaink.cn' //正式 +// httpApi = 'https://worker-task.lihaink.cn' //正式 -// httpApiThree = 'https://ceshi-worker-task.lihaink.cn' //测试 +httpApiThree = 'https://ceshi-worker-task.lihaink.cn' //测试 // httpApiThree = 'https://preview-worker-task.lihaink.cn' //预上线 -httpApiThree = 'https://worker-task.lihaink.cn' //正式 +// httpApiThree = 'https://worker-task.lihaink.cn' //正式 // #ifdef H5 // httpApiThree = 'baseUrlTest' //生产 // #endif diff --git a/subpkg/property/chosseCompany.vue b/subpkg/property/chosseCompany.vue index 9dbb008..c0a70ca 100644 --- a/subpkg/property/chosseCompany.vue +++ b/subpkg/property/chosseCompany.vue @@ -59,7 +59,6 @@ 租赁车辆 - 自有车辆 车牌号:{{item.car_license}} @@ -142,6 +141,9 @@ title="请输入驳回理由"> + + 驳回理由不能为空 + @@ -165,6 +167,7 @@ export default { data() { return { + noValue: false, flag1: true, times: 0, dataList: {}, @@ -233,16 +236,23 @@ } }, confirm() { + if (!this.overruleValue) { + this.noValue = true + return + } // console.log(this.overruleValue) overruleApi({ id: this.dataList.id, content: this.overruleValue, }).then(res => { this.showPop = false + this.noValue = false Toast("操作成功") setTimeout(() => { - uni.navigateBack() - }, 2000) + uni.redirectTo({ + url: "/subpkg/property/index" + }) + }, 1000) }) }, timer() { @@ -262,7 +272,7 @@ }, contractFn() { - console.log(this.checked) + // console.log(this.checked) contractApi({ id: this.dataList.id, car_id: this.checked[0]?.car_id ? this.checked[0].car_id : "" @@ -274,7 +284,7 @@ // sendcontractFn() { // // this.sendFn() - // Toast("操作成功") + // Toast("操作成功") // this.times = 10 // this.timer() diff --git a/subpkg/property/success.vue b/subpkg/property/success.vue index e99f81c..a634f19 100644 --- a/subpkg/property/success.vue +++ b/subpkg/property/success.vue @@ -21,12 +21,10 @@ uni.redirectTo({ url: '/subpkg/property/index' }) - }, 3000) - + }, 2000) } } -