新增vuex,router

This commit is contained in:
唐明明
2022-01-04 09:58:48 +08:00
parent e2de02b68b
commit 6319631d7e
78 changed files with 12778 additions and 122 deletions

19
pages/address/edit.vue Normal file
View File

@@ -0,0 +1,19 @@
<template>
<view>
编辑地址
</view>
</template>
<script>
export default {
data() {
return {
};
}
}
</script>
<style lang="scss">
</style>

19
pages/address/index.vue Normal file
View File

@@ -0,0 +1,19 @@
<template>
<view>
地址管理
</view>
</template>
<script>
export default {
data() {
return {
};
}
}
</script>
<style lang="scss">
</style>

19
pages/order/details.vue Normal file
View File

@@ -0,0 +1,19 @@
<template>
<view>
</view>
</template>
<script>
export default {
data() {
return {
};
}
}
</script>
<style lang="scss">
</style>

19
pages/order/index.vue Normal file
View File

@@ -0,0 +1,19 @@
<template>
<view>
</view>
</template>
<script>
export default {
data() {
return {
};
}
}
</script>
<style lang="scss">
</style>

View File

@@ -1,6 +1,8 @@
<template>
<view>
<view class="user-demo">
<view @click="$Router.push({name: 'Address'})">地址管理</view>
<view @click="$Router.push({name: 'Order'})">订单管理</view>
<view @click="$Router.push({name: 'Auth'})">登录</view>
</view>
</template>
@@ -10,10 +12,27 @@
return {
};
},
mounted() {
console.log(this.$store.state)
}
}
</script>
<style lang="scss">
.user-demo{
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
height: 100vh;
view{
background: #2C405A;
color: white;
width: 50vw;
text-align: center;
line-height: 90rpx;
margin: $margin 0;
}
}
</style>