duanshenglang 5 mesiacov pred
rodič
commit
12debccba3
1 zmenil súbory, kde vykonal 5 pridanie a 3 odobranie
  1. 5 3
      lottery/index.html

+ 5 - 3
lottery/index.html

@@ -983,7 +983,8 @@
 		window.onload = function() {
 			if (localStorage.getItem('openId')) {
 				if(!getQueryParam('externalUserid')) {
-					mui.alert('无权限访问', '提示', '确定');
+					let bId = getQueryParam('bId')
+					gerQwAuth(bId);
 				} else {
 					h5Type = getQueryParam('h5Type')
 					getQyWxSign()
@@ -1467,12 +1468,13 @@
 								<div class="prize-name">${record.name}</div>
 								<div class="prize-time">${timeFormat(record.raffleTime)}</div>
 							</div>
-							<button id="toggleButton" ${record.status ? 'disabled' : ''} class="get-btn" onclick="handleOpenForm(${record.id})">${record.status ? '已领取' : '领取'}</button>
+							<button id="toggleButton" ${(record.status==-1 || record.status==0) ? 'disabled' : ''} class="get-btn" onclick="handleOpenForm(${record.id})">${record.status ? '已领取' : (record.status==-1 ? '审核中' : '领取')}</button>
 						</div>`
 					});
 				},
 				error:function(error){
-					//异常处理;
+					//异常处理
+
 					console.log(error);
 				}
 			});