diff --git a/pages/rushToBuy/index.wxml b/pages/rushToBuy/index.wxml index 854bcb0..a803f89 100644 --- a/pages/rushToBuy/index.wxml +++ b/pages/rushToBuy/index.wxml @@ -34,7 +34,7 @@ 马上购 立即领 已售罄 - 未开始 + 即将开始 已结束 diff --git a/project.config.json b/project.config.json index fe279fd..1ec26d3 100644 --- a/project.config.json +++ b/project.config.json @@ -9,10 +9,10 @@ "postcss": true, "minified": true, "newFeature": true, - "autoAudits": false + "autoAudits": true }, "compileType": "miniprogram", - "libVersion": "2.0.9", + "libVersion": "2.2.0", "appid": "wxb11603577a84a86d", "projectname": "C%E7%AB%AF%E5%B0%8F%E7%A8%8B%E5%BA%8F", "isGameTourist": false, diff --git a/utils/util.js b/utils/util.js index 9e1caf4..6772948 100644 --- a/utils/util.js +++ b/utils/util.js @@ -92,7 +92,14 @@ function timechuo(startTime) { var minute = Math.floor(runTime / 60); var runTime = runTime % 60; var second = runTime; - return (hour+"小时"+minute+"分钟") + if (day && !year && !month){ + return (day + '天' + hour + "小时" + minute + "分钟") + } else if (month && !year){ + return (month+'月'+day + '天' + hour + "小时" + minute + "分钟") + } else if (year) { + return (year + '年' + month+'个月'+ day + '天' + hour + "小时" + minute + "分钟") + } + }