|
|
@ -15,32 +15,32 @@ |
|
|
uni.showLoading({ |
|
|
uni.showLoading({ |
|
|
title: '加载中...' |
|
|
title: '加载中...' |
|
|
}) |
|
|
}) |
|
|
if(uni.getStorageSync('noReload')){ |
|
|
// if(uni.getStorageSync('noReload')){ |
|
|
uni.removeStorageSync('noReload') |
|
|
// uni.removeStorageSync('noReload') |
|
|
} |
|
|
// } |
|
|
if (uni.getStorageSync('hiver_token')) { |
|
|
// if (uni.getStorageSync('hiver_token')) { |
|
|
if (uni.getStorageSync('wayValue') == 1) { |
|
|
// if (uni.getStorageSync('wayValue') == 1) { |
|
|
uni.reLaunch({ |
|
|
// uni.reLaunch({ |
|
|
url: '/package2/other/newLogisticsIndex' |
|
|
// url: '/package2/other/newLogisticsIndex' |
|
|
}) |
|
|
// }) |
|
|
} else if (uni.getStorageSync('wayValue') == 0) { |
|
|
// } else if (uni.getStorageSync('wayValue') == 0) { |
|
|
uni.reLaunch({ |
|
|
uni.reLaunch({ |
|
|
url: '/pages/index/index' |
|
|
url: '/pages/index/index' |
|
|
}) |
|
|
}) |
|
|
} else if (uni.getStorageSync('wayValue') == 2) { |
|
|
// } else if (uni.getStorageSync('wayValue') == 2) { |
|
|
uni.reLaunch({ |
|
|
// uni.reLaunch({ |
|
|
url: '/package1/other/custom' |
|
|
// url: '/package1/other/custom' |
|
|
}) |
|
|
// }) |
|
|
} |
|
|
// } |
|
|
} else if(option.khid){ |
|
|
// } else if(option.khid){ |
|
|
uni.reLaunch({ |
|
|
// uni.reLaunch({ |
|
|
url: '/package1/index/downStearmList?khid='+option.khid |
|
|
// url: '/package1/index/downStearmList?khid='+option.khid |
|
|
}) |
|
|
// }) |
|
|
}else { |
|
|
// }else { |
|
|
uni.reLaunch({ |
|
|
// uni.reLaunch({ |
|
|
url: '/package2/login/login' |
|
|
// url: '/package2/login/login' |
|
|
}) |
|
|
// }) |
|
|
} |
|
|
// } |
|
|
uni.hideLoading(); |
|
|
uni.hideLoading(); |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|