62,052
社区成员
发帖
与我相关
我的任务
分享
@{
Layout = null;
}
<html>
<head>
<meta name="viewport" content="width=device-width" />
<meta charset="UTF-8">
<title>MessageRev</title>
</head>
<body>
@*<div>
<form id="zfmessage" name="ZfMessageForm" method="post" action="/home/MessageRev" target="_blank">
<div>
<label>卖家支付宝账户:</label>
<input type="text" name="Seller_email" required />
</div>
<div>
<label>商户订单号:</label>
<input type="text" name="Out_trade_no" required />
</div>
<div>
<label>订单名称:</label>
<input type="text" name="Subject" required />
</div>
<div>
<label>付款金额:</label>
<input type="text" name="Total_fee" />
</div>
<div>
<label>订单描述:</label>
<input type="text" name="Body" />
</div>
<div>
<label>商品展示地址:</label>
<input type="text" name="Show_url" />
</div>
<div>
<label>异步通知地址:</label>
<input type="text" name="Notify_url" />
</div>
<div>
<button type="submit" data-event="test">确认</button>
</div>
</form>
</div>*@
<button type="submit" data-event="test">确认</button>
<script src="../../artDialog-master/lib/sea.js"></script>
<script>
seajs.config({
alias: {
"jquery": "jquery-1.10.2.js"
}
});
</script>
<script>
seajs.use(['jquery', '../../artDialog-master/src/dialog-plus'], function ($, dialog) {
$('button[data-event=test]').on('click', function () {
var d = dialog({
title: '消息',
content: '风吹起的青色衣衫,夕阳里的温暖容颜,你比以前更加美丽,像盛开的花<br>——许巍《难忘的一天》',
okValue: '确 定',
ok: function () {
dialog()
.title('提示2')
.content('hello world')
.button([{
value: '打开',
autofocus: true,
callback: function () {
dialog()
.title('提示')
.showModal();
}
}])
.show();
return false;
},
cancelValue: '取消',
cancel: function () { }
});
d.showModal();
});
});
</script>
</body>
</html>
<!doctype html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<title>test</title>
</head>
<body>
<button data-event="test">open dialog</button>
<script src="../lib/sea.js"></script>
<script>
seajs.config({
alias: {
"jquery": "jquery-1.10.2.js"
}
});
</script>
<script>
seajs.use(['jquery', '../src/dialog'], function ($, dialog) {
$('button[data-event=test]').on('click', function () {
var d = dialog({
title: '消息',
content: '风吹起的青色衣衫,夕阳里的温暖容颜,你比以前更加美丽,像盛开的花<br>——许巍《难忘的一天》',
okValue: '确 定',
ok: function () {
var that = this;
setTimeout(function () {
that.title('提交中..');
}, 2000);
return false;
},
cancelValue: '取消',
cancel: function () {}
});
d.show();
});
});
</script>
</body>
</html>