The type definition.
function Billinfoshowcontrol () {/* sec kill voucher, no purchase required, show free 1 discount coupon, only show UnionPay price 2 Voucher, show UnionPay price and original price 3 vouchers, only show UnionPay price, with discount coupon 4 e-ticket, no discount information, do not show discount a column 6 points coupons, priceless coupons, free of access, do not show the price of a column 7 pickup coupons, similar e-ticket 8 delivery voucher, similar to e-ticket */switch (g_data.billDetail.billType) {case ' 01 '://Discount Coupon 80 percent $ (". Origin-price"). Hide (); Break Case ' 02 '://Voucher (unconditional deduction) directly minus 20 yuan break; Case ' 03 '://Voucher full 200 minus $ (". Origin-price"). Hide (); Break Case ' 04 '://Electronic ticket transition product type break; Case ' 06 '://Rebate coupon to send UnionPay points break; Case ' 07 '://Pick up voucher without the need for logistics of electronic tickets, such as movie tickets break; Case ' 08 '://Delivery voucher requires e-ticket for logistics, such as buying shoes break; }//[Upwapputil Isempty:salein] | | [Salein isequaltostring:@ "0"]) if (!g_data.billdetail.salein | | g_data.billDetail.saleIn = = = "' | | g_data.billDetail.saleIn = = = ' 0 ') {$ (". Price "). Te XT (' free '); } }
Coupon, e-ticket type definition.