Commit d46fd705 authored by 王建威's avatar 王建威

bug fix

parent b1c18727
......@@ -21,7 +21,7 @@
{
"path": "pages/web/web",
"style": {
"navigationBarTitleText": "白条专区-谛宝多多商城"
"navigationBarTitleText": "谛宝多多商城"
}
},
{
......
......@@ -81,12 +81,14 @@
title: '社会统一信用代码',
submitFlag: true,
month_rule_id: '', // 从连续包月跳转过来
is_deposit: '' // 从连续包月跳转过来
is_deposit: '' ,// 从连续包月跳转过来
auth_id: ''
}
},
onLoad(options) {
this.month_rule_id = options.month_rule_id;
this.is_deposit = options.is_deposit;
this.month_rule_id = options.month_rule_id || '';
this.is_deposit = options.is_deposit || '';
this.auth_id = options.auth_id || '';
},
methods: {
changeEnterpriseType(type) {
......@@ -171,15 +173,24 @@
});
return
}
let url = '',
method = '';
if(this.auth_id) {
url = `/uni/api/certification/EditRealnameAuth/${this.auth_id}`;
method = 'PUT'
} else {
url = '/uni/api/certification/AddRealnameAuth';
method = 'POST';
}
this.submitFlag = false;
uni.showToast({
title: '提交中',
icon: 'none'
})
});
uni.request({
url: '/uni/api/certification/AddRealnameAuth',
url: url,
data: this.params,
method: 'POST',
method: method,
success: (res) => {
this.submitFlag = true;
if(res.data.code === 0) {
......
......@@ -97,7 +97,8 @@
apply_status_name: ''
}],
rotate: [],
rotateKey: -1
rotateKey: -1,
auth_id: ''
}
},
onLoad() {
......
......@@ -245,6 +245,12 @@
uni.navigateTo({
url: `/pages/web/web?contract_url=${res.data.data.viewUrl}`
});
} else {
uni.hideLoading();
uni.showToast({
title: '校验信息已过期,请重新校验',
icon: 'none'
});
}
}
})
......
......@@ -72,7 +72,7 @@
}
}
.content_view {
padding: 130rpx 40rpx 24rpx;
padding: 130rpx 40rpx 134rpx;
.content_title {
margin-bottom: 20rpx;
font-size: 32rpx;
......
......@@ -83,7 +83,8 @@
depositKey: '1', // 1交押金 0不交押金
month_rule_id: '',
auth_status: '', // 是否四要素
overdate: ''
overdate: '',
auth_id: ''
}
},
onLoad() {
......@@ -100,7 +101,17 @@
this.overdate = moment().add(month,'M').format('YYYY.MM.DD');
}
}
})
});
uni.request({
url: '/uni/api/certification/GetRealnameAuth',
method: 'GET',
dataType: 'json',
success: (res) => {
if(res.data.code === 0) {
this.auth_id = res.data.data.auth_id;
}
}
});
},
methods: {
closeTips() {
......@@ -166,10 +177,20 @@
}
} else {
uni.hideToast();
uni.showToast({
title: res.data.message,
icon: 'none'
})
if(res.data.message.indexOf('未进行授权') !== -1) {
uni.showToast({
title: '校验信息已过期,请重新校验',
icon: 'none'
});
setTimeout(() => {
this.$jump(`/pages/certification/certification?month_rule_id=${this.month_rule_id}&is_deposit=${this.depositKey}&auth_id=${this.auth_id}`,2)
}, 2000);
} else {
uni.showToast({
title: res.data.data.message,
icon: 'none'
});
}
}
}
})
......@@ -192,6 +213,22 @@
uni.navigateTo({
url: `/pages/web/web?contract_url=${res.data.data.viewUrl}`
});
} else {
uni.hideLoading();
if(res.data.message.indexOf('未进行授权') !== -1) {
uni.showToast({
title: '校验信息已过期,请重新校验',
icon: 'none'
});
setTimeout(() => {
this.$jump(`/pages/certification/certification?month_rule_id=${this.month_rule_id}&is_deposit=${this.depositKey}&auth_id=${this.auth_id}`,2)
}, 2000);
} else {
uni.showToast({
title: res.data.data.message,
icon: 'none'
});
}
}
}
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment