会员中心我的伙伴
This commit is contained in:
@@ -68,7 +68,7 @@
|
||||
<view class="userVip-top-name" v-if="userIdentity.right">
|
||||
开通{{userIdentity.right.name}}。
|
||||
</view>
|
||||
<view class="userVip-top-btn">
|
||||
<view class="userVip-top-btn" v-if="!userIdentity.is_top" @click="$Router.push({name: 'vipIndex'})">
|
||||
去开通<image class="userVip-top-arrow" src="/static/user/userVip_arrow.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
@@ -92,12 +92,17 @@
|
||||
<view class="userVip-rightst-more">全部权益 <image class="userVip-rightst-more-img" src="/static/user/userVip_more_arrow.png"></image></view>
|
||||
</view>
|
||||
<view class="userVip-rightst-list" v-if="userIdentity.right">
|
||||
<block v-for="(item, index) in userIdentity.right.rights" :key="index">
|
||||
<view class="userVip-rightst-label" v-if="index <= 3">
|
||||
<view v-for="(item, index) in userIdentity.right.rights" :key="index" class="userVip-rightst-label">
|
||||
<block v-if="index <= 3">
|
||||
<image class="userVip-rightst-img" :src="item.cover"></image>
|
||||
<view class="userVip-rightst-name">{{item.name}}</view>
|
||||
</view>
|
||||
</block>
|
||||
<view class="nowrap userVip-rightst-name">{{item.name}}</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="userVip-rightst-label">
|
||||
<image class="userVip-rightst-img" src="/static/user/userRightst_icon_more.png"></image>
|
||||
<view class="nowrap userVip-rightst-name">敬请期待</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -149,16 +154,16 @@
|
||||
我的伙伴
|
||||
</view>
|
||||
<view class="partner-list" v-if="userData.relation_count">
|
||||
<view class="partner-label">
|
||||
<view class="partner-label" @click="$Router.push({name: 'userPartner', params:{larer:''}})">
|
||||
<view class="partner-label-name">伙伴总数</view>
|
||||
<view class="partner-label-number">{{userData.relation_count.all || 0}}</view>
|
||||
</view>
|
||||
<view class="partner-label">
|
||||
<view class="partner-label" @click="$Router.push({name: 'userPartner', params:{larer:1}})">
|
||||
<view class="partner-label-name">直接伙伴</view>
|
||||
<view class="partner-label-number">{{userData.relation_count.one || 0}}</view>
|
||||
</view>
|
||||
<view class="partner-label">
|
||||
<view class="partner-label-name">简接伙伴</view>
|
||||
<view class="partner-label" @click="$Router.push({name: 'userPartner', params:{larer:2}})">
|
||||
<view class="partner-label-name">间接伙伴</view>
|
||||
<view class="partner-label-number">{{userData.relation_count.two || 0}}</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -178,7 +183,7 @@
|
||||
<image class="tool-label-img" src="/static/user/userTool-01.png" mode=""></image>
|
||||
<view class="tool-label-name">优惠券管理</view>
|
||||
</view>
|
||||
<view class="tool-label">
|
||||
<view class="tool-label" @click="$Router.push({name: ''})">
|
||||
<image class="tool-label-img" src="/static/user/userTool-02.png" mode=""></image>
|
||||
<view class="tool-label-name">营销推广码</view>
|
||||
</view>
|
||||
@@ -190,9 +195,9 @@
|
||||
<image class="tool-label-img" src="/static/user/userTool-04.png" mode=""></image>
|
||||
<view class="tool-label-name">部门门店</view>
|
||||
</view>
|
||||
<view class="tool-label" @click="$Router.push({name: 'instrumentBasics'})">
|
||||
<view class="tool-label" @click="$Router.push({name: ''})">
|
||||
<image class="tool-label-img" src="/static/user/userTool-05.png" mode=""></image>
|
||||
<view class="tool-label-name">店员管理</view>
|
||||
<view class="tool-label-name">员工管理</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -207,18 +212,18 @@
|
||||
<image class="tool-label-img" src="/static/user/userServe-00.png" mode=""></image>
|
||||
<view class="tool-label-name">专属客服</view>
|
||||
</view>
|
||||
<navigator hover-class="none" class="tool-label" @click="$Router.push({name: 'userCode'})">
|
||||
<view class="tool-label" @click="$Router.push({name: 'userCode'})">
|
||||
<image class="tool-label-img" src="/static/user/userServe-01.png" mode=""></image>
|
||||
<view class="tool-label-name">邀请好友</view>
|
||||
</navigator>
|
||||
<navigator hover-class="none" class="tool-label" @click="$Router.push({name: 'userHelp'})">
|
||||
</view>
|
||||
<view class="tool-label" @click="$Router.push({name: 'userHelp'})">
|
||||
<image class="tool-label-img" src="/static/user/userServe-02.png" mode=""></image>
|
||||
<view class="tool-label-name">帮助中心</view>
|
||||
</navigator>
|
||||
<navigator hover-class="none" class="tool-label" @click="$Router.push({name: 'userClause'})">
|
||||
</view>
|
||||
<view class="tool-label" @click="$Router.push({name: 'userClause'})">
|
||||
<image class="tool-label-img" src="/static/user/userServe-03.png" mode=""></image>
|
||||
<view class="tool-label-name">服务条款</view>
|
||||
</navigator>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -229,7 +234,6 @@
|
||||
<view class="item" @click="$Router.push({name: 'couponsManagement'})">优惠券管理</view>
|
||||
<view class="item" @click="$Router.push({name: 'instrumentBasics'})">店员管理</view>
|
||||
<view class="item" @click="$Router.push({name: 'instrumentCustomer'})">成交客户</view>
|
||||
<view class="item" @click="$Router.push({name: 'instrumentBasics'})">店员管理</view>
|
||||
<view class="item" @click="$Router.push({name: 'Personal'})">个人认证</view>
|
||||
<view class="item" @click="$Router.push({name: 'companyApprove'})">企业认证</view>
|
||||
<view class="item" @click="$Router.push({name: 'companyApprove', params: { form_type: 'put' }})">编辑企业认证</view>
|
||||
@@ -247,6 +251,7 @@
|
||||
scroll : 0, // 回弹效果
|
||||
userData : '', // 用户信息
|
||||
userIdentity : '', // 用户身份
|
||||
helpDoc : '', // 资产说明
|
||||
classStyle : false, // 下拉vip时改变样式
|
||||
animatedShow : false, // vip上下跳动效果
|
||||
newList : [],
|
||||
@@ -267,11 +272,11 @@
|
||||
// 获取用户信息
|
||||
this.userInfo();
|
||||
|
||||
// 获取公告列表
|
||||
this.newInfo();
|
||||
|
||||
// 获取专属客服二维码
|
||||
this.customerInfo();
|
||||
|
||||
// 获取公告列表
|
||||
this.newInfo();
|
||||
},
|
||||
onHide() {
|
||||
// 移除vip模块跳动样式
|
||||
@@ -282,8 +287,8 @@
|
||||
userInfo() {
|
||||
// 读取配置信息
|
||||
userIndex().then(res=>{
|
||||
console.log(res)
|
||||
this.userData = res
|
||||
this.userData = res
|
||||
this.helpDoc = res.help_doc
|
||||
this.userIdentity = res.identityShow
|
||||
}).catch(err =>{
|
||||
uni.showToast({
|
||||
@@ -354,10 +359,12 @@
|
||||
|
||||
// 友情提示信息
|
||||
showHelp(type) {
|
||||
let content = '能量球钱包'
|
||||
if(type == 'chip') content = '能量碎片'
|
||||
let title = '能量球',
|
||||
content = this.helpDoc.energy_ball.description
|
||||
if(type == 'chip') title = '能量碎片'
|
||||
if(type == 'chip') content = this.helpDoc.energy_shard.description
|
||||
uni.showModal({
|
||||
title: '友情提示',
|
||||
title: title,
|
||||
content: content,
|
||||
showCancel: false
|
||||
})
|
||||
@@ -585,8 +592,8 @@
|
||||
z-index: 1;
|
||||
.user-tool-icon {
|
||||
padding-left: $padding;
|
||||
width: $uni-img-size-sm + 2;
|
||||
height: $uni-img-size-sm + 2;
|
||||
width: $uni-img-size-sm;
|
||||
height: $uni-img-size-sm;
|
||||
}
|
||||
}
|
||||
.user-back {
|
||||
@@ -612,7 +619,7 @@
|
||||
position: relative;
|
||||
.user-portrait-head {
|
||||
border-radius: $uni-border-radius-circle;
|
||||
border: 4rpx solid #b197ff;
|
||||
border: 4rpx solid #bfaaff;
|
||||
position: absolute;
|
||||
left: 8rpx;
|
||||
top: 14rpx;
|
||||
@@ -662,9 +669,9 @@
|
||||
margin: 30rpx 0 5rpx;
|
||||
font-size: 36rpx;
|
||||
.user-name-identity {
|
||||
width: 92rpx;
|
||||
width: 100rpx;
|
||||
height: 36rpx;
|
||||
margin: 6rpx 0 0 10rpx;
|
||||
margin: 4rpx 0 0 10rpx;
|
||||
}
|
||||
}
|
||||
.user-status {
|
||||
@@ -729,11 +736,13 @@
|
||||
.userVip-rights {
|
||||
margin-top: 40rpx;
|
||||
border-radius: 10rpx;
|
||||
padding: 20rpx;
|
||||
padding: 20rpx 0;
|
||||
box-sizing: border-box;
|
||||
background-image:linear-gradient(to bottom, #dbceff, #bb9fff);
|
||||
color: #5723af;
|
||||
.userVip-rightst-title {
|
||||
padding: 0 20rpx;
|
||||
box-sizing: border-box;
|
||||
font-size: 30rpx;
|
||||
display: flex;
|
||||
.userVip-rightst-title-name {
|
||||
@@ -754,12 +763,12 @@
|
||||
display: flex;
|
||||
.userVip-rightst-label {
|
||||
display: inline-block;
|
||||
flex: 4;
|
||||
width: 25%;
|
||||
text-align: center;
|
||||
font-size: 26rpx;
|
||||
.userVip-rightst-img {
|
||||
width: 80rpx;
|
||||
height: 80rpx;
|
||||
width: 90rpx;
|
||||
height: 90rpx;
|
||||
margin-bottom: 10rpx;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user