|
@@ -601,39 +601,58 @@ export default {
|
|
|
},
|
|
|
// 科技成果提交
|
|
|
async achieveBtn() {
|
|
|
- let data = this.achieveForm;
|
|
|
- data.userid = this.user.uid;
|
|
|
- data.type = '1';
|
|
|
- data.status = '0';
|
|
|
- data.patent = this.diapatentList;
|
|
|
- let res = await this.productCreate(data);
|
|
|
- if (this.$checkRes(res)) {
|
|
|
+ if (this.user.uid) {
|
|
|
+ let data = this.achieveForm;
|
|
|
+ data.userid = this.user.uid;
|
|
|
+ data.type = '1';
|
|
|
+ data.status = '0';
|
|
|
+ data.patent = this.diapatentList;
|
|
|
+ let res = await this.productCreate(data);
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$message({
|
|
|
+ message: '信息发布成功',
|
|
|
+ type: 'success',
|
|
|
+ });
|
|
|
+ window.location.reload();
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ message: '信息发布失败',
|
|
|
+ type: 'success',
|
|
|
+ });
|
|
|
+ }
|
|
|
+ } else {
|
|
|
this.$message({
|
|
|
- message: '信息发布成功',
|
|
|
- type: 'success',
|
|
|
+ dangerouslyUseHTMLString: true,
|
|
|
+ message: '<strong><a href="http://free.liaoningdoupo.com/platlive/webLogin" style="color:red;">游客身份无法与卖家对话,请先注册</a></strong>',
|
|
|
+ type: 'error',
|
|
|
});
|
|
|
- window.location.reload();
|
|
|
- } else {
|
|
|
- this.$message.error('信息发布失败');
|
|
|
}
|
|
|
},
|
|
|
// 技术需求提交
|
|
|
async technologyBtn() {
|
|
|
- const data = this.technologyForm;
|
|
|
- data.userid = this.user.uid;
|
|
|
- data.type = '0';
|
|
|
- data.status = '0';
|
|
|
- let res = await this.productCreate(data);
|
|
|
- if (this.$checkRes(res)) {
|
|
|
- this.$message({
|
|
|
- message: '信息发布成功',
|
|
|
- type: 'success',
|
|
|
- });
|
|
|
- window.location.reload();
|
|
|
+ if (this.user.uid) {
|
|
|
+ const data = this.technologyForm;
|
|
|
+ data.userid = this.user.uid;
|
|
|
+ data.type = '0';
|
|
|
+ data.status = '0';
|
|
|
+ let res = await this.productCreate(data);
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$message({
|
|
|
+ message: '信息发布成功',
|
|
|
+ type: 'success',
|
|
|
+ });
|
|
|
+ window.location.reload();
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ message: '信息发布失败',
|
|
|
+ type: 'success',
|
|
|
+ });
|
|
|
+ }
|
|
|
} else {
|
|
|
this.$message({
|
|
|
- message: '信息发布失败',
|
|
|
- type: 'success',
|
|
|
+ dangerouslyUseHTMLString: true,
|
|
|
+ message: '<strong><a href="http://free.liaoningdoupo.com/platlive/webLogin" style="color:red;">游客身份无法与卖家对话,请先注册</a></strong>',
|
|
|
+ type: 'error',
|
|
|
});
|
|
|
}
|
|
|
},
|