患者1.2
This commit is contained in:
+22
-1
@@ -168,10 +168,31 @@ function formatwenzhenList(arr,type){
|
||||
};
|
||||
return {ISHAS:false}
|
||||
}
|
||||
|
||||
function formatPrice(arr){
|
||||
var price=null;
|
||||
if(arr){
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if(arr[i].inquiry_type==1 && arr[i].is_enable==1 && arr[i].inquiry_mode==1){
|
||||
price=arr[i].inquiry_price;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
return price
|
||||
}
|
||||
function hasFree(arr){
|
||||
if(arr){
|
||||
return arr.some(function(item){
|
||||
return item.inquiry_type==3 && item.is_enable==1
|
||||
})
|
||||
}
|
||||
return false
|
||||
}
|
||||
module.exports = {
|
||||
formatwenzhenList:formatwenzhenList,
|
||||
formatChufang:formatChufang,
|
||||
formatPrice:formatPrice,
|
||||
hasFree:hasFree,
|
||||
formatInquiryType:formatInquiryType,
|
||||
formatDate: formatDate,
|
||||
formatNumber: formatNumber,
|
||||
|
||||
Reference in New Issue
Block a user