Merge branch 'master' of http://159.75.73.143:8080/laiiihz/akuCommunity
commit
5f5813724b
@ -0,0 +1,39 @@
|
||||
{
|
||||
"project_info": {
|
||||
"project_number": "767907767238",
|
||||
"project_id": "akucommunity-46aa5",
|
||||
"storage_bucket": "akucommunity-46aa5.appspot.com"
|
||||
},
|
||||
"client": [
|
||||
{
|
||||
"client_info": {
|
||||
"mobilesdk_app_id": "1:767907767238:android:73ba965a47818e4d9cc8c7",
|
||||
"android_client_info": {
|
||||
"package_name": "com.akuCommunity.app"
|
||||
}
|
||||
},
|
||||
"oauth_client": [
|
||||
{
|
||||
"client_id": "767907767238-gqote713f3ff3v8sqh29qtjr50sf7680.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
],
|
||||
"api_key": [
|
||||
{
|
||||
"current_key": "AIzaSyCPwYm-8vZnPTLXrv6v68IxKM4jmsmZY5o"
|
||||
}
|
||||
],
|
||||
"services": {
|
||||
"appinvite_service": {
|
||||
"other_platform_oauth_client": [
|
||||
{
|
||||
"client_id": "767907767238-gqote713f3ff3v8sqh29qtjr50sf7680.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"configuration_version": "1"
|
||||
}
|
@ -0,0 +1,56 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
import 'package:firebase_core/firebase_core.dart';
|
||||
import 'package:firebase_crashlytics/firebase_crashlytics.dart';
|
||||
import 'package:fluwx/fluwx.dart';
|
||||
import 'package:jpush_flutter/jpush_flutter.dart';
|
||||
import 'package:power_logger/power_logger.dart';
|
||||
|
||||
import 'package:akuCommunity/constants/app_theme.dart';
|
||||
import 'package:akuCommunity/constants/config.dart';
|
||||
|
||||
class MainInitialize {
|
||||
///初始化firebase
|
||||
static Future initFirebase() async {
|
||||
await Firebase.initializeApp();
|
||||
FirebaseCrashlytics.instance.setCrashlyticsCollectionEnabled(true);
|
||||
FlutterError.onError = (detail) {
|
||||
FirebaseCrashlytics.instance.recordFlutterError(detail);
|
||||
};
|
||||
}
|
||||
|
||||
static initTheme() {
|
||||
SystemChrome.setSystemUIOverlayStyle(SystemStyle.initial);
|
||||
}
|
||||
|
||||
static Future initJPush() async {
|
||||
JPush jpush = new JPush();
|
||||
Function(Map<String, dynamic> message) jPushLogger(String type) {
|
||||
return (Map<String, dynamic> message) async {
|
||||
LoggerData.addData({
|
||||
'type': type,
|
||||
'message': message,
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
jpush.addEventHandler(
|
||||
onReceiveNotification: jPushLogger('onReceiveNotification'),
|
||||
onOpenNotification: jPushLogger('onOpenNotification'),
|
||||
onReceiveMessage: jPushLogger('onReceiveMessage'),
|
||||
);
|
||||
jpush.setup(
|
||||
appKey: "6a2c6507e3e8b3187ac1c9f9",
|
||||
channel: "developer-default",
|
||||
production: false,
|
||||
debug: true,
|
||||
);
|
||||
String rID = await jpush.getRegistrationID();
|
||||
LoggerData.addData('RegistrationID:$rID');
|
||||
}
|
||||
|
||||
static initWechat() {
|
||||
registerWxApi(appId: AppConfig.wechatAppId);
|
||||
}
|
||||
}
|
@ -1,73 +0,0 @@
|
||||
class AkuShopClassModel {
|
||||
int cid;
|
||||
String mainName;
|
||||
List<Data> data;
|
||||
|
||||
AkuShopClassModel({this.cid, this.mainName, this.data});
|
||||
|
||||
AkuShopClassModel.fromJson(Map<String, dynamic> json) {
|
||||
cid = json['cid'];
|
||||
mainName = json['main_name'];
|
||||
if (json['data'] != null) {
|
||||
data = [];
|
||||
json['data'].forEach((v) {
|
||||
data.add(new Data.fromJson(v));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['cid'] = this.cid;
|
||||
data['main_name'] = this.mainName;
|
||||
if (this.data != null) {
|
||||
data['data'] = this.data.map((v) => v.toJson()).toList();
|
||||
}
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
class Data {
|
||||
String nextName;
|
||||
List<Info> info;
|
||||
|
||||
Data({this.nextName, this.info});
|
||||
|
||||
Data.fromJson(Map<String, dynamic> json) {
|
||||
nextName = json['next_name'];
|
||||
if (json['info'] != null) {
|
||||
info = [];
|
||||
json['info'].forEach((v) {
|
||||
info.add(new Info.fromJson(v));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['next_name'] = this.nextName;
|
||||
if (this.info != null) {
|
||||
data['info'] = this.info.map((v) => v.toJson()).toList();
|
||||
}
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
class Info {
|
||||
String sonName;
|
||||
String imgurl;
|
||||
|
||||
Info({this.sonName, this.imgurl});
|
||||
|
||||
Info.fromJson(Map<String, dynamic> json) {
|
||||
sonName = json['son_name'];
|
||||
imgurl = json['imgurl'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['son_name'] = this.sonName;
|
||||
data['imgurl'] = this.imgurl;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -1,264 +0,0 @@
|
||||
class AkuShopModel {
|
||||
String activityType;
|
||||
String activityid;
|
||||
String couponCondition;
|
||||
String couponexplain;
|
||||
String couponurl;
|
||||
String deposit;
|
||||
String depositDeduct;
|
||||
String discount;
|
||||
String generalIndex;
|
||||
String guideArticle;
|
||||
String isBrand;
|
||||
String isExplosion;
|
||||
String isLive;
|
||||
String isShipping;
|
||||
String isquality;
|
||||
String itemdesc;
|
||||
String itemendprice;
|
||||
String itemid;
|
||||
String itempic;
|
||||
String itempicCopy;
|
||||
String itemprice;
|
||||
String itemsale;
|
||||
String itemsale2;
|
||||
String itemshorttitle;
|
||||
String itemtitle;
|
||||
String me;
|
||||
String onlineUsers;
|
||||
String originalArticle;
|
||||
String originalImg;
|
||||
String planlink;
|
||||
String reportStatus;
|
||||
String sellerId;
|
||||
String sellerName;
|
||||
String sellernick;
|
||||
String shopid;
|
||||
String shopname;
|
||||
String shoptype;
|
||||
String sonCategory;
|
||||
String startTime;
|
||||
String starttime;
|
||||
String taobaoImage;
|
||||
String tkmoney;
|
||||
String tkrates;
|
||||
String tktype;
|
||||
String todaycouponreceive;
|
||||
String todaysale;
|
||||
String userid;
|
||||
String videoid;
|
||||
String xid;
|
||||
String couponreceive;
|
||||
String fqcat;
|
||||
String endTime;
|
||||
String downType;
|
||||
String cuntao;
|
||||
String couponsurplus;
|
||||
String couponstarttime;
|
||||
String couponreceive2;
|
||||
String couponnum;
|
||||
String couponmoney;
|
||||
String couponendtime;
|
||||
String productId;
|
||||
int count;
|
||||
bool isCheck;
|
||||
|
||||
AkuShopModel(
|
||||
{this.activityType,
|
||||
this.activityid,
|
||||
this.couponCondition,
|
||||
this.couponexplain,
|
||||
this.couponurl,
|
||||
this.deposit,
|
||||
this.depositDeduct,
|
||||
this.discount,
|
||||
this.generalIndex,
|
||||
this.guideArticle,
|
||||
this.isBrand,
|
||||
this.isExplosion,
|
||||
this.isLive,
|
||||
this.isShipping,
|
||||
this.isquality,
|
||||
this.itemdesc,
|
||||
this.itemendprice,
|
||||
this.itemid,
|
||||
this.itempic,
|
||||
this.itempicCopy,
|
||||
this.itemprice,
|
||||
this.itemsale,
|
||||
this.itemsale2,
|
||||
this.itemshorttitle,
|
||||
this.itemtitle,
|
||||
this.me,
|
||||
this.onlineUsers,
|
||||
this.originalArticle,
|
||||
this.originalImg,
|
||||
this.planlink,
|
||||
this.reportStatus,
|
||||
this.sellerId,
|
||||
this.sellerName,
|
||||
this.sellernick,
|
||||
this.shopid,
|
||||
this.shopname,
|
||||
this.shoptype,
|
||||
this.sonCategory,
|
||||
this.startTime,
|
||||
this.starttime,
|
||||
this.taobaoImage,
|
||||
this.tkmoney,
|
||||
this.tkrates,
|
||||
this.tktype,
|
||||
this.todaycouponreceive,
|
||||
this.todaysale,
|
||||
this.userid,
|
||||
this.videoid,
|
||||
this.xid,
|
||||
this.couponreceive,
|
||||
this.fqcat,
|
||||
this.endTime,
|
||||
this.downType,
|
||||
this.cuntao,
|
||||
this.couponsurplus,
|
||||
this.couponstarttime,
|
||||
this.couponreceive2,
|
||||
this.couponnum,
|
||||
this.couponmoney,
|
||||
this.couponendtime,
|
||||
this.productId,
|
||||
this.count,
|
||||
this.isCheck});
|
||||
|
||||
AkuShopModel.fromJson(Map<String, dynamic> json) {
|
||||
activityType = json['activity_type'];
|
||||
activityid = json['activityid'];
|
||||
couponCondition = json['coupon_condition'];
|
||||
couponexplain = json['couponexplain'];
|
||||
couponurl = json['couponurl'];
|
||||
deposit = json['deposit'];
|
||||
depositDeduct = json['deposit_deduct'];
|
||||
discount = json['discount'];
|
||||
generalIndex = json['general_index'];
|
||||
guideArticle = json['guide_article'];
|
||||
isBrand = json['is_brand'];
|
||||
isExplosion = json['is_explosion'];
|
||||
isLive = json['is_live'];
|
||||
isShipping = json['is_shipping'];
|
||||
isquality = json['isquality'];
|
||||
itemdesc = json['itemdesc'];
|
||||
itemendprice = json['itemendprice'];
|
||||
itemid = json['itemid'];
|
||||
itempic = json['itempic'];
|
||||
itempicCopy = json['itempic_copy'];
|
||||
itemprice = json['itemprice'];
|
||||
itemsale = json['itemsale'];
|
||||
itemsale2 = json['itemsale2'];
|
||||
itemshorttitle = json['itemshorttitle'];
|
||||
itemtitle = json['itemtitle'];
|
||||
me = json['me'];
|
||||
onlineUsers = json['online_users'];
|
||||
originalArticle = json['original_article'];
|
||||
originalImg = json['original_img'];
|
||||
planlink = json['planlink'];
|
||||
reportStatus = json['report_status'];
|
||||
sellerId = json['seller_id'];
|
||||
sellerName = json['seller_name'];
|
||||
sellernick = json['sellernick'];
|
||||
shopid = json['shopid'];
|
||||
shopname = json['shopname'];
|
||||
shoptype = json['shoptype'];
|
||||
sonCategory = json['son_category'];
|
||||
startTime = json['start_time'];
|
||||
starttime = json['starttime'];
|
||||
taobaoImage = json['taobao_image'];
|
||||
tkmoney = json['tkmoney'];
|
||||
tkrates = json['tkrates'];
|
||||
tktype = json['tktype'];
|
||||
todaycouponreceive = json['todaycouponreceive'];
|
||||
todaysale = json['todaysale'];
|
||||
userid = json['userid'];
|
||||
videoid = json['videoid'];
|
||||
xid = json['xid'];
|
||||
couponreceive = json['couponreceive'];
|
||||
fqcat = json['fqcat'];
|
||||
endTime = json['end_time'];
|
||||
downType = json['down_type'];
|
||||
cuntao = json['cuntao'];
|
||||
couponsurplus = json['couponsurplus'];
|
||||
couponstarttime = json['couponstarttime'];
|
||||
couponreceive2 = json['couponreceive2'];
|
||||
couponnum = json['couponnum'];
|
||||
couponmoney = json['couponmoney'];
|
||||
couponendtime = json['couponendtime'];
|
||||
productId = json['product_id'];
|
||||
count = json['count'];
|
||||
isCheck = json['isCheck'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['activity_type'] = this.activityType;
|
||||
data['activityid'] = this.activityid;
|
||||
data['coupon_condition'] = this.couponCondition;
|
||||
data['couponexplain'] = this.couponexplain;
|
||||
data['couponurl'] = this.couponurl;
|
||||
data['deposit'] = this.deposit;
|
||||
data['deposit_deduct'] = this.depositDeduct;
|
||||
data['discount'] = this.discount;
|
||||
data['general_index'] = this.generalIndex;
|
||||
data['guide_article'] = this.guideArticle;
|
||||
data['is_brand'] = this.isBrand;
|
||||
data['is_explosion'] = this.isExplosion;
|
||||
data['is_live'] = this.isLive;
|
||||
data['is_shipping'] = this.isShipping;
|
||||
data['isquality'] = this.isquality;
|
||||
data['itemdesc'] = this.itemdesc;
|
||||
data['itemendprice'] = this.itemendprice;
|
||||
data['itemid'] = this.itemid;
|
||||
data['itempic'] = this.itempic;
|
||||
data['itempic_copy'] = this.itempicCopy;
|
||||
data['itemprice'] = this.itemprice;
|
||||
data['itemsale'] = this.itemsale;
|
||||
data['itemsale2'] = this.itemsale2;
|
||||
data['itemshorttitle'] = this.itemshorttitle;
|
||||
data['itemtitle'] = this.itemtitle;
|
||||
data['me'] = this.me;
|
||||
data['online_users'] = this.onlineUsers;
|
||||
data['original_article'] = this.originalArticle;
|
||||
data['original_img'] = this.originalImg;
|
||||
data['planlink'] = this.planlink;
|
||||
data['report_status'] = this.reportStatus;
|
||||
data['seller_id'] = this.sellerId;
|
||||
data['seller_name'] = this.sellerName;
|
||||
data['sellernick'] = this.sellernick;
|
||||
data['shopid'] = this.shopid;
|
||||
data['shopname'] = this.shopname;
|
||||
data['shoptype'] = this.shoptype;
|
||||
data['son_category'] = this.sonCategory;
|
||||
data['start_time'] = this.startTime;
|
||||
data['starttime'] = this.starttime;
|
||||
data['taobao_image'] = this.taobaoImage;
|
||||
data['tkmoney'] = this.tkmoney;
|
||||
data['tkrates'] = this.tkrates;
|
||||
data['tktype'] = this.tktype;
|
||||
data['todaycouponreceive'] = this.todaycouponreceive;
|
||||
data['todaysale'] = this.todaysale;
|
||||
data['userid'] = this.userid;
|
||||
data['videoid'] = this.videoid;
|
||||
data['xid'] = this.xid;
|
||||
data['couponreceive'] = this.couponreceive;
|
||||
data['fqcat'] = this.fqcat;
|
||||
data['end_time'] = this.endTime;
|
||||
data['down_type'] = this.downType;
|
||||
data['cuntao'] = this.cuntao;
|
||||
data['couponsurplus'] = this.couponsurplus;
|
||||
data['couponstarttime'] = this.couponstarttime;
|
||||
data['couponreceive2'] = this.couponreceive2;
|
||||
data['couponnum'] = this.couponnum;
|
||||
data['couponmoney'] = this.couponmoney;
|
||||
data['couponendtime'] = this.couponendtime;
|
||||
data['product_id'] = this.productId;
|
||||
data['count'] = this.count;
|
||||
data['isCheck'] = this.isCheck;
|
||||
return data;
|
||||
}
|
||||
}
|
Loading…
Reference in new issue