| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219 |
- //用户状态
- int userStateUnVerified = 0; //未验证,暂未使用
- int userStateActive = 1; //正常
- int userStateBanned = 2; //被封
- int userStateRemoved = 3; //被移除
- //店铺成员角色类型
- const int shopUserOwner = 0; //店主
- const int shopUserStaff = 1; //客服
- const int shopUserMember = 2; //顾客
- const int shopUserPartner = 3; //合伙人
- //活动类型
- const int activityTypeLoginForCash = 1; //登录领取现金红包
- //用户在店铺中的审核状态
- int shopUserReviewing = 0; //审核中
- int shopUserReviewPass = 1; //审核通过
- int shopUserReviewFail = 2; //审核未通过
- // //店铺入驻收费类型
- // int platformFeePerAnnual = 1; //年费
- // int platformFeePerOrderFix = 2; //按照订单金额提成,固定金额
- // int platformFeePerOrderPercent = 3; //按照订单金额提成,按照比例
- // int platformFeePerCommissionFix = 4; //按照交易佣金提成,固定金额
- // int platformFeePerCommissionPercent = 5; //按照交易佣金提成,按照比例
- //店铺入驻收费类型
- int platformFeePerAnnual = 1; //按年付费
- int platformFeePerOrder = 2; //按订单付费
- int platformFeePerCommission = 3; //按佣金付费
- //店主收取佣金方式
- int shopCommissionTypeFix = 0; //直接收取固定金额
- int shopCommissionTypePercent = 1; //按照比例收取
- //轮播图所在页面
- int carouselPageHome = 1; //首页
- //订单状态
- int orderStateUnpaid = 0; //未支付
- int orderStatePaid = 1; //已支付
- int orderStatePaying = 2; //支付中
- int orderStatePayFailed = 3; //支付失败
- int orderStateOtherPaid = 4; //已代付
- int orderStateRevoked = 5; //已取消
- //订单类型
- int orderTypeCommodity = 0; //商品
- int orderTypeAnnualFee = 1; //平台年费
- int orderTypeVirtualProduct = 2; //虚拟物品
- int orderTypeThirdPlatform = 3; //第三方平台订单
- int orderTypeOfflineTransfer = 4; //到店付款
- int orderTypeAdvertise = 5; //平台广告
- int orderTypeGoldenShopUID = 6; //店铺靓号订单
- int orderTypeOfflinePay = 7; //线下BBY扫描创建的订单
- int orderTypeShopOwnerCreated = 9; //店主发起收款订单
- int orderTypeScancodeAilyPay = 8; //支付宝或微信扫码支付创建的订单
- int orderTypeUserLevel = 50; //购买会员等级订单1
- //UiD长度
- int userUIDLen = 8;
- int orderUIDLen = 12;
- int shopUIDLen = 6;
- //支付方式
- int payWayWallet = 0; //钱包
- int payWayAliPay = 1; //支付宝支付
- int payWayWeChat = 2; //微信支付
- //检查优惠券过期周期
- int checkCouponDuration = 1; //小时
- //店铺状态
- int shopStateNormal = 0; //店铺正常
- int shopStateArrearage = 1; //店铺欠费
- int shopStateBanned = 2; //店铺被禁
- int shopStateClosed = 3; //店铺被关闭
- //聊天消息类型
- String chatMsgTypeText = "文字"; //文字
- String chatMsgTypePic = "图片"; //图片
- String chatMsgTypeOrder = "订单"; //订单
- String chatMsgTypeRedPackage = "红包"; //红包
- //通知类型
- String notifyTypeNewMsg = "新聊天消息";
- String notifyTypeRevokeMsg = "撤回聊天消息";
- String notifyTypeNewOrder = "新订单";
- String notifyTypeUpdateOrder = "更新订单";
- String notifyTypeIncome = "收入进账";
- String notifyTypeSysMsg = "系统消息";
- String notifyTypeOrderPaymentIsSuccessful = "订单支付成功";
- String notifyTypeNewCoupon = "新优惠券申请";
- String notifyTypePayFailed = "订单支付失败";
- //道具Key
- String vpKeyChatWaterMark = "ChatWaterMark"; //聊天水印,隐私保护
- String vpKeyXRay = "XRay"; //战绩查看
- //广告类型
- int adTypeHomeList = 0; //店铺/商品部分广告
- int adTypeHomeBanner = 1; //首页banner
- //首页数据类型
- int homeListTypeShop = 0;
- int homeListTypeCommodity = 1;
- //广告关联类型
- int adLinkTypeShop = 0; //广告关联店铺
- int adLinkTypeCommodity = 1; //广告关联商品
- aliPayResultStatus(int code) {
- switch (code) {
- case 9000:
- return '订单支付成功';
- case 8000:
- return '正在处理中';
- case 4000:
- return '订单支付失败';
- case 5000:
- return '重复请求';
- case 6001:
- return '取消支付';
- case 6002:
- return '网络连接出错';
- case 6003:
- return '支付结果未知';
- default:
- return '支付错误';
- }
- }
- //资金流水用途类型
- const int flowTypeRefund = -1; //退款
- const int flowTypeOrderCommodity = 1; //商品订单
- const int flowTypeOrderAnnualFee = 2; //平台年费订单
- const int flowTypeOrderVirtualProduct = 3; //虚拟物品订单
- const int flowTypeOrderThirdPlatform = 4; //第三方平台订单
- const int flowTypeOrderOfflineTransfer = 5; //线下付款订单
- const int flowTypeOrderAdvertise = 6; //平台广告订单
- const int flowTypeOrderGoldrenShopUID = 7; //店铺靓号订单
- const int flowTypeScancodeAilyPay = 8; //二维码收款
- const int flowTypeRedPacket = 10; //红包
- const int flowTypeWithdraw = 20; //提现
- const int flowTypeShopCommission = 30; //店铺佣金
- const int flowTypePlatformFee = 40; //平台收费
- const int flowTypePlatformFine = 41; //平台罚款
- const int flowTypePlatformRecommendCommission = 42; //店铺推荐佣金佣金
- const int flowTypePlatformRefund = 43; //平台退偿积分
- const int flowTypeBonus = 99; //平台分红
- flowType(int type) {
- switch (type) {
- case flowTypeRefund:
- return '退款';
- case flowTypeOrderCommodity:
- return '商品订单';
- case flowTypeScancodeAilyPay:
- return '二维码收款';
- case flowTypeOrderAnnualFee:
- return '平台年费订单';
- case flowTypeOrderVirtualProduct:
- return '虚拟物品订单';
- case flowTypeOrderThirdPlatform:
- return '第三方平台订单';
- case flowTypeOrderOfflineTransfer:
- return '线下付款订单';
- case flowTypeOrderAdvertise:
- return '平台广告订单';
- case flowTypeOrderGoldrenShopUID:
- return '店铺靓号订单';
- case flowTypeRedPacket:
- return '红包';
- case flowTypeWithdraw:
- return '提现';
- case flowTypeShopCommission:
- return '货帮佣金';
- case flowTypePlatformFee:
- return '平台收费';
- case flowTypePlatformFine:
- return '平台罚款';
- case flowTypePlatformRecommendCommission:
- return '店铺推荐佣金';
- case flowTypePlatformRefund:
- return '平台退偿积分';
- case flowTypeBonus:
- return '平台分红';
- default:
- return '';
- }
- }
- String appStoreID = '1562651088';
- const String AppID = 'wx8a5676abaee0a448';
- const String AppSecret = '5af9bfdfd8747d3f23e60ad19412cb55';
- //优惠券类型
- int couponTypeCash = 0; //现金券,可以支付任何订单
- int couponTypeConsumption = 1; //消费券,只能在公开店铺消费
- String couponType(int type) {
- if (type == couponTypeCash) {
- return '现金券';
- } else if (type == couponTypeConsumption) {
- return '消费券';
- } else {
- return '优惠券';
- }
- }
- String couponRule(int type) {
- if (type == couponTypeCash) {
- return '可以支付任何订单';
- } else if (type == couponTypeConsumption) {
- return '只能在公开店铺消费';
- } else {
- return '优惠券';
- }
- }
|