|
|
@ -6,7 +6,7 @@ |
|
|
|
<!-- 头部 --> |
|
|
|
<view class="head"> |
|
|
|
<view class="headImage"> |
|
|
|
<image :src="userInfo.headImage" mode="widthFix"></image> |
|
|
|
<image :src="userInfo.headImage" mode="aspectFill"></image> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="user-info"> |
|
|
@ -14,20 +14,22 @@ |
|
|
|
<view class="user-base-top"> |
|
|
|
<view class="user-name">{{ userInfo.nickName}}</view> |
|
|
|
<view class="member-level"> |
|
|
|
<image src="@/static/image/center/diamond-min.png" mode="widthFix" class="level"></image> |
|
|
|
<image v-if="false" src="@/static/image/center/gold-min.png" mode="widthFix" class="level"> |
|
|
|
<image v-if="userInfo.role == 1" :src="configList.vip_user" mode="aspectFill" class="level"> |
|
|
|
</image> |
|
|
|
<image v-if="false" src="@/static/image/center/sliver-min.png" mode="widthFix" |
|
|
|
<image v-if="userInfo.role == 2" src="@/static/image/center/gold-min.png" mode="aspectFill" |
|
|
|
class="level"> |
|
|
|
</image> |
|
|
|
<image v-if="userInfo.role == 3" src="@/static/image/center/sliver-min.png" |
|
|
|
mode="aspectFill" class="level"> |
|
|
|
</image> |
|
|
|
</view> |
|
|
|
<view class="user-tag"> |
|
|
|
合伙人 |
|
|
|
{{ userRole[userInfo.isPay] }} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="edit-user"> |
|
|
|
<image src="@/static/image/center/edit-icon.png" mode="widthFix" class="edit-icon"></image> |
|
|
|
<image src="@/static/image/center/edit-icon.png" mode="aspectFill" class="edit-icon"></image> |
|
|
|
<view class="edit-btn"> |
|
|
|
修改资料 |
|
|
|
</view> |
|
|
@ -35,19 +37,19 @@ |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="user-phone"> |
|
|
|
手机号:1820000000 |
|
|
|
手机号:{{ userInfo.phone }} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 会员卡片 --> |
|
|
|
<view @click="$utils.navigateTo({url : '/pages_order/mine/memberCenter' })" class="earnings"> |
|
|
|
<view v-if="index==1" v-for="(item,index) in memberList" :key="item.id" class="member-item"> |
|
|
|
<image :src="item.memberBg" mode="widthFix" class="member-image"></image> |
|
|
|
<view v-if="index + 1==userInfo.role" v-for="(item,index) in vipList" :key="item.id" class="member-item"> |
|
|
|
<image :src="item.headImage" mode="aspectFill" class="member-image"></image> |
|
|
|
|
|
|
|
<view class="member-info"> |
|
|
|
<view class="profile-photo"> |
|
|
|
<image src="@/pages_order/static/card/profilePhoto.png" mode="widthFix" class="pro-img"></image> |
|
|
|
<image :src="userInfo.headImage" mode="aspectFill" class="pro-img"></image> |
|
|
|
<view class="open-status"> |
|
|
|
已开通29天 |
|
|
|
</view> |
|
|
@ -60,22 +62,23 @@ |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 佣金数据 --> |
|
|
|
<view class="brokerage-data"> |
|
|
|
<view @click="$utils.navigateTo('/pages_order/mine/withdraw')" class="brokerage-data" |
|
|
|
:class="{'brokerage-data-mt' : !userInfo.role}"> |
|
|
|
<view class="brokerage"> |
|
|
|
<image :src="configList.money_image" mode="widthFix" class="brokerage-img"></image> |
|
|
|
<image :src="configList.money_image" mode="aspectFill" class="brokerage-img"></image> |
|
|
|
|
|
|
|
<div class="main"> |
|
|
|
<div class="title">我的佣金</div> |
|
|
|
<div class="money">¥240</div> |
|
|
|
<div class="money">¥{{ riceInfo.canWithdraw || 0 }}</div> |
|
|
|
</div> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="balance"> |
|
|
|
<image :src="configList.price_image" mode="widthFix" class="balance-img"></image> |
|
|
|
<image :src="configList.price_image" mode="aspectFill" class="balance-img"></image> |
|
|
|
|
|
|
|
<div class="main"> |
|
|
|
<div class="title">我的余额</div> |
|
|
|
<div class="money">¥1200</div> |
|
|
|
<div class="money">¥{{ riceInfo.balance || 0 }}</div> |
|
|
|
</div> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -87,15 +90,15 @@ |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="box"> |
|
|
|
<view class="boxs" @click="$utils.navigateTo('/pages/index/order?type=1')"> |
|
|
|
<view class="boxs" @click="$utils.navigateTo('/pages/index/order?type=0')"> |
|
|
|
<image src="@/static/image/center/1.png" mode="widthFix" /> |
|
|
|
<view class="title">我的订单</view> |
|
|
|
</view> |
|
|
|
<view class="boxs" @click="$utils.navigateTo('/pages/index/order?type=2')"> |
|
|
|
<view class="boxs" @click="$utils.navigateTo('/pages_order/mine/partner')"> |
|
|
|
<image src="@/static/image/center/2.png" mode="widthFix" /> |
|
|
|
<view class="title">我的团队</view> |
|
|
|
</view> |
|
|
|
<view class="boxs" @click="$utils.navigateTo('/pages/index/order?type=3')"> |
|
|
|
<view class="boxs" @click="$refs.customerServicePopup.open()"> |
|
|
|
<image src="@/static/image/center/3.png" mode="widthFix" /> |
|
|
|
<view class="title">联系客服</view> |
|
|
|
</view> |
|
|
@ -106,15 +109,15 @@ |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="box"> |
|
|
|
<view class="boxs" @click="$utils.navigateTo('/pages/index/order?type=1')"> |
|
|
|
<view class="boxs" @click="$utils.navigateTo('/pages_order/mine/recruit')"> |
|
|
|
<image src="@/static/image/center/5.png" mode="widthFix" /> |
|
|
|
<view class="title">广告招商</view> |
|
|
|
</view> |
|
|
|
<view class="boxs" @click="$utils.navigateTo('/pages/index/order?type=2')"> |
|
|
|
<view class="boxs" @click="$utils.navigateTo('/pages_order/mine/memberCenter')"> |
|
|
|
<image src="@/static/image/center/6.png" mode="widthFix" /> |
|
|
|
<view class="title">会员权益</view> |
|
|
|
</view> |
|
|
|
<view class="boxs" @click="$utils.navigateTo('/pages/index/order?type=3')"> |
|
|
|
<view class="boxs" @click="$utils.navigateTo('/pages_order/mine/coupon')"> |
|
|
|
<image src="@/static/image/center/7.png" mode="widthFix" /> |
|
|
|
<view class="title">优惠券</view> |
|
|
|
</view> |
|
|
@ -129,14 +132,14 @@ |
|
|
|
<div v-if="showAdvertising" class="ad"> |
|
|
|
<swiper class="swiper" circular :indicator-dots="indicatorDots" :autoplay="true" :interval="2000" |
|
|
|
:duration="duration"> |
|
|
|
<swiper-item v-for="item in 10" :key="item"> |
|
|
|
<swiper-item v-for="(item,index) in adList" :key="index"> |
|
|
|
<view class="swiper-main"> |
|
|
|
<view @click="closeAdvertising" class="close"> |
|
|
|
<image src="@/static/image/center/close.png" mode="widthFix" class="close-img"></image> |
|
|
|
<image src="@/static/image/center/close.png" mode="aspectFill" class="close-img"></image> |
|
|
|
</view> |
|
|
|
<image src="@/static/image/center/ad.png" mode="widthFix" class="swiper-main-img"></image> |
|
|
|
<image :src="item" mode="aspectFill" class="swiper-main-img"></image> |
|
|
|
<div class="ad-tag"> |
|
|
|
<image src="@/static/image/center/ad-tag.png" mode="widthFix" class="ad-tag-img"></image> |
|
|
|
<image src="@/static/image/center/ad-tag.png" mode="aspectFill" class="ad-tag-img"></image> |
|
|
|
</div> |
|
|
|
</view> |
|
|
|
</swiper-item> |
|
|
@ -155,38 +158,35 @@ |
|
|
|
mapState |
|
|
|
} from 'vuex' |
|
|
|
import customerServicePopup from '@/components/config/customerServicePopup.vue' |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
components: { |
|
|
|
tabber, |
|
|
|
customerServicePopup, |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
...mapState(['userInfo', 'riceInfo','configList']), |
|
|
|
...mapState(['userInfo', 'riceInfo', 'configList']), |
|
|
|
adList() { |
|
|
|
let arr = []; |
|
|
|
if (this.configList?.shop_get_image) { |
|
|
|
arr = this.configList?.shop_get_image?.split(',') |
|
|
|
} |
|
|
|
return arr |
|
|
|
} |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
vipType: ['普通会员', '黄金会员', '渠道商'], |
|
|
|
vipImage: ['vip_vip', 'vip_user', 'vip_shop'], |
|
|
|
memberList: [{ |
|
|
|
id: 1, |
|
|
|
memberBg: "/pages_order/static/card/diamond.png", |
|
|
|
}, |
|
|
|
{ |
|
|
|
id: 2, |
|
|
|
memberBg: "/pages_order/static/card/gold.png", |
|
|
|
}, |
|
|
|
{ |
|
|
|
id: 3, |
|
|
|
memberBg: "/pages_order/static/card/silver.png", |
|
|
|
} |
|
|
|
], |
|
|
|
vipList: [], |
|
|
|
showAdvertising: true, |
|
|
|
userRole: ['会员', '用户', '渠道'] |
|
|
|
} |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
this.$store.commit('getUserInfo') |
|
|
|
this.$store.commit('getRiceInfo') |
|
|
|
this.getMemberCardData(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
clickNo() { |
|
|
@ -198,6 +198,15 @@ |
|
|
|
//关闭广告 |
|
|
|
closeAdvertising() { |
|
|
|
this.showAdvertising = false; |
|
|
|
}, |
|
|
|
|
|
|
|
//获取会员卡片数据 |
|
|
|
getMemberCardData() { |
|
|
|
this.$api('getRiceVipList', res => { |
|
|
|
if (res.code == 200) { |
|
|
|
this.vipList = res.result |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -222,7 +231,7 @@ |
|
|
|
background-size: 100%; |
|
|
|
overflow: hidden; |
|
|
|
border-radius: 50%; |
|
|
|
margin-right: 40rpx; |
|
|
|
margin-right: 20rpx; |
|
|
|
|
|
|
|
image { |
|
|
|
width: 100%; |
|
|
@ -258,6 +267,7 @@ |
|
|
|
|
|
|
|
.level { |
|
|
|
width: 120rpx; |
|
|
|
height: 60rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -282,6 +292,7 @@ |
|
|
|
|
|
|
|
.edit-icon { |
|
|
|
width: 30rpx; |
|
|
|
height: 30rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.edit-btn { |
|
|
@ -300,15 +311,17 @@ |
|
|
|
|
|
|
|
// 会员卡片 |
|
|
|
.earnings { |
|
|
|
padding: 20rpx; |
|
|
|
padding: 0rpx 20rpx; |
|
|
|
box-sizing: border-box; |
|
|
|
margin-top: -22%; |
|
|
|
margin-top: -18%; |
|
|
|
|
|
|
|
.member-item { |
|
|
|
position: relative; |
|
|
|
|
|
|
|
.member-image { |
|
|
|
width: 100%; |
|
|
|
height: 300rpx; |
|
|
|
border-radius: 20rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.member-info { |
|
|
@ -329,6 +342,7 @@ |
|
|
|
.pro-img { |
|
|
|
width: 60rpx; |
|
|
|
height: 60rpx; |
|
|
|
border-radius: 50%; |
|
|
|
} |
|
|
|
|
|
|
|
.open-status { |
|
|
@ -356,7 +370,7 @@ |
|
|
|
display: flex; |
|
|
|
flex-wrap: wrap; |
|
|
|
box-sizing: border-box; |
|
|
|
margin: 0rpx 20rpx 20rpx 20rpx; |
|
|
|
margin: 20rpx 20rpx 20rpx 20rpx; |
|
|
|
|
|
|
|
.brokerage, |
|
|
|
.balance { |
|
|
@ -367,6 +381,7 @@ |
|
|
|
.brokerage-img, |
|
|
|
.balance-img { |
|
|
|
width: 50%; |
|
|
|
height: auto; |
|
|
|
} |
|
|
|
|
|
|
|
.main { |
|
|
@ -390,6 +405,10 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.brokerage-data-mt { |
|
|
|
margin-top: 50rpx; |
|
|
|
} |
|
|
|
|
|
|
|
// 我的服务 |
|
|
|
.myServer { |
|
|
|
margin: 0rpx 20rpx 20rpx 20rpx; |
|
|
@ -451,6 +470,8 @@ |
|
|
|
|
|
|
|
.swiper-main-img { |
|
|
|
width: 100%; |
|
|
|
height: 200rpx; |
|
|
|
border-radius: 20rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.ad-tag { |
|
|
@ -459,7 +480,8 @@ |
|
|
|
bottom: 20rpx; |
|
|
|
|
|
|
|
.ad-tag-img { |
|
|
|
width: 100rpx; |
|
|
|
width: 120rpx; |
|
|
|
height: auto; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|