|
@@ -15,9 +15,7 @@
|
|
|
<view class="user-login" v-if="!hasLogin && isRequest" @click="navigator('/pages/login/login')"
|
|
|
>登录</view
|
|
|
>
|
|
|
- <view class="user-text" v-else>
|
|
|
- {{ userIdentity == 1 ? userInfo.nickName : userInfo.name }}
|
|
|
- </view>
|
|
|
+ <view class="user-text" v-else> {{ userIdentity == 1 ? userInfo.nickName : userInfo.name }} </view>
|
|
|
</view>
|
|
|
<!-- 背景图 -->
|
|
|
<image class="user-bg" :src="StaticUrl + 'icon-user-bg@2x.png'" mode="widthFix"></image>
|
|
@@ -63,6 +61,14 @@
|
|
|
<!-- 订单状态区域END -->
|
|
|
<!-- 菜单导航区域 -->
|
|
|
<view class="place-menu-conten clearfix">
|
|
|
+ <view class="place-menu-cell" @click="navigator()">
|
|
|
+ <view class="place-left">
|
|
|
+ <image class="place-menu-icon" :src="StaticUrl + 'icon-coupon.png'" mode=""></image>
|
|
|
+ <text class="place-menu-title">优惠券</text>
|
|
|
+ <text class="coupons-count">6</text>
|
|
|
+ </view>
|
|
|
+ <text class="iconfont icon-chakangengduo"></text>
|
|
|
+ </view>
|
|
|
<view
|
|
|
class="place-menu-cell"
|
|
|
@click="navigator('/pages/user/activity/activity-list')"
|
|
@@ -117,11 +123,11 @@ export default {
|
|
|
paymentCount: 0, //待付款角标
|
|
|
waitShipmentsCount: 0, //待收货角标
|
|
|
shipmentsCount: 0, //已发货角标
|
|
|
- salesReturnCount: 0, //退货/款角标
|
|
|
+ salesReturnCount: 0 //退货/款角标
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapGetters(['hasLogin', 'userInfo','userId','userIdentity'])
|
|
|
+ ...mapGetters(['hasLogin', 'userInfo', 'userId', 'userIdentity'])
|
|
|
},
|
|
|
filters: {
|
|
|
countNum(value) {
|
|
@@ -129,10 +135,10 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
onShow() {
|
|
|
- if(this.hasLogin){
|
|
|
- this.getCartNumber()
|
|
|
- this.GetUserInfoPersonal()
|
|
|
- }
|
|
|
+ if (this.hasLogin) {
|
|
|
+ this.getCartNumber()
|
|
|
+ this.GetUserInfoPersonal()
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
...mapMutations('app', ['login', 'logout']),
|
|
@@ -188,7 +194,7 @@ export default {
|
|
|
} else {
|
|
|
uni.stopPullDownRefresh()
|
|
|
}
|
|
|
- },
|
|
|
+ }
|
|
|
}
|
|
|
</script>
|
|
|
|
|
@@ -333,7 +339,7 @@ export default {
|
|
|
border-bottom: none;
|
|
|
}
|
|
|
.place-left {
|
|
|
- width: 600rpx;
|
|
|
+ width: 650rpx;
|
|
|
height: 100%;
|
|
|
.place-menu-icon {
|
|
|
width: 36rpx;
|
|
@@ -342,7 +348,7 @@ export default {
|
|
|
float: left;
|
|
|
}
|
|
|
.place-menu-title {
|
|
|
- width: 540rpx;
|
|
|
+ width: 300rpx;
|
|
|
margin-left: 16rpx;
|
|
|
float: left;
|
|
|
height: 36rpx;
|
|
@@ -350,6 +356,15 @@ export default {
|
|
|
font-size: $font-size-28;
|
|
|
color: #333333;
|
|
|
}
|
|
|
+ .coupons-count{
|
|
|
+ width: 240rpx;
|
|
|
+ float: right;
|
|
|
+ height: 36rpx;
|
|
|
+ line-height: 36rpx;
|
|
|
+ font-size: $font-size-28;
|
|
|
+ text-align: right;
|
|
|
+ color: #FF457B;
|
|
|
+ }
|
|
|
}
|
|
|
.iconfont {
|
|
|
width: 36rpx;
|
|
@@ -368,7 +383,7 @@ export default {
|
|
|
.user-support {
|
|
|
width: 100%;
|
|
|
float: left;
|
|
|
- margin-top: 340rpx;
|
|
|
+ margin-top: 270rpx;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
align-items: center;
|