fix(mine/bonus): 我的页面奖衔相关展示逻辑变更,奖金隐藏查看详情

This commit is contained in:
ywk 2025-04-14 09:44:09 +08:00
parent 1174d23ab1
commit 030f0e0771
9 changed files with 318 additions and 372 deletions

View File

@ -69,11 +69,11 @@
{{ item.makerRealSubtotal | toThousandthAndKeepDecimal }}
</view>
</view>
<view class="border_s">
<!-- <view class="border_s">
<view class="button" v-if="checkRule == true" @click="urlTap">
{{ '查看详情' }}
</view>
</view>
</view> -->
<view style="clear: both"></view>
<view style="height: 20rpx; background-color: #fff"></view>
</view>

View File

@ -71,11 +71,11 @@
{{item.repurCouponSubtotal | numberToCurrency}}
</view>
</view>
<view class="border_s">
<!-- <view class="border_s">
<view class="button" v-if="checkRule==true" @click="urlTap">
{{'查看详情'}}
</view>
</view>
</view> -->
<view style="clear: both;"></view>
<view style="height: 20rpx;background-color: #fff;"></view>
</view>

View File

@ -87,11 +87,11 @@
{{item.repurRealSubtotal | toThousandthAndKeepDecimal}}
</view>
</view>
<view class="border_s">
<!-- <view class="border_s">
<view class="button" v-if="checkRule==true" @click="urlTap">
{{'查看详情'}}
</view>
</view>
</view> -->
<view style="clear: both;"></view>
<view style="height: 20rpx;background-color: #fff;"></view>
</view>

View File

@ -63,11 +63,11 @@
{{item.realIncomeTotal| numberToCurrency}}
</view>
</view>
<view class="border_s">
<!-- <view class="border_s">
<view class="button" v-if="checkRule==true" @click="urlTap">
{{'查看详情'}}
</view>
</view>
</view> -->
<view style="clear: both;"></view>
<view style="height: 20rpx;background-color: #fff;"></view>
</view>

View File

@ -63,11 +63,11 @@
{{item.hiFunRealSubtotal | numberToCurrency}}
</view>
</view>
<view class="border_s">
<!-- <view class="border_s">
<view class="button" v-if="checkRule==true" @click="urlTap">
{{'查看详情'}}
</view>
</view>
</view> -->
<view style="clear: both;"></view>
<view style="height: 20rpx;background-color: #fff;"></view>
</view>

View File

@ -120,11 +120,11 @@
{{item.purRealSubtotal| toThousandthAndKeepDecimal}}
</view>
</view>
<view class="border_s">
<!-- <view class="border_s">
<view class="button" v-if="checkRule==true" @click="urlTap">
{{'查看详情'}}
</view>
</view>
</view> -->
<view style="clear: both;"></view>
<view style="height: 20rpx;background-color: #fff;"></view>
</view>

View File

@ -16,7 +16,7 @@
<view class='line2'>{{item.gradeName}}</view>
</view>
<view class="line_box">
<view class='line1'>{{'真实奖衔'}}</view>
<view class='line1'>{{'荣誉奖衔'}}</view>
<view class='line2'>{{item.awardsName}}</view>
</view>
<view class="line_box">

View File

@ -43,8 +43,8 @@
</view>
</view>
<view class="cmem">
<view style="margin-right: 10rpx;">{{ '真实奖衔' }}:</view>
<view class="jxTit1">{{ awards.awardsName }}</view>
<view style="margin-right: 10rpx;">{{ '荣誉奖衔' }}:</view>
<view class="jxTit1">{{ awardsList.awardsName }}</view>
</view>
</view>
@ -64,73 +64,6 @@
</view> -->
<view class="jugrade_flex">
<view class="ju_left">
<view v-if="userInfo.pkCountry == 1">
<view
class="ju_left_top"
v-if="awards.targetPv != '-6.40'"
:spv="awards.sumRealPv"
:tpv="awards.targetPv"
>
<span class="ju_text1">恭喜您!已达成 </span>
<span class="ju_text2">{{ awards.awardsName }}</span>
<span> 奖衔,冲刺 </span>
<span class="ju_text2">{{ awards.pkTransactionVal }}</span>
<span>奖衔,小区仅需</span>
<span class="ju_text2">
{{
(awards.targetPv - awards.sumRealPv > 0
? awards.targetPv - awards.sumRealPv
: "0.00") | toThousandthAndKeepDecimal
}}{{ '万' }}</span
>
</view>
<view class="ju_left_top" v-else>
<span class="ju_text1">恭喜您!已达标当月最高奖衔</span>
<span class="ju_text2">{{ awards.awardsName }}</span>
<span class="ju_text1">!记得保持哦!</span>
</view>
</view>
<view v-else>
<view
class="ju_left_top"
v-if="awards.targetPv != '-1.00'"
:spv="awards.sumRealPv"
:tpv="awards.targetPv"
>
<span class="ju_text1">恭喜您!已达成 </span>
<span class="ju_text2">{{ awards.awardsName }}</span>
<span> 奖衔,冲刺 </span>
<span class="ju_text2">{{ awards.pkTransactionVal }}</span>
<span>奖衔,小区仅需</span>
<span class="ju_text2">
{{
(awards.targetPv - awards.sumRealPv > 0
? awards.targetPv - awards.sumRealPv
: "0.00") | toThousandthAndKeepDecimal
}}{{ '万' }}</span
>
</view>
<view class="ju_left_top" v-else>
<span class="ju_text1">恭喜您!已达标当月最高奖衔</span>
<span class="ju_text2">{{ awards.awardsName }}</span>
<span class="ju_text1">!记得保持哦!</span>
</view>
</view>
<view class="yestDay">
<view class="yes_t">{{ '当月奖衔' }}</view>
<view class="ju_left_bottom">
<view
class="current-schedule1"
:style="{
width: GetPercent(awards.sumRealPv, awards.targetPv),
}"
></view>
<view class="cha" v-if="awards.targetPv > 0">
{{ awards.sumRealPv }}/{{ awards.targetPv }}</view
>
<view class="cha" v-else> {{ awards.sumRealPv }}</view>
</view>
</view>
<view class="yestDay">
<view class="yes_t">{{ '昨日业绩' }}</view>
<view :class="awards.aNewPv!=0&&awards.bNewPv!=0?'ju_left_bottom1':'ju_left_bottom'">

View File

@ -46,8 +46,7 @@
</view>
</view>
<view class="index-view">
<view class="user-name">
{{'联系方式'}}</view>
<view class="user-name"> {{ '联系方式' }}</view>
<view class="user-right">
{{ userInfo.phone }}
</view>
@ -59,7 +58,7 @@
</view>
</view>
</view>
<view class="content" style="border-bottom: none;">
<view class="content" style="border-bottom: none">
<!-- <view class="index-view tops">
<view class="user-name">{{'自然国家'}}</view>
<view class="user-right">
@ -90,16 +89,16 @@
{{userInfo.agentGrade}}
</view>
</view> -->
<view class="index-view">
<!-- <view class="index-view">
<view class="user-name">{{ '真实奖衔' }}</view>
<view class="user-right">
{{ userInfo.awardsVal }}
</view>
</view>
</view> -->
<view class="index-view">
<view class="user-name">荣誉奖衔</view>
<view class="user-right">
{{userInfo.maxAwardsVal}}
{{ userInfo.awardsVal }}
</view>
</view>
<view class="index-view none">
@ -126,7 +125,10 @@
{{ userInfo.payTime }}
</view>
</view>
<view class="index-view none" v-if="userInfo.pkCountry == 1&&userData.expireDate">
<view
class="index-view none"
v-if="userInfo.pkCountry == 1 && userData.expireDate"
>
<view class="user-name">有效期</view>
<view class="user-right">
{{ userData.expireDate }}
@ -162,7 +164,13 @@
>
</u--input>
</view>
<u-button :disabled="!userInfo.nickName" class="btn" @click="submit" type="error" text="确 定"></u-button>
<u-button
:disabled="!userInfo.nickName"
class="btn"
@click="submit"
type="error"
text="确 定"
></u-button>
</u-popup>
</view>
</template>
@ -191,17 +199,17 @@ export default {
},
updateImg() {
const http = uni.$u.http.config.baseURL
let token = getToken();
let token = getToken()
uni.chooseImage({
sourceType: ['album'], //
success: chooseImageRes => {
const tempFilePaths = chooseImageRes.tempFilePaths;
const tempFilePaths = chooseImageRes.tempFilePaths
uni.uploadFile({
url: http + '/member/api/member/update-head', //
filePath: tempFilePaths[0],
name: 'file',
header: {
Authorization:token
Authorization: token,
},
success: res => {
console.error(res)
@ -210,18 +218,20 @@ export default {
let data = JSON.parse(res.data)
this.userInfo.headPath = data.data.url
}
}
});
},
})
},
fail: err => {
uni.$u.toast('上传失败', 'none');
}
});
uni.$u.toast('上传失败', 'none')
},
})
},
submit() {
api.updateData({
api
.updateData({
nickName: this.userInfo.nickName,
}).then((res)=>{
})
.then(res => {
uni.showToast({
title: res.msg,
icon: 'none',
@ -248,14 +258,18 @@ export default {
// });
// },
getInfo() {
api.getData().then(res => {
api
.getData()
.then(res => {
if (res) {
this.userInfo = res.data
if (this.userInfo.nickName.length > 20) {
this.userInfo.nickName1 = this.userInfo.nickName.substring(0,20)+'...'
this.userInfo.nickName1 =
this.userInfo.nickName.substring(0, 20) + '...'
}
}
}).catch(error => {
})
.catch(error => {
reject(error)
})
// api.getInfo().then(res => {
@ -273,7 +287,7 @@ export default {
<style lang="scss" scoped>
.kung {
padding: 20rpx 20rpx
padding: 20rpx 20rpx;
}
.title {
font-size: 40rpx;
@ -291,7 +305,7 @@ export default {
margin-right: 20rpx;
}
page {
background-color: #F2F2F2;
background-color: #f2f2f2;
}
.none {
border-bottom: none;
@ -300,16 +314,15 @@ export default {
border-top: 1rpx solid #eee;
}
.content {
border-bottom: 20rpx solid #F2F2F2;
border-bottom: 20rpx solid #f2f2f2;
background-color: #fff;
}
.index-view {
height: 110rpx;
margin: 0 30rpx 0 30rpx;
padding: 0 10rpx;
line-height: 110rpx;
border-bottom: 1rpx solid #EEEEEE;
border-bottom: 1rpx solid #eeeeee;
display: flex;
justify-content: space-between;
position: relative;
@ -345,7 +358,7 @@ export default {
}
}
.btn {
background-color: #FB3024;
background-color: #fb3024;
border: none;
height: 92rpx;
line-height: 92rpx;