页面优化
This commit is contained in:
parent
a8661351ae
commit
b905fa7c29
@ -2,14 +2,14 @@ let httpApiThree;
|
|||||||
let httpApi;
|
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://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://preview-worker-task.lihaink.cn' //预上线
|
||||||
httpApiThree = 'https://worker-task.lihaink.cn' //正式
|
// httpApiThree = 'https://worker-task.lihaink.cn' //正式
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
// httpApiThree = 'baseUrlTest' //生产
|
// httpApiThree = 'baseUrlTest' //生产
|
||||||
// #endif
|
// #endif
|
||||||
|
@ -59,7 +59,6 @@
|
|||||||
<view class="car_info" v-if="dataList.type==0">
|
<view class="car_info" v-if="dataList.type==0">
|
||||||
<view class="car_type">
|
<view class="car_type">
|
||||||
<text v-if="true">租赁车辆</text>
|
<text v-if="true">租赁车辆</text>
|
||||||
<text v-else>自有车辆</text>
|
|
||||||
</view>
|
</view>
|
||||||
<view class="car_li" v-for="item,index in carList">
|
<view class="car_li" v-for="item,index in carList">
|
||||||
车牌号:{{item.car_license}}
|
车牌号:{{item.car_license}}
|
||||||
@ -142,6 +141,9 @@
|
|||||||
title="请输入驳回理由">
|
title="请输入驳回理由">
|
||||||
<view class="slot-content">
|
<view class="slot-content">
|
||||||
<u--textarea v-model="overruleValue" placeholder="请输入内容" class="textarea_cls"></u--textarea>
|
<u--textarea v-model="overruleValue" placeholder="请输入内容" class="textarea_cls"></u--textarea>
|
||||||
|
<view style="color: red;font-size: 20rpx;" v-show="noValue">
|
||||||
|
驳回理由不能为空
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</u-modal>
|
</u-modal>
|
||||||
</view>
|
</view>
|
||||||
@ -165,6 +167,7 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
noValue: false,
|
||||||
flag1: true,
|
flag1: true,
|
||||||
times: 0,
|
times: 0,
|
||||||
dataList: {},
|
dataList: {},
|
||||||
@ -233,16 +236,23 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
confirm() {
|
confirm() {
|
||||||
|
if (!this.overruleValue) {
|
||||||
|
this.noValue = true
|
||||||
|
return
|
||||||
|
}
|
||||||
// console.log(this.overruleValue)
|
// console.log(this.overruleValue)
|
||||||
overruleApi({
|
overruleApi({
|
||||||
id: this.dataList.id,
|
id: this.dataList.id,
|
||||||
content: this.overruleValue,
|
content: this.overruleValue,
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.showPop = false
|
this.showPop = false
|
||||||
|
this.noValue = false
|
||||||
Toast("操作成功")
|
Toast("操作成功")
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
uni.navigateBack()
|
uni.redirectTo({
|
||||||
}, 2000)
|
url: "/subpkg/property/index"
|
||||||
|
})
|
||||||
|
}, 1000)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
timer() {
|
timer() {
|
||||||
@ -262,7 +272,7 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
contractFn() {
|
contractFn() {
|
||||||
console.log(this.checked)
|
// console.log(this.checked)
|
||||||
contractApi({
|
contractApi({
|
||||||
id: this.dataList.id,
|
id: this.dataList.id,
|
||||||
car_id: this.checked[0]?.car_id ? this.checked[0].car_id : ""
|
car_id: this.checked[0]?.car_id ? this.checked[0].car_id : ""
|
||||||
@ -274,7 +284,7 @@
|
|||||||
// sendcontractFn() {
|
// sendcontractFn() {
|
||||||
|
|
||||||
// // this.sendFn()
|
// // this.sendFn()
|
||||||
// Toast("操作成功")
|
// Toast("操作成功")
|
||||||
// this.times = 10
|
// this.times = 10
|
||||||
// this.timer()
|
// this.timer()
|
||||||
|
|
||||||
|
@ -21,12 +21,10 @@
|
|||||||
uni.redirectTo({
|
uni.redirectTo({
|
||||||
url: '/subpkg/property/index'
|
url: '/subpkg/property/index'
|
||||||
})
|
})
|
||||||
}, 3000)
|
}, 2000)
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.box {
|
.box {
|
||||||
|
|
||||||
|
@ -21,8 +21,8 @@ function baseRequestTwo(url, method, data, {
|
|||||||
noAuth = false,
|
noAuth = false,
|
||||||
noVerify = false
|
noVerify = false
|
||||||
}) {
|
}) {
|
||||||
let Url = "https://logistics.lihaink.cn", //正式环境
|
// let Url = "https://logistics.lihaink.cn", //正式环境
|
||||||
// let Url = "https://ceshi-logistics.lihaink.cn", //测试环境
|
let Url = "https://ceshi-logistics.lihaink.cn", //测试环境
|
||||||
header = HEADER;
|
header = HEADER;
|
||||||
if (!noAuth) {
|
if (!noAuth) {
|
||||||
// 已经未登录了,禁止请求
|
// 已经未登录了,禁止请求
|
||||||
|
Loading…
x
Reference in New Issue
Block a user