This commit is contained in:
2025-04-15 13:42:58 +08:00
parent ebe10f8c49
commit 25c9e24113

View File

@ -64,21 +64,21 @@
let tpls = '订单号 <b class="font-code">{{d.main.order_no}}</b> '; let tpls = '订单号 <b class="font-code">{{d.main.order_no}}</b> ';
if (d.main.amount_real > 0) { if (d.main.amount_real > 0) {
if (d.main.status > 3) { if (d.main.status > 3) {
tpls += '<br>已支付 <b class="font-code">{{str2num(d.main.amount_real)}}</b> '; tpls += '<br>已支付 <b class="font-code">{{str2num(d.main.amount_real)}}</b> 积分';
} else { } else {
tpls += '<br>需支付 <b class="font-code">{{str2num(d.main.amount_real)}}</b> '; tpls += '<br>需支付 <b class="font-code">{{str2num(d.main.amount_real)}}</b> 积分';
} }
} else { } else {
tpls += '<br>无需支付'; tpls += '<br>无需支付';
} }
if (d.main.amount_express > 0) { if (d.main.amount_express > 0) {
tpls += ' ( 随减 <b class="font-code">{{str2num(d.main.amount_reduct)}}</b> ,含邮费 <b class="font-code">{{str2num(d.main.amount_express)}}</b> )'; tpls += ' ( 随减 <b class="font-code">{{str2num(d.main.amount_reduct)}}</b> 积分,含邮费 <b class="font-code">{{str2num(d.main.amount_express)}}</b> 积分)';
} else { } else {
tpls += ' ( 随减 <b class="font-code">{{str2num(d.main.amount_reduct)}}</b> ,包邮免费 )'; tpls += ' ( 随减 <b class="font-code">{{str2num(d.main.amount_reduct)}}</b> 积分,包邮免费 )';
} }
tpls += '<br>' tpls += '<br>'
if (d.main.amount_balance > 0) { if (d.main.amount_balance > 0) {
tpls += "余额 " + d.main.amount_balance + " " tpls += "余额 " + d.main.amount_balance + " 积分"
} else { } else {
tpls += '未使用余额,' tpls += '未使用余额,'
} }
@ -88,7 +88,7 @@
tpls += '未使用积分,' tpls += '未使用积分,'
} }
if (d.main.coupon_code) { if (d.main.coupon_code) {
tpls += "优惠券 " + d.main.coupon_amount + "" tpls += "优惠券 " + d.main.coupon_amount + "积分"
} else { } else {
tpls += '未使用优惠券。' tpls += '未使用优惠券。'
} }
@ -108,7 +108,7 @@
' <div>' + ' <div>' +
' <span>{{d.gname}}</span>' + ' <span>{{d.gname}}</span>' +
' <span class="ta-pl-5 color-desc">{{str2name(d.gspec)}}</span><br>' + ' <span class="ta-pl-5 color-desc">{{str2name(d.gspec)}}</span><br>' +
' <span>{{d.stock_sales}}件 x {{str2num(d.price_selling)}}/件,计 {{str2num(d.total_price_selling)}}</span> ' + ' <span>{{d.stock_sales}}件 x {{str2num(d.price_selling)}}积分/件,计 {{str2num(d.total_price_selling)}}积分</span> ' +
' </div>' + ' </div>' +
' </div>' + ' </div>' +
'</div>' '</div>'