绩效考核手机版
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

56 lines
1.1 KiB

let util = () => {
return {
JumpUrlAsync(UrlStr){
console.log(UrlStr)
uni.redirectTo({
url: UrlStr,
success:function(data){
console.log("redirectTo--->",data)
},
fail: errval=>{
uni.navigateTo({
url: UrlStr,
success:function(data){
console.log("navigateTo--->",data)
},
fail: errsunval => {
uni.reLaunch({
url: UrlStr,
fail: err_sun_val => {
console.log(123)
console.log("reLaunch---->",err_sun_val)
}
});
}
});
}
})
},
setSystemCacheData(userKeyVal,tokenVal,userNameVal,myPwdVal,getToUrl) {
console.log('接口返回--缓存设置-1---',userKeyVal,tokenVal);
let _this=this
let tokenTimeVal=new Date().getTime()
uni.setStorage({
key: 'myCache',
data: {
tokenTime:tokenTimeVal,
userKey:userKeyVal,
token:tokenVal,
userName:userNameVal,
myPwd:myPwdVal
},
success: function (data) {
return 1;
},
fail() {
return 2;
}
});
}
}
}
// 抛出当前模块
export default util