1
0
mirror of https://github.com/ialley-workshop-open/uni-halo.git synced 2026-06-12 13:19:31 +08:00

修改:修复恋爱日记在微信小程序ios下的日期转换错误bug;

修改:修复海报分享因为无图使用随机图在微信小程序下异常bug;
新增:halo.config.template.js 新增一个配置项 defaultStaticThumbnailUrl 默认静态图片用于海报在无图且使用了随机图时候的封面图片地址
This commit is contained in:
小莫唐尼
2022-12-15 14:25:54 +08:00
parent 5000da9a64
commit 261617fc12
8 changed files with 29 additions and 19 deletions
+2 -1
View File
@@ -84,7 +84,8 @@ export default {
clearTimeout(this.loveDayTimer);
const _countDownFn = () => {
this.loveDayTimer = setTimeout(_countDownFn, 1000);
const start = new Date(this.loveConfig.loveStartDate),
const formatStartDate = this.loveConfig.loveStartDate.replace(/-/g, '/');
const start = new Date(formatStartDate),
now = new Date();
const T = now.getTime() - start.getTime();
const i = 24 * 60 * 60 * 1000;