Commit 613dabbf by chenyu

update: update

parent 63439086
...@@ -71,6 +71,7 @@ export default { ...@@ -71,6 +71,7 @@ export default {
.then(res => { .then(res => {
let resData = res.data; let resData = res.data;
if (resData.errorCode == 1) { if (resData.errorCode == 1) {
if(resData.result===null)that.$router.push('/leaflets');
that.dueData=Object.assign({},that.dueData,resData.result) that.dueData=Object.assign({},that.dueData,resData.result)
return false; return false;
} }
...@@ -104,37 +105,10 @@ export default { ...@@ -104,37 +105,10 @@ export default {
message: error.message message: error.message
}); });
}); });
},
/**
* 是否可以创建活动
*/
judgePay() {
const that = this;
let para = {};
getRequest('/sharing-core-web/get-open-enterprise', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.result) {
return false;
}else {
that.$router.push('/leaflets');
}
return false;
}
errMsg.errorMsg(resData);
})
.catch(function(error) {
that.$message.error({
duration: 1000,
message: error.message
});
});
} }
}, },
beforeMount() { beforeMount() {
const that = this; const that = this;
that.judgePay();
that.judgeDue(); that.judgeDue();
}, },
mounted() { mounted() {
......
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