[fix]code为0,登录验证码不显示

main
huyuanxiang 2 years ago
parent 8c8d55a4d7
commit 93e94b5a83

@ -42,7 +42,6 @@ export default {
},
methods: {
jumpLink(row) {
console.log(row)
const whiteUrls = [
'pages/views/user/myaddress',
'pages/views/setting/index',

@ -80,7 +80,7 @@ export default {
})
return
}
this.setbImg(); //
// this.setbImg(); //
this.getImgCode()
},
@ -138,7 +138,7 @@ export default {
setbImg() {
clearInterval(this.imgTime);
let that = this;
console.log('执行了');
let imgTime = setInterval(() => {
let imgIndex = that.imgIndex + 1;
if (imgIndex >= that.bgImg.length) {
@ -188,11 +188,12 @@ export default {
// }
// uni.navigateBack(-1)
} else {
uni.hideLoading()
uni.showToast({
title:res.message,
icon: 'none'
})
this.getImgCode()
uni.hideLoading()
uni.showToast({
title:res.message,
icon: 'none'
})
}
}).catch((e) => {

@ -88,7 +88,7 @@
</view>
<view class="rights">
<view class="jiesuan" @click="settlement">({{sum}})</view>
<view class="sum">合计<text style="font-size: 30upx;">{{sumPrice || 0}}</text></view>
<view class="sum">合计<text>{{sumPrice || 0}}</text></view>
</view>
</view>
</block>
@ -683,6 +683,7 @@
height: 100rpx;
width: 100%;
padding: 0 2%;
display: flex;
align-items: center;
justify-content: center;
position: fixed;
@ -694,7 +695,7 @@
}
.bottom_all .left {
float: left;
// float: left;
width: 40vw;
font-size: 24rpx;
position: relative;
@ -752,19 +753,24 @@
}
.bottom_all .rights {
float: right;
// float: right;
width: 56vw;
line-height: 100rpx;
// line-height: 100rpx;
font-size: 24rpx;
display: flex;
flex-direction: column;
align-items: flex-end;
}
.bottom_all .rights view {
float: right;
// float: right;
}
.bottom_all .rights .sum {
font-weight: bold;
margin-right: 20rpx;
// margin-right: 20rpx;
font-size: 20upx;
}
.bottom_all .rights .jiesuan {
@ -775,8 +781,13 @@
line-height: 50rpx;
color: #ffffff;
font-size: 24rpx;
margin-top: 28rpx;
margin-left: 40rpx;
display: flex;
align-items: center;
justify-content: center;
width: 150upx;
// margin-top: 28rpx;
// margin-left: 40rpx;
}

@ -173,7 +173,6 @@ export default {
let oldcolor = this.colors;
let userdata = getUserInfo() || {};
this.userdata = userdata
console.log(this.userdata)
this.getOrderStatus()

@ -34,7 +34,6 @@ async function request(method, params, type = 'GET') {
return new Promise((resolve, reject) => {
uni.request(http).then(res => {
uni.hideLoading()
console.log(res)
let newData = res[1].data; // if (newdata.code == 403) {
if (newData == -1) {
//如果错误码为 -1 提示
@ -43,7 +42,7 @@ async function request(method, params, type = 'GET') {
icon: 'none'
});
}
if (newData.code !== 200) {
if (![200, 0].includes(newData.code)) {
if (newData.code === 401) {
uni.showToast({
title: newData.message,

Loading…
Cancel
Save