|
@@ -289,7 +289,7 @@
|
|
</div>
|
|
</div>
|
|
<div data-options="region:'south'" class="detail_south">
|
|
<div data-options="region:'south'" class="detail_south">
|
|
<div class="detail_toolbar">
|
|
<div class="detail_toolbar">
|
|
- <a href="javascript:void(0);" class="easyui-linkbutton set_button" iconCls="icon-save" onclick="sendBalance();return false;">发送</a>
|
|
|
|
|
|
+ <a href="javascript:void(0);" class="easyui-linkbutton set_button" iconCls="icon-save" onclick="saveBalance();return false;">保存</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div data-options="region:'south'" class="detail_south">
|
|
<div data-options="region:'south'" class="detail_south">
|
|
@@ -524,10 +524,11 @@ $(function(){
|
|
|
|
|
|
$('#view_latitude').val(data.latitude);
|
|
$('#view_latitude').val(data.latitude);
|
|
$('#view_longitude').val(data.longitude);
|
|
$('#view_longitude').val(data.longitude);
|
|
- $('#balance_user_id').val(data.id);
|
|
|
|
|
|
+
|
|
|
|
|
|
jq_sendCoupon_form.form('clear');
|
|
jq_sendCoupon_form.form('clear');
|
|
jq_sendBalance_form.form('clear');
|
|
jq_sendBalance_form.form('clear');
|
|
|
|
+ $('#balance_user_id').val(data.id);
|
|
$('#coupon_user_id').val(data.id);
|
|
$('#coupon_user_id').val(data.id);
|
|
$('#coupon_user_str').html(data.id);
|
|
$('#coupon_user_str').html(data.id);
|
|
$('#coupon_copy_item').hide();
|
|
$('#coupon_copy_item').hide();
|
|
@@ -702,7 +703,7 @@ $(function(){
|
|
});
|
|
});
|
|
|
|
|
|
//修改余额
|
|
//修改余额
|
|
- jq_balance_form.form({
|
|
|
|
|
|
+ jq_sendBalance_form.form({
|
|
url: site_root + '/index.php?r=rUser/changeBalance',
|
|
url: site_root + '/index.php?r=rUser/changeBalance',
|
|
onSubmit: function(param){
|
|
onSubmit: function(param){
|
|
if (!$('#balance_user_id').val()){
|
|
if (!$('#balance_user_id').val()){
|
|
@@ -717,6 +718,7 @@ $(function(){
|
|
success: function(res){
|
|
success: function(res){
|
|
$.messager.progress('close');
|
|
$.messager.progress('close');
|
|
var res = JSON.parse(res);
|
|
var res = JSON.parse(res);
|
|
|
|
+ console.log(res);
|
|
if (res.success){
|
|
if (res.success){
|
|
$.messager.show({
|
|
$.messager.show({
|
|
title: '提示',
|
|
title: '提示',
|
|
@@ -841,11 +843,9 @@ function saveBalance(){
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
- var balance = $('#user_balance').val();
|
|
|
|
- var balanceParse = parseInt(balance);
|
|
|
|
|
|
|
|
$.messager.progress();
|
|
$.messager.progress();
|
|
- jq_score_form.submit();
|
|
|
|
|
|
+ jq_sendBalance_form.submit();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -900,11 +900,6 @@ function sendCoupon() {
|
|
jq_sendCoupon_form.submit();
|
|
jq_sendCoupon_form.submit();
|
|
}
|
|
}
|
|
|
|
|
|
-function sendBalance() {
|
|
|
|
- $.messager.progress();
|
|
|
|
- jq_sendBalance_form.submit();
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
function getCoupon() {
|
|
function getCoupon() {
|
|
$.post(
|
|
$.post(
|
|
'/index.php?r=coupon/getCouponInfo',
|
|
'/index.php?r=coupon/getCouponInfo',
|