1.新增授权失败页面

yj-dev
杨杰 3 years ago
parent 3089ef5a5d
commit 7324e19498
  1. 16
      App.vue
  2. 2
      Utils/Request.js
  3. 2
      Utils/bRequest.js
  4. 13
      pages.json
  5. 22
      pages/login/loginInvalid/loginInvalid.vue

@ -5,15 +5,15 @@
// brestUrl: 'http://192.168.3.4:9302/brest', // brestUrl: 'http://192.168.3.4:9302/brest',
// imgUrl: 'https://192.168.3.4:9301/filesystem/', // imgUrl: 'https://192.168.3.4:9301/filesystem/',
// //
// url: 'https://hsg.dctpay.com/crest', url: 'https://hsg.dctpay.com/crest',
// imgUrl: 'https://hsg.dctpay.com/filesystem/', imgUrl: 'https://hsg.dctpay.com/filesystem/',
// brestUrl : 'https://hsg.dctpay.com/brest', brestUrl : 'https://hsg.dctpay.com/brest',
// imageWxImg:'https://hsg.dctpay.com/filesystem/wxApplets/', imageWxImg:'https://hsg.dctpay.com/filesystem/wxApplets/',
// //
url: 'https://hsgcs.dctpay.com/crest', // url: 'https://hsgcs.dctpay.com/crest',
brestUrl : 'https://hsgcs.dctpay.com/brest', // brestUrl : 'https://hsgcs.dctpay.com/brest',
imgUrl: 'https://hsgcs.dctpay.com/filesystem/', // imgUrl: 'https://hsgcs.dctpay.com/filesystem/',
imageWxImg:'https://hsgcs.dctpay.com/filesystem/wxApplets/', // imageWxImg:'https://hsgcs.dctpay.com/filesystem/wxApplets/',
userInfo: "", userInfo: "",
brestUserInfo : '', brestUserInfo : '',
openId: '', openId: '',

@ -13,7 +13,7 @@ function request(method, url, data) {
}, //有的时候这里不一定是 token 还可能是 Authorization }, //有的时候这里不一定是 token 还可能是 Authorization
success(res) { success(res) {
resolve(res) resolve(res)
if(res.statusCode == 401 || res.data.return_code == 102068){ if(res.statusCode === 401 || res.data.return_code == 102014 || res.data.return_code == 104001){
uni.showToast({ uni.showToast({
title:'登录信息过期,请重新授权', title:'登录信息过期,请重新授权',
icon:'none', icon:'none',

@ -13,7 +13,7 @@ function requestbrest(method, url, data) {
}, },
success(res) { success(res) {
resolve(res) resolve(res)
if (res.statusCode == 401 || res.statusCode == 102068) { if (res.statusCode === 401 || res.data.return_code == 102014 || res.data.return_code == 104001) {
uni.showToast({ uni.showToast({
title: '登录信息过期,请重新授权', title: '登录信息过期,请重新授权',
icon: 'none', icon: 'none',

@ -463,6 +463,19 @@
} }
} }
,{
"path" : "pages/login/loginInvalid/loginInvalid",
"style" :
{
"enablePullDownRefresh": false,
"navigationBarTitleText": "",
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#0083f5",
"backgroundColorTop": "#0083f5",
"navigationBarTextStyle": "white"
}
}
], ],
"globalStyle": { "globalStyle": {

@ -0,0 +1,22 @@
<template>
<view>
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
}
}
</script>
<style>
</style>
Loading…
Cancel
Save