|
@@ -6,12 +6,11 @@
|
|
|
<view class="header-main" v-if="hasLogin">
|
|
|
<view class="header-icon"><image :src="headpic == null? 'https://static.caimei365.com/app/img/icon/icon-club@3x.png' : headpic" mode=""></image></view>
|
|
|
<view class="header-text">
|
|
|
- <view class="user-item">
|
|
|
+ <view class="user-item amount">
|
|
|
<text class="u-h1">{{name}}</text>
|
|
|
<text class="u-viptips" v-if="userIdentity == 2">{{userType}}</text>
|
|
|
<text class="u-tips" v-if="userIdentity == 4">{{userType}}</text>
|
|
|
</view>
|
|
|
- <view class="user-item amount"><text class="u-p">账户余额:{{userMoney}}元</text></view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="header-main-none" v-else>
|
|
@@ -32,74 +31,97 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <!-- 订单 -->
|
|
|
- <view class="user-order">
|
|
|
- <view class="tab-title" @click="navigator('/pages/user/order/order-list?state=0')">
|
|
|
- <text class="cell-tit">我的订单</text>
|
|
|
- <text class="cell-more">全部订单</text>
|
|
|
- <text class="iconfont icon-xiayibu"></text>
|
|
|
- </view>
|
|
|
- <view class="order-section">
|
|
|
- <view class="order-item" @click="navigator('/pages/user/order/order-list?state=1')" hover-class="common-hover" :hover-stay-time="50">
|
|
|
- <view class="order-icon">
|
|
|
- <image src="https://static.caimei365.com/app/img/icon/order5@3x.png" mode=""></image>
|
|
|
- <text v-if="confirmedCount>0 && hasLogin"
|
|
|
- class="uni-badge uni-badge-error uni-small uni-badge--small icon-num"
|
|
|
- :class="[confirmedCount < 10 ? 'goleft':'']">
|
|
|
- {{confirmedCount >= 99? '99+' : confirmedCount}}
|
|
|
- </text>
|
|
|
+ <!-- 我的资产 -->
|
|
|
+ <view class="header-main-account" v-if="hasLogin">
|
|
|
+ <view class="main-account">
|
|
|
+ <view class="main-account-le">
|
|
|
+ <view class="main-account-icon">
|
|
|
+ <text class="iconfont icon-zichan"></text>
|
|
|
</view>
|
|
|
- <text class="order-t">待确认</text>
|
|
|
+ <view class="main-account-text">我的资产</view>
|
|
|
</view>
|
|
|
- <view class="order-item" @click="navigator('/pages/user/order/order-list?state=2')" hover-class="common-hover" :hover-stay-time="50">
|
|
|
- <view class="order-icon">
|
|
|
- <image src="https://static.caimei365.com/app/img/icon/order1@3x.png" mode=""></image>
|
|
|
- <text v-if="paymentCount >0 && hasLogin"
|
|
|
- class="uni-badge uni-badge-error uni-small uni-badge--small icon-num "
|
|
|
- :class="[paymentCount < 10 ? 'goleft':'']">
|
|
|
- {{paymentCount >= 99? '99+' : paymentCount}}
|
|
|
- </text>
|
|
|
+ <view class="main-account-ri">
|
|
|
+ <view class="main-account-ri-view">
|
|
|
+ <view class="main-account-icon">{{ userMoney }}</view>
|
|
|
+ <view class="main-account-text">账户余额</view>
|
|
|
</view>
|
|
|
- <text class="order-t">待付款</text>
|
|
|
- </view>
|
|
|
- <view class="order-item" @click="navigator('/pages/user/order/order-list?state=3')" hover-class="common-hover" :hover-stay-time="50">
|
|
|
- <view class="order-icon">
|
|
|
- <image src="https://static.caimei365.com/app/img/icon/order2@3x.png" mode=""></image>
|
|
|
- <text v-if="waitShipmentsCount >0 && hasLogin"
|
|
|
- class="uni-badge uni-badge-error uni-small uni-badge--small icon-num"
|
|
|
- :class="[waitShipmentsCount < 10 ? 'goleft':'']">
|
|
|
- {{waitShipmentsCount >= 99? '99+' : waitShipmentsCount}}
|
|
|
- </text>
|
|
|
+ <view class="main-account-ri-view">
|
|
|
+ <view class="main-account-icon">{{ userMoney }}</view>
|
|
|
+ <view class="main-account-text">采美豆</view>
|
|
|
</view>
|
|
|
- <text class="order-t">待发货</text>
|
|
|
</view>
|
|
|
- <view class="order-item" @click="navigator('/pages/user/order/order-list?state=4')" hover-class="common-hover" :hover-stay-time="50">
|
|
|
- <view class="order-icon">
|
|
|
- <image src="https://static.caimei365.com/app/img/icon/order3@3x.png" mode=""></image>
|
|
|
- <text v-if="shipmentsCount>0 && hasLogin"
|
|
|
- class="uni-badge uni-badge-error uni-small uni-badge--small icon-num"
|
|
|
- :class="[shipmentsCount < 10 ? 'goleft':'']">
|
|
|
- {{shipmentsCount >= 99? '99+' : shipmentsCount}}
|
|
|
- </text>
|
|
|
- </view>
|
|
|
- <text class="order-t">已发货</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <!-- 订单 -->
|
|
|
+ <view class="header-main-order" :style="{ marginTop: hasLogin ? '0rpx': '20rpx' }">
|
|
|
+ <view class="user-order">
|
|
|
+ <view class="tab-title" @click="navigator('/pages/user/order/order-list?state=0')">
|
|
|
+ <text class="cell-tit">我的订单</text>
|
|
|
+ <text class="cell-more">全部订单</text>
|
|
|
+ <text class="iconfont icon-xiayibu"></text>
|
|
|
</view>
|
|
|
- <view class="order-item" @click="navigator('/pages/user/order/order-list?state=5')" hover-class="common-hover" :hover-stay-time="50">
|
|
|
- <view class="order-icon">
|
|
|
- <image src="https://static.caimei365.com/app/img/icon/order4@3x.png" mode=""></image>
|
|
|
- <text v-if="salesReturnCount >0 && hasLogin"
|
|
|
- class="uni-badge uni-badge-error uni-small uni-badge--small icon-num"
|
|
|
- :class="[salesReturnCount < 10 ? 'goleft':'']">
|
|
|
- {{salesReturnCount >= 99? '99+' : salesReturnCount}}
|
|
|
- </text>
|
|
|
+ <view class="order-section">
|
|
|
+ <view class="order-item" @click="navigator('/pages/user/order/order-list?state=1')" hover-class="common-hover" :hover-stay-time="50">
|
|
|
+ <view class="order-icon">
|
|
|
+ <image src="https://static.caimei365.com/app/img/icon/order5@3x.png" mode=""></image>
|
|
|
+ <text v-if="confirmedCount>0 && hasLogin"
|
|
|
+ class="uni-badge uni-badge-error uni-small uni-badge--small icon-num"
|
|
|
+ :class="[confirmedCount < 10 ? 'goleft':'']">
|
|
|
+ {{confirmedCount >= 99? '99+' : confirmedCount}}
|
|
|
+ </text>
|
|
|
+ </view>
|
|
|
+ <text class="order-t">待确认</text>
|
|
|
+ </view>
|
|
|
+ <view class="order-item" @click="navigator('/pages/user/order/order-list?state=2')" hover-class="common-hover" :hover-stay-time="50">
|
|
|
+ <view class="order-icon">
|
|
|
+ <image src="https://static.caimei365.com/app/img/icon/order1@3x.png" mode=""></image>
|
|
|
+ <text v-if="paymentCount >0 && hasLogin"
|
|
|
+ class="uni-badge uni-badge-error uni-small uni-badge--small icon-num "
|
|
|
+ :class="[paymentCount < 10 ? 'goleft':'']">
|
|
|
+ {{paymentCount >= 99? '99+' : paymentCount}}
|
|
|
+ </text>
|
|
|
+ </view>
|
|
|
+ <text class="order-t">待付款</text>
|
|
|
+ </view>
|
|
|
+ <view class="order-item" @click="navigator('/pages/user/order/order-list?state=3')" hover-class="common-hover" :hover-stay-time="50">
|
|
|
+ <view class="order-icon">
|
|
|
+ <image src="https://static.caimei365.com/app/img/icon/order2@3x.png" mode=""></image>
|
|
|
+ <text v-if="waitShipmentsCount >0 && hasLogin"
|
|
|
+ class="uni-badge uni-badge-error uni-small uni-badge--small icon-num"
|
|
|
+ :class="[waitShipmentsCount < 10 ? 'goleft':'']">
|
|
|
+ {{waitShipmentsCount >= 99? '99+' : waitShipmentsCount}}
|
|
|
+ </text>
|
|
|
+ </view>
|
|
|
+ <text class="order-t">待发货</text>
|
|
|
+ </view>
|
|
|
+ <view class="order-item" @click="navigator('/pages/user/order/order-list?state=4')" hover-class="common-hover" :hover-stay-time="50">
|
|
|
+ <view class="order-icon">
|
|
|
+ <image src="https://static.caimei365.com/app/img/icon/order3@3x.png" mode=""></image>
|
|
|
+ <text v-if="shipmentsCount>0 && hasLogin"
|
|
|
+ class="uni-badge uni-badge-error uni-small uni-badge--small icon-num"
|
|
|
+ :class="[shipmentsCount < 10 ? 'goleft':'']">
|
|
|
+ {{shipmentsCount >= 99? '99+' : shipmentsCount}}
|
|
|
+ </text>
|
|
|
+ </view>
|
|
|
+ <text class="order-t">已发货</text>
|
|
|
+ </view>
|
|
|
+ <view class="order-item" @click="navigator('/pages/user/order/order-list?state=5')" hover-class="common-hover" :hover-stay-time="50">
|
|
|
+ <view class="order-icon">
|
|
|
+ <image src="https://static.caimei365.com/app/img/icon/order4@3x.png" mode=""></image>
|
|
|
+ <text v-if="salesReturnCount >0 && hasLogin"
|
|
|
+ class="uni-badge uni-badge-error uni-small uni-badge--small icon-num"
|
|
|
+ :class="[salesReturnCount < 10 ? 'goleft':'']">
|
|
|
+ {{salesReturnCount >= 99? '99+' : salesReturnCount}}
|
|
|
+ </text>
|
|
|
+ </view>
|
|
|
+ <text class="order-t">退货/款</text>
|
|
|
</view>
|
|
|
- <text class="order-t">退货/款</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 底部跳转 -->
|
|
|
- <view class="foot-list">
|
|
|
+ <view class="foot-list" :style="{paddingTop: hasLogin ? '360rpx': '160rpx'}">
|
|
|
<!-- <view class="list-cell-avtiv" @click="navigator('/pages/user/coupon/coupon')">
|
|
|
<image src="http://static.caimei365.com/app/meibohui/app/activity-in.png" mode=""></image>
|
|
|
</view> -->
|
|
@@ -144,12 +166,16 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <!-- 普通机构升级弹窗 -->
|
|
|
<upgrade-alert v-if="isUpgradeAlert" :clubStatus="clubStatus" @unBindUpgrade="hanldUnBindUpgrade" @GoApply="hanldGoApply"></upgrade-alert>
|
|
|
+ <!-- 采美豆提示弹窗 -->
|
|
|
+ <activityBean :show="isActivityBean" :beanType="beanType" @click="handleClick" @cancel="handleCancelClick"></activityBean>
|
|
|
</view>
|
|
|
</template>
|
|
|
<script>
|
|
|
import uniBadge from '@/components/uni-badge/uni-badge.vue'
|
|
|
import upgradeAlert from '@/components/cm-module/modelAlert/upgradeAlert.vue'
|
|
|
+ import activityBean from '@/components/cm-module/activity/activityBean.vue'
|
|
|
import authorize from '@/common/config/authorize.js'
|
|
|
import { mapState,mapMutations } from 'vuex'
|
|
|
|
|
@@ -157,7 +183,8 @@
|
|
|
export default{
|
|
|
components: {
|
|
|
uniBadge,
|
|
|
- upgradeAlert
|
|
|
+ upgradeAlert,
|
|
|
+ activityBean
|
|
|
},
|
|
|
data() {
|
|
|
return{
|
|
@@ -172,6 +199,8 @@
|
|
|
},
|
|
|
CustomBar:this.CustomBar,// 顶部导航栏高度
|
|
|
StatusBar: this.StatusBar,
|
|
|
+ beanType:1,
|
|
|
+ isActivityBean:true,
|
|
|
isCmcustom:false,
|
|
|
isUpgradeAlert:false,
|
|
|
bgImgUrl:'https://img.caimei365.com/group1/M00/03/B0/Cmis217Z_i6ASHobAAhl69yz3SM078.png',
|
|
@@ -393,8 +422,8 @@
|
|
|
height: 64rpx;
|
|
|
line-height: 64rpx;
|
|
|
&.amount{
|
|
|
- height: 30rpx;
|
|
|
- line-height: 30rpx;
|
|
|
+ height: 135rpx;
|
|
|
+ line-height: 135rpx;
|
|
|
}
|
|
|
.u-tips{
|
|
|
display: inline-block;
|
|
@@ -409,7 +438,7 @@
|
|
|
text-align: center;
|
|
|
color: #FFFFFF;
|
|
|
margin-left: 10rpx;
|
|
|
- margin-top: 17rpx;
|
|
|
+ margin-top: 50rpx;
|
|
|
}
|
|
|
.u-viptips{
|
|
|
display: inline-block;
|
|
@@ -424,7 +453,7 @@
|
|
|
text-align: center;
|
|
|
color: #FFE600;
|
|
|
margin-left: 10rpx;
|
|
|
- margin-top: 17rpx;
|
|
|
+ margin-top: 50rpx;
|
|
|
}
|
|
|
.u-h1{
|
|
|
width: 300rpx;
|
|
@@ -527,17 +556,96 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- .user-order{
|
|
|
- width: 654rpx;
|
|
|
+ .header-main-account{
|
|
|
+ width: 100%;
|
|
|
height: auto;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding:24rpx;
|
|
|
+ .main-account{
|
|
|
+ width: 100%;
|
|
|
+ height: 168rpx;
|
|
|
+ background-color: $bg-color;
|
|
|
+ border-radius: 20rpx;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding:24rpx 0;
|
|
|
+ .main-account-le{
|
|
|
+ width: 222rpx;
|
|
|
+ height: 100%;
|
|
|
+ position: relative;
|
|
|
+ float: left;
|
|
|
+ &::before{
|
|
|
+ content: '';
|
|
|
+ width: 2rpx;
|
|
|
+ height: 64rpx;
|
|
|
+ background-color: #c4c4c4;
|
|
|
+ position: absolute;
|
|
|
+ right: 0;
|
|
|
+ top: 30rpx;
|
|
|
+ }
|
|
|
+ .main-account-icon{
|
|
|
+ width: 100%;
|
|
|
+ height: 74rpx;
|
|
|
+ line-height: 74rpx;
|
|
|
+ text-align: center;
|
|
|
+ .icon-zichan{
|
|
|
+ font-size: 50rpx;
|
|
|
+ color: #f94b4b;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .main-account-text{
|
|
|
+ width: 100%;
|
|
|
+ height: 44rpx;
|
|
|
+ line-height: 44rpx;
|
|
|
+ font-size: $font-size-28;
|
|
|
+ text-align: center;
|
|
|
+ color: #333333;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .main-account-ri{
|
|
|
+ width: 480rpx;
|
|
|
+ height: 100%;
|
|
|
+ float: right;
|
|
|
+ .main-account-ri-view{
|
|
|
+ width: 50%;
|
|
|
+ height: 100%;
|
|
|
+ float: left;
|
|
|
+ .main-account-icon{
|
|
|
+ width: 100%;
|
|
|
+ height: 74rpx;
|
|
|
+ line-height: 74rpx;
|
|
|
+ text-align: center;
|
|
|
+ font-size: $font-size-32;
|
|
|
+ color: #f94b4b;
|
|
|
+ font-weight: bold;
|
|
|
+ }
|
|
|
+ .main-account-text{
|
|
|
+ width: 100%;
|
|
|
+ height: 44rpx;
|
|
|
+ line-height: 44rpx;
|
|
|
+ font-size: $font-size-28;
|
|
|
+ text-align: center;
|
|
|
+ color: #333333;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .header-main-order{
|
|
|
+ width: 100%;
|
|
|
+ height: auto;
|
|
|
+ box-sizing: border-box;
|
|
|
padding: 0 24rpx;
|
|
|
- background-color: $bg-color;
|
|
|
- margin-bottom: 24rpx;
|
|
|
- position: absolute;
|
|
|
- bottom: -170rpx;
|
|
|
- left: 24rpx;
|
|
|
- border-radius: 20rpx;
|
|
|
- }
|
|
|
+ margin-top: 26rpx;
|
|
|
+ .user-order{
|
|
|
+ width: 100%;
|
|
|
+ height: auto;
|
|
|
+ background-color: $bg-color;
|
|
|
+ margin-bottom: 24rpx;
|
|
|
+ border-radius: 20rpx;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding: 0 24rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
.tab-title{
|
|
|
font-size: $font-size-28;
|
|
|
line-height: 80rpx;
|
|
@@ -611,7 +719,6 @@
|
|
|
.foot-list{
|
|
|
width: 702rpx;
|
|
|
padding: 0 24rpx;
|
|
|
- padding-top: 160rpx;
|
|
|
}
|
|
|
.list-cell-avtiv{
|
|
|
width: 702rpx;
|