活动:修复间隔天数位数

This commit is contained in:
luying
2022-05-11 17:45:13 +08:00
parent 3c711a0f27
commit a78ddabf35
4 changed files with 3 additions and 27 deletions

View File

@@ -59,7 +59,6 @@ export class RefreshShopPage {
export class RefreshShopData extends ActivityBase {
shopType: number = 0;//商店类型,用于客户端显示使用
name: string = '';//活动名称
interval: number = 0;//周期间隔(秒)
list: Array<RefreshShopPage> = [];//商品列表
//随机出商店可购买的商品数据
@@ -155,14 +154,6 @@ export class RefreshShopData extends ActivityBase {
let dataObj = JSON.parse(data);
this.shopType = dataObj.shopType;
this.name = dataObj.name;
this.interval = dataObj.interval * 864000;
// this.beginTime = moment(this.beginTime).startOf('d').add(REFRESH_TIME, 'hour').valueOf();
// if (this.interval > 0) {
// this.roundIndex = Math.ceil((moment(new Date).valueOf() - this.beginTime) / (this.interval * 1000));
// this.nextRefreshTime = moment(this.beginTime).add(this.interval * this.roundIndex, 'second').valueOf();
// }
// console.log('cccccccccccccccccccccccc', this.beginTime, this.roundIndex,)
let arr = dataObj.data;
for (let obj of arr) {
this.list.push(new RefreshShopPage(obj))