Commit 3233ae18f7468de3e6811b11ce5c4c79841ffcc6

Authored by vking
1 parent 6ab7d990

商家红包活动

@@ -32,6 +32,7 @@ Component({ @@ -32,6 +32,7 @@ Component({
32 display:true, 32 display:true,
33 }) 33 })
34 } 34 }
  35 + this.triggerEvent('event')
35 }) 36 })
36 }, 37 },
37 hide(){ 38 hide(){
@@ -174,7 +174,10 @@ Page({ @@ -174,7 +174,10 @@ Page({
174 ...res.data, 174 ...res.data,
175 success:res=>{ 175 success:res=>{
176 this.selectComponent('#xfCard').show(); 176 this.selectComponent('#xfCard').show();
177 - this.GetCheckout() 177 + //this.GetCheckout()
  178 + this.setData({
  179 + [`checkout.status`]:3,
  180 + })
178 }, 181 },
179 }) 182 })
180 }else{ 183 }else{
@@ -202,4 +205,9 @@ Page({ @@ -202,4 +205,9 @@ Page({
202 console.log('discountEvent',e) 205 console.log('discountEvent',e)
203 this.GetCheckout() 206 this.GetCheckout()
204 }, 207 },
  208 + xfCardEvent(e){
  209 + this.setData({
  210 + [`checkout.status`]:3,
  211 + })
  212 + },
205 }) 213 })
@@ -142,4 +142,4 @@ @@ -142,4 +142,4 @@
142 </view> 142 </view>
143 <showModal id="showModal" confirmText="知道了" bindshowModal="showModal" cla="checkout"></showModal> 143 <showModal id="showModal" confirmText="知道了" bindshowModal="showModal" cla="checkout"></showModal>
144 <discount id="discount" checkout="{{checkout}}" bindevent="discountEvent"></discount> 144 <discount id="discount" checkout="{{checkout}}" bindevent="discountEvent"></discount>
145 -<xfCard id="xfCard" checkout="{{checkout}}"></xfCard> 145 +<xfCard id="xfCard" checkout="{{checkout}}" bindevent="xfCardEvent"></xfCard>