Commit 11a1f1aa authored by Z's avatar Z

Z: Dot: 精准营销首页: Layout Done.

parent 76d6f00e
...@@ -15,6 +15,11 @@ const routes = [ ...@@ -15,6 +15,11 @@ const routes = [
name: 'Discount', name: 'Discount',
component: ()=>import('@/views/sideNav/discount/index') component: ()=>import('@/views/sideNav/discount/index')
}, },
{
path: '/mainSale',
name: 'MainSale',
component: ()=>import('@/views/mainSale/active/main/index')
},
// { // {
// path: '/about', // path: '/about',
// name: 'about', // name: 'about',
......
<template> <template>
<div> <div>
<button @click="disClick">discount</button> <button @click="disClick">discount</button>
<button @click="mainSaleClick">mainSale</button>
</div> </div>
</template> </template>
...@@ -11,10 +12,20 @@ export default { ...@@ -11,10 +12,20 @@ export default {
methods: { methods: {
disClick() { disClick() {
this.$router.push("Discount"); this.$router.push("Discount");
},
mainSaleClick() {
this.$router.push("MainSale");
} }
} }
}; };
</script> </script>
<style scoped> <style scoped>
button{
border: 1px solid gray;
margin: 2px;
border-radius: 4px;
padding: 4px;
}
</style> </style>
This diff is collapsed.
...@@ -41,28 +41,28 @@ export default { ...@@ -41,28 +41,28 @@ export default {
list: { list: {
main: [ main: [
{ {
imgUrl: "https://ezhq.xyz/img/main/logo_sona.jpg", imgUrl: "/hi.jpg",
usedPercent: "10", usedPercent: "10",
money: "100", money: "100",
shareMan: "Alice", shareMan: "Alice",
commision: "11" commision: "11"
}, },
{ {
imgUrl: "https://pbs.twimg.com/media/D01HBOkU0AMLWGU?format=jpg&name=medium", imgUrl: "/hi.jpg",
usedPercent: "20", usedPercent: "20",
money: "200", money: "200",
shareMan: "Bob", shareMan: "Bob",
commision: "22" commision: "22"
}, },
{ {
imgUrl: "https://pbs.twimg.com/media/EMTspXRU0AIpV9e?format=jpg&name=medium", imgUrl: "/hi.jpg",
usedPercent: "30", usedPercent: "30",
money: "300", money: "300",
shareMan: "Clid", shareMan: "Clid",
commision: "33" commision: "33"
}, },
{ {
imgUrl: "https://pbs.twimg.com/media/EMTqzHcVAAIQD6n?format=jpg&name=medium", imgUrl: "/hi.jpg",
usedPercent: "40", usedPercent: "40",
money: "400", money: "400",
shareMan: "Doke", shareMan: "Doke",
......
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