Commit df6b4214 authored by 高宇's avatar 高宇

添加子页面

parent e46eede3
<template> <template>
<view class="content"> <view class="content">
<view style="height: 100vh; background-color: #fff;">
<view v-for="(item,index) in list" :key="index" >
<view class="listArea">
<view class="top">
<view>{{item.name}}</view>
<view>, </view>
<view style="margin-left: 10rpx;">{{item.phone}}</view>
</view>
<view class="bottom">
<view>{{item.district}}</view>
</view>
</view>
<view style="height: 1rpx; width: 100%; background-color: #eee;"></view>
</view>
<view class="loginout">
<view class="loginout-button" @click="loginout">添加新地址</view>
</view>
</view>
</view> </view>
</template> </template>
...@@ -25,13 +8,7 @@ ...@@ -25,13 +8,7 @@
export default { export default {
data(){ data(){
return{ return{
list: [
{
name: '张三',
phone: '13820629672',
district: '天津市天津市西青区中北镇无'
}
]
} }
}, },
onShow() { onShow() {
...@@ -44,35 +21,6 @@ ...@@ -44,35 +21,6 @@
<style lang="scss" scoped> <style lang="scss" scoped>
.content{ .content{
min-height: 100vh;
background-color: #eee;
.listArea{
margin-top: 40rpx;
margin-left: 30rpx;
width: 100%;
height: 4vh;
display: block;
.top{
display: flex;
}
.bottom{
}
}
.loginout{
padding: 40rpx;
.loginout-button{
height: 88rpx;
background: #BD1A2D;
border-radius: 22px 22px 22px 22px;
font-size: 34rpx;
font-family: Source Han Sans CN-Regular, Source Han Sans CN;
font-weight: 400;
color: #FFFFFF;
display: flex;
justify-content: center;
align-items: center;
}
}
} }
</style> </style>
\ No newline at end of file
<template> <template>
<view>使用微信地址</view> <view class="addressList">
<view style="height: 100vh; background-color: #fff;">
<view v-for="(item,index) in list" :key="index" >
<view class="listArea">
<view class="top">
<view>{{item.name}}</view>
<view>, </view>
<view style="margin-left: 10rpx;">{{item.phone}}</view>
</view>
<view class="bottom">
<view>{{item.district}}</view>
</view>
</view>
<view style="height: 1rpx; width: 100%; background-color: #eee;"></view>
</view>
<view class="loginout">
<view class="loginout-button" @click="addNewAddress">添加新地址</view>
</view>
</view>
</view>
</template> </template>
<script> <script>
export default {
data(){
return{
list: [
{
name: '张三',
phone: '13820629672',
district: '天津市天津市西青区中北镇无'
}
]
}
},
onShow() {
},
methods:{
addNewAddress(){
uni.navigateTo({
url:'/moreFunction/deliveryAddress/addWxAddress/index'
})
}
}
}
</script> </script>
<style> <style lang="scss" scoped>
.addressList{
min-height: 100vh;
background-color: #eee;
.listArea{
margin-top: 40rpx;
margin-left: 30rpx;
width: 100%;
height: 4vh;
display: block;
.top{
display: flex;
}
.bottom{
}
}
.loginout{
padding: 40rpx;
.loginout-button{
height: 88rpx;
background: #BD1A2D;
border-radius: 22px 22px 22px 22px;
font-size: 34rpx;
font-family: Source Han Sans CN-Regular, Source Han Sans CN;
font-weight: 400;
color: #FFFFFF;
display: flex;
justify-content: center;
align-items: center;
}
}
}
</style> </style>
\ No newline at end of file
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