Commit 720284c0 by 胡悦

修改个人收入新绩效规则显示问题

1 parent 58ae5591
......@@ -34,7 +34,8 @@
<view class="value-title">产值</view>
<view class="value-price">
<text>¥</text>
{{ item.orderTotalPrice || '0' }}
<!-- 新规则没有值显示-,老规则没有值显示0(原来没有值显示0) -->
{{ (item.configType && item.configType == 4) ? (item.orderTotalPrice || '-') : (item.orderTotalPrice || '0') }}
</view>
</view>
<view class="value-desc flex">
......@@ -55,6 +56,10 @@
<text>产品明细</text>
<view class="link-icon"></view>
</view>
<view v-else-if="item.configType && item.configType == 4 && v.label == '提成系数'" class="detail-num">-</view>
<view v-else-if="item.configType && item.configType == 4 && v.label == '提成比例'" class="detail-num">
<view class="detail-num-text">每单</view>{{ item[v.value] || '0' }}<view class="detail-num-text">元</view>
</view>
<view class="detail-num" v-else>{{ item[v.value] || '0' }}{{ v.unit }}</view>
</view>
</view>
......@@ -116,6 +121,20 @@
</template>
<script>
const _tabList = [
{
name: '问界',
value: 1
},
{
name: '鸿蒙',
value: 3
},
{
name: '其他',
value: 2
},
]
import dayjs from 'dayjs'
import Detail from './Detail'
import baseDialog from './baseDialog'
......@@ -199,6 +218,10 @@ export default {
value: 1
},
{
name: '鸿蒙',
value: 3
},
{
name: '其他',
value: 2
}
......@@ -328,7 +351,7 @@ export default {
uni.$api.pointApi.incomeCalculationDetail({ merchantId }).then(res => {
console.log(res)
if (res && res.commissions) {
const commissions = res.commissions.find(i => i.configType == 3)
const commissions = res.commissions.find(i => i.configType == 3 || i.configType == 4)
const commissionsOther = res.commissions.filter(i => i.configType == 1)
if (commissions || commissionsOther.length > 0) {
......@@ -339,6 +362,8 @@ export default {
})
console.log(this.commissionsInfoQG, 'commissionsInfoQG')
this.scene0PenetrationRateCommissions = commissions?.scene0PenetrationRateCommissions || []
this.tabList = _tabList.filter(i => this.scene0PenetrationRateCommissions.some(item => item.configCarType === i.value))
console.log(commissions, 'commissions')
this.getCommissionsInfo()
} else {
this.commissionsInfo = [{}]
......@@ -629,6 +654,7 @@ export default {
margin-top: toRpx(4);
font-size: toRpx(24);
color: #3773f8;
line-height: toRpx(48);
.link-icon {
border-left: toRpx(10) solid #3773f8;
border-bottom: toRpx(10) solid transparent;
......@@ -640,6 +666,11 @@ export default {
font-size: toRpx(32);
color: #292d33;
line-height: toRpx(48);
&-text {
display: inline-block;
font-size: toRpx(24);
color: #808291;
}
}
}
}
......
......@@ -147,14 +147,12 @@ export default {
uni.$on('pageBack', () => {
console.log('pageBack')
this.getMessageInfo();
this.getSopCount()
});
uni.$on('studyCenter', () => {
console.log('studyCenter')
this.changeIndex(3, this.tabs[3])
});
this.getUnreadCount()
this.getSopCount() // 获取Ai集市未读个数
this.findBeiSenSSOToken().then(() => {
this.getMessageInfo()
}) // 获取北森token后再获取消息
......@@ -243,7 +241,6 @@ export default {
this.$emit('update:tabIndex', index)
this.$emit("changeTab", index,jumpUrl)
this.getMessageInfo()
this.getSopCount()
},
async haveCustomerAccess (val) {
const { shopMerchantId, sceneType: scene } = val
......@@ -350,15 +347,6 @@ export default {
this.$emit('update:tabIndex', 99)
}
},
async getSopCount () {
const { sceneType } = uni.$storage.get("userInfo")
this.sopCount = await uni.$api.commonApi.getSopAiAgentMessageCount({
moduleType: 4, // 0-系统通知,1-优秀话术,2-话术预警,3-AI导师
businessType: sceneType,
status: 0
})
console.log(this.sopCount, 'sopCount')
}
},
beforeCreate () {
clearInterval(this.trackInterval)
......
......@@ -207,7 +207,7 @@ export default {
async getUnreadCount() {
try {
const { undoCount } = await uni.$api.commonApi.getStudyCenterStatistics();
this.typeList[1].num = () => `(${undoCount})`;
this.typeList[1].num = () => undoCount === 0 ? '' : `(${undoCount})`;
} catch (error) {
console.error('获取未读数失败:', error);
this.typeList[1].num = () => '';
......@@ -559,7 +559,7 @@ export default {
padding: toRpx(16) toRpx(20);
background-color: #F5F9FF;
border-radius: toRpx(6);
font-size: toRpx(24)啊,;
font-size: toRpx(24);
.value-wrapper {
display: flex;
align-items: center;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!