Commit 4e5fd39e authored by 汪欢's avatar 汪欢

0

parent ece4bc36
......@@ -33,7 +33,7 @@ Page({
const { prize, openPrizeStatus, isShowPrize } = dat;
// isShowPrize只展示一次
if (isShowPrize) {
// 有奖品
// 有奖品 中奖
if (prize) {
this.setData({
prizeVisible: true,
......@@ -106,6 +106,8 @@ Page({
// let formatCreateTime = new Date(parseInt(createTime)).toLocaleDateString();
let month = new Date(parseInt(createTime)).getMonth() + 1;
let date = new Date(parseInt(createTime)).getDate();
month = month < 10 ? ('0' + month) : month;
date = month < 10 ? ('0' + date) : date;
item.monthDate = month + '月' + date + '日';
console.log(item.monthDate, 'time')
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment