|
|
@@ -215,7 +215,7 @@
|
|
|
<script type="text/javascript">
|
|
|
let timer,flag = true;
|
|
|
var url = window.location.href;
|
|
|
- var startTime,endTime;
|
|
|
+ var startTime,endTime,money;
|
|
|
url = url.split('/');
|
|
|
var topVal = -0.5;
|
|
|
var baseUrl = 'http://192.168.211.34:8044'
|
|
|
@@ -316,7 +316,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]}" totalMoney=${totalMoney}>${['未使用','领取','已领取'][item.state]}</div>
|
|
|
+ <div class="${['receive no-user','receive',' receive usered'][item.state]}" data-totalMoney=${totalMoney}>${['未使用','领取','已领取'][item.state]}</div>
|
|
|
</div>`
|
|
|
})
|
|
|
str += `<div class="packet">
|
|
|
@@ -394,6 +394,7 @@
|
|
|
});
|
|
|
//点击领取
|
|
|
$('.red-packet-next')[0].addEventListener('click',(e)=>{
|
|
|
+ money = e.target.dataset.totalmoney;
|
|
|
if(e.target.className === 'receive'){
|
|
|
e.stopPropagation();
|
|
|
if (isAndroid) {
|
|
|
@@ -403,7 +404,7 @@
|
|
|
});
|
|
|
//点击分享
|
|
|
$('.red-packet-next')[0].addEventListener('click',(e) => {
|
|
|
- console.log(e)
|
|
|
+
|
|
|
if(e.target.className === 'share' || e.target.className === 'share-num'){
|
|
|
$('.pop').animate({top: '48vh'},"fast");
|
|
|
$('.mask').show();
|
|
|
@@ -426,8 +427,9 @@
|
|
|
window.native[type](
|
|
|
'111',
|
|
|
'111',
|
|
|
- 'pages/home/home?AppID=wxe7a691bd1cd74958&',
|
|
|
- 'https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/18fe2f6bb3c843c0b6fc3935a7411c51~tplv-k3u1fbpfcp-zoom-mark-crop-v2:240:240:0:0.awebp'
|
|
|
+ `pages/home/home?AppID=wxe7a691bd1cd74958&money=${money}&startTime=${startTime}endTime=${endTime}`,
|
|
|
+ 'https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/18fe2f6bb3c843c0b6fc3935a7411c51~tplv-k3u1fbpfcp-zoom-mark-crop-v2:240:240:0:0.awebp',
|
|
|
+ '2'
|
|
|
);
|
|
|
}else{
|
|
|
stopManyClick(() => {
|