This commit is contained in:
2020-06-02 15:35:19 +08:00
parent 04855a770c
commit 5b36365a76
6 changed files with 207 additions and 23 deletions

View File

@@ -1,7 +1,6 @@
<template>
<view class="address">
<AddressItem :addressList='addressList'></AddressItem>
11
</view>
</template>
<script>
@@ -9,10 +8,10 @@ import AddressItem from '@/components/mine/address-block/address-item'
export default {
data() {
return {
addressList: [1, 1, 1]
addressList: ['0', '1', '2', '3']
}
},
comments: {
components: {
AddressItem
},
onLoad() {

View File

@@ -0,0 +1,70 @@
<template>
<view class="edit-address">
<view class="user-info">
<view>
<input type="text" placeholder="收货人" />
</view>
<view>
<input type="text" placeholder="手机号" />
</view>
<view class="area">
<input type="text" placeholder="省市区" />
</view>
<view>
<input type="text" placeholder="详细地址" />
</view>
<view class="set-default">
<view>设为默认地址</view>
<view>
<u-switch v-model="checked" active-color="#FF770F" inactive-color="##A9A7A7" size="35"></u-switch>
</view>
</view>
</view>
<view class="edit-btn">保存地址</view>
</view>
</template>
<script>
export default {
data() {
return {
checked: false
}
},
onLoad() {}
}
</script>
<style lang="scss" scoped>
.edit-address {
min-height: 100vh;
.user-info {
border-top: 1rpx solid rgba(235,235,235,1);
> view {
height: 98rpx;
padding: 30rpx;
border-bottom: 2rpx solid rgba(235,235,235,1);
> input {
font-size: 30rpx;
outline: none;
}
}
.set-default {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 30rpx;
color: rgba(51,51,51,1);
}
}
.edit-btn {
margin: 122rpx auto 0;
width: 690rpx;
height: 98rpx;
background: rgba(255,119,15,1);
border-radius: 49rpx;
font-size: 36rpx;
color:rgba(255,255,255,1);
line-height: 98rpx;
text-align: center;
}
}
</style>

View File

@@ -1,7 +1,7 @@
<template>
<view class="mine-help">
<view class="help-box">
<view v-for="(item, index) in helpList" :key="index" class="help-item">
<view v-for="(item, index) in helpList" :key="index" class="help-item" @click="toDetailsPage()">
<view>使用帮助</view>
<img src="../static/mine/21.png" />
</view>
@@ -14,7 +14,14 @@ export default {
return {
helpList: [1,1,1,1, 1, 1, 1]
}
}
},
methods: {
toDetailsPage() {
uni.navigateTo({
url: '/pageE/mine/HelpDetails'
});
}
},
}
</script>
<style lang="scss" scoped>

View File

@@ -2,8 +2,8 @@
<view class="mine">
<view class="mine-top">
<view class="top">
<!-- <img src="" alt="" /> -->
<view class="avatar"></view>
<img src="../static/mine/23.png" class="avatar" />
<!-- <view class="avatar"></view> -->
<view class="user-info">
<view class="info-left">
<view class="user-nickname">小同学</view>
@@ -89,7 +89,7 @@
<img src="../static/mine/19.png" />
<view>美甲</view>
</view>
<view>
<view @click="toOtherPage('MineHistory')">
<img src="../static/mine/18.png" />
<view>足迹</view>
</view>
@@ -106,7 +106,7 @@
<img src="../static/mine/9.png" />
<view>售后政策</view>
</view>
<view>
<view @click="toOtherPage('MineHelp')">
<img src="../static/mine/16.png" />
<view>使用帮助</view>
</view>
@@ -128,7 +128,13 @@ export default {
};
},
onLoad() {},
methods: {}
methods: {
toOtherPage(url) {
uni.navigateTo({
url: '/pageE/mine/' + url
});
}
}
};
</script>
<style lang="scss" scoped>