Blame view

lib/pages/shopping/event.dart 717 Bytes
2879454a   吴启风   feat:调通支付宝支付&游戏列表页
1
2
  import 'package:wow_english/models/product_entity.dart';
  
4224b3f8   吴启风   feat:支付详情页ui
3
4
5
6
7
8
9
10
11
12
  import 'bloc.dart';
  
  abstract class ShoppingEvent {}
  
  class InitEvent extends ShoppingEvent {}
  
  class ChangePaymentChannelEvent extends ShoppingEvent {
    final PaymentChannel paymentChannel;
  
    ChangePaymentChannelEvent(this.paymentChannel);
2879454a   吴启风   feat:调通支付宝支付&游戏列表页
13
14
15
16
17
18
19
20
21
  }
  
  class DoPayEvent extends ShoppingEvent {
  
    final ProductEntity? productEntity;
  
    final PaymentChannel paymentChannel;
  
    DoPayEvent(this.productEntity, this.paymentChannel);
e0766888   吴启风   feat:解决微信支付异步回调里e...
22
23
24
25
26
  }
  
  // 微信由于是异步回调方式通知支付状态,在异步回调里emitter(PaySuccessState())时报错
  // !_isCompleted  emit was called after an event handler completed normally
  class WxPaySuccessEvent extends ShoppingEvent {}