This commit is contained in:
ghusermoon 2020-06-02 11:42:13 +08:00
parent 963dc86404
commit 04855a770c
11 changed files with 262 additions and 61 deletions

View File

@ -0,0 +1,73 @@
<template>
<view class="address">
<radio-group>
<view v-for="(item, index) in addressList" :key="index" class="address-item">
<view class="item-top">
<view class="user-info">
<view class="user-name">王先生</view>
<view class="user-pnone">174****7492</view>
</view>
<view class="user-address">山东省临沂市兰山区金雀山街道巴啦啦小区三号楼101室</view>
</view>
<view class="item-bottom">
<view class="item-default">
<radio :value="item.value" :checked="index === current" />
<view :class="[item.value ? 'radio-default' : 'radio-others']">
{{ item.value ? '已设为默认' : '设为默认' }}
</view>
</view>
<view class="address-operate">
<view>
<!-- <img src="../static/mine/24.png" /> -->
<view>编辑</view>
</view>
<view>
<!-- <img src="../static/mine/25.png" /> -->
<view>删除</view>
</view>
</view>
</view>
</view>
</radio-group>
<view class="address-btn">添加地址</view>
</view>
</template>
<script>
export default {
name: 'address',
data() {
return {
current: 0,
default: 0
}
},
props: {
addressList: Array
},
onLoad() {
console.log(22)
}
}
</script>
<style lang="scss" scoped>
.address {
background-color: #ffffff;
.address-item {
margin-bottom: 20rpx;
.item-top {
}
}
.address-btn {
margin: 322rpx auto 40rpx;
width: 690rpx;
height: 98rpx;
background: rgba(255,119,15,1);
border-radius: 49rpx;
font-size: 36rpx;
color: rgba(255,255,255,1);
line-height: 40rpx;
text-align: center;
}
}
</style>

28
pageE/mine/Address.vue Normal file
View File

@ -0,0 +1,28 @@
<template>
<view class="address">
<AddressItem :addressList='addressList'></AddressItem>
11
</view>
</template>
<script>
import AddressItem from '@/components/mine/address-block/address-item'
export default {
data() {
return {
addressList: [1, 1, 1]
}
},
comments: {
AddressItem
},
onLoad() {
console.log(111)
}
}
</script>
<style lang="scss" scoped>
.address {
min-height: 100vh;
background-color: #ECECEC;
}
</style>

View File

@ -0,0 +1,21 @@
<template>
<view class="help-details">
<rich-text :nodes="nodes"></rich-text>
</view>
</template>
<script>
export default {
data() {
return {
nodes: `<p>13268748568645634nfdhf dfvjdfjgdfl vdufhnh1</p>123346<h1>das</h1><h1>das</h1><h1>das1</h1><h2>das2</h2><h3>das3</h3>`
}
}
}
</script>
<style lang="scss" scoped>
.help-details {
background: #ECECEC;
padding: 20rpx 35rpx 0;
min-height: 100vh;
}
</style>

View File

@ -1,8 +1,10 @@
<template>
<view class="mine-help">
<view v-for="(item, index) in helpList" :key="index" class="help-item">
<view>使用帮助</view>
<img src="../static/mine/21.png" />
<view class="help-box">
<view v-for="(item, index) in helpList" :key="index" class="help-item">
<view>使用帮助</view>
<img src="../static/mine/21.png" />
</view>
</view>
</view>
</template>
@ -10,15 +12,31 @@
export default {
data() {
return {
helpList: [1,1,1,1]
helpList: [1,1,1,1, 1, 1, 1]
}
}
}
</script>
<style lang="scss" scoped>
.mine-help {
.help-item {
min-height: 100vh;
background-color: #ECECEC;
.help-box {
.help-item {
display: flex;
align-items: center;
justify-content: space-between;
height: 98rpx;
border-top: 2rpx solid #EBEBEB;
background-color: #ffffff;
padding: 0 30rpx;
font-size: 30rpx;
color: rgba(51,51,51,1);
> img {
width: 14rpx;
height: 24rpx;
}
}
}
}
</style>

View File

@ -1,14 +1,19 @@
<template>
<view class="mine-history">
<view v-for="(item, index) in historyList" :key="index" class="history-item">
<view class="item-title">
<img src="" />
<view>小米店铺</view>
</view>
<view class="item-image"></view>
<view class="item-info">
<view class="info-name">{{ item }}</view>
<view>...</view>
<view class="history-box">
<view v-for="(item, index) in historyList" :key="index" class="history-item">
<view class="item-title">
<img src="../static/mine/23.png" />
<view>小米店铺</view>
</view>
<!-- <view class="item-image">
<img src="../static/mine/23.png" />
</view> -->
<img src="../static/mine/23.png" class="item-image" />
<view class="item-info">
<view class="info-name">{{ item }}</view>
<img src="../static/mine/22.png" />
</view>
</view>
</view>
</view>
@ -18,7 +23,7 @@
export default {
data() {
return {
historyList: [1, 2, 3]
historyList: [1, 2, 3, 6]
};
},
onLoad() {},
@ -26,46 +31,52 @@ export default {
};
</script>
<style lang="scss" scoped>
.mine-history{
.mine-history {
min-height: 100vh;
background: #ECECEC;
padding: 20rpx 30rpx 0;
display: flex;
flex-wrap: wrap;
.history-item {
width: 220rpx;
height: 290rpx;
background: rgba(255,255,255,1);
border-radius: 10rpx;
padding: 20rpx 20rpx 22rpx;
margin: 0 15rpx 20rpx 0;
.item-title {
display: flex;
align-items: center;
> img {
width: 50rpx;
height: 50rpx;
border-radius: 50%;
border: 1rpx solid #000;
margin-right: 19rpx;
}
> view {
font-size: 24rpx;
color: rgba(51,51,51,1);
}
}
.item-image {
margin: 20rpx 0 17rpx;
width: 180rpx;
height: 140rpx;
.history-box {
padding: 20rpx 30rpx 0;
display: flex;
flex-wrap: wrap;
.history-item {
width: 220rpx;
height: 290rpx;
background: rgba(255,255,255,1);
border-radius: 10rpx;
border: 1rpx solid #000;
}
.item-info {
display: flex;
align-items: center;
.info-name {
font-size: 22rpx;
color: rgba(51,51,51,1);
padding: 20rpx 20rpx 22rpx;
margin: 0 10rpx 20rpx 0;
.item-title {
display: flex;
align-items: center;
> img {
width: 50rpx;
height: 50rpx;
border-radius: 50%;
margin-right: 19rpx;
}
> view {
font-size: 24rpx;
color: rgba(51,51,51,1);
}
}
.item-image {
margin: 20rpx 0 17rpx;
width: 180rpx;
height: 140rpx;
border-radius: 10rpx;
}
.item-info {
display: flex;
justify-content: space-between;
align-items: center;
.info-name {
font-size: 22rpx;
color: rgba(51,51,51,1);
}
> img {
width: 37rpx;
height: 8rpx;
}
}
}
}

View File

@ -46,7 +46,10 @@
<view class="order">
<view class="title">
<view class="title-text">我的订单</view>
<view class="more">查看全部订单 ></view>
<view class="more">
<view>查看全部订单</view>
<img src="../static/mine/21.png" />
</view>
</view>
<view class="content">
<view>
@ -137,12 +140,16 @@ export default {
height: 272rpx;
background: #FF780F;
.top {
padding: 40rpx 0 0 30rpx;
display: flex;
align-items: center;
margin-bottom: 40rpx;
.avatar {
width: 110rpx;
height: 110rpx;
border-radius: 50%;
border: 2rpx solid rgba(251,251,251,1);
margin-right: 30rpx;
}
.user-info {
display: flex;
@ -154,8 +161,9 @@ export default {
margin-bottom: 19rpx;
}
.user-medal {
width: 87rpx;
height: 25rpx;
display: flex;
// width: 87rpx;
// height: 25rpx;
background: linear-gradient(269deg,rgba(175,175,175,1) 0%,rgba(224,224,224,1) 100%);
border-radius: 13rpx;
> img {
@ -176,18 +184,21 @@ export default {
margin-bottom: 26rpx;
}
.user-rank {
font-size: 24px;
font-size: 24rpx;
color: rgba(51,51,51,1);
}
}
}
.member-service {
height: 52rpx;
line-height: 52rpx;
box-sizing: content-box;
margin-left: auto;
padding: 14rpx 51rpx 14rpx 22rpx;
background: rgba(255,255,255,1);
opacity: 0.32;
padding: 0 51rpx 0 22rpx;
background: rgba(255,255,255,0.32);
border-radius: 26rpx 0 0 26rpx;
font-size: 26rpx;
color:rgba(51,51,51,1);
}
}
.bottom {
@ -197,6 +208,11 @@ export default {
justify-content: space-between;
> view {
text-align: center;
font-size: 24rpx;
color:rgba(51,51,51,1);
> view:first-child {
margin-bottom: 10rpx;
}
}
}
}
@ -250,6 +266,14 @@ export default {
);
.title {
justify-content: space-between;
.more {
display: flex;
align-items: center;
> img {
height: 19rpx;
margin-left: 10rpx;
}
}
}
.content {
justify-content: space-between;

BIN
pageE/static/mine/22.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1008 B

BIN
pageE/static/mine/23.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 KiB

BIN
pageE/static/mine/24.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

BIN
pageE/static/mine/25.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@ -56,6 +56,32 @@
}
}
}
},
{
"path": "mine/HelpDetails",
"style": {
"navigationBarTitleText": "使用帮助详情",
"app-plus": {
"titleSize": "36px",
"titleColor": "#333333",
"titleNView": {
"backgroundColor": "#FFFFFF"
}
}
}
},
{
"path": "mine/Address",
"style": {
"navigationBarTitleText": "收货地址",
"app-plus": {
"titleSize": "36px",
"titleColor": "#333333",
"titleNView": {
"backgroundColor": "#FFFFFF"
}
}
}
}
]
}