显示底部文字
+diff --git "a/\346\217\222\344\273\266\345\274\200\345\217\221\344\273\243\347\240\201/miniprogram/pages/index/index.js" "b/\346\217\222\344\273\266\345\274\200\345\217\221\344\273\243\347\240\201/miniprogram/pages/index/index.js"
index 37b11dc..be8c3e9 100644
--- "a/\346\217\222\344\273\266\345\274\200\345\217\221\344\273\243\347\240\201/miniprogram/pages/index/index.js"
+++ "b/\346\217\222\344\273\266\345\274\200\345\217\221\344\273\243\347\240\201/miniprogram/pages/index/index.js"
@@ -19,6 +19,8 @@ Page({
style: [],
activeType: 'rounded', // 日期背景效果
+
+ bottom:false,//底部文字显示与隐藏
},
onLoad: function () {
@@ -111,11 +113,11 @@ Page({
} else {
this.setData({
style: [
- { month: 'current', day: 3, color: 'white', background: '#58cc69' },
- { month: 'current', day: 12, color: 'white', background: '#728eff' },
- { month: 'current', day: 13, color: 'white', background: '#728eff' },
- { month: 'current', day: 14, color: 'white', background: '#728eff' },
- { month: 'current', day: 15, color: 'white', background: '#728eff' },
+ { month: 'current', day: 3, color: 'white', background: '#58cc69', bottomText: '售罄', fontSize: '20rpx' },
+ { month: 'current', day: 12, color: 'white', background: '#728eff' },
+ { month: 'current', day: 13, color: 'white', background: '#728eff' },
+ { month: 'current', day: 14, color: 'white', background: '#728eff', bottomText: '已签到', fontSize:'20rpx' },
+ { month: 'current', day: 15, color: 'white', background: '#58cc69', bottomText: '未签到', fontSize: '20rpx' },
{ month: 'current', day: 16, color: 'white', background: '#728eff' },
{ month: 'current', day: 26, color: 'white', background: '#ff72a6' },
{ month: 'current', day: 27, color: 'white', background: '#ff72a6' },
@@ -124,6 +126,12 @@ Page({
}
},
+ switchBottom:function(){
+ this.setData({
+ bottom: !this.data.bottom
+ });
+ },
+
changeTitle: function (event) {
const index = event.detail.value;
switch (index) {
diff --git "a/\346\217\222\344\273\266\345\274\200\345\217\221\344\273\243\347\240\201/miniprogram/pages/index/index.wxml" "b/\346\217\222\344\273\266\345\274\200\345\217\221\344\273\243\347\240\201/miniprogram/pages/index/index.wxml"
index 939bcb6..51e59d5 100644
--- "a/\346\217\222\344\273\266\345\274\200\345\217\221\344\273\243\347\240\201/miniprogram/pages/index/index.wxml"
+++ "b/\346\217\222\344\273\266\345\274\200\345\217\221\344\273\243\347\240\201/miniprogram/pages/index/index.wxml"
@@ -35,6 +35,8 @@ actives:[激活的日期]
days-color="{{style}}"
active-type="{{activeType}}"
next-month='hi'
+
+ bottom='{{bottom}}'
bindnextMonth='nextMonth'
bindprevMonth='prevMonth'
@@ -83,4 +85,8 @@ actives:[激活的日期]
显示底部文字
+