|
@@ -235,7 +235,7 @@
|
|
|
<div class="detail_layout">
|
|
|
<div data-options="region:'center'" class="detail_center">
|
|
|
<div class="detail_main">
|
|
|
- <form id="sendCoupon_form" method="post">
|
|
|
+ <form id="sendBalance_form" method="post">
|
|
|
<ul>
|
|
|
<li class="f_item">
|
|
|
<div class="box">
|
|
@@ -243,7 +243,7 @@
|
|
|
<span>ID: </span>
|
|
|
</div>
|
|
|
<div class="box_flex f_content">
|
|
|
- <span id="balance_user_str"></span>
|
|
|
+ <span id="balance_id_str"></span>
|
|
|
<input type="hidden" name="id" id="balance_user_id" />
|
|
|
</div>
|
|
|
</div>
|
|
@@ -289,7 +289,7 @@
|
|
|
</div>
|
|
|
<div data-options="region:'south'" class="detail_south">
|
|
|
<div class="detail_toolbar">
|
|
|
- <a href="javascript:void(0);" class="easyui-linkbutton set_button" iconCls="icon-save" onclick="sendCoupon();return false;">发送</a>
|
|
|
+ <a href="javascript:void(0);" class="easyui-linkbutton set_button" iconCls="icon-save" onclick="sendBalance();return false;">发送</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div data-options="region:'south'" class="detail_south">
|
|
@@ -317,13 +317,14 @@ var jq_content_form = $('#content_form');
|
|
|
var jq_action_info = $('#action_info');
|
|
|
var jq_add_dialog = $('#add_dialog');
|
|
|
var jq_add_form = $('#add_form');
|
|
|
-var jq_score_form = $('#score_form');
|
|
|
+var jq_balance_form = $('#balance_form');
|
|
|
var jq_avatar = $('#avatar_info');
|
|
|
var jq_ss = $('#ss');
|
|
|
var jq_acc = $('#acc_container');
|
|
|
var module_router = site_root + '/index.php?r=rUser';
|
|
|
var type = <?php echo json_encode($type); ?>;
|
|
|
var jq_sendCoupon_form = $('#sendCoupon_form');
|
|
|
+var jq_sendBalance_form = $('#sendBalance_form');
|
|
|
|
|
|
var price = '';
|
|
|
var endtime = '';
|
|
@@ -511,7 +512,7 @@ $(function(){
|
|
|
jq_content_form.form('load', data);
|
|
|
console.log(data);
|
|
|
$('#id_str').html(data.id);
|
|
|
- $('#balance_id_str').val(data.id);
|
|
|
+ $('#balance_id_str').html(data.id);
|
|
|
$('#register_time_str').html(format_time_stamp(data.register_time,true));
|
|
|
|
|
|
|
|
@@ -526,6 +527,7 @@ $(function(){
|
|
|
$('#balance_user_id').val(data.id);
|
|
|
|
|
|
jq_sendCoupon_form.form('clear');
|
|
|
+ jq_sendBalance_form.form('clear');
|
|
|
$('#coupon_user_id').val(data.id);
|
|
|
$('#coupon_user_str').html(data.id);
|
|
|
$('#coupon_copy_item').hide();
|
|
@@ -559,7 +561,7 @@ $(function(){
|
|
|
pageSize: 20,
|
|
|
singleSelect: true,
|
|
|
queryParams: {
|
|
|
- search: data.id
|
|
|
+ id: data.id
|
|
|
},
|
|
|
columns: [[
|
|
|
{field: 'time_str', title: '时间', width: 100},
|
|
@@ -635,6 +637,7 @@ $(function(){
|
|
|
$(this).datagrid('clearChecked');
|
|
|
jq_content_form.form('clear');
|
|
|
jq_sendCoupon_form.form('clear');
|
|
|
+ jq_sendBalance_form.form('clear');
|
|
|
$('#register_time_str').html('');
|
|
|
|
|
|
$('#coupon_copy_item').hide();
|
|
@@ -897,6 +900,11 @@ function sendCoupon() {
|
|
|
jq_sendCoupon_form.submit();
|
|
|
}
|
|
|
|
|
|
+function sendBalance() {
|
|
|
+ $.messager.progress();
|
|
|
+ jq_sendBalance_form.submit();
|
|
|
+}
|
|
|
+
|
|
|
function getCoupon() {
|
|
|
$.post(
|
|
|
'/index.php?r=coupon/getCouponInfo',
|