Commit 28a12063 authored by agping's avatar agping

1

parent 9bcdfa30
......@@ -9,6 +9,7 @@ define(['doT', 'text!temp/open_check_template_tpl.html', 'css!style/home.css', '
listData :"",
agent_id_phone : '',
deleteRefundId:'',
status:'',
url:'',
init: function() {
//初始化dot
......@@ -115,8 +116,7 @@ define(['doT', 'text!temp/open_check_template_tpl.html', 'css!style/home.css', '
//审核通过
$(document).on('click','#check_yes',function(e){
var text = $('#check_past').val();
that.checkRefund(1,text);
that.checkRefund();
});
......@@ -207,20 +207,20 @@ define(['doT', 'text!temp/open_check_template_tpl.html', 'css!style/home.css', '
});
},
checkRefund : function(status,remark,pic){
checkRefund : function(){
var that = refund ;
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
console.log(user_info_obj);
var params = {
'refund_id' : that.check_id ,
'status' : status ,
'remark' : remark ,
'img_arr' : pic
'open_id' : that.check_id ,
'status' : refund.status ,
'operation_id' : user_info_obj.id,
'operation_name': user_info_obj.name
}
$.post('/index/checkRefund',params ,function(data){
$.post('/index/openPayLogCheck',params ,function(data){
if(data.code == 200) {
$('.modal').modal("hide");
refund.getList(that.pageNo);
$('#check_past').val('');
$('#check_bohui').val('');
$('#container_body_img_area3').empty();
} else {
alert(data.msg);
......@@ -256,6 +256,7 @@ define(['doT', 'text!temp/open_check_template_tpl.html', 'css!style/home.css', '
tag += '</div>';
}
$('.check_person').append(tag);
refund.status = data.data.status;
var str = '' ;
if (data.data.status == 1) {
str = '总监已审';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment