|
|
@ -60,16 +60,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
$(function(){
|
|
|
|
$(function(){
|
|
|
|
|
|
|
|
var flag = false;
|
|
|
|
$("#wxpay").one('click', function() {
|
|
|
|
$("#wxpay").on('click', function() {
|
|
|
|
$(this).removeAttr("one", "");
|
|
|
|
if (flag) return ;
|
|
|
|
$("#alipaybtn").removeAttr("one", "");
|
|
|
|
flag = true;
|
|
|
|
window.location.href = $(this).data('url');
|
|
|
|
window.location.href = $(this).data('url');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$('#alipaybtn').one('click',function() {
|
|
|
|
$('#alipaybtn').on('click',function() {
|
|
|
|
$(this).removeAttr("one", "");
|
|
|
|
if (flag) return ;
|
|
|
|
$("#wxpay").removeAttr("one", "");
|
|
|
|
flag = true;
|
|
|
|
|
|
|
|
|
|
|
|
var that = $(this),url = $.trim(that.attr('data-url'));
|
|
|
|
var that = $(this),url = $.trim(that.attr('data-url'));
|
|
|
|
if(that.hasClass('disabledbtn')){return false;}
|
|
|
|
if(that.hasClass('disabledbtn')){return false;}
|
|
|
@ -92,10 +92,14 @@ $(function(){
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
var u = navigator.userAgent;
|
|
|
|
var u = navigator.userAgent;
|
|
|
|
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
|
|
|
|
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
|
|
|
|
if (isAndroid)
|
|
|
|
if (isAndroid) {
|
|
|
|
window.txyxsdk.getZFBPay(data.url);
|
|
|
|
window.txyxsdk.getZFBPay(data.url);
|
|
|
|
else
|
|
|
|
} else {
|
|
|
|
|
|
|
|
try {
|
|
|
|
window.webkit.messageHandlers.noticeAppResult.postMessage(data.url);
|
|
|
|
window.webkit.messageHandlers.noticeAppResult.postMessage(data.url);
|
|
|
|
|
|
|
|
} catch(err) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
layer.open({
|
|
|
|
layer.open({
|
|
|
|