html界面等待状态,html 等待界面

发送中,请稍等...

function show(o1,o2,open)

{

var o1 = document.getElementById(o1);

var o2 = document.getElementById(o2);

o1.style.width = document.documentElement.scrollWidth;

o1.style.height = document.documentElement.scrollHeight

if(open){

o1.style.display = "block";

o2.style.display = "block";

}else{

o1.style.display = "none";

}

}

function showLoading(open)

{

var dialog = document.getElementById("loading");

if(open){

dialog.style.display = "block";

}else{

dialog.style.display = "none";

}

return true;

}

function sendOSMessageForAll()

{

show('pop','message_form',true);

showLoading(true);

$.ajax({

url : 'android/createOSMessage.action',

data:{senderId:$("#senderId").attr("value"),content:$("#content").attr("value"),receiver:$("#receiver").attr("value")},

cache : false,

async : true,

type : "POST",

dataType : 'json',

beforeSend:function(){

show('pop','message_form',true);

showLoading(true);

},

success : function (result)

{

if (result != null)

{

if(result.status == "0")

{

show('pop','message_form',false);

showLoading(false);

alert("发送成功!");

}

else

{

show('pop','message_form',false);

showLoading(false);

alert("发送失败!");

}

}

},

error:function(msg)

{

show('pop','message_form',false);

showLoading(false);

alert("发送错误!");

},

complete:function(){

}

});

}

效果如图:

939439e6e75f748fa305f2267eb4966a.png

原文:http://blog.csdn.net/coslay/article/details/44172073

以下是一个简单的HTML示例代码,展示了一个微信付款码支付页面的基本结构和内容: ```html <!DOCTYPE html> <html> <head> <title>微信付款码支付</title> </head> <body> <h1>微信付款码支付</h1> <form> <label for="amount">支付金额:</label> <input type="text" id="amount" name="amount"><br><br> <label for="details">商品详情:</label> <textarea id="details" name="details"></textarea><br><br> <label for="payment-method">支付方式:</label> <select id="payment-method" name="payment-method"> <option value="wechat">微信支付</option> <option value="alipay">支付宝支付</option> </select><br><br> <button type="submit">生成付款码</button> </form> <hr> <h2>付款码</h2> <img src="payment-code.png" alt="付款码"><br><br> <h2>支付状态</h2> <p>等待支付</p> <h2>订单号</h2> <p>202108120001</p> <p>提示信息:请使用微信扫描付款码完成支付。</p> </body> </html> ``` 请注意,在这个示例,我们使用了HTML表单元素来收集用户输入的支付金额和商品详情,并使用`<select>`元素让用户选择支付方式。我们还在页面上展示了付款码、支付状态、订单号和提示信息。 当用户点击“生成付款码”按钮时,您需要编写相应的JavaScript代码来生成付款码并展示在页面上,或者将付款码的生成工作交给服务器端处理。 请注意,这只是一个简单的示例,实际的微信付款码支付页面可能需要更多的功能和样式来满足您的需求。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值