修改自定义页面

master
夜笙歌 4 months ago
parent b18e893c8e
commit 551d75a216

@ -106,8 +106,10 @@ export default {
this.$router.push('/industrySolutions') this.$router.push('/industrySolutions')
} else if (id === 1) { } else if (id === 1) {
this.$router.push('/index') this.$router.push('/index')
} else if (e.ancestors.includes("2")) { } else if (e.ancestors.split(',').includes("2")) {
this.$router.push('/contactUs#item' + id) this.$router.push('/contactUs#item' + id)
} else if (e.ancestors.split(',').includes("7")) {
this.$router.push('/productCenter#item' + id)
}else{ }else{
this.$router.push('/test?id=' + id) this.$router.push('/test?id=' + id)
} }

@ -31,7 +31,10 @@ export default new Router({
path: 'industrySolutions', component: () => import('@/views/industrySolutions/index.vue'), path: 'industrySolutions', component: () => import('@/views/industrySolutions/index.vue'),
}, },
{ {
path: 'productCenter/detail', component: () => import('@/views/productCenter/detail.vue'), path: 'productCenter/detail1', component: () => import('@/views/productCenter/detail1.vue'),
},
{
path: 'productCenter/detail2', component: () => import('@/views/productCenter/detail2.vue'),
}, },
{ {
path: 'index', component: () => import('@/views/index/index.vue'), path: 'index', component: () => import('@/views/index/index.vue'),

@ -9,7 +9,7 @@
</div> </div>
<div v-for="i in productList"> <div v-for="i in productList">
<ProduceModel :i="i"/> <ProduceModel :id="`item${i.id}`" :i="i"/>
</div> </div>
@ -38,6 +38,7 @@ export default {
productList: [ productList: [
{ {
name: '轮胎RFID', name: '轮胎RFID',
id: '11',
// value:'', // value:'',
list: [ list: [
{ {
@ -69,6 +70,7 @@ export default {
}, },
{ {
name: '超高频RFID', name: '超高频RFID',
id: '12',
// value:'', // value:'',
list: [ list: [
{ {
@ -76,11 +78,13 @@ export default {
list: [ list: [
{ {
name: '一体式读写器(高性能)', name: '一体式读写器(高性能)',
id: '1',
value:'内置高性能圆极化天线,实现远距离识别。', value:'内置高性能圆极化天线,实现远距离识别。',
icon: 'http://1.13.177.47:9665/statics/2025/08/22/%E4%B8%80%E4%BD%93%E5%BC%8F%E8%AF%BB%E5%86%99%E5%99%A8%EF%BC%88%E9%AB%98%E6%80%A7%E8%83%BD%EF%BC%89%EF%BC%8C%E5%86%85%E7%BD%AE%E9%AB%98%E6%80%A7%E8%83%BD%E5%9C%86%E6%9E%81%E5%8C%96%E5%A4%A9%E7%BA%BF%EF%BC%8C%E5%AE%9E%E7%8E%B0%E8%BF%9C%E8%B7%9D%E7%A6%BB%E8%AF%86%E5%88%AB%E3%80%82_20250822101411A021.png' icon: 'http://1.13.177.47:9665/statics/2025/08/22/%E4%B8%80%E4%BD%93%E5%BC%8F%E8%AF%BB%E5%86%99%E5%99%A8%EF%BC%88%E9%AB%98%E6%80%A7%E8%83%BD%EF%BC%89%EF%BC%8C%E5%86%85%E7%BD%AE%E9%AB%98%E6%80%A7%E8%83%BD%E5%9C%86%E6%9E%81%E5%8C%96%E5%A4%A9%E7%BA%BF%EF%BC%8C%E5%AE%9E%E7%8E%B0%E8%BF%9C%E8%B7%9D%E7%A6%BB%E8%AF%86%E5%88%AB%E3%80%82_20250822101411A021.png'
}, },
{ {
name: '一体式读写器(标准型)', name: '一体式读写器(标准型)',
id: '2',
value:'内置高性能圆极化天线,用最小体积实现最优识别性能。', value:'内置高性能圆极化天线,用最小体积实现最优识别性能。',
icon: 'http://1.13.177.47:9665/statics/2025/08/22/%E4%B8%80%E4%BD%93%E5%BC%8F%E8%AF%BB%E5%86%99%E5%99%A8%EF%BC%88%E6%A0%87%E5%87%86%E5%9E%8B%EF%BC%89%EF%BC%8C%E5%86%85%E7%BD%AE%E9%AB%98%E6%80%A7%E8%83%BD%E5%9C%86%E6%9E%81%E5%8C%96%E5%A4%A9%E7%BA%BF%EF%BC%8C%E7%94%A8%E6%9C%80%E5%B0%8F%E4%BD%93%E7%A7%AF%E5%AE%9E%E7%8E%B0%E6%9C%80%E4%BC%98%E8%AF%86%E5%88%AB%E6%80%A7%E8%83%BD%E3%80%82_20250822101455A022.png' icon: 'http://1.13.177.47:9665/statics/2025/08/22/%E4%B8%80%E4%BD%93%E5%BC%8F%E8%AF%BB%E5%86%99%E5%99%A8%EF%BC%88%E6%A0%87%E5%87%86%E5%9E%8B%EF%BC%89%EF%BC%8C%E5%86%85%E7%BD%AE%E9%AB%98%E6%80%A7%E8%83%BD%E5%9C%86%E6%9E%81%E5%8C%96%E5%A4%A9%E7%BA%BF%EF%BC%8C%E7%94%A8%E6%9C%80%E5%B0%8F%E4%BD%93%E7%A7%AF%E5%AE%9E%E7%8E%B0%E6%9C%80%E4%BC%98%E8%AF%86%E5%88%AB%E6%80%A7%E8%83%BD%E3%80%82_20250822101455A022.png'
}, },
@ -126,6 +130,7 @@ export default {
}, },
{ {
name: '高频RFID', name: '高频RFID',
id: '13',
value:'介绍', value:'介绍',
list: [ list: [
{ {
@ -162,6 +167,7 @@ export default {
}, },
{ {
name: '传感器', name: '传感器',
id: '14',
// value:'', // value:'',
list: [ list: [
{ {
@ -218,6 +224,8 @@ export default {
}, },
{ {
name: '工业软件', name: '工业软件',
id: '16',
id: '16',
// value:'', // value:'',
list: [ list: [
{ {

@ -31,7 +31,7 @@
<p class="description">{{ ii.value }}</p> <p class="description">{{ ii.value }}</p>
<!-- 按钮 --> <!-- 按钮 -->
<div class="btn-wrap"> <div class="btn-wrap" v-if="ii.id">
<el-button class="more-btn" @click="$emit('more')"> <el-button class="more-btn" @click="$emit('more')">
了解更多 了解更多
<i class="el-icon-arrow-right icon"></i> <i class="el-icon-arrow-right icon"></i>
@ -68,7 +68,9 @@ export default {
methods:{ methods:{
toDetail(id){ toDetail(id){
this.$router.push('/productCenter/detail?id='+id) if (id) {
this.$router.push('/productCenter/detail' + id)
}
} }
} }
} }

Loading…
Cancel
Save