master
parent
1df03872a0
commit
cdd36d31b1
|
@ -17,11 +17,19 @@
|
||||||
methods: {
|
methods: {
|
||||||
// 检测是否是微信端
|
// 检测是否是微信端
|
||||||
checkContext(){
|
checkContext(){
|
||||||
|
if(uni.getStorageSync('token')) {
|
||||||
|
setTimeout(()=>{
|
||||||
|
uni.reLaunch({
|
||||||
|
url:'/pages/tabbar/pagehome/pagehome'
|
||||||
|
})
|
||||||
|
},3000)
|
||||||
|
} else {
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url:'/pages/login/login'
|
url:'/pages/login/login'
|
||||||
})
|
})
|
||||||
},3000)
|
},3000)
|
||||||
|
}
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
// if(uni.getSystemInfoSync().platform != "devtools"){//devtools:开发版 值域为:ios、android、mac(3.1.10+)、windows(3.1.10+)、linux(3.1.10+)
|
// if(uni.getSystemInfoSync().platform != "devtools"){//devtools:开发版 值域为:ios、android、mac(3.1.10+)、windows(3.1.10+)、linux(3.1.10+)
|
||||||
// console.log = () =>{}
|
// console.log = () =>{}
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue