Authored by dongjunjie

yoho币支持double类型

... ... @@ -6,7 +6,6 @@ var $ = require('jquery'),
var pricePercent = 0.2; //yoho币审核比例线
var loadModal = null;
var importYohoCoinData = null;
var isNeedAudit = false;
var ENUM = {
gender: {
1: '男',
... ... @@ -150,7 +149,7 @@ function ajaxUploadSubmit(importAuditorId){
location.href = '';
}, 1000);
}else{
common.util.__tip(rs.data.message);
common.util.__tip(rs.message || rs.data.message);
}
},true);
}
... ... @@ -166,7 +165,6 @@ function showImportMessage(message, statue){
//显示批量导入数据表
function showImportTable(data){
importYohoCoinData = data.successList;
isNeedAudit = data.isNeedAudit;
$("#importResultTable").html(common.util.__template2($("#yohoCoinImportResultTable").html(),data));
$("#yohoCoinImportResultSet").show();
... ... @@ -186,9 +184,11 @@ function clearImportResult(){
//批量导入确认—校验审核人
function isNeedImportAuditor(){
$.each(importYohoCoinData, function(index,value){
if(value.isNeedAudit || value.salesPrice * pricePercent <= value.needAuditCoin) return true;
});
for(var i=0; i < importYohoCoinData.length; i++){
if((importYohoCoinData[i].salesPrice * pricePercent) <= importYohoCoinData[i].needAuditCoin){
return true;
}
}
return false;
}
... ... @@ -303,7 +303,8 @@ $(document).on('click', '.btn-delete-yohoCoin', function() {
//批量导入结果列表确定
$(document).on('click', '.btn-submit-yohoCoin', function() {
var importAuditorIdInput = $("#importAuditor");
if(isNeedImportAuditor()){
var isNeedAuditor = isNeedImportAuditor();
if(isNeedAuditor){
if(!checkAuditor(importAuditorIdInput)){
return false;
}
... ...