diff --git a/Jsons/banner.json b/Jsons/banner.json new file mode 100644 index 0000000..e4b12eb --- /dev/null +++ b/Jsons/banner.json @@ -0,0 +1,5 @@ +{ + "image": "https://i0.hdslb.com/bfs/new_dyn/9b8b8dfbaf92b5dcde93bebabf84e82c2018113152.png@1295w.jpg", + "url": "https://t.bilibili.com/769751787118788617", + "rank": 0 +} diff --git a/Jsons/videoPage.json b/Jsons/videoPage.json new file mode 100644 index 0000000..e814b80 --- /dev/null +++ b/Jsons/videoPage.json @@ -0,0 +1,6 @@ +{ + "key": "ugc", + "name": "二创", + "banners": "$[]banner", + "videos": "$[]videoPageVideo" +} diff --git a/Jsons/videoPageVideo.json b/Jsons/videoPageVideo.json new file mode 100644 index 0000000..b6c0c64 --- /dev/null +++ b/Jsons/videoPageVideo.json @@ -0,0 +1,4 @@ +{ + "rank": 1, + "video": "$video" +} diff --git a/lib/common/Api.dart b/lib/common/Api.dart index 846370c..a3f6dfd 100644 --- a/lib/common/Api.dart +++ b/lib/common/Api.dart @@ -1,3 +1,4 @@ +import 'package:EOEFANS/models/index.dart'; import 'package:dio/dio.dart'; import 'package:EOEFANS/models/pictures.dart'; import 'package:EOEFANS/models/picturesRequest.dart'; @@ -9,7 +10,6 @@ import 'package:flutter/cupertino.dart'; import 'Global.dart'; - class Api { Api([this.context]); @@ -57,25 +57,46 @@ class Api { return tmpVideos; } + // Future