1'use strict' 2let Cost = function(){ 3this.postage={ 4 regular:{"others":600,"åæµ·é":900,"æ²ç¸ç":1200}, 5 cold:{"others":900,"åæµ·é":1200,"æ²ç¸ç":1900} 6} 7this.cod=300; 8this.prodTax ={pet:0.1,prod:0.08} 9} 10 11 12let CostHelper=function(){ 13 this.getTotalPrice=function(pref,payment,state){ 14 let cost = new Cost(); 15 let key2=""; 16 let key1=state==="å·å"?"cold":"regular"; 17 if (pref==="åæµ·é"||pref==="æ²ç¸ç"){ 18 key2=pref 19 }else{ 20 key2="others" 21 } 22 let cod=parseInt(payment)===1?cost.cod*1.1:0; 23 let post = parseInt(cost.postage[`${key1}`][`${key2}`]*1.1); 24 console.log(pref); 25 return {postage:post,daibiki:cod} 26 // console.log(key2) 27 } 28}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.