Showing
3 changed files
with
11 additions
and
2 deletions
| @@ -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> |
-
Please register or login to post a comment