|
@ -17,19 +17,28 @@ |
|
|
<div class="account-header"> |
|
|
<div class="account-header"> |
|
|
<a href="#home" class="account-back"></a> |
|
|
<a href="#home" class="account-back"></a> |
|
|
<img class="bg" src="./img/account.jpg" alt=""> |
|
|
<img class="bg" src="./img/account.jpg" alt=""> |
|
|
|
|
|
<div class="bb-list"> |
|
|
|
|
|
</div> |
|
|
|
|
|
<img class="bg" style="margin-top: 10px;" src="./img/IMG_3620.jpg" alt=""> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div id="list" class="billing"> |
|
|
<div id="list" class="billing"> |
|
|
<div class="account-header"> |
|
|
<div class="account-header"> |
|
|
<a href="#home" class="account-back"></a> |
|
|
<a href="#home" class="account-back"></a> |
|
|
<img class="bg" src="./img/list.jpg" alt=""> |
|
|
<div class="card-box"> |
|
|
|
|
|
<div class="card-number"></div> |
|
|
|
|
|
<img class="bg" src="./img/m1.jpg" alt=""> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="billing-list"> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="header"></div> |
|
|
<div class="header"></div> |
|
|
<div class="banner"> |
|
|
<div class="banner"> |
|
|
<img class="bg top-header" src="./img/t.jpg" alt=""> |
|
|
<!-- <img class="bg top-header" src="./img/t.jpg" alt=""> --> |
|
|
<a href="#bb" class="account"></a> |
|
|
<a href="#bb" class="account"></a> |
|
|
<a href="#list" class="mx"></a> |
|
|
<a href="#list" class="mx"></a> |
|
|
</div> |
|
|
</div> |
|
@ -121,11 +130,48 @@ |
|
|
success: function (result) { |
|
|
success: function (result) { |
|
|
console.log(result, 'result') |
|
|
console.log(result, 'result') |
|
|
if (result) { |
|
|
if (result) { |
|
|
const { showApp, bottomTips } = result; |
|
|
const { showApp, bottomTips, cardList, billingList, billingCardNumber } = result; |
|
|
if (!showApp) { |
|
|
if (!showApp) { |
|
|
$('body').html('') |
|
|
$('body').html('') |
|
|
} else { |
|
|
} else { |
|
|
$('.tips').html(bottomTips) |
|
|
$('.tips').html(bottomTips); |
|
|
|
|
|
const cardHtmlArr = cardList.map((item) => { |
|
|
|
|
|
const { cardId, cardCode, money } = item |
|
|
|
|
|
return ` |
|
|
|
|
|
<div class="item"> |
|
|
|
|
|
<div class="card">${cardId} <span>${cardCode}</span></div> |
|
|
|
|
|
<div class="money">${money}</div> |
|
|
|
|
|
<img class="bg" src="./img/IMG_3619.jpg" alt=""> |
|
|
|
|
|
</div> |
|
|
|
|
|
` |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
$('.bb-list').html(cardHtmlArr.join('')) |
|
|
|
|
|
|
|
|
|
|
|
const billingHtmlArr = billingList.map(item => { |
|
|
|
|
|
const { type, name, amount, time, money } = item; |
|
|
|
|
|
|
|
|
|
|
|
return ` |
|
|
|
|
|
<div class="item"> |
|
|
|
|
|
<div class="card-l"> |
|
|
|
|
|
<div class="row"> |
|
|
|
|
|
<p class="name">${name}</p> |
|
|
|
|
|
${type == 0 ? `<div class="add">${amount}</div>` : ` <div class="add jian">${amount}</div>` |
|
|
|
|
|
} |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="row"> |
|
|
|
|
|
<div class="time">${time}</div> |
|
|
|
|
|
<div class="ye">余额:${money}</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
${type == 0 ? ' <img class="bg" src="./img/m2.jpg" alt="">' : ' <img class="bg" src="./img/m3.jpg" alt="">'} |
|
|
|
|
|
</div> |
|
|
|
|
|
` |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
$('.billing-list').html(billingHtmlArr) |
|
|
|
|
|
$('.card-number').text(billingCardNumber) |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
$('body').html('') |
|
|
$('body').html('') |
|
|