zhy #8
73
components/mine/address-block/address-item.vue
Normal file
73
components/mine/address-block/address-item.vue
Normal 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
28
pageE/mine/Address.vue
Normal 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>
|
21
pageE/mine/HelpDetails.vue
Normal file
21
pageE/mine/HelpDetails.vue
Normal 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>
|
@ -1,8 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="mine-help">
|
<view class="mine-help">
|
||||||
<view v-for="(item, index) in helpList" :key="index" class="help-item">
|
<view class="help-box">
|
||||||
<view>使用帮助</view>
|
<view v-for="(item, index) in helpList" :key="index" class="help-item">
|
||||||
<img src="../static/mine/21.png" />
|
<view>使用帮助</view>
|
||||||
|
<img src="../static/mine/21.png" />
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@ -10,15 +12,31 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
helpList: [1,1,1,1]
|
helpList: [1,1,1,1, 1, 1, 1]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.mine-help {
|
.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>
|
</style>
|
@ -1,14 +1,19 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="mine-history">
|
<view class="mine-history">
|
||||||
<view v-for="(item, index) in historyList" :key="index" class="history-item">
|
<view class="history-box">
|
||||||
<view class="item-title">
|
<view v-for="(item, index) in historyList" :key="index" class="history-item">
|
||||||
<img src="" />
|
<view class="item-title">
|
||||||
<view>小米店铺</view>
|
<img src="../static/mine/23.png" />
|
||||||
</view>
|
<view>小米店铺</view>
|
||||||
<view class="item-image"></view>
|
</view>
|
||||||
<view class="item-info">
|
<!-- <view class="item-image">
|
||||||
<view class="info-name">{{ item }}</view>
|
<img src="../static/mine/23.png" />
|
||||||
<view>...</view>
|
</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>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -18,7 +23,7 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
historyList: [1, 2, 3]
|
historyList: [1, 2, 3, 6]
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad() {},
|
onLoad() {},
|
||||||
@ -26,46 +31,52 @@ export default {
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.mine-history{
|
.mine-history {
|
||||||
|
min-height: 100vh;
|
||||||
background: #ECECEC;
|
background: #ECECEC;
|
||||||
padding: 20rpx 30rpx 0;
|
.history-box {
|
||||||
display: flex;
|
padding: 20rpx 30rpx 0;
|
||||||
flex-wrap: wrap;
|
display: flex;
|
||||||
.history-item {
|
flex-wrap: wrap;
|
||||||
width: 220rpx;
|
.history-item {
|
||||||
height: 290rpx;
|
width: 220rpx;
|
||||||
background: rgba(255,255,255,1);
|
height: 290rpx;
|
||||||
border-radius: 10rpx;
|
background: rgba(255,255,255,1);
|
||||||
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;
|
|
||||||
border-radius: 10rpx;
|
border-radius: 10rpx;
|
||||||
border: 1rpx solid #000;
|
padding: 20rpx 20rpx 22rpx;
|
||||||
}
|
margin: 0 10rpx 20rpx 0;
|
||||||
.item-info {
|
.item-title {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
.info-name {
|
> img {
|
||||||
font-size: 22rpx;
|
width: 50rpx;
|
||||||
color: rgba(51,51,51,1);
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -46,7 +46,10 @@
|
|||||||
<view class="order">
|
<view class="order">
|
||||||
<view class="title">
|
<view class="title">
|
||||||
<view class="title-text">我的订单</view>
|
<view class="title-text">我的订单</view>
|
||||||
<view class="more">查看全部订单 ></view>
|
<view class="more">
|
||||||
|
<view>查看全部订单</view>
|
||||||
|
<img src="../static/mine/21.png" />
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<view>
|
<view>
|
||||||
@ -137,12 +140,16 @@ export default {
|
|||||||
height: 272rpx;
|
height: 272rpx;
|
||||||
background: #FF780F;
|
background: #FF780F;
|
||||||
.top {
|
.top {
|
||||||
|
padding: 40rpx 0 0 30rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 40rpx;
|
||||||
.avatar {
|
.avatar {
|
||||||
width: 110rpx;
|
width: 110rpx;
|
||||||
height: 110rpx;
|
height: 110rpx;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
border: 2rpx solid rgba(251,251,251,1);
|
border: 2rpx solid rgba(251,251,251,1);
|
||||||
|
margin-right: 30rpx;
|
||||||
}
|
}
|
||||||
.user-info {
|
.user-info {
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -154,8 +161,9 @@ export default {
|
|||||||
margin-bottom: 19rpx;
|
margin-bottom: 19rpx;
|
||||||
}
|
}
|
||||||
.user-medal {
|
.user-medal {
|
||||||
width: 87rpx;
|
display: flex;
|
||||||
height: 25rpx;
|
// width: 87rpx;
|
||||||
|
// height: 25rpx;
|
||||||
background: linear-gradient(269deg,rgba(175,175,175,1) 0%,rgba(224,224,224,1) 100%);
|
background: linear-gradient(269deg,rgba(175,175,175,1) 0%,rgba(224,224,224,1) 100%);
|
||||||
border-radius: 13rpx;
|
border-radius: 13rpx;
|
||||||
> img {
|
> img {
|
||||||
@ -176,18 +184,21 @@ export default {
|
|||||||
margin-bottom: 26rpx;
|
margin-bottom: 26rpx;
|
||||||
}
|
}
|
||||||
.user-rank {
|
.user-rank {
|
||||||
font-size: 24px;
|
font-size: 24rpx;
|
||||||
color: rgba(51,51,51,1);
|
color: rgba(51,51,51,1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.member-service {
|
.member-service {
|
||||||
|
height: 52rpx;
|
||||||
|
line-height: 52rpx;
|
||||||
box-sizing: content-box;
|
box-sizing: content-box;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
padding: 14rpx 51rpx 14rpx 22rpx;
|
padding: 0 51rpx 0 22rpx;
|
||||||
background: rgba(255,255,255,1);
|
background: rgba(255,255,255,0.32);
|
||||||
opacity: 0.32;
|
|
||||||
border-radius: 26rpx 0 0 26rpx;
|
border-radius: 26rpx 0 0 26rpx;
|
||||||
|
font-size: 26rpx;
|
||||||
|
color:rgba(51,51,51,1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.bottom {
|
.bottom {
|
||||||
@ -197,6 +208,11 @@ export default {
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
> view {
|
> view {
|
||||||
text-align: center;
|
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 {
|
.title {
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
.more {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
> img {
|
||||||
|
height: 19rpx;
|
||||||
|
margin-left: 10rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.content {
|
.content {
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
BIN
pageE/static/mine/22.png
Normal file
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
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
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
BIN
pageE/static/mine/25.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.6 KiB |
26
pages.json
26
pages.json
@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user