新增vuex,router
This commit is contained in:
19
pages/address/edit.vue
Normal file
19
pages/address/edit.vue
Normal 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
19
pages/address/index.vue
Normal 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
19
pages/order/details.vue
Normal 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
19
pages/order/index.vue
Normal file
@@ -0,0 +1,19 @@
|
||||
<template>
|
||||
<view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
|
||||
</style>
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user