|
@@ -231,6 +231,7 @@
|
|
|
getActivityTime();
|
|
|
awardHandle();
|
|
|
headerAward();
|
|
|
+ getAwardData();
|
|
|
})()
|
|
|
let s = loc.substr(1,loc.length-1);//取得=号的位置
|
|
|
let parms = s.split('&');
|
|
@@ -257,6 +258,19 @@
|
|
|
awardHandle();
|
|
|
},3000);
|
|
|
}
|
|
|
+ // 获取链接
|
|
|
+ function getAwardData(){
|
|
|
+ $.ajax({
|
|
|
+ url: baseUrl + `/v1/activity/receivedData`,
|
|
|
+ type: 'post',
|
|
|
+ contentType:"application/json",
|
|
|
+ dataType: 'json',
|
|
|
+ cache: false,
|
|
|
+ success: function (res) {
|
|
|
+ console.log(res)
|
|
|
+ },
|
|
|
+ })
|
|
|
+ }
|
|
|
function awardHandle(){
|
|
|
let index = (topVal/0.5) + 1;
|
|
|
if(topVal < 2){
|
|
@@ -326,7 +340,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="meal">无极${item.receivePhoneDuration===30?'月卡':item.receivePhoneDuration===120?'季卡':item.receivePhoneDuration===365?'年卡':item.receivePhoneDuration+'卡'}</div>
|
|
|
- <div class="${['receive no-user','receive',' receive usered'][item.state]}" data-id=${id}>${['未使用','领取','已领取'][item.state]}</div>
|
|
|
+ <div class="${['receive no-user','receive',' receive usered'][item.state]}" data-id=${item.id}>${['未使用','领取','已领取'][item.state]}</div>
|
|
|
</div>`
|
|
|
})
|
|
|
str += `<div class="packet">
|
|
@@ -424,8 +438,8 @@
|
|
|
});
|
|
|
//点击领取
|
|
|
$('.red-packet-next')[0].addEventListener('click',(e)=>{
|
|
|
+ console.log(e.target.dataset)
|
|
|
let id = e.target.dataset.id;
|
|
|
- console.log(id)
|
|
|
if(e.target.className === 'receive'){
|
|
|
e.stopPropagation();
|
|
|
if (isAndroid) {
|
|
@@ -456,7 +470,7 @@
|
|
|
shareHandle('shareToWechatMin');
|
|
|
});
|
|
|
function shareHandle(type) {
|
|
|
- // shareAddress();
|
|
|
+ shareAddress();
|
|
|
if (isAndroid) {
|
|
|
if(window.native){
|
|
|
operate('dt_双11_h5_分享红包');
|
|
@@ -476,7 +490,6 @@
|
|
|
'https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/18fe2f6bb3c843c0b6fc3935a7411c51~tplv-k3u1fbpfcp-zoom-mark-crop-v2:240:240:0:0.awebp'
|
|
|
);
|
|
|
}
|
|
|
-
|
|
|
}else{
|
|
|
stopManyClick(() => {
|
|
|
toastr.error('不支持当前环境!');
|
|
@@ -491,7 +504,7 @@
|
|
|
// 获取链接
|
|
|
function shareAddress(){
|
|
|
$.ajax({
|
|
|
- url: baseUrl + `/v1/activity/shareAddress`,
|
|
|
+ url: baseUrl + `/v1/activity/shareAddress?paramJson=111111`,
|
|
|
type: 'get',
|
|
|
contentType:"application/json",
|
|
|
dataType: 'json',
|