修复已知问题

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 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"> <view v-for="(item, index) in weekList" :key="index" class="item">
<text class="bottom-name">{{ item.name }}</text> <text class="bottom-name">{{ item.name }}</text>
</view> </view>
<!-- 签到 --> <!-- 签到 :class="{ active: indexData.includes(item.signDate) }" -->
<view <view
v-for="(item, index) in dateList" v-for="(item, index) in dateList"
:key="index" :key="index"
:class="{ active: indexData.includes(item.signDate) }" :class="{ active: isSign(item) }"
class="item" class="item"
@click="onItem(item)" @click="onItem(item)"
> >
@@ -246,7 +260,7 @@
mode="heightFix" mode="heightFix"
class="icon" class="icon"
></image> ></image>
<!-- <text>+10</text> --> <text v-if="isSign(item)">+{{ isAddIntegral(item) }}</text>
</view> </view>
<text <text
:style="{ color: item.isToday ? '#00d993' : '#999999' }" :style="{ color: item.isToday ? '#00d993' : '#999999' }"

View File

@@ -135,7 +135,7 @@
<template> <template>
<view v-if="!loading" class="real-id"> <view v-if="!loading" class="real-id">
<view v-if="[0, 2, 3].includes(stateData)"> <view v-if="[0, 2].includes(stateData)">
<!-- 主播申请输入 --> <!-- 主播申请输入 -->
<view <view
v-if="props?.isLiveStream && [9, 2].includes(stateLiveAnchor)" v-if="props?.isLiveStream && [9, 2].includes(stateLiveAnchor)"
@@ -212,6 +212,39 @@
</cb-button> </cb-button>
</bottom-view> </bottom-view>
</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"> <view v-if="stateData == 1 || stateLiveAnchor == 0" class="wait-view">
<image <image
src="/static/images/my-index/date-icon.png" src="/static/images/my-index/date-icon.png"

View File

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