|
@@ -118,7 +118,6 @@ export default {
|
|
|
created() {
|
|
|
this.searchList();
|
|
|
this.search();
|
|
|
- console.log(this.$route.query.display);
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState(['user']),
|
|
@@ -161,8 +160,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async changeMenu(name, index) {
|
|
|
- console.log(index, name);
|
|
|
-
|
|
|
this.menuIndex = index;
|
|
|
this.menuColor = 'rgb(254, 149, 14)';
|
|
|
this.menuName = name;
|
|
@@ -174,19 +171,14 @@ export default {
|
|
|
this.pageSize = 5;
|
|
|
if (name == '科技产品') {
|
|
|
let totaltype = '1';
|
|
|
- console.log(totaltype);
|
|
|
-
|
|
|
res = await this.list({ skip, limit, totaltype, status: 1, ...info });
|
|
|
-
|
|
|
this.$set(this, `zhuantiList`, res.data);
|
|
|
} else if (name == '技术供求') {
|
|
|
let totaltype = '0';
|
|
|
- console.log(totaltype);
|
|
|
res = await this.list({ skip, limit, totaltype, status: 1, ...info });
|
|
|
this.$set(this, `jishuList`, res.data);
|
|
|
} else if (name == '服务供求') {
|
|
|
let totaltype = '2';
|
|
|
- console.log(totaltype);
|
|
|
res = await this.list({ skip, limit, totaltype, status: 1, ...info });
|
|
|
this.$set(this, `hangyeList`, res.data);
|
|
|
} else if (name == '专家供求') {
|
|
@@ -205,28 +197,20 @@ export default {
|
|
|
},
|
|
|
async clickshanpin(id) {
|
|
|
this.display = '2';
|
|
|
- console.log(id);
|
|
|
const res = await this.newfetch(id);
|
|
|
- console.log(res.data);
|
|
|
this.$set(this, `detailInfo`, res.data);
|
|
|
},
|
|
|
|
|
|
async clickjishu(id) {
|
|
|
this.display = '2';
|
|
|
- console.log(id);
|
|
|
const res = await this.newfetch(id);
|
|
|
- console.log(res.data);
|
|
|
this.$set(this, `detailInfo`, res.data);
|
|
|
},
|
|
|
|
|
|
async search() {
|
|
|
this.display = this.$route.query.display;
|
|
|
- console.log(this.display);
|
|
|
-
|
|
|
if (this.display == '2') {
|
|
|
- console.log(this.id);
|
|
|
const res = await this.newfetch(this.id);
|
|
|
- console.log(res.data);
|
|
|
this.$set(this, `detailInfo`, res.data);
|
|
|
}
|
|
|
// else if (this.dispaly == '1') {
|
|
@@ -236,26 +220,19 @@ export default {
|
|
|
// }
|
|
|
else if (this.dispaly == '3') {
|
|
|
const res = await this.fetch(this.id);
|
|
|
- console.log(res.data);
|
|
|
this.$set(this, `zhuanjiainfo`, res.data);
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
async clickfuwu(id) {
|
|
|
this.display = '2';
|
|
|
- console.log(id);
|
|
|
const res = await this.newfetch(id);
|
|
|
- console.log(res.data);
|
|
|
this.$set(this, `detailInfo`, res.data);
|
|
|
},
|
|
|
-
|
|
|
async clickzhuanjia(id) {
|
|
|
this.display = '3';
|
|
|
const res = await this.fetch(id);
|
|
|
- console.log(res.data);
|
|
|
this.$set(this, `zhuanjiainfo`, res.data);
|
|
|
},
|
|
|
-
|
|
|
fabu() {
|
|
|
if (this.user.role == '2' || this.user.role == '3') {
|
|
|
this.$router.push({ path: '/market/marketfabu' });
|
|
@@ -266,7 +243,6 @@ export default {
|
|
|
},
|
|
|
|
|
|
async zjsubmit() {
|
|
|
- console.log(this.zhuanjiainfo);
|
|
|
let form = {};
|
|
|
form.userid = this.user.uid;
|
|
|
form.username = this.user.name;
|