diff --git a/view/molistar/modules/guild-ar/js/bill.js b/view/molistar/modules/guild-ar/js/bill.js index ed378ca..10cc668 100644 --- a/view/molistar/modules/guild-ar/js/bill.js +++ b/view/molistar/modules/guild-ar/js/bill.js @@ -99,10 +99,10 @@ function getData() { // tradeType 1 收入 2支出 // if (item.tradeType == 1) { str += ` -
  • +
  • - ${(item.type == 5 || item.type == 6) ? `${(item.status == 0 ? langReplace(localLang.bill.text10) : item.status == 1 ? langReplace(localLang.bill.text11) : langReplace(localLang.bill.text12))}` : ''} -

    ${item.type == 1 ? `${langReplace(localLang.bill.text5)}` : item.type == 2 ? `${langReplace(localLang.bill.text6)}` : item.type == 3 ? `${langReplace(localLang.bill.text7)}` : item.type == 4 ? `ID:${type == 1 ? item.target.erbanNo : item.me.erbanNo} ${langReplace(localLang.bill.text8)} ID: ${type == 1 ? item.me.erbanNo : item.target.erbanNo}` : `${langReplace(localLang.bill.text9)}`}

    + ${(item.type == 5 || item.type == 6 || item.type == 8) ? `${(item.status == 0 ? langReplace(localLang.bill.text10) : item.status == 1 ? langReplace(localLang.bill.text11) : langReplace(localLang.bill.text12))}` : ''} +

    ${classificationType(item.type, item)}

    ${type == 1 ? '+ ' + item.operateUsdNum.toLocaleString() : item.operateUsdNum.toLocaleString()} ÜS
    @@ -135,6 +135,34 @@ function getData() { }, }); } +// 分类type +function classificationType(type, item) { + switch (type) { + case 1: + return langReplace(localLang.bill.text5) + break; + case 2: + return langReplace(localLang.bill.text7) + break; + case 3: + return `ID:${type == 1 ? item.target.erbanNo : item.me.erbanNo} ${langReplace(localLang.bill.text8)} ID: ${type == 1 ? item.me.erbanNo : item.target.erbanNo}` + break; + case 4: + return langReplace(localLang.bill.text9) + break; + case 5: + return langReplace(localLang.bill.text6) + break; + case 6: + return langReplace(localLang.bill.text9) + break; + case 8: + return langReplace(localLang.bill.text6) + break; + default: + return langReplace(localLang.bill.text9) + } +} $(".income_expenses p").click(function () { let i = $(this).index()