|
@@ -20,41 +20,37 @@
|
|
|
<el-tabs type="border-card" @tab-click="handleClick(activeName)" v-model="activeName">
|
|
|
<el-tab-pane name="1">
|
|
|
<span slot="label">技术供求</span>
|
|
|
- <el-col :span="12" class="jishuList" v-for="(item, index) in jishuList" :key="index">
|
|
|
- <el-link :underline="false">
|
|
|
- <el-col :span="24" class="title">
|
|
|
- <span class="textOver">{{ item.name }}</span>
|
|
|
- </el-col>
|
|
|
- <el-col :span="15" class="type">
|
|
|
- <span>技术类型:{{ item.product_type_name }}</span>
|
|
|
- </el-col>
|
|
|
- <el-col :span="9" class="date"
|
|
|
- >日期:{{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}</el-col
|
|
|
- >
|
|
|
- <el-col :span="24" class="yen">价格:¥{{ item.price }}/{{ item.priceunit }}</el-col>
|
|
|
- </el-link>
|
|
|
+ <el-col :span="12" class="jishuList" v-for="(item, index) in jishuList" :key="index" @click.native="detailjishu(item)">
|
|
|
+ <!-- <el-link :underline="false" > -->
|
|
|
+ <el-col :span="24" class="title">
|
|
|
+ <span class="textOver">{{ item.name }}</span>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="15" class="type">
|
|
|
+ <span>技术类型:{{ item.product_type_name }}</span>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="9" class="date">日期:{{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}</el-col>
|
|
|
+ <el-col :span="24" class="yen">价格:¥{{ item.price }}/{{ item.priceunit }}</el-col>
|
|
|
+ <!-- </el-link> -->
|
|
|
</el-col>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane name="2">
|
|
|
<span slot="label">产品供求</span>
|
|
|
- <el-col :span="6" class="chanpinList" v-for="(item, index) in chanpinList" :key="index">
|
|
|
- <el-link :underline="false">
|
|
|
- <el-col :span="24" class="images" v-for="(acc, index) in item.image" :key="index">
|
|
|
- <el-image style="width:220px;height:160px;" :src="acc.url"></el-image>
|
|
|
- </el-col>
|
|
|
- <el-col :span="24" class="title">
|
|
|
- <span class="textOver">{{ item.name }}</span>
|
|
|
- </el-col>
|
|
|
- <el-col :span="14" class="yen"> ¥{{ item.price }}/{{ item.priceunit }}</el-col>
|
|
|
- <el-col :span="10" class="type">
|
|
|
- {{ item.product_type_name }}
|
|
|
- </el-col>
|
|
|
- </el-link>
|
|
|
+ <el-col :span="6" class="chanpinList" v-for="(item, index) in chanpinList" :key="index" @click.native="detail(item)">
|
|
|
+ <el-col :span="24" class="images" v-for="(acc, index) in item.image" :key="index">
|
|
|
+ <el-image style="width:220px;height:160px;" :src="acc.url"></el-image>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="title">
|
|
|
+ <span class="textOver">{{ item.name }}</span>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="14" class="yen"> ¥{{ item.price }}/{{ item.priceunit }}</el-col>
|
|
|
+ <el-col :span="10" class="type">
|
|
|
+ {{ item.product_type_name }}
|
|
|
+ </el-col>
|
|
|
</el-col>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane name="3">
|
|
|
<span slot="label">服务供求</span>
|
|
|
- <el-col :span="24" class="serviceList" v-for="(item, index) in serviceList" :key="index">
|
|
|
+ <el-col :span="24" class="serviceList" v-for="(item, index) in serviceList" :key="index" @click.native="clickdetail(item)">
|
|
|
<el-col :span="10" class="title">
|
|
|
<span class="textOver">{{ item.name }}</span>
|
|
|
</el-col>
|
|
@@ -116,6 +112,22 @@ export default {
|
|
|
this.$router.push({ path: '/supermaket/supermarketlist', query: { totaltype: '2' } });
|
|
|
}
|
|
|
},
|
|
|
+ detailjishu(id) {
|
|
|
+ console.log('ads');
|
|
|
+ console.log(id.id);
|
|
|
+ let newid = id.id;
|
|
|
+ window.location.href = 'http://139.210.167.203/free-technological-management/supermaket/supermarketdetail?totaltype=0&&?&id=' + newid + '';
|
|
|
+ },
|
|
|
+ detail(id) {
|
|
|
+ console.log(id.id);
|
|
|
+ let newid = id.id;
|
|
|
+ window.location.href = ' http://139.210.167.203/free-technological-management/supermaket/supermarketdetail?totaltype=1&&?&id=' + newid + '';
|
|
|
+ },
|
|
|
+ clickdetail(id) {
|
|
|
+ console.log(id.id);
|
|
|
+ let newid = id.id;
|
|
|
+ window.location.href = 'http://139.210.167.203/free-technological-management/supermaket/supermarketdetail?totaltype=2&&?&id=' + newid + '';
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|