diff --git a/pages/order/orderList/index.js b/pages/order/orderList/index.js index 5793f24..27c84fd 100644 --- a/pages/order/orderList/index.js +++ b/pages/order/orderList/index.js @@ -22,7 +22,10 @@ Page({ allowance_data: null, allowance_price: 0, flag:null, - linkmanList:[] + linkmanList:[], + finalPrice: 0, + + showCoupon: false, }, /** @@ -35,6 +38,7 @@ Page({ kjId: app.globalData.kjId, gp_id: app.globalData.gp_id || app.globalData.team_id, flag:options.flag, + showCoupon: (app.globalData.list || []).length<=0, // linkmanList: app.globalData.linkmanList }) console.log('-------------',this.data.ticketList); @@ -94,10 +98,12 @@ Page({ coupon: null }) } + this.setData({ showPrice: app.globalData.kjId ? 0 : price }) }, + /** * 生命周期函数--监听页面初次渲染完成 */ @@ -111,12 +117,15 @@ Page({ } }) }, - //获取最高优惠券 - getNewCoupon(e){ + //获取最高优惠券 + getNewCoupon(e){ this.setData({ coupon:e.detail }) }, + + + /** * 生命周期函数--监听页面显示 */ diff --git a/pages/order/orderList/index.wxml b/pages/order/orderList/index.wxml index a783dba..29fc4b1 100644 --- a/pages/order/orderList/index.wxml +++ b/pages/order/orderList/index.wxml @@ -66,12 +66,20 @@ 订单备注: --> - + - 合计: - ¥{{((showPrice + postFee - (coupon?coupon.activity.money:0))>0?(showPrice + postFee - (coupon?coupon.activity.money:0)):0)/100}} + + + 合计:¥{{((showPrice + postFee)* coupon.activity.fold/10)>0?((showPrice + postFee)* coupon.activity.fold/10)/100:0}} + + + 合计: + ¥{{((showPrice + postFee - (coupon?coupon.activity.money:0))>0?(showPrice + postFee - (coupon?coupon.activity.money:0)):0)/100}} + + 下一步 \ No newline at end of file