pay_config.dart 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import 'package:flutter/material.dart';
  2. import 'package:twong/utils/index.dart';
  3. import 'package:twong/utils/image_utils.dart';
  4. class PayInfo {
  5. String key;
  6. PayType type;
  7. Widget icon;
  8. String name;
  9. String desc;
  10. PayInfo(this.type, this.key, this.icon, this.name, {this.desc});
  11. }
  12. enum PayType {
  13. alipay, wechat, yue
  14. }
  15. class PayConfig {
  16. static const String wechatAppId = "wx1bb4342986c22b28";
  17. static const String universalLink = "https://www.shotshock.shop/ios";
  18. static List<PayInfo> get payTypes {
  19. return [
  20. PayInfo(PayType.alipay, "alipay",
  21. Icon(IconFonts.alipay, color: Color.fromARGB(255, 22, 120, 255), size: 26.px),
  22. "支付宝", desc: "使用支付宝快捷支付"),
  23. PayInfo(PayType.wechat, "weixin",
  24. Icon(IconFonts.wechat_pay, color: Color.fromARGB(255, 34, 172, 56), size: 26.px),
  25. "微信", desc: "使用微信快捷支付"),
  26. PayInfo(PayType.yue, "yue",
  27. Icon(IconFonts.balance_pay, color: Color.fromARGB(255, 248, 188, 88), size: 26.px),
  28. "余额", desc: "当前可用余额: "),
  29. ];
  30. }
  31. }