Commit 1737f143 authored by zhanglw's avatar zhanglw

优质供应商

parent dceff943
src/assets/home_images/top_area.png

79.6 KB | W: | H:

src/assets/home_images/top_area.png

46.9 KB | W: | H:

src/assets/home_images/top_area.png
src/assets/home_images/top_area.png
src/assets/home_images/top_area.png
src/assets/home_images/top_area.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -9,7 +9,7 @@ import { filterAsyncRouter } from '@/store/modules/permission' ...@@ -9,7 +9,7 @@ import { filterAsyncRouter } from '@/store/modules/permission'
NProgress.configure({ showSpinner: false })// NProgress Configuration NProgress.configure({ showSpinner: false })// NProgress Configuration
const whiteList = ['/login', '/backlogin', '/home', '/product']// 免登录路由白名单 const whiteList = ['/login', '/backlogin', '/home', '/product', '/supplier', '/project', '/course']// 免登录路由白名单
const backUrlList = ['/dashboard', '/system', '/monitor', '/sys-tools', '/backstage']// 后台路由 const backUrlList = ['/dashboard', '/system', '/monitor', '/sys-tools', '/backstage']// 后台路由
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
......
...@@ -52,6 +52,30 @@ export const constantRouterMap = [ ...@@ -52,6 +52,30 @@ export const constantRouterMap = [
}, },
hidden: true hidden: true
}, },
{
path: '/supplier',
meta: { title: '优质供应商', noCache: true },
component: (resolve) => {
return require(['@/views/homepage/supplier/index'], resolve)
},
hidden: true
},
{
path: '/project',
meta: { title: '解决方案与服务', noCache: true },
component: (resolve) => {
return require(['@/views/homepage/project/index'], resolve)
},
hidden: true
},
{
path: '/course',
meta: { title: '专业培训', noCache: true },
component: (resolve) => {
return require(['@/views/homepage/course/index'], resolve)
},
hidden: true
},
{ {
path: '/backstage', path: '/backstage',
component: Layout, component: Layout,
......
...@@ -38,7 +38,7 @@ export default { ...@@ -38,7 +38,7 @@ export default {
'course': '课程定制' 'course': '课程定制'
}, },
visible: false, visible: false,
title: '询 价', title: '咨 询',
formData: { formData: {
name: '', name: '',
phone: '', phone: '',
...@@ -94,6 +94,8 @@ export default { ...@@ -94,6 +94,8 @@ export default {
initView(id, type) { initView(id, type) {
if (type) { if (type) {
this.title = this.typeDict[type] this.title = this.typeDict[type]
} else {
this.title = '咨 询'
} }
this.showView() this.showView()
} }
......
...@@ -10,7 +10,7 @@ export default { ...@@ -10,7 +10,7 @@ export default {
data() { data() {
return { return {
menus: [ menus: [
{ name: '首页', url: '/home' }, { name: '优质产品', url: '/product' }, { name: '优质供应商' }, { name: '解决方案与服务' }, { name: '软件系统' }, { name: '专业培训' }, { name: '行业资讯' }, { name: '信息发布' } { name: '首页', url: '/home' }, { name: '优质产品', url: '/product' }, { name: '优质供应商', url: '/supplier' }, { name: '解决方案与服务', url: '/project' }, { name: '软件系统' }, { name: '专业培训', url: '/course' }, { name: '行业资讯' }, { name: '信息发布' }
], ],
currentMenuObj: null currentMenuObj: null
} }
......
...@@ -17,7 +17,7 @@ export default { ...@@ -17,7 +17,7 @@ export default {
data() { data() {
return { return {
menus: [ menus: [
{ name: '首页', url: '/home' }, { name: '优质产品', url: '/product' }, { name: '优质供应商' }, { name: '解决方案与服务' }, { name: '软件系统' }, { name: '专业培训' }, { name: '行业资讯' }, { name: '信息发布' } { name: '首页', url: '/home' }, { name: '优质产品', url: '/product' }, { name: '优质供应商', url: '/supplier' }, { name: '解决方案与服务', url: '/project' }, { name: '软件系统' }, { name: '专业培训', url: '/course' }, { name: '行业资讯' }, { name: '信息发布' }
], ],
currentMenuObj: null currentMenuObj: null
} }
......
...@@ -39,9 +39,7 @@ export default { ...@@ -39,9 +39,7 @@ export default {
]) ])
}, },
mounted() { mounted() {
this.$nextTick(() => { this.$nextTick(() => {})
console.log(this.user)
})
}, },
methods: { methods: {
login(item) { login(item) {
......
...@@ -39,9 +39,7 @@ export default { ...@@ -39,9 +39,7 @@ export default {
]) ])
}, },
mounted() { mounted() {
this.$nextTick(() => { this.$nextTick(() => {})
console.log(this.user)
})
}, },
methods: { methods: {
login(item) { login(item) {
......
This diff is collapsed.
...@@ -107,7 +107,15 @@ ...@@ -107,7 +107,15 @@
<!--热门排行榜--> <!--热门排行榜-->
<div class="line-title"><div class="title-point" /><span class="title-text">热门排行榜</span></div> <div class="line-title"><div class="title-point" /><span class="title-text">热门排行榜</span></div>
<el-row :gutter="20" style="padding-top: 20px"> <el-row :gutter="20" style="padding-top: 20px">
<el-col :span="8"><div class="top_area" /></el-col> <el-col :span="8"><div class="top_area">
<div
v-for="(item,index) in topAreas"
:key="'ta_'+index"
class="top_area_text touch"
:style="'top:'+item.top+';left:'+item.left+';font-size:'+item.size+';color:'+color[index]"
@click="areaTopClick(item.name)"
>{{ item.name }}</div>
</div></el-col>
<el-col :span="8"><div class="box-toplist"> <el-col :span="8"><div class="box-toplist">
<div class="title">供应商TOP8</div> <div class="title">供应商TOP8</div>
<ul class="contact-list"> <ul class="contact-list">
...@@ -167,6 +175,7 @@ export default { ...@@ -167,6 +175,7 @@ export default {
dicts: ['product_type', 'area_province'], dicts: ['product_type', 'area_province'],
data() { data() {
return { return {
color: ['#C1232B', '#27727B', '#FCCE10', '#E87C25', '#B5C334', '#FE8463', '#9BCA63', '#FAD860', '#F3A43B', '#60C0DD', '#D7504B', '#C6E579', '#F4E001', '#F0805A', '#26C0C0'],
defaultImgProduct: default_product, defaultImgProduct: default_product,
defaultImgLogo: default_p_logo, defaultImgLogo: default_p_logo,
imgSrcStart: process.env.VUE_APP_BASE_API, imgSrcStart: process.env.VUE_APP_BASE_API,
...@@ -352,6 +361,7 @@ export default { ...@@ -352,6 +361,7 @@ export default {
imgSrcList: [] imgSrcList: []
} }
], ],
topAreas: [],
topSuppliers: [ topSuppliers: [
{ name: '中山市三角镇凌创传感器厂', id: 123 }, { name: '中山市三角镇凌创传感器厂', id: 123 },
{ name: '中山市三角镇凌创传感器厂', id: 123 }, { name: '中山市三角镇凌创传感器厂', id: 123 },
...@@ -387,7 +397,20 @@ export default { ...@@ -387,7 +397,20 @@ export default {
}, },
mounted() { mounted() {
this.$nextTick(() => { this.$nextTick(() => {
const random = (min, max) => {
return Math.floor(Math.random() * (max - min)) + min
}
const arr = ['北京', '上海', '广州', '深圳', '青岛', '南京', '杭州', '天津', '石家庄', '济南', '烟台', '威海', '大连', '连云港', '潍坊']
arr.forEach((item, index) => {
this.topAreas.push({
name: item,
top: `${random(0, 382)}px`,
left: `${random(0, 324)}px`,
size: `${Math.max(80 - index * 7, 12)}px`
})
})
this.topAreas[0].top = '180px'
this.topAreas[0].left = '120px'
}) })
}, },
methods: { methods: {
...@@ -422,6 +445,10 @@ export default { ...@@ -422,6 +445,10 @@ export default {
goToDetails(item, type) { goToDetails(item, type) {
console.log(item, type) console.log(item, type)
}, },
// 点击地区top
areaTopClick(text) {
console.log(text)
},
// 点击更多 // 点击更多
moreTo(type) { moreTo(type) {
console.log(type) console.log(type)
...@@ -546,10 +573,19 @@ export default { ...@@ -546,10 +573,19 @@ export default {
} }
} }
.top_area { .top_area {
position: relative;
width: 100%; width: 100%;
height: 492px; height: 492px;
background: url("../../assets/home_images/top_area.png") no-repeat; background: url("../../assets/home_images/top_area.png") no-repeat;
background-size:100% 100%; background-size:100% 100%;
.top_area_text {
position: absolute;
font-weight: bolder;
opacity: 0.7;
}
.top_area_text:hover {
opacity: 1;
}
} }
.box-toplist{ .box-toplist{
background: #FFFFFF; background: #FFFFFF;
......
...@@ -175,6 +175,7 @@ ...@@ -175,6 +175,7 @@
</div> </div>
<home-footer ref="homeFooter" /> <home-footer ref="homeFooter" />
<inquiry-view ref="inquiryView" /> <inquiry-view ref="inquiryView" />
<el-backtop />
</div> </div>
</template> </template>
<script> <script>
......
This diff is collapsed.
This diff is collapsed.
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