|
@@ -8,7 +8,7 @@
|
|
<view class="nickname">未设置昵称</view>
|
|
<view class="nickname">未设置昵称</view>
|
|
<view>
|
|
<view>
|
|
<text v-show="user_type===1" class="wddz">网店店主</text>
|
|
<text v-show="user_type===1" class="wddz">网店店主</text>
|
|
- <text v-show="user_type===2" class="zgcj">直供厂家</text>
|
|
|
|
|
|
+ <text v-show="user_type===2" class="zgcj">直供厂家</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="invite">
|
|
<view class="invite">
|
|
@@ -98,26 +98,42 @@
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- nickname:'',
|
|
|
|
- balance:'',
|
|
|
|
- deposit:'',
|
|
|
|
- user_type:1,
|
|
|
|
|
|
+ nickname: '',
|
|
|
|
+ balance: '',
|
|
|
|
+ deposit: '',
|
|
|
|
+ user_type: 1,
|
|
};
|
|
};
|
|
|
|
+ },
|
|
|
|
+ onNavigationBarButtonTap(e) {
|
|
|
|
+ // console.log(e)
|
|
|
|
+ switch (e.index) {
|
|
|
|
+ case 0:
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: '/pages/user/setting'
|
|
|
|
+ });
|
|
|
|
+ break;
|
|
|
|
+ case 1:
|
|
|
|
+ break;
|
|
|
|
+ default:
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
- .head{
|
|
|
|
|
|
+ .head {
|
|
background: $primary-color;
|
|
background: $primary-color;
|
|
display: flex;
|
|
display: flex;
|
|
- align-items:center;
|
|
|
|
|
|
+ align-items: center;
|
|
padding-bottom: 140upx;
|
|
padding-bottom: 140upx;
|
|
padding-top: 20upx;
|
|
padding-top: 20upx;
|
|
}
|
|
}
|
|
- .portrait{
|
|
|
|
|
|
+
|
|
|
|
+ .portrait {
|
|
margin: 0 20upx;
|
|
margin: 0 20upx;
|
|
- .image{
|
|
|
|
|
|
+
|
|
|
|
+ .image {
|
|
width: 128upx;
|
|
width: 128upx;
|
|
height: 128upx;
|
|
height: 128upx;
|
|
background: white;
|
|
background: white;
|
|
@@ -125,13 +141,15 @@
|
|
border: 10upx solid rgba(255, 255, 255, 0.2);
|
|
border: 10upx solid rgba(255, 255, 255, 0.2);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- .nickname{
|
|
|
|
|
|
+
|
|
|
|
+ .nickname {
|
|
font-size: 30upx;
|
|
font-size: 30upx;
|
|
color: white;
|
|
color: white;
|
|
margin-bottom: 10upx;
|
|
margin-bottom: 10upx;
|
|
}
|
|
}
|
|
-
|
|
|
|
- .wddz,.zgcj{
|
|
|
|
|
|
+
|
|
|
|
+ .wddz,
|
|
|
|
+ .zgcj {
|
|
font-size: 24upx;
|
|
font-size: 24upx;
|
|
color: white;
|
|
color: white;
|
|
border: 2upx solid white;
|
|
border: 2upx solid white;
|
|
@@ -147,30 +165,36 @@
|
|
background-size: 21upx 21upx;
|
|
background-size: 21upx 21upx;
|
|
background-position: 10upx;
|
|
background-position: 10upx;
|
|
}
|
|
}
|
|
- .invite{
|
|
|
|
|
|
+
|
|
|
|
+ .invite {
|
|
text-align: right;
|
|
text-align: right;
|
|
flex-grow: 1;
|
|
flex-grow: 1;
|
|
margin-right: 20upx;
|
|
margin-right: 20upx;
|
|
color: white;
|
|
color: white;
|
|
- .invite-code{
|
|
|
|
|
|
+
|
|
|
|
+ .invite-code {
|
|
font-size: 30upx;
|
|
font-size: 30upx;
|
|
}
|
|
}
|
|
- .invite-notes{
|
|
|
|
|
|
+
|
|
|
|
+ .invite-notes {
|
|
font-size: 24upx;
|
|
font-size: 24upx;
|
|
}
|
|
}
|
|
- .invite-progress{
|
|
|
|
- .item{
|
|
|
|
|
|
+
|
|
|
|
+ .invite-progress {
|
|
|
|
+ .item {
|
|
border: 2upx solid white;
|
|
border: 2upx solid white;
|
|
display: inline-block;
|
|
display: inline-block;
|
|
width: 36upx;
|
|
width: 36upx;
|
|
transform: scaleX(0.9);
|
|
transform: scaleX(0.9);
|
|
font-size: 0;
|
|
font-size: 0;
|
|
border-radius: 2upx;
|
|
border-radius: 2upx;
|
|
- &.active{
|
|
|
|
|
|
+
|
|
|
|
+ &.active {
|
|
border-color: yellow;
|
|
border-color: yellow;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- &::after{
|
|
|
|
|
|
+
|
|
|
|
+ &::after {
|
|
content: "";
|
|
content: "";
|
|
background: url(../../static/images/vip.png) no-repeat;
|
|
background: url(../../static/images/vip.png) no-repeat;
|
|
background-size: 42upx 42upx;
|
|
background-size: 42upx 42upx;
|
|
@@ -180,44 +204,53 @@
|
|
position: relative;
|
|
position: relative;
|
|
top: 16upx;
|
|
top: 16upx;
|
|
}
|
|
}
|
|
|
|
+
|
|
margin-bottom: 20upx;
|
|
margin-bottom: 20upx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
- .body{
|
|
|
|
|
|
+
|
|
|
|
+ .body {
|
|
padding: 20upx;
|
|
padding: 20upx;
|
|
position: relative;
|
|
position: relative;
|
|
top: -120upx;
|
|
top: -120upx;
|
|
- .money{
|
|
|
|
|
|
+
|
|
|
|
+ .money {
|
|
background: white;
|
|
background: white;
|
|
border-radius: 20upx;
|
|
border-radius: 20upx;
|
|
padding: 20upx;
|
|
padding: 20upx;
|
|
- .row{
|
|
|
|
|
|
+
|
|
|
|
+ .row {
|
|
color: #333;
|
|
color: #333;
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
margin-bottom: 20upx;
|
|
margin-bottom: 20upx;
|
|
- .warning{
|
|
|
|
|
|
+
|
|
|
|
+ .warning {
|
|
color: $primary-color;
|
|
color: $primary-color;
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
- .tips{
|
|
|
|
|
|
+
|
|
|
|
+ .tips {
|
|
color: #CCC;
|
|
color: #CCC;
|
|
font-size: 24upx;
|
|
font-size: 24upx;
|
|
}
|
|
}
|
|
- &:last-child{
|
|
|
|
|
|
+
|
|
|
|
+ &:last-child {
|
|
margin-bottom: 0;
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
- & .col:first-child{
|
|
|
|
|
|
+
|
|
|
|
+ & .col:first-child {
|
|
flex-grow: 1;
|
|
flex-grow: 1;
|
|
font-size: 28upx;
|
|
font-size: 28upx;
|
|
}
|
|
}
|
|
- & .col:last-child{
|
|
|
|
|
|
+
|
|
|
|
+ & .col:last-child {
|
|
text-align: right;
|
|
text-align: right;
|
|
font-size: 28upx;
|
|
font-size: 28upx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- .btn{
|
|
|
|
|
|
+
|
|
|
|
+ .btn {
|
|
background-color: $primary-color;
|
|
background-color: $primary-color;
|
|
color: white;
|
|
color: white;
|
|
font-size: 26upx;
|
|
font-size: 26upx;
|
|
@@ -227,38 +260,44 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- .vip-center{
|
|
|
|
|
|
+
|
|
|
|
+ .vip-center {
|
|
background: url(../../static/images/center5.png) no-repeat;
|
|
background: url(../../static/images/center5.png) no-repeat;
|
|
background-size: 710upx 78upx;
|
|
background-size: 710upx 78upx;
|
|
color: #EEEEEE;
|
|
color: #EEEEEE;
|
|
padding: 0 20upx;
|
|
padding: 0 20upx;
|
|
margin-top: 20upx;
|
|
margin-top: 20upx;
|
|
- .text{
|
|
|
|
|
|
+
|
|
|
|
+ .text {
|
|
margin-left: 50upx;
|
|
margin-left: 50upx;
|
|
background-color: #ff5454;
|
|
background-color: #ff5454;
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
line-height: 76upx;
|
|
line-height: 76upx;
|
|
- .sub{
|
|
|
|
|
|
+
|
|
|
|
+ .sub {
|
|
font-size: 24upx;
|
|
font-size: 24upx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
- .menu{
|
|
|
|
|
|
+
|
|
|
|
+ .menu {
|
|
display: flex;
|
|
display: flex;
|
|
background: white;
|
|
background: white;
|
|
border-radius: 20upx;
|
|
border-radius: 20upx;
|
|
- padding:30upx 20upx;
|
|
|
|
|
|
+ padding: 30upx 20upx;
|
|
margin-top: 20upx;
|
|
margin-top: 20upx;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
- .name{
|
|
|
|
|
|
+
|
|
|
|
+ .name {
|
|
font-size: 28upx;
|
|
font-size: 28upx;
|
|
margin-top: 10upx;
|
|
margin-top: 10upx;
|
|
}
|
|
}
|
|
- .icon{
|
|
|
|
|
|
+
|
|
|
|
+ .icon {
|
|
text-align: center;
|
|
text-align: center;
|
|
}
|
|
}
|
|
- .icon .image{
|
|
|
|
|
|
+
|
|
|
|
+ .icon .image {
|
|
width: 50upx;
|
|
width: 50upx;
|
|
height: 50upx;
|
|
height: 50upx;
|
|
}
|
|
}
|