master
chen 2022-04-29 19:00:02 +08:00
parent 1df03872a0
commit cdd36d31b1
2 changed files with 15 additions and 6 deletions

View File

@ -17,11 +17,19 @@
methods: { methods: {
// //
checkContext(){ checkContext(){
setTimeout(()=>{ if(uni.getStorageSync('token')) {
uni.reLaunch({ setTimeout(()=>{
url:'/pages/login/login' uni.reLaunch({
}) url:'/pages/tabbar/pagehome/pagehome'
},3000) })
},3000)
} else {
setTimeout(()=>{
uni.reLaunch({
url:'/pages/login/login'
})
},3000)
}
// #ifdef APP-PLUS // #ifdef APP-PLUS
// if(uni.getSystemInfoSync().platform != "devtools"){//devtools iosandroidmac3.1.10+windows3.1.10+linux3.1.10+ // if(uni.getSystemInfoSync().platform != "devtools"){//devtools iosandroidmac3.1.10+windows3.1.10+linux3.1.10+
// console.log = () =>{} // console.log = () =>{}

View File

@ -130,7 +130,8 @@
this.$requst.get('/universal/api.order/order_type').then(res => { this.$requst.get('/universal/api.order/order_type').then(res => {
// this.$toolAll.tools.showToast(res.msg); // this.$toolAll.tools.showToast(res.msg);
if (res.code) { if (res.code) {
this.array=[...res.data] this.array=[...res.data];
if(this.statusId){ if(this.statusId){
this.workeOrderStatusIndex = this.array.findIndex(item=>item.id==this.statusId); this.workeOrderStatusIndex = this.array.findIndex(item=>item.id==this.statusId);
if(this.workeOrderStatusIndex!=-1) { if(this.workeOrderStatusIndex!=-1) {