直播间需要添加签到功能
This commit is contained in:
@@ -29,9 +29,14 @@
|
||||
/** 连续天数 */
|
||||
const continuousDays = ref(0)
|
||||
|
||||
/** 给数子补零 */
|
||||
const padZero = num => {
|
||||
return num < 10 ? `0${num}` : num
|
||||
}
|
||||
|
||||
const getData = async msg => {
|
||||
const res = await getSignList({
|
||||
signMonth: `${currentYear.value}-${currentMonth.value}`
|
||||
signMonth: `${currentYear.value}-${padZero(currentMonth.value)}`
|
||||
})
|
||||
|
||||
dateList.value = generateCalendar(
|
||||
@@ -199,7 +204,9 @@
|
||||
</view>
|
||||
<!-- 切换 -->
|
||||
<view class="switch-box">
|
||||
<text class="date">{{ currentYear }}年{{ currentMonth }}月</text>
|
||||
<text class="date">
|
||||
{{ currentYear }}年{{ padZero(currentMonth) }}月
|
||||
</text>
|
||||
<view class="btn">
|
||||
<uni-icons
|
||||
type="left"
|
||||
|
||||
Reference in New Issue
Block a user