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

bug fix

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