智莺生活APP的阿里百川 Flutter 插件
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

48 lines
1.3 KiB

  1. ///
  2. /// @Author: 无星
  3. /// @Date: 2019-08-30 15:55:44
  4. /// @Last Modified by: 无星
  5. /// @Last Modified time: 2019-08-30 17:17:07
  6. ///
  7. import 'package:flutter/foundation.dart';
  8. class AlibcConstKey {
  9. // 错误码
  10. static String errorCode = "errorCode";
  11. // 错误信息
  12. static String errorMessage = "errorMessage";
  13. // 平台,iOS为iOS,Android为Android
  14. static String platform = "platform";
  15. // result
  16. static String data = "data";
  17. static String platform_ios = "iOS";
  18. static String platform_andriod = "andriod";
  19. }
  20. /// 成功支付
  21. /// 成功添加到购物车
  22. enum TradeResultType {
  23. AlibcTradeResultTypePaySuccess,
  24. AlibcTradeResultTypeAddCard
  25. }
  26. /// 智能判断
  27. /// 强制拉端(手淘/天猫)
  28. enum AlibcOpenType { AlibcOpenTypeAuto, AlibcOpenTypeNative }
  29. // 拉起手淘失败后的处理策略
  30. // - AlibcNativeFailModeJumpH5: 当拉起手淘/天猫失败, 则在 webview 中跳转对应 H5 页面; 默认选项
  31. // - AlibcNativeFailModeJumpDownloadPage: 当拉起手淘/天猫失败, 则跳转对应 App 下载页面
  32. // - AlibcNativeFailModeNone: 当拉起手淘/天猫失败, 不做额外操作
  33. enum AlibcNativeFailMode {
  34. AlibcNativeFailModeJumpH5,
  35. AlibcNativeFailModeJumpDownloadPage,
  36. AlibcNativeFailModeNone
  37. }
  38. // 天猫
  39. // 淘宝
  40. enum AlibcSchemeType { AlibcSchemeTmall, AlibcSchemeTaoBao }