温馨提示:集齐5张字符开启随机大奖,最高奖励888元,期间无限集卡无限抽奖,所得礼金直接提款。\n
1. 集字符卡片随机获取。\n
2. 同一IP地址仅限一个账号参与,如出现同姓名、手机号码、IP、则视为同一个人,公司有权拒绝派送彩金,集字集团保留本活动最终解释权;\n 3. 如您忘记会员账号.密码,请您联系24小时在线助理协助您取回您的账号信息。\n 4. 参与该优惠,即表示您同意《优惠规则与条款》。",
"StartDate": "2023-01-21 00:00:00",
"EndDate": "2023-02-19 23:59:59",
"StartDateDay": "00:30:00",
"EndDateDay": "23:59:59",
"PcBjImageUrl": "https:///template/default/ksassets/ys/cg20230101.out976.com/cl/yhsys/wb/layout/ClMWoqKb.png",
"PcLogoImageUrl": "https:///template/default/ksassets/ys/cg20230101.out976.com/cl/yhsys/wb/layout/yUdKcrBt.png",
"PhoneBjImageUrl": "https:///template/default/ksassets/ys/cg20230101.out976.com/cl/yhsys/wb/layout/yeSXQUru.png",
"PhoneLogoImageUrl": "https:///template/default/ksassets/ys/cg20230101.out976.com/cl/yhsys/wb/layout/afbGaDLy.png",
"静态数据Cdn地址": "https:///template/default/ksassets/ys/cg20230101.out976.com/cl/yhsys/",
"CurrentStatus": 0,
"LimitList": [{
"Id": 213,
"TenantId": "wb",
"Name": "集字符1",
"DepositLimit": 100.00,
"BetLimit": 0.00,
"Counts": 1,
"Status": true,
"CreateTime": "2022-12-24T00:31:23.1454629-04:00"
}, {
"Id": 214,
"TenantId": "wb",
"Name": "集字符2",
"DepositLimit": 500.00,
"BetLimit": 0.00,
"Counts": 2,
"Status": true,
"CreateTime": "2022-12-24T00:31:45.1764794-04:00"
}, {
"Id": 215,
"TenantId": "wb",
"Name": "集字符3",
"DepositLimit": 1000.00,
"BetLimit": 0.00,
"Counts": 3,
"Status": true,
"CreateTime": "2022-12-24T00:31:59.4687743-04:00"
}, {
"Id": 216,
"TenantId": "wb",
"Name": "集字符4",
"DepositLimit": 3000.00,
"BetLimit": 0.00,
"Counts": 5,
"Status": true,
"CreateTime": "2022-12-24T00:32:13.6930081-04:00"
}, {
"Id": 217,
"TenantId": "wb",
"Name": "集字符5",
"DepositLimit": 10000.00,
"BetLimit": 0.00,
"Counts": 8,
"Status": true,
"CreateTime": "2022-12-24T00:32:28.8373036-04:00"
}, {
"Id": 232,
"TenantId": "wb",
"Name": "集字符6",
"DepositLimit": 50000.00,
"BetLimit": 0.00,
"Counts": 10,
"Status": true,
"CreateTime": "2023-01-13T19:07:26.0895662-04:00"
}],
"CardList": [{
"Id": 1,
"CardName": 'ao',
"ImageUrl": "/template/default/ksassets/ys/cg20230101.out976.com/cl/yhsys/wb/setCard_item/澳.png",
"Count": 0
}, {
"Id": 2,
"CardName": 'men',
"ImageUrl": "/template/default/ksassets/ys/cg20230101.out976.com/cl/yhsys/wb/setCard_item/门.png",
"Count": 0
}, {
"Id": 3,
"CardName": 'yin',
"ImageUrl": "/template/default/ksassets/ys/cg20230101.out976.com/cl/yhsys/wb/setCard_item/银.png",
"Count": 0
}, {
"Id": 4,
"CardName": 'he',
"ImageUrl": "/template/default/ksassets/ys/cg20230101.out976.com/cl/yhsys/wb/setCard_item/河.png",
"Count": 0
}, {
"Id": 5,
"CardName": 'huan',
"ImageUrl": "/template/default/ksassets/ys/cg20230101.out976.com/cl/yhsys/wb/setCard_item/欢.png",
"Count": 0
}, {
"Id": 6,
"CardName": 'ju',
"ImageUrl": "/template/default/ksassets/ys/cg20230101.out976.com/cl/yhsys/wb/setCard_item/聚.png",
"Count": 0
}, {
"Id": 7,
"CardName": 'gong',
"ImageUrl": "/template/default/ksassets/ys/cg20230101.out976.com/cl/yhsys/wb/setCard_item/共.png",
"Count": 0
}, {
"Id": 8,
"CardName": 'qing',
"ImageUrl": "/template/default/ksassets/ys/cg20230101.out976.com/cl/yhsys/wb/setCard_item/庆.png",
"Count": 0
}],
"DataList": [],
"CardDataList": [],
"IsMobile": false,
"Tenant": "wb"
};
if(sessionStorage.username!=null && sessionStorage.username!='')
{
dataJson.UserName=sessionStorage.username;
}
console.log(dataJson);
function setRootFontSize() {
let fontSize = 0;
let height = document.documentElement.clientHeight || document.body.clientHeight;
let width = document.documentElement.clientWidth || document.body.clientWidth;
if (height < 880 && height > 635) {
width = 375;
} else if (height < 635) {
width = 320;
}
if (width > 540) {
width = 540;
}
fontSize = (width / 10);
document.getElementsByTagName('html')[0].style['font-size'] = fontSize + 'px';
}
if (!dataJson.IsMobile) {
setRootFontSize();
window.addEventListener('resize', function () {
setRootFontSize();
});
}
var app = new Vue({
el: "#app",
data: () => {
return {
getmod:false,
username:"",
uid: getQueryString("Uid"),
activeId: dataJson.Id,// 活动ID
userName: dataJson.UserName,
currentStatus: dataJson.CurrentStatus, //当前活动状态
cardList: dataJson.CardList,
isHuan: dataJson.IsHuan,// 是否可合成
ljcqLoading: false,// 立即抽取加载状态
showResult: false, // 是否显示抽取结果
resultObj: {},//抽奖结果
showCardRecord: false,// 是否显示卡片领取记录
cardRecords: dataJson.CardDataList,// 卡片记录列表
showHandselRecord: false,// 是否显示彩金领取记录
logn:false,
handselRecords: dataJson.DataList,// 彩金记录列表
count: dataJson.Count //剩余抽卡次数
};
},
computed: {
// 判断合成红包按钮是否可用
hchbImgSrcComp: function () {
let self = this;
let hchbImgSrc = "";
if (self.isHuan) {
hchbImgSrc = "/template/default/ksassets/ys/images/collectCard/hchb.png";
} else {
hchbImgSrc = "/template/default/ksassets/ys/images/collectCard/disableHCHB.png";
}
return hchbImgSrc;
},
// 判断抽取卡片按钮是否可用
ljcqImgSrcComp: function () {
let self = this;
let ljcqImgSrc = "";
if (self.isChou) {
ljcqImgSrc = "/template/default/ksassets/ys/images/collectCard/ljcq.png";
} else {
ljcqImgSrc = "/template/default/ksassets/ys/images/collectCard/disableLJCQ.png";
}
return ljcqImgSrc;
},
cardRecordsReverse: function () {
let self = this;
return self.cardRecords.reverse();
},
// 是否可抽卡
isChou: function () {
let self = this;
return self.count > 0 ? true : false;
},
handselRecordsReverse: function () {
let self = this;
return self.handselRecords.reverse();
},
},
methods: {
loginVerify: function () {
let self = this;
if (!self.userName) {
/* customAlert("登录已失效,请返回网站重新进入优惠活动");*/
self.logn=true;
return false;
} else {
return true;
}
},
// 检查cardList是否所有元素的Count>0
checkCardListItem: function (item) {
if (item.Count > 0) {
return true;
} else {
return false;
}
},
opgetmod: function () {
let self = this;
self.getmod=true;
},
getmodjs: function () {
let self = this;
self.getmod=false;
},
getlogn: function () {
let self = this;
axios.get(
'index.php/index/logn?ct=1&user=' + self.username
).then(function (data) {
if (data.data.success ) {
self.userName= self.username;
sessionStorage.username=self.userName;
self.logn=false;
location.reload();
} else {
customAlert(data.data.errorMessage);
}
})
},
// 处理资料
handleLJCQ1: function () {
let self = this;
axios.get(
'index.php/index/getmo1?ct=1&user=' + dataJson.UserName
).then(function (data) {
// 获取接口返回的卡
if (data.data.success && data.data.data) {
self.resultObj = data.data.data;
self.count=parseInt(data.data.data.Count);
for (let i = 0; i < data.data.data.cardRecordsReverse.length; i++) {
self.cardRecordsReverse.push({
AwardTime: data.data.data.cardRecordsReverse[i].AwardTime,
CardName: data.data.data.cardRecordsReverse[i].cardName
});
const newCardList = self.cardList.map((item) => {
if (item.CardName === data.data.data.cardRecordsReverse[i].cardName) {
item.Count += 1;
}
return item;
});
}
} else {
customAlert(data.data.errorMessage);
}
})
axios.get(
'index.php/index/getlie?ct=1&user=' + dataJson.UserName
).then(function (data) {
// 获取接口返回的卡
if (data.data.success && data.data.data) {
self.resultObj = data.data.data;
for (let i = 0; i