| | |
| | | if(args){ |
| | | // 处理args参数,如直达到某新页面等 |
| | | console.log('args', args) |
| | | if(args.indexOf('lzzzsc-app') >= 0) { |
| | | args = args.replace("lzzzsc-app://", "/") |
| | | if(args.indexOf('gyq-app') >= 0) { |
| | | args = args.replace("gyq-app://", "/") |
| | | return uni.redirectTo({ |
| | | url: args |
| | | }) |
| | |
| | | console.log('getConfig', res.data) |
| | | if(res.code == 1){ |
| | | try { |
| | | const token = uni.getStorageSync('lzsc-token'); |
| | | const token = uni.getStorageSync('pig-token'); |
| | | if (!token) { |
| | | /* |
| | | uni.redirectTo({ |
| | |
| | | url: '/pages/login/login' |
| | | }) |
| | | return false |
| | | |
| | | |
| | | } |
| | | uni.setStorageSync('Config', JSON.stringify(res.data)) |
| | | |
| | | |
| | | // #ifdef APP-PLUS |
| | | //机型 |
| | | let platform = uni.getSystemInfoSync().platform.toLocaleLowerCase() |
| | |
| | | updesc = res.data.android.desc |
| | | } |
| | | if (downUrl && updateFlag) { |
| | | uni.showModal({ |
| | | showCancel: false, |
| | | confirmText: '立即更新', |
| | | title: '温馨提示!', |
| | | content: updesc || '有最新版本,请更新APP!', |
| | | success: res => { |
| | | if (res.confirm) { |
| | | plus.runtime.openURL(downUrl) |
| | | } |
| | | } |
| | | }) |
| | | // uni.showModal({ |
| | | // showCancel: false, |
| | | // confirmText: '立即更新', |
| | | // title: '温馨提示!', |
| | | // content: updesc || '有最新版本,请更新APP!', |
| | | // success: res => { |
| | | // if (res.confirm) { |
| | | // plus.runtime.openURL(downUrl) |
| | | // } |
| | | // } |
| | | // }) |
| | | } |
| | | }) |
| | | // #endif |
| | |
| | | .noDataBtn{ |
| | | width: 240upx !important; |
| | | margin: 50upx auto; |
| | | background-color: #ff7945; |
| | | background-color: #37AA25; |
| | | color: #ffffff !important; |
| | | letter-spacing: 10upx; |
| | | height: 70upx; |
| | |
| | | border-radius: 50upx; |
| | | } |
| | | </style> |
| | | <style lang="scss"> |
| | | @import '@/uni_modules/uv-ui-tools/index.scss'; |
| | | </style> |