修复已知问题

This commit is contained in:
bobobobo
2026-01-20 21:39:14 +08:00
parent 8f57889ad3
commit 139514b2b9
3 changed files with 68 additions and 9 deletions

View File

@@ -51,7 +51,21 @@
}
continuousDays.value = res.data.continuousDays
indexData.value = res.data.list.map(v => v.signDate)
// indexData.value = res.data.list.map(v => v.signDate)
indexData.value = res.data.list
console.log(indexData.value, '===')
}
/** 判断那一天签到了 */
const isSign = item => {
return indexData.value.some(v => v.signDate === item.signDate)
}
/** 判断签到那一天加多少积分 */
const isAddIntegral = item => {
return indexData.value.find(v => v.signDate === item.signDate)
.pointsAwarded
}
/**
@@ -232,11 +246,11 @@
<view v-for="(item, index) in weekList" :key="index" class="item">
<text class="bottom-name">{{ item.name }}</text>
</view>
<!-- 签到 -->
<!-- 签到 :class="{ active: indexData.includes(item.signDate) }" -->
<view
v-for="(item, index) in dateList"
:key="index"
:class="{ active: indexData.includes(item.signDate) }"
:class="{ active: isSign(item) }"
class="item"
@click="onItem(item)"
>
@@ -246,7 +260,7 @@
mode="heightFix"
class="icon"
></image>
<!-- <text>+10</text> -->
<text v-if="isSign(item)">+{{ isAddIntegral(item) }}</text>
</view>
<text
:style="{ color: item.isToday ? '#00d993' : '#999999' }"

View File

@@ -135,7 +135,7 @@
<template>
<view v-if="!loading" class="real-id">
<view v-if="[0, 2, 3].includes(stateData)">
<view v-if="[0, 2].includes(stateData)">
<!-- 主播申请输入 -->
<view
v-if="props?.isLiveStream && [9, 2].includes(stateLiveAnchor)"
@@ -212,6 +212,39 @@
</cb-button>
</bottom-view>
</view>
<view v-else>
<text class="top-text">*您已完成实名认证</text>
<CardInput :is-input="false" title="证件">
<view class="qrcode-box">
<cb-file-picker
v-model="formData.front"
v-model:list="formData.frontList"
:readonly="stateData === 3"
isFront
></cb-file-picker>
<cb-file-picker
v-model="formData.back"
v-model:list="formData.backList"
:readonly="stateData === 3"
isBack
></cb-file-picker>
</view>
</CardInput>
<CardInput
v-model="formData.realName"
title="姓名"
placeholder="请输入姓名"
:disabled="stateData === 3"
></CardInput>
<CardInput
v-model="formData.idCard"
title="身份证号"
placeholder="请输入身份证号"
:disabled="stateData === 3"
></CardInput>
</view>
<view v-if="stateData == 1 || stateLiveAnchor == 0" class="wait-view">
<image
src="/static/images/my-index/date-icon.png"

View File

@@ -41,7 +41,7 @@
{
name: '发红包支出',
id: '11',
state: '-',
state: '',
color: '#e74c3c'
},
{
@@ -79,6 +79,12 @@
id: '17',
state: '-',
color: '#e74c3c'
},
{
name: '充值',
id: '18',
state: '+',
color: '#2ecc71'
}
]
: [
@@ -171,7 +177,13 @@
<view class="name-box">
<text>
{{
props.type === '0' ? item.description : item.withdrawalNo
props.type === '0'
? topNav[
props.type === '0'
? item.changeType
: item.status + 1
].name
: item.withdrawalNo
}}
</text>
<text>
@@ -187,11 +199,11 @@
].color
}"
>
{{
<!-- {{
topNav[
props.type === '0' ? item.changeType : item.status + 1
].name
}}
}} -->
</text>
<text>
{{