sars -> saas

pull/1/head
张萌 3 years ago
parent c379abb3b6
commit 450e0117bf

@ -1,4 +1,4 @@
part of 'sars_api.dart'; part of 'saas_api.dart';
class _MarketApi { class _MarketApi {
_Collection collection = _Collection(); _Collection collection = _Collection();

@ -1,4 +1,4 @@
part of 'sars_api.dart'; part of 'saas_api.dart';
class _ProfileApi { class _ProfileApi {
_MyHouse house = _MyHouse(); _MyHouse house = _MyHouse();

@ -3,7 +3,7 @@ import 'package:aku_new_community/widget/others/user_tool.dart';
part 'market_api.dart'; part 'market_api.dart';
part 'profile_api.dart'; part 'profile_api.dart';
class SARSAPI { class SAASAPI {
///HOST ///HOST
static const String host = 'http://121.41.26.225:8006'; static const String host = 'http://121.41.26.225:8006';

@ -1,7 +1,7 @@
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/const/resource.dart'; import 'package:aku_new_community/const/resource.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/models/community_introduce/community_introduce_model.dart'; import 'package:aku_new_community/models/community_introduce/community_introduce_model.dart';
import 'package:aku_new_community/utils/network/base_model.dart'; import 'package:aku_new_community/utils/network/base_model.dart';
@ -48,7 +48,7 @@ class _CommunityIntroducePageState extends State<CommunityIntroducePage> {
child: FadeInImage.assetNetwork( child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
fit: BoxFit.cover, fit: BoxFit.cover,
image: SARSAPI.image(ImgModel.first(_model.imgList))), image: SAASAPI.image(ImgModel.first(_model.imgList))),
width: double.infinity, width: double.infinity,
height: 424.w, height: 424.w,
), ),

@ -1,6 +1,6 @@
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/const/resource.dart'; import 'package:aku_new_community/const/resource.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/models/electronic_commerc/electronic_commerc_list_model.dart'; import 'package:aku_new_community/models/electronic_commerc/electronic_commerc_list_model.dart';
import 'package:aku_new_community/pages/electronic_commerc/electronic_commerc_detail_page.dart'; import 'package:aku_new_community/pages/electronic_commerc/electronic_commerc_detail_page.dart';
@ -70,7 +70,7 @@ class _ElectronicCommercCardState extends State<ElectronicCommercCard> {
width: 240.w, width: 240.w,
height: 200.w, height: 200.w,
fit: BoxFit.cover, fit: BoxFit.cover,
image: SARSAPI.image(ImgModel.first(model.imgList)), image: SAASAPI.image(ImgModel.first(model.imgList)),
), ),
], ],
), ),

@ -1,6 +1,6 @@
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/model/manager/event_voting_model.dart'; import 'package:aku_new_community/model/manager/event_voting_model.dart';
import 'package:aku_new_community/pages/event_activity/voting_detail_page.dart'; import 'package:aku_new_community/pages/event_activity/voting_detail_page.dart';
@ -61,7 +61,7 @@ class _EventVotingPageState extends State<EventVotingPage> {
child: ClipRect( child: ClipRect(
child: FadeInImage.assetNetwork( child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: SARSAPI.image(ImgModel.first(model.imgUrls)), image: SAASAPI.image(ImgModel.first(model.imgUrls)),
fit: BoxFit.cover, fit: BoxFit.cover,
), ),
), ),

@ -1,6 +1,6 @@
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/app_theme.dart'; import 'package:aku_new_community/constants/app_theme.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/model/manager/voting_detail_model.dart'; import 'package:aku_new_community/model/manager/voting_detail_model.dart';
import 'package:aku_new_community/pages/manager_func.dart'; import 'package:aku_new_community/pages/manager_func.dart';
@ -133,7 +133,7 @@ class _VotingDetailPageState extends State<VotingDetailPage> {
borderRadius: BorderRadius.circular(4.w), borderRadius: BorderRadius.circular(4.w),
child: FadeInImage.assetNetwork( child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: SARSAPI.image( image: SAASAPI.image(
ImgModel.first(model.imgUrls), ImgModel.first(model.imgUrls),
), ),
fit: BoxFit.cover, fit: BoxFit.cover,
@ -232,7 +232,7 @@ class _VotingDetailPageState extends State<VotingDetailPage> {
borderRadius: BorderRadius.circular(8.w), borderRadius: BorderRadius.circular(8.w),
child: FadeInImage.assetNetwork( child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: SARSAPI.image(ImgModel.first(_model.imgUrls)), image: SAASAPI.image(ImgModel.first(_model.imgUrls)),
), ),
), ),
44.w.heightBox, 44.w.heightBox,

@ -1,7 +1,7 @@
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/const/resource.dart'; import 'package:aku_new_community/const/resource.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/models/geographic_information/geographic_information_model.dart'; import 'package:aku_new_community/models/geographic_information/geographic_information_model.dart';
import 'package:aku_new_community/utils/network/base_model.dart'; import 'package:aku_new_community/utils/network/base_model.dart';
@ -51,7 +51,7 @@ class _GeographicInformationPageState extends State<GeographicInformationPage> {
child: FadeInImage.assetNetwork( child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
fit: BoxFit.cover, fit: BoxFit.cover,
image: SARSAPI.image(ImgModel.first(_model.imgUrls))), image: SAASAPI.image(ImgModel.first(_model.imgUrls))),
width: double.infinity, width: double.infinity,
height: 424.w, height: 424.w,
), ),

@ -1,7 +1,7 @@
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/const/resource.dart'; import 'package:aku_new_community/const/resource.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/models/geographic_information/geographic_information_model.dart'; import 'package:aku_new_community/models/geographic_information/geographic_information_model.dart';
import 'package:aku_new_community/utils/network/base_model.dart'; import 'package:aku_new_community/utils/network/base_model.dart';
@ -51,7 +51,7 @@ class _GeographicInformationPageState extends State<GeographicInformationPage> {
child: FadeInImage.assetNetwork( child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
fit: BoxFit.cover, fit: BoxFit.cover,
image: SARSAPI.image(ImgModel.first(_model.imgUrls))), image: SAASAPI.image(ImgModel.first(_model.imgUrls))),
width: double.infinity, width: double.infinity,
height: 424.w, height: 424.w,
), ),

@ -1,7 +1,7 @@
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/const/resource.dart'; import 'package:aku_new_community/const/resource.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/model/manager/article_borrow_detail_model.dart'; import 'package:aku_new_community/model/manager/article_borrow_detail_model.dart';
import 'package:aku_new_community/utils/network/base_model.dart'; import 'package:aku_new_community/utils/network/base_model.dart';
@ -197,7 +197,7 @@ class _BorrowGoodsDetailPageState extends State<BorrowGoodsDetailPage> {
child: ClipRRect( child: ClipRRect(
child: FadeInImage.assetNetwork( child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: SARSAPI.image(ImgModel.first(model.imgList)), image: SAASAPI.image(ImgModel.first(model.imgList)),
imageErrorBuilder: (context, error, stackTrace) { imageErrorBuilder: (context, error, stackTrace) {
return Image.asset( return Image.asset(
R.ASSETS_IMAGES_PLACEHOLDER_WEBP, R.ASSETS_IMAGES_PLACEHOLDER_WEBP,

@ -1,16 +1,7 @@
import 'package:flutter/material.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:power_logger/power_logger.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/const/resource.dart'; import 'package:aku_new_community/const/resource.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/model/manager/article_borrow_model.dart'; import 'package:aku_new_community/model/manager/article_borrow_model.dart';
import 'package:aku_new_community/pages/goods_manage_page/borrow/borrow_goods_detail_page.dart'; import 'package:aku_new_community/pages/goods_manage_page/borrow/borrow_goods_detail_page.dart';
@ -18,6 +9,14 @@ import 'package:aku_new_community/utils/network/base_list_model.dart';
import 'package:aku_new_community/utils/network/base_model.dart'; import 'package:aku_new_community/utils/network/base_model.dart';
import 'package:aku_new_community/utils/network/net_util.dart'; import 'package:aku_new_community/utils/network/net_util.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:power_logger/power_logger.dart';
import 'package:velocity_x/velocity_x.dart';
import 'borrow_examine_page.dart'; import 'borrow_examine_page.dart';
class BorrowGoodsSubmitModel { class BorrowGoodsSubmitModel {
@ -172,7 +171,7 @@ class _BorrowGoodsPageState extends State<BorrowGoodsPage> {
child: ClipRRect( child: ClipRRect(
child: FadeInImage.assetNetwork( child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: SARSAPI.image(ImgModel.first(model.imgUrls)), image: SAASAPI.image(ImgModel.first(model.imgUrls)),
imageErrorBuilder: (context, error, stackTrace) { imageErrorBuilder: (context, error, stackTrace) {
return Image.asset( return Image.asset(
R.ASSETS_IMAGES_PLACEHOLDER_WEBP, R.ASSETS_IMAGES_PLACEHOLDER_WEBP,

@ -1,5 +1,5 @@
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/model/manager/article_borrow_model.dart'; import 'package:aku_new_community/model/manager/article_borrow_model.dart';
import 'package:aku_new_community/pages/goods_manage_page/borrow/borrow_goods_page.dart'; import 'package:aku_new_community/pages/goods_manage_page/borrow/borrow_goods_page.dart';
@ -53,7 +53,7 @@ class _GoodsManagePageState extends State<GoodsManagePage> {
child: ClipRRect( child: ClipRRect(
child: FadeInImage.assetNetwork( child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: SARSAPI.image(ImgModel.first(model.imgUrls)), image: SAASAPI.image(ImgModel.first(model.imgUrls)),
imageErrorBuilder: (context, error, stackTrace) { imageErrorBuilder: (context, error, stackTrace) {
return Image.asset( return Image.asset(
R.ASSETS_IMAGES_PLACEHOLDER_WEBP, R.ASSETS_IMAGES_PLACEHOLDER_WEBP,

@ -1,15 +1,7 @@
import 'package:flutter/material.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/const/resource.dart'; import 'package:aku_new_community/const/resource.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/model/manager/article_return_list_model.dart'; import 'package:aku_new_community/model/manager/article_return_list_model.dart';
import 'package:aku_new_community/pages/goods_manage_page/borrow/borrow_examine_page.dart'; import 'package:aku_new_community/pages/goods_manage_page/borrow/borrow_examine_page.dart';
@ -17,6 +9,12 @@ import 'package:aku_new_community/utils/network/base_model.dart';
import 'package:aku_new_community/utils/network/net_util.dart'; import 'package:aku_new_community/utils/network/net_util.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:aku_new_community/widget/buttons/radio_button.dart'; import 'package:aku_new_community/widget/buttons/radio_button.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
class ReturnGoodsDetailPage extends StatefulWidget { class ReturnGoodsDetailPage extends StatefulWidget {
ReturnGoodsDetailPage({Key? key}) : super(key: key); ReturnGoodsDetailPage({Key? key}) : super(key: key);
@ -205,7 +203,7 @@ class _ReturnGoodsDetailPageState extends State<ReturnGoodsDetailPage> {
child: ClipRRect( child: ClipRRect(
child: FadeInImage.assetNetwork( child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: SARSAPI.image(ImgModel.first(model.imgList)), image: SAASAPI.image(ImgModel.first(model.imgList)),
imageErrorBuilder: (context, error, stackTrace) { imageErrorBuilder: (context, error, stackTrace) {
return Image.asset( return Image.asset(
R.ASSETS_IMAGES_PLACEHOLDER_WEBP, R.ASSETS_IMAGES_PLACEHOLDER_WEBP,

@ -1,7 +1,7 @@
// Dart imports: // Dart imports:
import 'package:aku_new_community/constants/application_objects.dart'; import 'package:aku_new_community/constants/application_objects.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/extensions/color_ext.dart'; import 'package:aku_new_community/extensions/color_ext.dart';
import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/models/home/home_activity_model.dart'; import 'package:aku_new_community/models/home/home_activity_model.dart';
@ -549,7 +549,7 @@ class _HomePageState extends State<HomePage>
if (_swiperModels.isNotEmpty) { if (_swiperModels.isNotEmpty) {
var color = var color =
await PaletteGenerator.fromImageProvider(CachedNetworkImageProvider( await PaletteGenerator.fromImageProvider(CachedNetworkImageProvider(
SARSAPI.image(ImgModel.first(_swiperModels[index].imgList)), SAASAPI.image(ImgModel.first(_swiperModels[index].imgList)),
)); ));
_barColor.value = color.dominantColor?.color ?? Colors.transparent; _barColor.value = color.dominantColor?.color ?? Colors.transparent;
} else { } else {

@ -1,17 +1,16 @@
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:get/get.dart';
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/app_theme.dart'; import 'package:aku_new_community/constants/app_theme.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/models/house_introduce/house_introduce_model.dart'; import 'package:aku_new_community/models/house_introduce/house_introduce_model.dart';
import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart'; import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart';
import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/utils/headers.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:get/get.dart';
import 'house_detail_page.dart'; import 'house_detail_page.dart';
class HouseIntroducePage extends StatefulWidget { class HouseIntroducePage extends StatefulWidget {
@ -56,7 +55,7 @@ class _HouseIntroducePageState extends State<HouseIntroducePage> {
borderRadius: BorderRadius.circular(4.w), borderRadius: BorderRadius.circular(4.w),
child: FadeInImage.assetNetwork( child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: SARSAPI.image(ImgModel.first(model.imgUrls)), image: SAASAPI.image(ImgModel.first(model.imgUrls)),
height: 200.w, height: 200.w,
width: 240.w, width: 240.w,
fit: BoxFit.fill, fit: BoxFit.fill,

@ -1,14 +1,7 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:get/get.dart';
import 'package:url_launcher/url_launcher.dart';
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/app_theme.dart'; import 'package:aku_new_community/constants/app_theme.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/model/user/committee_item_model.dart'; import 'package:aku_new_community/model/user/committee_item_model.dart';
import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart'; import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart';
@ -16,6 +9,11 @@ import 'package:aku_new_community/utils/headers.dart';
import 'package:aku_new_community/utils/hive_store.dart'; import 'package:aku_new_community/utils/hive_store.dart';
import 'package:aku_new_community/utils/websocket/tips_dialog.dart'; import 'package:aku_new_community/utils/websocket/tips_dialog.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:get/get.dart';
import 'package:url_launcher/url_launcher.dart';
class IndustryCommitteePage extends StatefulWidget { class IndustryCommitteePage extends StatefulWidget {
IndustryCommitteePage({Key? key}) : super(key: key); IndustryCommitteePage({Key? key}) : super(key: key);
@ -97,7 +95,7 @@ class _IndustryCommitteePageState extends State<IndustryCommitteePage> {
borderRadius: BorderRadius.circular(4.w), borderRadius: BorderRadius.circular(4.w),
child: FadeInImage.assetNetwork( child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: SARSAPI.image(ImgModel.first(model.imgUrls)), image: SAASAPI.image(ImgModel.first(model.imgUrls)),
height: 150.w, height: 150.w,
width: 150.w, width: 150.w,
fit: BoxFit.cover, fit: BoxFit.cover,

@ -1,4 +1,4 @@
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/models/home/home_announce_model.dart'; import 'package:aku_new_community/models/home/home_announce_model.dart';
import 'package:aku_new_community/pages/message_center_page/announce/announce_card.dart'; import 'package:aku_new_community/pages/message_center_page/announce/announce_card.dart';
import 'package:aku_new_community/utils/network/net_util.dart'; import 'package:aku_new_community/utils/network/net_util.dart';
@ -112,7 +112,7 @@ class _AnnounceViewState extends State<AnnounceView> {
_modelLists.clear(); _modelLists.clear();
_innerModelList.clear(); _innerModelList.clear();
var base = var base =
await NetUtil().getList(SARSAPI.announce.list, params: { await NetUtil().getList(SAASAPI.announce.list, params: {
'page': _page, 'page': _page,
'size': _size, 'size': _size,
}); });
@ -128,7 +128,7 @@ class _AnnounceViewState extends State<AnnounceView> {
onLoad: () async { onLoad: () async {
_page++; _page++;
var base = var base =
await NetUtil().getList(SARSAPI.announce.list, params: { await NetUtil().getList(SAASAPI.announce.list, params: {
'page': _page, 'page': _page,
'size': _size, 'size': _size,
}); });

@ -1,10 +1,5 @@
import 'package:flutter/cupertino.dart';
import 'package:common_utils/common_utils.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/model/message/comment_message_model.dart'; import 'package:aku_new_community/model/message/comment_message_model.dart';
import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart'; import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart';
@ -12,6 +7,9 @@ import 'package:aku_new_community/utils/bee_date_util.dart';
import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/utils/headers.dart';
import 'package:aku_new_community/widget/bee_divider.dart'; import 'package:aku_new_community/widget/bee_divider.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:common_utils/common_utils.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
class CommentMessagePage extends StatefulWidget { class CommentMessagePage extends StatefulWidget {
CommentMessagePage({Key? key}) : super(key: key); CommentMessagePage({Key? key}) : super(key: key);
@ -75,7 +73,7 @@ class _CommentMessagePageState extends State<CommentMessagePage> {
clipBehavior: Clip.antiAlias, clipBehavior: Clip.antiAlias,
child: FadeInImage.assetNetwork( child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: SARSAPI.image(ImgModel.first(model.headSculpture)), image: SAASAPI.image(ImgModel.first(model.headSculpture)),
fit: BoxFit.cover, fit: BoxFit.cover,
), ),
), ),
@ -99,7 +97,7 @@ class _CommentMessagePageState extends State<CommentMessagePage> {
height: 160.w, height: 160.w,
child: FadeInImage.assetNetwork( child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: SARSAPI.image(ImgModel.first(model.imgUrls)), image: SAASAPI.image(ImgModel.first(model.imgUrls)),
fit: BoxFit.cover, fit: BoxFit.cover,
), ),
), ),

@ -1,4 +1,4 @@
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/pages/message_center_page/announce/announce_view.dart'; import 'package:aku_new_community/pages/message_center_page/announce/announce_view.dart';
import 'package:aku_new_community/pages/message_center_page/reply/replay_view.dart'; import 'package:aku_new_community/pages/message_center_page/reply/replay_view.dart';
import 'package:aku_new_community/pages/message_center_page/thumbs_up/thumbs_up_view.dart'; import 'package:aku_new_community/pages/message_center_page/thumbs_up/thumbs_up_view.dart';
@ -51,7 +51,7 @@ class _MessageCenterPageState extends State<MessageCenterPage>
actions: [ actions: [
MaterialButton( MaterialButton(
onPressed: () async { onPressed: () async {
var res = await NetUtil().get(SARSAPI.message.allRead, params: { var res = await NetUtil().get(SAASAPI.message.allRead, params: {
'type': _tabController.index + 1, 'type': _tabController.index + 1,
}); });
if (res.success) { if (res.success) {

@ -1,5 +1,5 @@
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/message/system_message_detail_model.dart'; import 'package:aku_new_community/model/message/system_message_detail_model.dart';
import 'package:aku_new_community/utils/network/base_model.dart'; import 'package:aku_new_community/utils/network/base_model.dart';
import 'package:aku_new_community/utils/network/net_util.dart'; import 'package:aku_new_community/utils/network/net_util.dart';
@ -16,7 +16,7 @@ class MessageFunc {
} }
static Future<bool> readMessage(int? id) async { static Future<bool> readMessage(int? id) async {
BaseModel baseModel = await NetUtil().get(SARSAPI.message.read, params: { BaseModel baseModel = await NetUtil().get(SAASAPI.message.read, params: {
'messageId': id, 'messageId': id,
}); });
if (baseModel.success) { if (baseModel.success) {

@ -1,4 +1,4 @@
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/models/message/reply_list_model.dart'; import 'package:aku_new_community/models/message/reply_list_model.dart';
import 'package:aku_new_community/pages/message_center_page/reply/reply_card.dart'; import 'package:aku_new_community/pages/message_center_page/reply/reply_card.dart';
import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart'; import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart';
@ -29,7 +29,7 @@ class _ReplayViewState extends State<ReplayView> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return BeeListView( return BeeListView(
path: SARSAPI.message.allComment, path: SAASAPI.message.allComment,
controller: widget.controller, controller: widget.controller,
convert: (models) => convert: (models) =>
models.rows.map((e) => ReplyListModel.fromJson(e)).toList(), models.rows.map((e) => ReplyListModel.fromJson(e)).toList(),

@ -1,4 +1,4 @@
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/models/message/reply_list_model.dart'; import 'package:aku_new_community/models/message/reply_list_model.dart';
import 'package:aku_new_community/pages/message_center_page/thumbs_up/thumbs_up_card.dart'; import 'package:aku_new_community/pages/message_center_page/thumbs_up/thumbs_up_card.dart';
import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart'; import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart';
@ -24,7 +24,7 @@ class _ThumbsUpViewState extends State<ThumbsUpView> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return BeeListView( return BeeListView(
path: SARSAPI.message.allLikes, path: SAASAPI.message.allLikes,
controller: widget.controller, controller: widget.controller,
convert: (models) => convert: (models) =>
models.rows.map((e) => ReplyListModel.fromJson(e)).toList(), models.rows.map((e) => ReplyListModel.fromJson(e)).toList(),

@ -1,14 +1,5 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/extensions/num_ext.dart'; import 'package:aku_new_community/extensions/num_ext.dart';
import 'package:aku_new_community/extensions/widget_list_ext.dart'; import 'package:aku_new_community/extensions/widget_list_ext.dart';
import 'package:aku_new_community/gen/assets.gen.dart'; import 'package:aku_new_community/gen/assets.gen.dart';
@ -19,6 +10,12 @@ import 'package:aku_new_community/pages/personal/clock_in/clock_success_dialog.d
import 'package:aku_new_community/utils/network/net_util.dart'; import 'package:aku_new_community/utils/network/net_util.dart';
import 'package:aku_new_community/widget/bee_back_button.dart'; import 'package:aku_new_community/widget/bee_back_button.dart';
import 'package:aku_new_community/widget/others/user_tool.dart'; import 'package:aku_new_community/widget/others/user_tool.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
class ClockInPage extends StatefulWidget { class ClockInPage extends StatefulWidget {
const ClockInPage({Key? key}) : super(key: key); const ClockInPage({Key? key}) : super(key: key);
@ -37,7 +34,7 @@ class _ClockInPageState extends State<ClockInPage> {
bool get hasClocked => _integralModel?.isSign ?? false; bool get hasClocked => _integralModel?.isSign ?? false;
Future getData() async { Future getData() async {
var base = await NetUtil().get(SARSAPI.profile.integral.info); var base = await NetUtil().get(SAASAPI.profile.integral.info);
if (base.success) { if (base.success) {
_integralModel = IntegralInfoModel.fromJson(base.data); _integralModel = IntegralInfoModel.fromJson(base.data);
if (_integralModel != null) { if (_integralModel != null) {
@ -225,7 +222,7 @@ class _ClockInPageState extends State<ClockInPage> {
? null ? null
: () async { : () async {
var base = var base =
await NetUtil().get(SARSAPI.profile.integral.sign); await NetUtil().get(SAASAPI.profile.integral.sign);
if (base.success) { if (base.success) {
await Get.dialog(ClockSuccessDialog( await Get.dialog(ClockSuccessDialog(
todayIntegral: 1, tomorrowIntegral: 2)); todayIntegral: 1, tomorrowIntegral: 2));

@ -1,13 +1,4 @@
import 'package:flutter/cupertino.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:flutter/material.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:get/get.dart';
import 'package:provider/provider.dart';
import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/gen/assets.gen.dart'; import 'package:aku_new_community/gen/assets.gen.dart';
import 'package:aku_new_community/pages/personal/clock_in/clock_in_page.dart'; import 'package:aku_new_community/pages/personal/clock_in/clock_in_page.dart';
import 'package:aku_new_community/pages/personal/user_profile_page.dart'; import 'package:aku_new_community/pages/personal/user_profile_page.dart';
@ -23,6 +14,13 @@ import 'package:aku_new_community/ui/profile/new_house/my_house_page.dart';
import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/utils/headers.dart';
import 'package:aku_new_community/utils/network/net_util.dart'; import 'package:aku_new_community/utils/network/net_util.dart';
import 'package:aku_new_community/widget/others/user_tool.dart'; import 'package:aku_new_community/widget/others/user_tool.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:get/get.dart';
import 'package:provider/provider.dart';
import 'address/address_list_page.dart'; import 'address/address_list_page.dart';
import 'clock_in/clock_success_dialog.dart'; import 'clock_in/clock_success_dialog.dart';
import 'intergral/integral_center_page.dart'; import 'intergral/integral_center_page.dart';
@ -341,7 +339,7 @@ class _PersonalIndexState extends State<PersonalIndex>
MaterialButton( MaterialButton(
onPressed: () async { onPressed: () async {
var base = await NetUtil() var base = await NetUtil()
.get(SARSAPI.profile.integral.sign); .get(SAASAPI.profile.integral.sign);
if (base.success) { if (base.success) {
await Get.dialog(ClockSuccessDialog( await Get.dialog(ClockSuccessDialog(
todayIntegral: 1, tomorrowIntegral: 2)); todayIntegral: 1, tomorrowIntegral: 2));

@ -1,5 +1,5 @@
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/community/board_model.dart'; import 'package:aku_new_community/model/community/board_model.dart';
import 'package:aku_new_community/model/community/swiper_model.dart'; import 'package:aku_new_community/model/community/swiper_model.dart';
import 'package:aku_new_community/model/user/adress_model.dart'; import 'package:aku_new_community/model/user/adress_model.dart';
@ -12,7 +12,7 @@ class Userfunc {
/// ///
static Future<List<AddressModel>> getMyAddress() async { static Future<List<AddressModel>> getMyAddress() async {
BaseModel model = await NetUtil().get( BaseModel model = await NetUtil().get(
SARSAPI.market.address.myAddress, SAASAPI.market.address.myAddress,
); );
if (model.data!.length == 0) return []; if (model.data!.length == 0) return [];
return (model.data as List).map((e) => AddressModel.fromJson(e)).toList(); return (model.data as List).map((e) => AddressModel.fromJson(e)).toList();
@ -21,7 +21,7 @@ class Userfunc {
/// ///
static Future<bool> insertAddress(String name, String tel, int? location, static Future<bool> insertAddress(String name, String tel, int? location,
String addressDetail, int? isDefault) async { String addressDetail, int? isDefault) async {
BaseModel model = await NetUtil().post(SARSAPI.market.address.insert, BaseModel model = await NetUtil().post(SAASAPI.market.address.insert,
params: { params: {
'name': name, 'name': name,
'tel': tel, 'tel': tel,
@ -42,7 +42,7 @@ class Userfunc {
/// ///
static Future<bool> updateAddress(int id, String name, String tel, static Future<bool> updateAddress(int id, String name, String tel,
int? location, String addressDetail, int? isDefault) async { int? location, String addressDetail, int? isDefault) async {
BaseModel model = await NetUtil().post(SARSAPI.market.address.update, BaseModel model = await NetUtil().post(SAASAPI.market.address.update,
params: { params: {
'id': id, 'id': id,
'name': name, 'name': name,
@ -63,7 +63,7 @@ class Userfunc {
/// ///
static Future<bool> deleteAddress(int addressId) async { static Future<bool> deleteAddress(int addressId) async {
BaseModel model = await NetUtil().post(SARSAPI.market.address.delete, BaseModel model = await NetUtil().post(SAASAPI.market.address.delete,
params: {'id': addressId}, showMessage: false); params: {'id': addressId}, showMessage: false);
if (model.success) { if (model.success) {
BotToast.showText(text: '删除成功'); BotToast.showText(text: '删除成功');
@ -76,7 +76,7 @@ class Userfunc {
/// ///
static Future<bool> setIsDefaultAddress(int addressId) async { static Future<bool> setIsDefaultAddress(int addressId) async {
BaseModel model = await NetUtil().post(SARSAPI.market.address.setDefault, BaseModel model = await NetUtil().post(SAASAPI.market.address.setDefault,
params: {'id': addressId}, showMessage: false); params: {'id': addressId}, showMessage: false);
if (model.success) { if (model.success) {
BotToast.showText(text: '设置成功'); BotToast.showText(text: '设置成功');

@ -1,7 +1,7 @@
import 'dart:io'; import 'dart:io';
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/pages/personal/change_nick_name_page.dart'; import 'package:aku_new_community/pages/personal/change_nick_name_page.dart';
import 'package:aku_new_community/pages/personal/update_tel_page.dart'; import 'package:aku_new_community/pages/personal/update_tel_page.dart';
import 'package:aku_new_community/provider/user_provider.dart'; import 'package:aku_new_community/provider/user_provider.dart';
@ -69,7 +69,7 @@ class _UserProfilePageState extends State<UserProfilePage> {
//Upload Avatar //Upload Avatar
Function cancel = BotToast.showLoading(); Function cancel = BotToast.showLoading();
BaseModel model = BaseModel model =
await NetUtil().upload(SARSAPI.uploadFile.uploadImg, file); await NetUtil().upload(SAASAPI.uploadFile.uploadImg, file);
if (model.success) if (model.success)
userProvider.updateAvatar(model.data as String); userProvider.updateAvatar(model.data as String);
else else

@ -5,7 +5,7 @@ import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/models/life_pay/share_pay_record_model.dart'; import 'package:aku_new_community/models/life_pay/share_pay_record_model.dart';
import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart'; import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart';
import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/utils/headers.dart';

@ -6,7 +6,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:velocity_x/velocity_x.dart'; import 'package:velocity_x/velocity_x.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/models/login/community_model.dart'; import 'package:aku_new_community/models/login/community_model.dart';
import 'package:aku_new_community/models/login/history_login_model.dart'; import 'package:aku_new_community/models/login/history_login_model.dart';
import 'package:aku_new_community/utils/network/net_util.dart'; import 'package:aku_new_community/utils/network/net_util.dart';
@ -96,7 +96,7 @@ class _SelectCommunityState extends State<SelectCommunity> {
onTap: () async { onTap: () async {
var cancel = BotToast.showLoading(); var cancel = BotToast.showLoading();
List<CommunityModel> _communities = []; List<CommunityModel> _communities = [];
var base = await NetUtil().get(SARSAPI.login.allCommunity, params: { var base = await NetUtil().get(SAASAPI.login.allCommunity, params: {
'cityId': UserTool 'cityId': UserTool
.appProveider.pickedCityAndCommunity!.cityModel.district.id, .appProveider.pickedCityAndCommunity!.cityModel.district.id,
}); });

@ -1,5 +1,5 @@
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/user/pick_building_model.dart'; import 'package:aku_new_community/model/user/pick_building_model.dart';
import 'package:aku_new_community/models/user/my_house_model.dart'; import 'package:aku_new_community/models/user/my_house_model.dart';
import 'package:aku_new_community/models/user/user_info_model.dart'; import 'package:aku_new_community/models/user/user_info_model.dart';
@ -21,7 +21,7 @@ class SignFunc {
static Future<BaseModel> sendMessageCode( static Future<BaseModel> sendMessageCode(
String phone, int communityId) async { String phone, int communityId) async {
BaseModel baseModel = await NetUtil().post( BaseModel baseModel = await NetUtil().post(
SARSAPI.login.sendSMSCode, SAASAPI.login.sendSMSCode,
params: {'tel': phone, 'communityId': communityId}, params: {'tel': phone, 'communityId': communityId},
showMessage: true, showMessage: true,
); );
@ -31,7 +31,7 @@ class SignFunc {
static Future<BaseModel> sendForgotMessageCode( static Future<BaseModel> sendForgotMessageCode(
String phone, int communityId) async { String phone, int communityId) async {
BaseModel baseModel = await NetUtil().post( BaseModel baseModel = await NetUtil().post(
SARSAPI.user.sendForgotTelCode, SAASAPI.user.sendForgotTelCode,
params: {'tel': phone, 'communityId': communityId}, params: {'tel': phone, 'communityId': communityId},
showMessage: true, showMessage: true,
); );
@ -65,7 +65,7 @@ class SignFunc {
static Future<Response> loginBySms( static Future<Response> loginBySms(
String phone, String code, int communityId) async { String phone, String code, int communityId) async {
Response response = await NetUtil().dio!.post( Response response = await NetUtil().dio!.post(
SARSAPI.login.loginTelCode, SAASAPI.login.loginTelCode,
data: { data: {
'tel': phone, 'tel': phone,
'code': code, 'code': code,
@ -124,14 +124,14 @@ class SignFunc {
/// ///
static Future<UserInfoModel?> getUserInfo() async { static Future<UserInfoModel?> getUserInfo() async {
BaseModel baseModel = await NetUtil().get(SARSAPI.user.userProfile); BaseModel baseModel = await NetUtil().get(SAASAPI.user.userProfile);
if (baseModel.data == null || !baseModel.success) return null; if (baseModel.data == null || !baseModel.success) return null;
return UserInfoModel.fromJson(baseModel.data); return UserInfoModel.fromJson(baseModel.data);
} }
/// ///
static Future<bool> settingPsd(String psd) async { static Future<bool> settingPsd(String psd) async {
BaseModel baseModel = await NetUtil().get(SARSAPI.user.settingPsd, BaseModel baseModel = await NetUtil().get(SAASAPI.user.settingPsd,
params: {'password': psd}, showMessage: true); params: {'password': psd}, showMessage: true);
if (baseModel.data == null || !baseModel.success) return false; if (baseModel.data == null || !baseModel.success) return false;
return true; return true;
@ -140,7 +140,7 @@ class SignFunc {
/// ///
static Future<bool> settingForgotPsd( static Future<bool> settingForgotPsd(
String psd, String tel, String telcode) async { String psd, String tel, String telcode) async {
BaseModel baseModel = await NetUtil().get(SARSAPI.user.settingForgotPsd, BaseModel baseModel = await NetUtil().get(SAASAPI.user.settingForgotPsd,
params: { params: {
'newPassword': psd, 'newPassword': psd,
'tel': tel, 'tel': tel,
@ -155,7 +155,7 @@ class SignFunc {
static Future<List<MyHouseModel>> getMyHouseInfo() async { static Future<List<MyHouseModel>> getMyHouseInfo() async {
BaseModel baseModel = await NetUtil().get( BaseModel baseModel = await NetUtil().get(
SARSAPI.profile.house.userHouse, SAASAPI.profile.house.userHouse,
); );
if ((baseModel.data as List).isEmpty) return []; if ((baseModel.data as List).isEmpty) return [];
return (baseModel.data as List) return (baseModel.data as List)
@ -175,7 +175,7 @@ class SignFunc {
/// ///
static Future<bool> checkNickRepeat(String nick) async { static Future<bool> checkNickRepeat(String nick) async {
BaseModel baseModel = await NetUtil().get(SARSAPI.user.checkNickRepeat, BaseModel baseModel = await NetUtil().get(SAASAPI.user.checkNickRepeat,
params: { params: {
'nickName': nick, 'nickName': nick,
}, },
@ -185,7 +185,7 @@ class SignFunc {
/// ///
static Future<bool> setNickName(String nick) async { static Future<bool> setNickName(String nick) async {
BaseModel baseModel = await NetUtil().get(SARSAPI.user.setNickName, BaseModel baseModel = await NetUtil().get(SAASAPI.user.setNickName,
params: { params: {
'nickName': nick, 'nickName': nick,
}, },

@ -1,14 +1,11 @@
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/const/resource.dart'; import 'package:aku_new_community/const/resource.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/models/surrounding_enterprises/surrounding_enterprises_model.dart'; import 'package:aku_new_community/models/surrounding_enterprises/surrounding_enterprises_model.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
class SurroundingEnterprisesDetailPage extends StatefulWidget { class SurroundingEnterprisesDetailPage extends StatefulWidget {
final SurroundingEnterprisesModel surroundingEnterprisesModel; final SurroundingEnterprisesModel surroundingEnterprisesModel;
@ -35,7 +32,7 @@ class _SurroundingEnterprisesDetailPageState
child: FadeInImage.assetNetwork( child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
fit: BoxFit.cover, fit: BoxFit.cover,
image: SARSAPI.image(ImgModel.first( image: SAASAPI.image(ImgModel.first(
widget.surroundingEnterprisesModel.imgList))), widget.surroundingEnterprisesModel.imgList))),
width: double.infinity, width: double.infinity,
height: 424.w, height: 424.w,

@ -1,18 +1,16 @@
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:get/get.dart';
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/app_theme.dart'; import 'package:aku_new_community/constants/app_theme.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/models/surrounding_enterprises/surrounding_enterprises_model.dart'; import 'package:aku_new_community/models/surrounding_enterprises/surrounding_enterprises_model.dart';
import 'package:aku_new_community/pages/surrounding_enterprises/surrounding_enterprises_detail_page.dart'; import 'package:aku_new_community/pages/surrounding_enterprises/surrounding_enterprises_detail_page.dart';
import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart'; import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart';
import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/utils/headers.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:get/get.dart';
class SurroundingEnterprisesPage extends StatefulWidget { class SurroundingEnterprisesPage extends StatefulWidget {
SurroundingEnterprisesPage({Key? key}) : super(key: key); SurroundingEnterprisesPage({Key? key}) : super(key: key);
@ -59,7 +57,7 @@ class _SurroundingEnterprisesPageState
borderRadius: BorderRadius.circular(4.w), borderRadius: BorderRadius.circular(4.w),
child: FadeInImage.assetNetwork( child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: SARSAPI.image(ImgModel.first(model.imgList)), image: SAASAPI.image(ImgModel.first(model.imgList)),
height: 200.w, height: 200.w,
width: 240.w, width: 240.w,
fit: BoxFit.fill, fit: BoxFit.fill,

@ -1,15 +1,6 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/app_theme.dart'; import 'package:aku_new_community/constants/app_theme.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/extensions/num_ext.dart'; import 'package:aku_new_community/extensions/num_ext.dart';
import 'package:aku_new_community/model/user/fixed_submit_model.dart'; import 'package:aku_new_community/model/user/fixed_submit_model.dart';
import 'package:aku_new_community/pages/manager_func.dart'; import 'package:aku_new_community/pages/manager_func.dart';
@ -21,6 +12,12 @@ import 'package:aku_new_community/utils/bee_map.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:aku_new_community/widget/buttons/bottom_button.dart'; import 'package:aku_new_community/widget/buttons/bottom_button.dart';
import 'package:aku_new_community/widget/views/horizontal_image_view.dart'; import 'package:aku_new_community/widget/views/horizontal_image_view.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
class FixedSubmitPage extends StatefulWidget { class FixedSubmitPage extends StatefulWidget {
FixedSubmitPage({Key? key}) : super(key: key); FixedSubmitPage({Key? key}) : super(key: key);

@ -1,15 +1,8 @@
import 'dart:io'; import 'dart:io';
import 'package:flutter/material.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:get/get.dart';
import 'package:provider/provider.dart';
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/app_theme.dart'; import 'package:aku_new_community/constants/app_theme.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/pages/manager_func.dart'; import 'package:aku_new_community/pages/manager_func.dart';
import 'package:aku_new_community/pages/things_page/widget/finish_fixed_submit_page.dart'; import 'package:aku_new_community/pages/things_page/widget/finish_fixed_submit_page.dart';
import 'package:aku_new_community/provider/app_provider.dart'; import 'package:aku_new_community/provider/app_provider.dart';
@ -21,6 +14,10 @@ import 'package:aku_new_community/widget/buttons/bee_check_button.dart';
import 'package:aku_new_community/widget/buttons/bottom_button.dart'; import 'package:aku_new_community/widget/buttons/bottom_button.dart';
import 'package:aku_new_community/widget/others/house_head_card.dart'; import 'package:aku_new_community/widget/others/house_head_card.dart';
import 'package:aku_new_community/widget/picker/grid_image_picker.dart'; import 'package:aku_new_community/widget/picker/grid_image_picker.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:provider/provider.dart';
class AddFixedSubmitPage extends StatefulWidget { class AddFixedSubmitPage extends StatefulWidget {
AddFixedSubmitPage({Key? key}) : super(key: key); AddFixedSubmitPage({Key? key}) : super(key: key);

@ -1,14 +1,5 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:get/get.dart';
import 'package:url_launcher/url_launcher.dart';
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/models/manage/fix_report/fix_detail_model.dart'; import 'package:aku_new_community/models/manage/fix_report/fix_detail_model.dart';
import 'package:aku_new_community/pages/life_pay/pay_finish_page.dart'; import 'package:aku_new_community/pages/life_pay/pay_finish_page.dart';
import 'package:aku_new_community/pages/life_pay/pay_util.dart'; import 'package:aku_new_community/pages/life_pay/pay_util.dart';
@ -20,6 +11,12 @@ import 'package:aku_new_community/utils/network/base_model.dart';
import 'package:aku_new_community/widget/bee_divider.dart'; import 'package:aku_new_community/widget/bee_divider.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:aku_new_community/widget/views/horizontal_image_view.dart'; import 'package:aku_new_community/widget/views/horizontal_image_view.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:get/get.dart';
import 'package:url_launcher/url_launcher.dart';
class FixedDetailPage extends StatefulWidget { class FixedDetailPage extends StatefulWidget {
final int id; final int id;

@ -1,15 +1,4 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:common_utils/common_utils.dart';
import 'package:flutter_icons/flutter_icons.dart';
import 'package:get/get.dart';
import 'package:provider/provider.dart';
import 'package:share/share.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/pages/manager_func.dart'; import 'package:aku_new_community/pages/manager_func.dart';
import 'package:aku_new_community/provider/app_provider.dart'; import 'package:aku_new_community/provider/app_provider.dart';
import 'package:aku_new_community/provider/user_provider.dart'; import 'package:aku_new_community/provider/user_provider.dart';
@ -20,6 +9,14 @@ import 'package:aku_new_community/widget/bee_divider.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:aku_new_community/widget/common_input.dart'; import 'package:aku_new_community/widget/common_input.dart';
import 'package:aku_new_community/widget/picker/bee_date_picker.dart'; import 'package:aku_new_community/widget/picker/bee_date_picker.dart';
import 'package:common_utils/common_utils.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_icons/flutter_icons.dart';
import 'package:get/get.dart';
import 'package:provider/provider.dart';
import 'package:share/share.dart';
import 'package:velocity_x/velocity_x.dart';
class VisitorAccessPage extends StatefulWidget { class VisitorAccessPage extends StatefulWidget {
VisitorAccessPage({Key? key}) : super(key: key); VisitorAccessPage({Key? key}) : super(key: key);

@ -4,7 +4,7 @@ import 'dart:io';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/application_objects.dart'; import 'package:aku_new_community/constants/application_objects.dart';
import 'package:aku_new_community/constants/config.dart'; import 'package:aku_new_community/constants/config.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/common/real_time_weather_model.dart'; import 'package:aku_new_community/model/common/real_time_weather_model.dart';
import 'package:aku_new_community/model/message/message_center_model.dart'; import 'package:aku_new_community/model/message/message_center_model.dart';
import 'package:aku_new_community/model/user/adress_model.dart'; import 'package:aku_new_community/model/user/adress_model.dart';
@ -310,7 +310,7 @@ class AppProvider extends ChangeNotifier {
/// ///
Future getMyAddress() async { Future getMyAddress() async {
BaseModel model = await NetUtil().get(SARSAPI.market.address.myAddress); BaseModel model = await NetUtil().get(SAASAPI.market.address.myAddress);
if (model.data?.length == 0) if (model.data?.length == 0)
return []; return [];
else { else {

@ -1,12 +1,10 @@
import 'package:flutter/material.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/models/login/china_region_model.dart'; import 'package:aku_new_community/models/login/china_region_model.dart';
import 'package:aku_new_community/models/login/history_login_model.dart'; import 'package:aku_new_community/models/login/history_login_model.dart';
import 'package:aku_new_community/utils/hive_store.dart'; import 'package:aku_new_community/utils/hive_store.dart';
import 'package:aku_new_community/utils/network/net_util.dart'; import 'package:aku_new_community/utils/network/net_util.dart';
import 'package:aku_new_community/widget/others/user_tool.dart'; import 'package:aku_new_community/widget/others/user_tool.dart';
import 'package:flutter/material.dart';
class DataProvider extends ChangeNotifier { class DataProvider extends ChangeNotifier {
Future init() async { Future init() async {
@ -28,7 +26,7 @@ class DataProvider extends ChangeNotifier {
List<ChinaRegionModel> get cityModel => _cityModel; List<ChinaRegionModel> get cityModel => _cityModel;
Future<bool> updateCityList() async { Future<bool> updateCityList() async {
var model = await NetUtil().get(SARSAPI.city.allCity); var model = await NetUtil().get(SAASAPI.city.allCity);
if (model.success) { if (model.success) {
_cityModel = (model.data as List) _cityModel = (model.data as List)
.map((e) => ChinaRegionModel.fromJson(e)) .map((e) => ChinaRegionModel.fromJson(e))

@ -1,7 +1,7 @@
import 'dart:io'; import 'dart:io';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/models/user/my_house_model.dart'; import 'package:aku_new_community/models/user/my_house_model.dart';
import 'package:aku_new_community/models/user/user_config_model.dart'; import 'package:aku_new_community/models/user/user_config_model.dart';
import 'package:aku_new_community/models/user/user_info_model.dart'; import 'package:aku_new_community/models/user/user_info_model.dart';
@ -161,7 +161,7 @@ class UserProvider extends ChangeNotifier {
/// ///
Future updateAvatar(String? path) async { Future updateAvatar(String? path) async {
BaseModel model = await NetUtil().post( BaseModel model = await NetUtil().post(
SARSAPI.user.updateAvatar, SAASAPI.user.updateAvatar,
params: { params: {
'fileUrls': [path] 'fileUrls': [path]
}, },

@ -1,4 +1,4 @@
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/models/home/activity_detail_model.dart'; import 'package:aku_new_community/models/home/activity_detail_model.dart';
import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/utils/headers.dart';
@ -77,7 +77,7 @@ class _ActivityDetailPageState extends State<ActivityDetailPage> {
firstRefresh: true, firstRefresh: true,
onRefresh: () async { onRefresh: () async {
BaseModel baseModel = await NetUtil().get( BaseModel baseModel = await NetUtil().get(
SARSAPI.activity.detail, SAASAPI.activity.detail,
params: {'activityId': widget.id}, params: {'activityId': widget.id},
); );
_model = ActivityDetailModel.fromJson(baseModel.data); _model = ActivityDetailModel.fromJson(baseModel.data);
@ -151,7 +151,7 @@ class _ActivityDetailPageState extends State<ActivityDetailPage> {
bottomNavi: BottomButton( bottomNavi: BottomButton(
child: '立即报名'.text.size(32.sp).color(Colors.black).bold.make(), child: '立即报名'.text.size(32.sp).color(Colors.black).bold.make(),
onPressed: () async { onPressed: () async {
await NetUtil().post(SARSAPI.activity.registration, await NetUtil().post(SAASAPI.activity.registration,
params: {'activityId': _model!.id}, showMessage: true); params: {'activityId': _model!.id}, showMessage: true);
}, },
), ),

@ -1,16 +1,7 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:common_utils/common_utils.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:get/get.dart';
import 'package:shimmer/shimmer.dart';
import 'package:aku_new_community/const/resource.dart'; import 'package:aku_new_community/const/resource.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/app_theme.dart'; import 'package:aku_new_community/constants/app_theme.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/model/community/activity_detail_model.dart'; import 'package:aku_new_community/model/community/activity_detail_model.dart';
import 'package:aku_new_community/ui/community/activity/activity_people_list_page.dart'; import 'package:aku_new_community/ui/community/activity/activity_people_list_page.dart';
@ -20,6 +11,13 @@ import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:aku_new_community/widget/buttons/bottom_button.dart'; import 'package:aku_new_community/widget/buttons/bottom_button.dart';
import 'package:aku_new_community/widget/others/stack_avatar.dart'; import 'package:aku_new_community/widget/others/stack_avatar.dart';
import 'package:aku_new_community/widget/picker/bee_image_preview.dart'; import 'package:aku_new_community/widget/picker/bee_image_preview.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:common_utils/common_utils.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:get/get.dart';
import 'package:shimmer/shimmer.dart';
@Deprecated('旧页面 酌情删除') @Deprecated('旧页面 酌情删除')
class ActivityDetailPage extends StatefulWidget { class ActivityDetailPage extends StatefulWidget {
@ -135,7 +133,7 @@ class _ActivityDetailPageState extends State<ActivityDetailPage> {
clipBehavior: Clip.antiAlias, clipBehavior: Clip.antiAlias,
child: FadeInImage.assetNetwork( child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: SARSAPI.image(e.url), image: SAASAPI.image(e.url),
fit: BoxFit.cover, fit: BoxFit.cover,
), ),
), ),

@ -1,4 +1,4 @@
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/models/home/home_activity_model.dart'; import 'package:aku_new_community/models/home/home_activity_model.dart';
import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart'; import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart';
import 'package:aku_new_community/ui/community/activity/activity_card.dart'; import 'package:aku_new_community/ui/community/activity/activity_card.dart';
@ -36,7 +36,7 @@ class _ActivityListPageState extends State<ActivityListPage> {
], ],
body: BeeListView<HomeActivityModel>( body: BeeListView<HomeActivityModel>(
controller: _refreshController, controller: _refreshController,
path: SARSAPI.activity.list, path: SAASAPI.activity.list,
convert: (model) => convert: (model) =>
model.rows.map((e) => HomeActivityModel.fromJson(e)).toList(), model.rows.map((e) => HomeActivityModel.fromJson(e)).toList(),
builder: (items) { builder: (items) {

@ -1,15 +1,13 @@
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:aku_new_community/const/resource.dart'; import 'package:aku_new_community/const/resource.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/model/community/activity_people_model.dart'; import 'package:aku_new_community/model/community/activity_people_model.dart';
import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart'; import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart';
import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/utils/headers.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
class ActivityPeopleListPage extends StatefulWidget { class ActivityPeopleListPage extends StatefulWidget {
final int? id; final int? id;
@ -50,7 +48,7 @@ class _ActivityPeopleListPageState extends State<ActivityPeopleListPage> {
20.wb, 20.wb,
FadeInImage.assetNetwork( FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: SARSAPI.image(ImgModel.first(model.imgUrl)), image: SAASAPI.image(ImgModel.first(model.imgUrl)),
height: 60.w, height: 60.w,
width: 60.w, width: 60.w,
), ),

@ -1,5 +1,5 @@
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/good/market_swiper_model.dart'; import 'package:aku_new_community/model/good/market_swiper_model.dart';
import 'package:aku_new_community/models/community/dynamic_my_list_body.dart'; import 'package:aku_new_community/models/community/dynamic_my_list_body.dart';
import 'package:aku_new_community/models/community/information_list_model.dart'; import 'package:aku_new_community/models/community/information_list_model.dart';
@ -20,7 +20,7 @@ class CommunityFunc {
/// ///
static Future<List<TopicModel>> getListGambit() async { static Future<List<TopicModel>> getListGambit() async {
var model = await NetUtil().get( var model = await NetUtil().get(
SARSAPI.community.topNewList, SAASAPI.community.topNewList,
params: {'hotShowNum': 3, 'showNum': 3}, params: {'hotShowNum': 3, 'showNum': 3},
); );
if ((model.data as List).length == 0) return []; if ((model.data as List).length == 0) return [];
@ -30,7 +30,7 @@ class CommunityFunc {
/// ///
static Future<List<DynamicMyListBody>> getMyEventItem() async { static Future<List<DynamicMyListBody>> getMyEventItem() async {
BaseListModel model = await NetUtil().getList( BaseListModel model = await NetUtil().getList(
SARSAPI.community.dynamicMyListL, SAASAPI.community.dynamicMyListL,
params: {'pageNum': 1, 'size': 8}, params: {'pageNum': 1, 'size': 8},
); );
if (model.rows.length == 0) return []; if (model.rows.length == 0) return [];
@ -40,7 +40,7 @@ class CommunityFunc {
/// ///
static Future<List<InformationListModel>> getHotNews() async { static Future<List<InformationListModel>> getHotNews() async {
BaseListModel model = await NetUtil().getList( BaseListModel model = await NetUtil().getList(
SARSAPI.information.list, SAASAPI.information.list,
params: {'pageNum': 1, 'size': 4}, params: {'pageNum': 1, 'size': 4},
); );
if (model.rows.length == 0) return []; if (model.rows.length == 0) return [];
@ -62,7 +62,7 @@ class CommunityFunc {
/// ///
static Future<MarketStatisticsModel?> getMarketStatistics() async { static Future<MarketStatisticsModel?> getMarketStatistics() async {
BaseModel model = await NetUtil().get( BaseModel model = await NetUtil().get(
SARSAPI.market.home.topInfo, SAASAPI.market.home.topInfo,
); );
if (model.success) { if (model.success) {
return MarketStatisticsModel.fromJson(model.data); return MarketStatisticsModel.fromJson(model.data);
@ -76,7 +76,7 @@ class CommunityFunc {
static Future<List<MarketCategoryModel>> getGoodsClassificationList( static Future<List<MarketCategoryModel>> getGoodsClassificationList(
int parentId) async { int parentId) async {
BaseListModel model = await NetUtil().getList( BaseListModel model = await NetUtil().getList(
SARSAPI.market.category.category, SAASAPI.market.category.category,
params: {'pageNum': 1, 'size': 9, 'parentId': parentId}, params: {'pageNum': 1, 'size': 9, 'parentId': parentId},
); );
if (model.rows.length == 0) return []; if (model.rows.length == 0) return [];
@ -86,7 +86,7 @@ class CommunityFunc {
/// ///
static Future<List<GoodsPopularModel>> getGoodsPopularModel(int num) async { static Future<List<GoodsPopularModel>> getGoodsPopularModel(int num) async {
BaseModel model = await NetUtil().get( BaseModel model = await NetUtil().get(
SARSAPI.market.good.popular, SAASAPI.market.good.popular,
params: {'num': num}, params: {'num': num},
); );
if (model.data!.length == 0) return []; if (model.data!.length == 0) return [];
@ -98,7 +98,7 @@ class CommunityFunc {
/// ///
static Future<List<MarketAllCategoryModel>> getCategory() async { static Future<List<MarketAllCategoryModel>> getCategory() async {
BaseModel model = await NetUtil().get( BaseModel model = await NetUtil().get(
SARSAPI.market.category.categoryInfo, SAASAPI.market.category.categoryInfo,
); );
if (model.data!.length == 0) if (model.data!.length == 0)
return []; return [];
@ -112,7 +112,7 @@ class CommunityFunc {
/// ///
static Future<List<MarketSwiperModel>> marketSwiper() async { static Future<List<MarketSwiperModel>> marketSwiper() async {
BaseModel model = await NetUtil().get( BaseModel model = await NetUtil().get(
SARSAPI.market.rotation.rotation, SAASAPI.market.rotation.rotation,
); );
if (model.data!.length == 0) return []; if (model.data!.length == 0) return [];
return (model.data as List) return (model.data as List)
@ -122,7 +122,7 @@ class CommunityFunc {
static Future<List<HomeActivityModel>> activityList() async { static Future<List<HomeActivityModel>> activityList() async {
BaseListModel model = await NetUtil().getList( BaseListModel model = await NetUtil().getList(
SARSAPI.activity.list, SAASAPI.activity.list,
params: {'pageNum': 1, 'size': 5}, params: {'pageNum': 1, 'size': 5},
); );
if (model.rows.length == 0) return []; if (model.rows.length == 0) return [];
@ -131,7 +131,7 @@ class CommunityFunc {
static Future<List<HomeAnnounceModel>> board() async { static Future<List<HomeAnnounceModel>> board() async {
BaseListModel model = await NetUtil().getList( BaseListModel model = await NetUtil().getList(
SARSAPI.announce.list, SAASAPI.announce.list,
params: {'pageNum': 1, 'size': 5}, params: {'pageNum': 1, 'size': 5},
); );
if (model.rows.length == 0) return []; if (model.rows.length == 0) return [];
@ -140,7 +140,7 @@ class CommunityFunc {
static Future<List<HomeSwiperModel>> swiper() async { static Future<List<HomeSwiperModel>> swiper() async {
BaseModel model = await NetUtil().get( BaseModel model = await NetUtil().get(
SARSAPI.homeCarouse.list, SAASAPI.homeCarouse.list,
); );
if (model.data!.length == 0) return []; if (model.data!.length == 0) return [];
return (model.data as List) return (model.data as List)

@ -1,7 +1,7 @@
import 'dart:io'; import 'dart:io';
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/models/community/all_dynamic_list_model.dart'; import 'package:aku_new_community/models/community/all_dynamic_list_model.dart';
import 'package:aku_new_community/models/community/topic_list_model.dart'; import 'package:aku_new_community/models/community/topic_list_model.dart';
import 'package:aku_new_community/ui/community/community_views/topic/topic_search_page.dart'; import 'package:aku_new_community/ui/community/community_views/topic/topic_search_page.dart';
@ -53,7 +53,7 @@ class _AddNewEventPageState extends State<AddNewEventPage> {
List<String?>? imgs; List<String?>? imgs;
print(_files.length); print(_files.length);
if (_files.isNotEmpty) { if (_files.isNotEmpty) {
imgs = await NetUtil().uploadFiles(_files, SARSAPI.uploadFile.uploadImg); imgs = await NetUtil().uploadFiles(_files, SAASAPI.uploadFile.uploadImg);
} }
Map<String, dynamic> params = { Map<String, dynamic> params = {
@ -70,7 +70,7 @@ class _AddNewEventPageState extends State<AddNewEventPage> {
} }
BaseModel baseModel = await NetUtil().post( BaseModel baseModel = await NetUtil().post(
SARSAPI.community.dynamicInsert, SAASAPI.community.dynamicInsert,
params: params, params: params,
showMessage: true, showMessage: true,
); );

@ -2,7 +2,7 @@ import 'dart:math';
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/models/community/all_dynamic_list_model.dart'; import 'package:aku_new_community/models/community/all_dynamic_list_model.dart';
import 'package:aku_new_community/models/community/information_category_list_model.dart'; import 'package:aku_new_community/models/community/information_category_list_model.dart';
@ -177,7 +177,7 @@ class _CommunityPageState extends State<CommunityPage>
Future getNewInfo() async { Future getNewInfo() async {
BaseListModel baseListModel = await NetUtil().getList( BaseListModel baseListModel = await NetUtil().getList(
SARSAPI.community.dynamicList, SAASAPI.community.dynamicList,
params: {"pageNum": _pageNum, "size": _size, 'type': 1}); params: {"pageNum": _pageNum, "size": _size, 'type': 1});
if (baseListModel.rows.isNotEmpty) { if (baseListModel.rows.isNotEmpty) {
_newItems = (baseListModel.rows) _newItems = (baseListModel.rows)
@ -210,7 +210,7 @@ class _CommunityPageState extends State<CommunityPage>
_homeTitle('热门资讯', () async { _homeTitle('热门资讯', () async {
final cancel = BotToast.showLoading(); final cancel = BotToast.showLoading();
BaseModel model = BaseModel model =
await NetUtil().get(SARSAPI.information.categoryList); await NetUtil().get(SAASAPI.information.categoryList);
var category = <InformationCategoryListModel>[]; var category = <InformationCategoryListModel>[];
if (model.success == true && model.data != null) { if (model.success == true && model.data != null) {
category = (model.data as List) category = (model.data as List)
@ -306,7 +306,7 @@ class _CommunityPageState extends State<CommunityPage>
), ),
image: DecorationImage( image: DecorationImage(
image: NetworkImage( image: NetworkImage(
SARSAPI.image(ImgModel.first(item.imgList)), SAASAPI.image(ImgModel.first(item.imgList)),
), ),
fit: BoxFit.cover, fit: BoxFit.cover,
), ),

@ -1,7 +1,7 @@
import 'dart:math'; import 'dart:math';
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/models/community/comment_list_model.dart'; import 'package:aku_new_community/models/community/comment_list_model.dart';
import 'package:aku_new_community/models/community/dynamic_detail_model.dart'; import 'package:aku_new_community/models/community/dynamic_detail_model.dart';
@ -73,7 +73,7 @@ class _EventDetailPageState extends State<EventDetailPage> {
}; };
Future updateComments() async { Future updateComments() async {
var base = await NetUtil().get(SARSAPI.community.singleComment, params: { var base = await NetUtil().get(SAASAPI.community.singleComment, params: {
'commentId': _comments[_currentCommentIndex].id, 'commentId': _comments[_currentCommentIndex].id,
}); });
if (base.success) { if (base.success) {
@ -144,13 +144,13 @@ class _EventDetailPageState extends State<EventDetailPage> {
firstRefresh: true, firstRefresh: true,
onRefresh: () async { onRefresh: () async {
BaseModel model = await NetUtil().get( BaseModel model = await NetUtil().get(
SARSAPI.community.dynamicDetail, SAASAPI.community.dynamicDetail,
params: {'dynamicId': widget.dynamicId}, params: {'dynamicId': widget.dynamicId},
); );
_model = DynamicDetailModel.fromJson(model.data); _model = DynamicDetailModel.fromJson(model.data);
_page = 1; _page = 1;
var base = var base =
await NetUtil().getList(SARSAPI.community.commentList, params: { await NetUtil().getList(SAASAPI.community.commentList, params: {
'pageNum': _page, 'pageNum': _page,
'size': _size, 'size': _size,
'dynamicId': widget.dynamicId, 'dynamicId': widget.dynamicId,
@ -171,7 +171,7 @@ class _EventDetailPageState extends State<EventDetailPage> {
onLoad: () async { onLoad: () async {
_page++; _page++;
var base = var base =
await NetUtil().getList(SARSAPI.community.commentList, params: { await NetUtil().getList(SAASAPI.community.commentList, params: {
'pageNum': _page, 'pageNum': _page,
'size': _size, 'size': _size,
'dynamicId': widget.dynamicId, 'dynamicId': widget.dynamicId,
@ -305,7 +305,7 @@ class _EventDetailPageState extends State<EventDetailPage> {
clipBehavior: Clip.antiAlias, clipBehavior: Clip.antiAlias,
child: FadeInImage.assetNetwork( child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: SARSAPI.image(ImgModel.first(model.avatarImgList)), image: SAASAPI.image(ImgModel.first(model.avatarImgList)),
height: 96.w, height: 96.w,
width: 96.w, width: 96.w,
fit: BoxFit.cover, fit: BoxFit.cover,
@ -349,7 +349,7 @@ class _EventDetailPageState extends State<EventDetailPage> {
GestureDetector( GestureDetector(
onTap: () async { onTap: () async {
var res = var res =
await NetUtil().get(SARSAPI.community.commentLike, params: { await NetUtil().get(SAASAPI.community.commentLike, params: {
'commentId': model.id, 'commentId': model.id,
}); });
if (res.success) { if (res.success) {
@ -569,7 +569,7 @@ class _EventDetailPageState extends State<EventDetailPage> {
height: 55.w, height: 55.w,
onPressed: () async { onPressed: () async {
var res = await NetUtil() var res = await NetUtil()
.post(SARSAPI.community.commentInsert, params: params); .post(SAASAPI.community.commentInsert, params: params);
if (res.success) { if (res.success) {
_textEditingController.clear(); _textEditingController.clear();
if (_rootId == 0) { if (_rootId == 0) {

@ -1,5 +1,5 @@
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/model/community/my_event_item_model.dart'; import 'package:aku_new_community/model/community/my_event_item_model.dart';
import 'package:aku_new_community/models/community/dynamic_my_list_body.dart'; import 'package:aku_new_community/models/community/dynamic_my_list_body.dart';
@ -133,7 +133,7 @@ class MyCommunityViewState extends State<MyCommunityView>
controller: _refreshController, controller: _refreshController,
onRefresh: () async { onRefresh: () async {
_myEventItems = await CommunityFunc.getMyEventItem(); _myEventItems = await CommunityFunc.getMyEventItem();
var base = await NetUtil().get(SARSAPI.community.dynamicMyListH); var base = await NetUtil().get(SAASAPI.community.dynamicMyListH);
if (base.success) { if (base.success) {
_head = DynamicMyListHead.fromJson(base.data); _head = DynamicMyListHead.fromJson(base.data);
} }
@ -336,7 +336,7 @@ class MyCommunityViewState extends State<MyCommunityView>
tag: ImgModel.first(item.dynamicImgList), tag: ImgModel.first(item.dynamicImgList),
child: FadeInImage.assetNetwork( child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: SARSAPI.image(ImgModel.first(item.dynamicImgList)), image: SAASAPI.image(ImgModel.first(item.dynamicImgList)),
imageErrorBuilder: (context, error, stackTrace) { imageErrorBuilder: (context, error, stackTrace) {
return Image.asset( return Image.asset(
R.ASSETS_IMAGES_PLACEHOLDER_WEBP, R.ASSETS_IMAGES_PLACEHOLDER_WEBP,

@ -1,12 +1,9 @@
import 'package:flutter/material.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/models/community/all_dynamic_list_model.dart'; import 'package:aku_new_community/models/community/all_dynamic_list_model.dart';
import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart'; import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart';
import 'package:aku_new_community/ui/community/community_views/widgets/chat_card.dart'; import 'package:aku_new_community/ui/community/community_views/widgets/chat_card.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
class NewCommunityView extends StatefulWidget { class NewCommunityView extends StatefulWidget {
NewCommunityView({Key? key}) : super(key: key); NewCommunityView({Key? key}) : super(key: key);
@ -33,7 +30,7 @@ class NewCommunityViewState extends State<NewCommunityView>
Widget build(BuildContext context) { Widget build(BuildContext context) {
super.build(context); super.build(context);
return BeeListView( return BeeListView(
path: SARSAPI.community.dynamicList, path: SAASAPI.community.dynamicList,
controller: _refreshController, controller: _refreshController,
convert: (model) { convert: (model) {
return model.rows.map((e) => AllDynamicListModel.fromJson(e)).toList(); return model.rows.map((e) => AllDynamicListModel.fromJson(e)).toList();

@ -1,7 +1,7 @@
import 'dart:ui'; import 'dart:ui';
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/models/community/topic_list_model.dart'; import 'package:aku_new_community/models/community/topic_list_model.dart';
import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart'; import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart';
import 'package:aku_new_community/ui/community/community_views/topic/topic_detail_page.dart'; import 'package:aku_new_community/ui/community/community_views/topic/topic_detail_page.dart';
@ -147,7 +147,7 @@ class TopicCommunityViewState extends State<TopicCommunityView> {
return BeeScaffold( return BeeScaffold(
title: '所有话题'.text.color(ktextPrimary).size(32.sp).normal.make(), title: '所有话题'.text.color(ktextPrimary).size(32.sp).normal.make(),
body: BeeListView<TopicListModel>( body: BeeListView<TopicListModel>(
path: SARSAPI.community.topicList, path: SAASAPI.community.topicList,
controller: _refreshController, controller: _refreshController,
convert: (model) { convert: (model) {
return model.rows.map((e) => TopicListModel.fromJson(e)).toList(); return model.rows.map((e) => TopicListModel.fromJson(e)).toList();

@ -1,5 +1,5 @@
import 'package:aku_new_community/constants/app_theme.dart'; import 'package:aku_new_community/constants/app_theme.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/extensions/widget_list_ext.dart'; import 'package:aku_new_community/extensions/widget_list_ext.dart';
import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/models/community/all_dynamic_list_model.dart'; import 'package:aku_new_community/models/community/all_dynamic_list_model.dart';
@ -65,13 +65,13 @@ class _TopicDetailPageState extends State<TopicDetailPage> {
footer: MaterialFooter(), footer: MaterialFooter(),
onRefresh: () async { onRefresh: () async {
_page = 1; _page = 1;
var res = await NetUtil().get(SARSAPI.community.topicDetail, var res = await NetUtil().get(SAASAPI.community.topicDetail,
params: {'topicId': widget.topicId}); params: {'topicId': widget.topicId});
if (res.success) { if (res.success) {
_detailModel = TopDetailModel.fromJson(res.data); _detailModel = TopDetailModel.fromJson(res.data);
} }
var baseList = await NetUtil() var baseList = await NetUtil()
.getList(SARSAPI.community.dynamicList, params: { .getList(SAASAPI.community.dynamicList, params: {
'pageNum': _page, 'pageNum': _page,
'size': 4, 'size': 4,
'topicId': widget.topicId, 'topicId': widget.topicId,
@ -86,7 +86,7 @@ class _TopicDetailPageState extends State<TopicDetailPage> {
onLoad: () async { onLoad: () async {
_page++; _page++;
BaseListModel baseList = await NetUtil() BaseListModel baseList = await NetUtil()
.getList(SARSAPI.community.dynamicList, params: { .getList(SAASAPI.community.dynamicList, params: {
'pageNum': _page, 'pageNum': _page,
'size': 4, 'size': 4,
'topicId': widget.topicId, 'topicId': widget.topicId,

@ -1,18 +1,15 @@
import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/extensions/widget_list_ext.dart';
import 'package:aku_new_community/models/community/topic_list_model.dart';
import 'package:aku_new_community/utils/network/net_util.dart';
import 'package:aku_new_community/widget/bee_divider.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
import 'package:velocity_x/src/extensions/num_ext.dart'; import 'package:velocity_x/src/extensions/num_ext.dart';
import 'package:velocity_x/src/extensions/string_ext.dart'; import 'package:velocity_x/src/extensions/string_ext.dart';
import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/extensions/widget_list_ext.dart';
import 'package:aku_new_community/models/community/topic_list_model.dart';
import 'package:aku_new_community/utils/network/net_util.dart';
import 'package:aku_new_community/widget/bee_divider.dart';
class TopicSearchPage extends StatefulWidget { class TopicSearchPage extends StatefulWidget {
const TopicSearchPage({ const TopicSearchPage({
Key? key, Key? key,
@ -27,7 +24,7 @@ class _TopicSearchPageState extends State<TopicSearchPage> {
bool isHot = true; bool isHot = true;
Future _getModels() async { Future _getModels() async {
var re = await NetUtil().get(SARSAPI.community.topicList, params: { var re = await NetUtil().get(SAASAPI.community.topicList, params: {
'pageNum': 1, 'pageNum': 1,
'size': 10, 'size': 10,
}); });
@ -80,7 +77,7 @@ class _TopicSearchPageState extends State<TopicSearchPage> {
return; return;
} }
var re = await NetUtil() var re = await NetUtil()
.get(SARSAPI.community.topicList, params: { .get(SAASAPI.community.topicList, params: {
'pageNum': 1, 'pageNum': 1,
'size': 20, 'size': 20,
}); });

@ -1,4 +1,4 @@
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/utils/headers.dart';
import 'package:aku_new_community/widget/bee_back_button.dart'; import 'package:aku_new_community/widget/bee_back_button.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
@ -95,7 +95,7 @@ class TopicSliverHeader extends SliverPersistentHeaderDelegate {
tag: "$imgPath\_$id", tag: "$imgPath\_$id",
child: FadeInImage.assetNetwork( child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: SARSAPI.image(imgPath), image: SAASAPI.image(imgPath),
fit: BoxFit.cover, fit: BoxFit.cover,
), ),
), ),

@ -2,7 +2,7 @@ import 'dart:math';
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/models/community/all_dynamic_list_model.dart'; import 'package:aku_new_community/models/community/all_dynamic_list_model.dart';
import 'package:aku_new_community/provider/user_provider.dart'; import 'package:aku_new_community/provider/user_provider.dart';
@ -73,7 +73,7 @@ class _ChatCardState extends State<ChatCard> {
), ),
child: FadeInImage.assetNetwork( child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: SARSAPI.image(ImgModel.first(widget.model.dynamicList)), image: SAASAPI.image(ImgModel.first(widget.model.dynamicList)),
imageErrorBuilder: (context, error, stackTrace) { imageErrorBuilder: (context, error, stackTrace) {
return Image.asset( return Image.asset(
R.ASSETS_IMAGES_PLACEHOLDER_WEBP, R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
@ -102,7 +102,7 @@ class _ChatCardState extends State<ChatCard> {
Spacer(), Spacer(),
GestureDetector( GestureDetector(
onTap: () async { onTap: () async {
var res = await NetUtil().get(SARSAPI.community.dynamicLike, var res = await NetUtil().get(SAASAPI.community.dynamicLike,
params: {'dynamicId': widget.model.id}); params: {'dynamicId': widget.model.id});
if (res.success) { if (res.success) {
_isLiked = !_isLiked; _isLiked = !_isLiked;
@ -192,7 +192,7 @@ class _ChatCardState extends State<ChatCard> {
child: FadeInImage.assetNetwork( child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: image:
SARSAPI.image(ImgModel.first(widget.model.avatarImgList)), SAASAPI.image(ImgModel.first(widget.model.avatarImgList)),
height: 96.w, height: 96.w,
width: 96.w, width: 96.w,
fit: BoxFit.cover, fit: BoxFit.cover,

@ -1,5 +1,5 @@
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/models/community/dynamic_detail_model.dart'; import 'package:aku_new_community/models/community/dynamic_detail_model.dart';
import 'package:aku_new_community/provider/user_provider.dart'; import 'package:aku_new_community/provider/user_provider.dart';
@ -67,7 +67,7 @@ class _ChatCardDetailState extends State<ChatCardDetail> {
tag: ImgModel.first(widget.model.dynamicImgList), tag: ImgModel.first(widget.model.dynamicImgList),
child: FadeInImage.assetNetwork( child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: SARSAPI.image(ImgModel.first(widget.model.dynamicImgList)), image: SAASAPI.image(ImgModel.first(widget.model.dynamicImgList)),
imageErrorBuilder: (context, error, stackTrace) { imageErrorBuilder: (context, error, stackTrace) {
return Image.asset( return Image.asset(
R.ASSETS_IMAGES_PLACEHOLDER_WEBP, R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
@ -100,7 +100,7 @@ class _ChatCardDetailState extends State<ChatCardDetail> {
child: FadeInImage.assetNetwork( child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: image:
SARSAPI.image(ImgModel.first(widget.model.avatarImgList)), SAASAPI.image(ImgModel.first(widget.model.avatarImgList)),
height: 96.w, height: 96.w,
width: 96.w, width: 96.w,
fit: BoxFit.cover, fit: BoxFit.cover,

@ -1,4 +1,4 @@
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/model/community/my_event_item_model.dart'; import 'package:aku_new_community/model/community/my_event_item_model.dart';
import 'package:aku_new_community/models/community/dynamic_detail_model.dart'; import 'package:aku_new_community/models/community/dynamic_detail_model.dart';
@ -67,7 +67,7 @@ class MyEventCard extends StatelessWidget {
MaterialButton( MaterialButton(
onPressed: () async { onPressed: () async {
BaseModel models = await NetUtil().get( BaseModel models = await NetUtil().get(
SARSAPI.community.dynamicDetail, SAASAPI.community.dynamicDetail,
params: {'dynamicId': model.id}, params: {'dynamicId': model.id},
); );
DynamicDetailModel eventItemModel = DynamicDetailModel eventItemModel =
@ -102,7 +102,7 @@ class MyEventCard extends StatelessWidget {
), ),
child: FadeInImage.assetNetwork( child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: SARSAPI.image(ImgModel.first(model.imgUrl)), image: SAASAPI.image(ImgModel.first(model.imgUrl)),
width: 152.w, width: 152.w,
height: 152.w, height: 152.w,
fit: BoxFit.cover, fit: BoxFit.cover,

@ -1,13 +1,10 @@
import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/utils/headers.dart';
import 'package:aku_new_community/utils/network/net_util.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart'; import 'package:velocity_x/velocity_x.dart';
import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/utils/headers.dart';
import 'package:aku_new_community/utils/network/net_util.dart';
class SendAChat extends StatefulWidget { class SendAChat extends StatefulWidget {
final FocusNode? node; final FocusNode? node;
@ -26,7 +23,7 @@ class SendAChat extends StatefulWidget {
); );
if (result != null) { if (result != null) {
await NetUtil().post( await NetUtil().post(
SARSAPI.community.commentInsert, SAASAPI.community.commentInsert,
params: { params: {
'rootId': rootId, 'rootId': rootId,
'parentId': parentId, 'parentId': parentId,

@ -1,17 +1,14 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:get/get.dart';
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/models/facility/facility_appointment_model.dart'; import 'package:aku_new_community/models/facility/facility_appointment_model.dart';
import 'package:aku_new_community/ui/common/qr_scan.dart'; import 'package:aku_new_community/ui/common/qr_scan.dart';
import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/utils/headers.dart';
import 'package:aku_new_community/utils/network/net_util.dart'; import 'package:aku_new_community/utils/network/net_util.dart';
import 'package:aku_new_community/widget/bee_divider.dart'; import 'package:aku_new_community/widget/bee_divider.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
class FacilityAppointmentCard extends StatelessWidget { class FacilityAppointmentCard extends StatelessWidget {
final FacilityAppointmentModel model; final FacilityAppointmentModel model;

@ -1,13 +1,10 @@
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/models/facility/facility_appointment_model.dart'; import 'package:aku_new_community/models/facility/facility_appointment_model.dart';
import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart'; import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart';
import 'package:aku_new_community/ui/community/facility/facility_appointment_card.dart'; import 'package:aku_new_community/ui/community/facility/facility_appointment_card.dart';
import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/utils/headers.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
enum FacilityAppointmentType { enum FacilityAppointmentType {
MY, MY,

@ -1,14 +1,11 @@
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/models/facility/facility_type_model.dart'; import 'package:aku_new_community/models/facility/facility_type_model.dart';
import 'package:aku_new_community/ui/community/facility/facility_preorder_page.dart'; import 'package:aku_new_community/ui/community/facility/facility_preorder_page.dart';
import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/utils/headers.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
class FacilityTypeCard extends StatelessWidget { class FacilityTypeCard extends StatelessWidget {
final FacilityTypeModel model; final FacilityTypeModel model;
@ -29,7 +26,7 @@ class FacilityTypeCard extends StatelessWidget {
children: [ children: [
FadeInImage.assetNetwork( FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: SARSAPI.image(ImgModel.first(model.imgUrls)), image: SAASAPI.image(ImgModel.first(model.imgUrls)),
height: 320.w, height: 320.w,
width: double.infinity, width: double.infinity,
fit: BoxFit.cover, fit: BoxFit.cover,

@ -1,15 +1,12 @@
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:get/get.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/models/facility/facility_type_detail_model.dart'; import 'package:aku_new_community/models/facility/facility_type_detail_model.dart';
import 'package:aku_new_community/utils/network/base_model.dart'; import 'package:aku_new_community/utils/network/base_model.dart';
import 'package:aku_new_community/utils/network/net_util.dart'; import 'package:aku_new_community/utils/network/net_util.dart';
import 'package:aku_new_community/widget/bee_divider.dart'; import 'package:aku_new_community/widget/bee_divider.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:get/get.dart';
class FacilityTypeDetailPage extends StatefulWidget { class FacilityTypeDetailPage extends StatefulWidget {
final int id; final int id;

@ -6,7 +6,7 @@ import 'package:velocity_x/velocity_x.dart';
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/models/facility/facility_order_date_list_model.dart'; import 'package:aku_new_community/models/facility/facility_order_date_list_model.dart';
import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart'; import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart';
import 'package:aku_new_community/widget/bee_divider.dart'; import 'package:aku_new_community/widget/bee_divider.dart';

@ -1,14 +1,11 @@
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/models/facility/facility_type_model.dart'; import 'package:aku_new_community/models/facility/facility_type_model.dart';
import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart'; import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart';
import 'package:aku_new_community/ui/community/facility/facility_type_card.dart'; import 'package:aku_new_community/ui/community/facility/facility_type_card.dart';
import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/utils/headers.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
class PickFacilityPage extends StatefulWidget { class PickFacilityPage extends StatefulWidget {
PickFacilityPage({Key? key}) : super(key: key); PickFacilityPage({Key? key}) : super(key: key);

@ -1,4 +1,4 @@
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/models/home/announce_detail_model.dart'; import 'package:aku_new_community/models/home/announce_detail_model.dart';
import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/utils/headers.dart';
import 'package:aku_new_community/utils/network/base_model.dart'; import 'package:aku_new_community/utils/network/base_model.dart';
@ -39,7 +39,7 @@ class _NoticeDetailPageState extends State<NoticeDetailPage> {
header: MaterialHeader(), header: MaterialHeader(),
onRefresh: () async { onRefresh: () async {
BaseModel baseModel = await NetUtil().get( BaseModel baseModel = await NetUtil().get(
SARSAPI.announce.detail, SAASAPI.announce.detail,
params: {'announcementId': widget.id}, params: {'announcementId': widget.id},
); );
if (baseModel.data != null) { if (baseModel.data != null) {
@ -90,7 +90,7 @@ class _NoticeDetailPageState extends State<NoticeDetailPage> {
title: e.url ?? '', title: e.url ?? '',
onPressed: () async { onPressed: () async {
String? result = await Get.dialog(BeeDownloadView( String? result = await Get.dialog(BeeDownloadView(
file: SARSAPI.image(e.url), file: SAASAPI.image(e.url),
)); ));
if (result != null) OpenFile.open(result); if (result != null) OpenFile.open(result);
}, },

@ -1,4 +1,4 @@
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/models/home/home_announce_model.dart'; import 'package:aku_new_community/models/home/home_announce_model.dart';
import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart'; import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart';
import 'package:aku_new_community/ui/community/notice/notice_card.dart'; import 'package:aku_new_community/ui/community/notice/notice_card.dart';
@ -24,7 +24,7 @@ class _NoticePageState extends State<NoticePage> {
title: '社区公告', title: '社区公告',
body: BeeListView<HomeAnnounceModel>( body: BeeListView<HomeAnnounceModel>(
controller: _refreshController, controller: _refreshController,
path: SARSAPI.announce.list, path: SAASAPI.announce.list,
convert: (model) => convert: (model) =>
model.rows.map((e) => HomeAnnounceModel.fromJson(e)).toList(), model.rows.map((e) => HomeAnnounceModel.fromJson(e)).toList(),
builder: (items) { builder: (items) {

@ -1,4 +1,4 @@
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/models/task/hall_list_model.dart'; import 'package:aku_new_community/models/task/hall_list_model.dart';
import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart'; import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
@ -28,7 +28,7 @@ class _HallViewState extends State<HallView> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return BeeListView( return BeeListView(
path: SARSAPI.task.list, path: SAASAPI.task.list,
controller: widget.refreshController, controller: widget.refreshController,
extraParams: { extraParams: {
'taskModel': 1, 'taskModel': 1,

@ -1,4 +1,4 @@
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/models/task/my_take_task_list_model.dart'; import 'package:aku_new_community/models/task/my_take_task_list_model.dart';
import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart'; import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
@ -28,7 +28,7 @@ class _MyTakeTaskViewState extends State<MyTakeTaskView> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return BeeListView( return BeeListView(
path: SARSAPI.task.list, path: SAASAPI.task.list,
controller: widget.refreshController, controller: widget.refreshController,
extraParams: { extraParams: {
'taskModel': 2, 'taskModel': 2,

@ -1,4 +1,4 @@
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/models/task/my_task_list_model.dart'; import 'package:aku_new_community/models/task/my_task_list_model.dart';
import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart'; import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
@ -28,7 +28,7 @@ class _MyTaskViewState extends State<MyTaskView> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return BeeListView( return BeeListView(
path: SARSAPI.task.list, path: SAASAPI.task.list,
controller: widget.refreshController, controller: widget.refreshController,
extraParams: { extraParams: {
'taskModel': 2, 'taskModel': 2,

@ -1,7 +1,7 @@
import 'dart:io'; import 'dart:io';
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/gen/assets.gen.dart'; import 'package:aku_new_community/gen/assets.gen.dart';
import 'package:aku_new_community/ui/function_and_service/task/task_func.dart'; import 'package:aku_new_community/ui/function_and_service/task/task_func.dart';
import 'package:aku_new_community/ui/function_and_service/task/task_map.dart'; import 'package:aku_new_community/ui/function_and_service/task/task_map.dart';
@ -118,7 +118,7 @@ class _PublishTaskPageState extends State<PublishTaskPage> {
if (_voiceUri != null) { if (_voiceUri != null) {
try { try {
var base = await NetUtil().upload( var base = await NetUtil().upload(
SARSAPI.uploadFile.uploadImg, SAASAPI.uploadFile.uploadImg,
File.fromUri(Uri(path: _voiceUri))); File.fromUri(Uri(path: _voiceUri)));
if (base.success) { if (base.success) {
_voiceUrl = base.data; _voiceUrl = base.data;
@ -133,7 +133,7 @@ class _PublishTaskPageState extends State<PublishTaskPage> {
if (_photos.isNotEmpty) { if (_photos.isNotEmpty) {
try { try {
imgs = await NetUtil() imgs = await NetUtil()
.uploadFiles(_photos, SARSAPI.uploadFile.uploadImg); .uploadFiles(_photos, SAASAPI.uploadFile.uploadImg);
} catch (e) { } catch (e) {
print(e.toString()); print(e.toString());
} }

@ -1,4 +1,4 @@
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/utils/network/net_util.dart'; import 'package:aku_new_community/utils/network/net_util.dart';
class TaskFunc { class TaskFunc {
@ -21,7 +21,7 @@ class TaskFunc {
required int rewardType, required int rewardType,
required String reward, required String reward,
}) async { }) async {
var base = await NetUtil().post(SARSAPI.task.insert, var base = await NetUtil().post(SAASAPI.task.insert,
params: { params: {
'type': type, 'type': type,
'sex': sex, 'sex': sex,
@ -48,7 +48,7 @@ class TaskFunc {
static Future<bool> cancel({ static Future<bool> cancel({
required int taskId, required int taskId,
}) async { }) async {
var base = await NetUtil().get(SARSAPI.task.cancel, params: { var base = await NetUtil().get(SAASAPI.task.cancel, params: {
'taskId': taskId, 'taskId': taskId,
}); });
return base.success; return base.success;
@ -59,7 +59,7 @@ class TaskFunc {
static Future<bool> take({ static Future<bool> take({
required int taskId, required int taskId,
}) async { }) async {
var base = await NetUtil().get(SARSAPI.task.receive, var base = await NetUtil().get(SAASAPI.task.receive,
params: { params: {
'taskId': taskId, 'taskId': taskId,
}, },
@ -72,7 +72,7 @@ class TaskFunc {
static Future<bool> finish({ static Future<bool> finish({
required int taskId, required int taskId,
}) async { }) async {
var base = await NetUtil().get(SARSAPI.task.finish, params: { var base = await NetUtil().get(SAASAPI.task.finish, params: {
'taskId': taskId, 'taskId': taskId,
}); });
return base.success; return base.success;
@ -82,7 +82,7 @@ class TaskFunc {
static Future<bool> confirm({ static Future<bool> confirm({
required int taskId, required int taskId,
}) async { }) async {
var base = await NetUtil().get(SARSAPI.task.confirm, params: { var base = await NetUtil().get(SAASAPI.task.confirm, params: {
'taskId': taskId, 'taskId': taskId,
}); });
return base.success; return base.success;
@ -92,7 +92,7 @@ class TaskFunc {
static Future<bool> start({ static Future<bool> start({
required int taskId, required int taskId,
}) async { }) async {
var base = await NetUtil().get(SARSAPI.task.startService, params: { var base = await NetUtil().get(SAASAPI.task.startService, params: {
'taskId': taskId, 'taskId': taskId,
}); });
return base.success; return base.success;
@ -104,7 +104,7 @@ class TaskFunc {
required int star, required int star,
required String evaluation, required String evaluation,
}) async { }) async {
var base = await NetUtil().get(SARSAPI.task.evaluation, var base = await NetUtil().get(SAASAPI.task.evaluation,
params: {'taskId': taskId, 'star': star, 'evaluation': evaluation}); params: {'taskId': taskId, 'star': star, 'evaluation': evaluation});
return base.success; return base.success;
} }

@ -1,4 +1,4 @@
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/models/community/information_category_list_model.dart'; import 'package:aku_new_community/models/community/information_category_list_model.dart';
import 'package:aku_new_community/models/community/information_list_model.dart'; import 'package:aku_new_community/models/community/information_list_model.dart';
import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart'; import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart';
@ -24,7 +24,7 @@ class _PublicInfomationViewState extends State<PublicInfomationView>
Widget build(BuildContext context) { Widget build(BuildContext context) {
super.build(context); super.build(context);
return BeeListView( return BeeListView(
path: SARSAPI.information.list, path: SAASAPI.information.list,
controller: _refreshController, controller: _refreshController,
extraParams: {'categoryId': widget.model.id}, extraParams: {'categoryId': widget.model.id},
convert: (model) => convert: (model) =>

@ -5,7 +5,7 @@ import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart'; import 'package:velocity_x/velocity_x.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/utils/headers.dart';
import 'package:aku_new_community/utils/network/base_model.dart'; import 'package:aku_new_community/utils/network/base_model.dart';
import 'package:aku_new_community/utils/network/net_util.dart'; import 'package:aku_new_community/utils/network/net_util.dart';

@ -11,7 +11,7 @@ import 'package:velocity_x/velocity_x.dart';
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/app_theme.dart'; import 'package:aku_new_community/constants/app_theme.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/manager/advice_detail_model.dart'; import 'package:aku_new_community/model/manager/advice_detail_model.dart';
import 'package:aku_new_community/model/manager/suggestion_or_complain_model.dart'; import 'package:aku_new_community/model/manager/suggestion_or_complain_model.dart';
import 'package:aku_new_community/ui/manager/advice/advice_add_comment_page.dart'; import 'package:aku_new_community/ui/manager/advice/advice_add_comment_page.dart';

@ -1,16 +1,13 @@
import 'package:flutter/material.dart';
import 'package:flutter_rating_bar/flutter_rating_bar.dart';
import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/utils/headers.dart';
import 'package:aku_new_community/utils/network/base_model.dart'; import 'package:aku_new_community/utils/network/base_model.dart';
import 'package:aku_new_community/utils/network/net_util.dart'; import 'package:aku_new_community/utils/network/net_util.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:flutter/material.dart';
import 'package:flutter_rating_bar/flutter_rating_bar.dart';
import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
class AdviceEvaluatePage extends StatefulWidget { class AdviceEvaluatePage extends StatefulWidget {
final int? id; final int? id;

@ -7,7 +7,7 @@ import 'package:velocity_x/velocity_x.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/app_theme.dart'; import 'package:aku_new_community/constants/app_theme.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/manager/suggestion_or_complain_model.dart'; import 'package:aku_new_community/model/manager/suggestion_or_complain_model.dart';
import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart'; import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart';
import 'package:aku_new_community/ui/manager/advice/advice_card.dart'; import 'package:aku_new_community/ui/manager/advice/advice_card.dart';

@ -13,7 +13,7 @@ import 'package:velocity_x/velocity_x.dart';
import 'package:aku_new_community/const/resource.dart'; import 'package:aku_new_community/const/resource.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/app_theme.dart'; import 'package:aku_new_community/constants/app_theme.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/provider/app_provider.dart'; import 'package:aku_new_community/provider/app_provider.dart';
import 'package:aku_new_community/ui/manager/advice/advice_page.dart'; import 'package:aku_new_community/ui/manager/advice/advice_page.dart';
import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/utils/headers.dart';

@ -1,16 +1,7 @@
import 'dart:io'; import 'dart:io';
import 'package:flutter/material.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:power_logger/power_logger.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/extensions/widget_list_ext.dart'; import 'package:aku_new_community/extensions/widget_list_ext.dart';
import 'package:aku_new_community/ui/manager/house_keeping/house_keeping_func.dart'; import 'package:aku_new_community/ui/manager/house_keeping/house_keeping_func.dart';
import 'package:aku_new_community/ui/manager/house_keeping/house_keeping_submit_page.dart'; import 'package:aku_new_community/ui/manager/house_keeping/house_keeping_submit_page.dart';
@ -21,6 +12,12 @@ import 'package:aku_new_community/widget/buttons/bottom_button.dart';
import 'package:aku_new_community/widget/others/house_head_card.dart'; import 'package:aku_new_community/widget/others/house_head_card.dart';
import 'package:aku_new_community/widget/others/user_tool.dart'; import 'package:aku_new_community/widget/others/user_tool.dart';
import 'package:aku_new_community/widget/picker/grid_image_picker.dart'; import 'package:aku_new_community/widget/picker/grid_image_picker.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:power_logger/power_logger.dart';
import 'package:velocity_x/velocity_x.dart';
class AddHouseKeepingPage extends StatefulWidget { class AddHouseKeepingPage extends StatefulWidget {
AddHouseKeepingPage({Key? key}) : super(key: key); AddHouseKeepingPage({Key? key}) : super(key: key);

@ -1,15 +1,6 @@
import 'package:flutter/material.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:common_utils/common_utils.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/const/resource.dart'; import 'package:aku_new_community/const/resource.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/models/house_keeping/house_keeping_list_model.dart'; import 'package:aku_new_community/models/house_keeping/house_keeping_list_model.dart';
import 'package:aku_new_community/models/house_keeping/house_keeping_process_model.dart'; import 'package:aku_new_community/models/house_keeping/house_keeping_process_model.dart';
import 'package:aku_new_community/ui/manager/house_keeping/house_keeping_detail_page.dart'; import 'package:aku_new_community/ui/manager/house_keeping/house_keeping_detail_page.dart';
@ -17,6 +8,12 @@ import 'package:aku_new_community/ui/manager/house_keeping/house_keeping_func.da
import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/utils/headers.dart';
import 'package:aku_new_community/widget/buttons/card_bottom_button.dart'; import 'package:aku_new_community/widget/buttons/card_bottom_button.dart';
import 'package:aku_new_community/widget/others/aku_chip_box.dart'; import 'package:aku_new_community/widget/others/aku_chip_box.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:common_utils/common_utils.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
class HouseKeepingCard extends StatelessWidget { class HouseKeepingCard extends StatelessWidget {
final HouseKeepingListModel model; final HouseKeepingListModel model;
@ -124,7 +121,7 @@ class HouseKeepingCard extends StatelessWidget {
clipBehavior: Clip.antiAlias, clipBehavior: Clip.antiAlias,
child: FadeInImage.assetNetwork( child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: SARSAPI.image(imgObj ?? '')), image: SAASAPI.image(imgObj ?? '')),
); );
}, },
itemCount: model.submitImgList.length, itemCount: model.submitImgList.length,

@ -12,7 +12,7 @@ import 'package:velocity_x/velocity_x.dart';
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/const/resource.dart'; import 'package:aku_new_community/const/resource.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/models/house_keeping/house_keeping_list_model.dart'; import 'package:aku_new_community/models/house_keeping/house_keeping_list_model.dart';
import 'package:aku_new_community/models/house_keeping/house_keeping_process_model.dart'; import 'package:aku_new_community/models/house_keeping/house_keeping_process_model.dart';
import 'package:aku_new_community/pages/life_pay/pay_finish_page.dart'; import 'package:aku_new_community/pages/life_pay/pay_finish_page.dart';

@ -1,12 +1,10 @@
import 'dart:io'; import 'dart:io';
import 'package:bot_toast/bot_toast.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/models/house_keeping/house_keeping_process_model.dart'; import 'package:aku_new_community/models/house_keeping/house_keeping_process_model.dart';
import 'package:aku_new_community/utils/network/base_model.dart'; import 'package:aku_new_community/utils/network/base_model.dart';
import 'package:aku_new_community/utils/network/net_util.dart'; import 'package:aku_new_community/utils/network/net_util.dart';
import 'package:bot_toast/bot_toast.dart';
class HouseKeepingFunc { class HouseKeepingFunc {
/// ///

@ -5,7 +5,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:velocity_x/velocity_x.dart'; import 'package:velocity_x/velocity_x.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/models/house_keeping/house_keeping_list_model.dart'; import 'package:aku_new_community/models/house_keeping/house_keeping_list_model.dart';
import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart'; import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart';
import 'package:aku_new_community/ui/manager/house_keeping/house_keeping_card.dart'; import 'package:aku_new_community/ui/manager/house_keeping/house_keeping_card.dart';

@ -1,13 +1,6 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:get/get.dart';
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/app_theme.dart'; import 'package:aku_new_community/constants/app_theme.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/model/manager/questionnaire_detail_model.dart'; import 'package:aku_new_community/model/manager/questionnaire_detail_model.dart';
import 'package:aku_new_community/model/manager/quetionnaire_submit_model.dart'; import 'package:aku_new_community/model/manager/quetionnaire_submit_model.dart';
@ -21,6 +14,10 @@ import 'package:aku_new_community/utils/network/base_model.dart';
import 'package:aku_new_community/widget/bee_divider.dart'; import 'package:aku_new_community/widget/bee_divider.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:aku_new_community/widget/buttons/bottom_button.dart'; import 'package:aku_new_community/widget/buttons/bottom_button.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:get/get.dart';
class QuestionnaireDetailPage extends StatefulWidget { class QuestionnaireDetailPage extends StatefulWidget {
final int? id; final int? id;
@ -229,7 +226,7 @@ class _QuestionnaireDetailPageState extends State<QuestionnaireDetailPage> {
clipBehavior: Clip.antiAlias, clipBehavior: Clip.antiAlias,
child: FadeInImage.assetNetwork( child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: SARSAPI.image( image: SAASAPI.image(
ImgModel.first(_model.voResourcesImgList), ImgModel.first(_model.voResourcesImgList),
), ),
), ),

@ -1,12 +1,6 @@
import 'package:flutter/material.dart';
import 'package:common_utils/common_utils.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:get/get.dart';
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/model/manager/questinnaire_model.dart'; import 'package:aku_new_community/model/manager/questinnaire_model.dart';
import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart'; import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart';
@ -16,6 +10,10 @@ import 'package:aku_new_community/utils/hive_store.dart';
import 'package:aku_new_community/utils/websocket/tips_dialog.dart'; import 'package:aku_new_community/utils/websocket/tips_dialog.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:aku_new_community/widget/others/stack_avatar.dart'; import 'package:aku_new_community/widget/others/stack_avatar.dart';
import 'package:common_utils/common_utils.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:get/get.dart';
class QuestionnairePage extends StatefulWidget { class QuestionnairePage extends StatefulWidget {
QuestionnairePage({Key? key}) : super(key: key); QuestionnairePage({Key? key}) : super(key: key);
@ -82,7 +80,7 @@ class _QuestionnairePageState extends State<QuestionnairePage> {
child: ClipRRect( child: ClipRRect(
child: FadeInImage.assetNetwork( child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: SARSAPI.image(ImgModel.first(model.imgUrls)), image: SAASAPI.image(ImgModel.first(model.imgUrls)),
), ),
), ),
), ),

@ -1,18 +1,15 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:common_utils/common_utils.dart';
import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/model/manager/visitor_list_item_model.dart'; import 'package:aku_new_community/model/manager/visitor_list_item_model.dart';
import 'package:aku_new_community/ui/manager/visitor/visitor_passport_page.dart'; import 'package:aku_new_community/ui/manager/visitor/visitor_passport_page.dart';
import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/utils/headers.dart';
import 'package:aku_new_community/utils/network/base_model.dart'; import 'package:aku_new_community/utils/network/base_model.dart';
import 'package:aku_new_community/utils/network/net_util.dart'; import 'package:aku_new_community/utils/network/net_util.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:common_utils/common_utils.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
class VisitorListItem extends StatefulWidget { class VisitorListItem extends StatefulWidget {
final VisitorListItemModel model; final VisitorListItemModel model;

@ -1,13 +1,10 @@
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/model/manager/visitor_list_item_model.dart'; import 'package:aku_new_community/model/manager/visitor_list_item_model.dart';
import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart'; import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart';
import 'package:aku_new_community/ui/manager/visitor/visitor_list_item.dart'; import 'package:aku_new_community/ui/manager/visitor/visitor_list_item.dart';
import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/utils/headers.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
class VisitorRecordView extends StatefulWidget { class VisitorRecordView extends StatefulWidget {
///访1.2.3. ///访1.2.3.

@ -1,12 +1,9 @@
import 'package:flutter/material.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:get/get.dart';
import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/models/market/market_all_category_model.dart'; import 'package:aku_new_community/models/market/market_all_category_model.dart';
import 'package:aku_new_community/ui/market/search/search_goods_page.dart'; import 'package:aku_new_community/ui/market/search/search_goods_page.dart';
import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/utils/headers.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
class NewCategorySubCard extends StatelessWidget { class NewCategorySubCard extends StatelessWidget {
final MarketAllCategoryModel subModels; final MarketAllCategoryModel subModels;
@ -23,7 +20,7 @@ class NewCategorySubCard extends StatelessWidget {
children: [ children: [
Spacer(), Spacer(),
FadeInImage.assetNetwork( FadeInImage.assetNetwork(
image: SARSAPI.image( image: SAASAPI.image(
subModels.imgUrls.isNotEmpty ? subModels.imgUrls.first : ''), subModels.imgUrls.isNotEmpty ? subModels.imgUrls.first : ''),
//subModels.imgUrls!.isNotEmpty? subModels.imgUrls!.first :'', //subModels.imgUrls!.isNotEmpty? subModels.imgUrls!.first :'',
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,

@ -1,5 +1,4 @@
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/models/collection/collection_goods_model.dart'; import 'package:aku_new_community/models/collection/collection_goods_model.dart';
import 'package:aku_new_community/utils/network/base_model.dart'; import 'package:aku_new_community/utils/network/base_model.dart';
import 'package:aku_new_community/utils/network/net_util.dart'; import 'package:aku_new_community/utils/network/net_util.dart';
@ -7,14 +6,14 @@ import 'package:aku_new_community/utils/network/net_util.dart';
class CollectionFunc { class CollectionFunc {
/// ///
static Future collection(int jcookGoodsId) async { static Future collection(int jcookGoodsId) async {
await NetUtil().get(SARSAPI.market.collection.changeCollection, await NetUtil().get(SAASAPI.market.collection.changeCollection,
params: {"appGoodsPushId": jcookGoodsId}, showMessage: true); params: {"appGoodsPushId": jcookGoodsId}, showMessage: true);
} }
/// ///
static Future<List<CollectionGoodsModel>> getCollectionList() async { static Future<List<CollectionGoodsModel>> getCollectionList() async {
BaseModel baseModel = BaseModel baseModel =
await NetUtil().get(SARSAPI.market.collection.myCollection); await NetUtil().get(SAASAPI.market.collection.myCollection);
if (baseModel.success == true && baseModel.data != null) { if (baseModel.success == true && baseModel.data != null) {
return (baseModel.data as List) return (baseModel.data as List)
.map((e) => CollectionGoodsModel.fromJson(e)) .map((e) => CollectionGoodsModel.fromJson(e))

@ -3,7 +3,7 @@
import 'dart:ui' as ui; import 'dart:ui' as ui;
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/gen/assets.gen.dart'; import 'package:aku_new_community/gen/assets.gen.dart';
import 'package:aku_new_community/model/good/market_swiper_model.dart'; import 'package:aku_new_community/model/good/market_swiper_model.dart';
import 'package:aku_new_community/models/market/goods_popular_model.dart'; import 'package:aku_new_community/models/market/goods_popular_model.dart';
@ -81,7 +81,7 @@ class _MarketPageState extends State<MarketPage>
Future updateMarketInfo() async { Future updateMarketInfo() async {
_pageNum = 1; _pageNum = 1;
BaseListModel baseListModel = await NetUtil().getList( BaseListModel baseListModel = await NetUtil().getList(
SARSAPI.market.good.recommend, SAASAPI.market.good.recommend,
params: { params: {
'pageNum': _pageNum, 'pageNum': _pageNum,
'size': _size, 'size': _size,
@ -98,7 +98,7 @@ class _MarketPageState extends State<MarketPage>
Future loadMarketInfo() async { Future loadMarketInfo() async {
BaseListModel baseListModel = await NetUtil().getList( BaseListModel baseListModel = await NetUtil().getList(
SARSAPI.market.good.recommend, SAASAPI.market.good.recommend,
params: { params: {
'pageNum': _pageNum, 'pageNum': _pageNum,
'size': _size, 'size': _size,
@ -757,7 +757,7 @@ class _MarketPageState extends State<MarketPage>
), ),
child: FadeInImage.assetNetwork( child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: SARSAPI.image(swiperModel.imgList!.isNotEmpty image: SAASAPI.image(swiperModel.imgList!.isNotEmpty
? swiperModel.imgList!.first.url ? swiperModel.imgList!.first.url
: ''), : ''),
fit: BoxFit.fill, fit: BoxFit.fill,

@ -1,6 +1,6 @@
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/order/order_list_model.dart'; import 'package:aku_new_community/model/order/order_list_model.dart';
import 'package:aku_new_community/pages/life_pay/pay_finish_page.dart'; import 'package:aku_new_community/pages/life_pay/pay_finish_page.dart';
import 'package:aku_new_community/pages/life_pay/pay_util.dart'; import 'package:aku_new_community/pages/life_pay/pay_util.dart';
@ -106,7 +106,7 @@ class _OrderCardState extends State<OrderCard> {
if (result == true) { if (result == true) {
Function cancel = BotToast.showLoading(); Function cancel = BotToast.showLoading();
BaseModel baseModel = BaseModel baseModel =
await NetUtil().get(SARSAPI.market.order.delete, params: { await NetUtil().get(SAASAPI.market.order.delete, params: {
"orderId": widget.model.id, "orderId": widget.model.id,
}); });
if (baseModel.success) { if (baseModel.success) {
@ -136,7 +136,7 @@ class _OrderCardState extends State<OrderCard> {
); );
if (result == true) { if (result == true) {
Function cancel = BotToast.showLoading(); Function cancel = BotToast.showLoading();
BaseModel baseModel = await NetUtil().get(SARSAPI.market.order.cancel, BaseModel baseModel = await NetUtil().get(SAASAPI.market.order.cancel,
params: {"orderId": widget.model.id, 'cancelReasonCode': 4}); params: {"orderId": widget.model.id, 'cancelReasonCode': 4});
if (baseModel.success) { if (baseModel.success) {
BotToast.showText(text: '取消成功'); BotToast.showText(text: '取消成功');
@ -166,7 +166,7 @@ class _OrderCardState extends State<OrderCard> {
if (result == true) { if (result == true) {
Function cancel = BotToast.showLoading(); Function cancel = BotToast.showLoading();
BaseModel baseModel = BaseModel baseModel =
await NetUtil().get(SARSAPI.market.order.confirm, params: { await NetUtil().get(SAASAPI.market.order.confirm, params: {
"orderId": widget.model.id, "orderId": widget.model.id,
}); });
if (baseModel.success) { if (baseModel.success) {

@ -3,7 +3,7 @@ import 'dart:async';
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/const/resource.dart'; import 'package:aku_new_community/const/resource.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/order/logistics_model.dart'; import 'package:aku_new_community/model/order/logistics_model.dart';
import 'package:aku_new_community/model/order/order_list_model.dart'; import 'package:aku_new_community/model/order/order_list_model.dart';
import 'package:aku_new_community/pages/life_pay/pay_util.dart'; import 'package:aku_new_community/pages/life_pay/pay_util.dart';
@ -94,7 +94,7 @@ class _OrderDetailPageState extends State<OrderDetailPage> {
if (result == true) { if (result == true) {
Function cancel = BotToast.showLoading(); Function cancel = BotToast.showLoading();
BaseModel baseModel = BaseModel baseModel =
await NetUtil().get(SARSAPI.market.order.delete, params: { await NetUtil().get(SAASAPI.market.order.delete, params: {
"orderId": widget.orderModel.id, "orderId": widget.orderModel.id,
}); });
if (baseModel.success) { if (baseModel.success) {
@ -125,7 +125,7 @@ class _OrderDetailPageState extends State<OrderDetailPage> {
); );
if (result == true) { if (result == true) {
Function cancel = BotToast.showLoading(); Function cancel = BotToast.showLoading();
BaseModel baseModel = await NetUtil().get(SARSAPI.market.order.cancel, BaseModel baseModel = await NetUtil().get(SAASAPI.market.order.cancel,
params: {"orderId": widget.orderModel.id, 'cancelReasonCode': 4}); params: {"orderId": widget.orderModel.id, 'cancelReasonCode': 4});
if (baseModel.success) { if (baseModel.success) {
BotToast.showText(text: '取消成功'); BotToast.showText(text: '取消成功');
@ -156,7 +156,7 @@ class _OrderDetailPageState extends State<OrderDetailPage> {
if (result == true) { if (result == true) {
Function cancel = BotToast.showLoading(); Function cancel = BotToast.showLoading();
BaseModel baseModel = BaseModel baseModel =
await NetUtil().get(SARSAPI.market.order.confirm, params: { await NetUtil().get(SAASAPI.market.order.confirm, params: {
"orderId": widget.orderModel.id, "orderId": widget.orderModel.id,
}); });
if (baseModel.success) { if (baseModel.success) {
@ -546,7 +546,7 @@ class _OrderDetailPageState extends State<OrderDetailPage> {
LineButton( LineButton(
onPressed: () async { onPressed: () async {
BaseModel baseModel = await NetUtil() BaseModel baseModel = await NetUtil()
.get(SARSAPI.market.order.findLogistics, params: { .get(SAASAPI.market.order.findLogistics, params: {
"orderId": widget.orderModel.id, "orderId": widget.orderModel.id,
}); });
if (baseModel.success == true && baseModel.data != null) { if (baseModel.success == true && baseModel.data != null) {

@ -1,12 +1,10 @@
import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/order/order_list_model.dart';
import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/model/order/order_list_model.dart';
import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart';
import 'order_card.dart'; import 'order_card.dart';
class OrderView extends StatefulWidget { class OrderView extends StatefulWidget {
@ -36,7 +34,7 @@ class _OrderViewState extends State<OrderView> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return BeeListView( return BeeListView(
path: SARSAPI.market.order.myOrder, path: SAASAPI.market.order.myOrder,
controller: _refreshController, controller: _refreshController,
extraParams: {"tradeStatus": widget.index, 'orderCode': null}, extraParams: {"tradeStatus": widget.index, 'orderCode': null},
convert: (models) { convert: (models) {

@ -1,5 +1,5 @@
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/models/market/good_detail_model.dart'; import 'package:aku_new_community/models/market/good_detail_model.dart';
import 'package:aku_new_community/models/market/order/order_detail_model.dart'; import 'package:aku_new_community/models/market/order/order_detail_model.dart';
import 'package:aku_new_community/models/search/search_goods_model.dart'; import 'package:aku_new_community/models/search/search_goods_model.dart';
@ -54,7 +54,7 @@ class SearchFunc {
/// ///
static Future<GoodDetailModel> getGoodDetail(int shopId) async { static Future<GoodDetailModel> getGoodDetail(int shopId) async {
BaseModel model = await NetUtil().get( BaseModel model = await NetUtil().get(
SARSAPI.market.good.goodDetail, SAASAPI.market.good.goodDetail,
params: {'appGoodsPushId': shopId}, params: {'appGoodsPushId': shopId},
); );
if (model.data == null) return GoodDetailModel.fail(); if (model.data == null) return GoodDetailModel.fail();
@ -73,7 +73,7 @@ class SearchFunc {
/// ///
static Future<String> addGoodsCar(int jcookGoodsId) async { static Future<String> addGoodsCar(int jcookGoodsId) async {
BaseModel model = await NetUtil().post(SARSAPI.market.shopCart.insert, BaseModel model = await NetUtil().post(SAASAPI.market.shopCart.insert,
params: {'appGoodsPushId': jcookGoodsId}, showMessage: true); params: {'appGoodsPushId': jcookGoodsId}, showMessage: true);
if (model.msg == null) return ''; if (model.msg == null) return '';
return model.msg as String; return model.msg as String;

@ -8,7 +8,7 @@ import 'package:waterfall_flow/waterfall_flow.dart';
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/models/market/goods_popular_model.dart'; import 'package:aku_new_community/models/market/goods_popular_model.dart';
import 'package:aku_new_community/models/search/search_goods_model.dart'; import 'package:aku_new_community/models/search/search_goods_model.dart';
import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart'; import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart';

@ -1,7 +1,7 @@
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/const/resource.dart'; import 'package:aku_new_community/const/resource.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/model/order/create_order_model.dart'; import 'package:aku_new_community/model/order/create_order_model.dart';
import 'package:aku_new_community/model/user/adress_model.dart'; import 'package:aku_new_community/model/user/adress_model.dart';
import 'package:aku_new_community/models/market/shop_car/shop_car_list_model.dart'; import 'package:aku_new_community/models/market/shop_car/shop_car_list_model.dart';
@ -73,7 +73,7 @@ class _SubmitOrderPageState extends State<SubmitOrderPage> {
Future<bool> createOrder( Future<bool> createOrder(
int addressId, List<SettlementGoodsDTO> goodsList) async { int addressId, List<SettlementGoodsDTO> goodsList) async {
BaseModel model = await NetUtil().post( BaseModel model = await NetUtil().post(
SARSAPI.market.shopCart.settlement, SAASAPI.market.shopCart.settlement,
params: { params: {
'addressId': addressId, 'addressId': addressId,
'settlementGoodsDTOList': goodsList.map((v) => v.toJson()).toList() 'settlementGoodsDTOList': goodsList.map((v) => v.toJson()).toList()
@ -727,7 +727,7 @@ class _SubmitOrderPageState extends State<SubmitOrderPage> {
Future<bool> changeNum(int jcookGoodsId, int num) async { Future<bool> changeNum(int jcookGoodsId, int num) async {
var cancel = BotToast.showLoading(); var cancel = BotToast.showLoading();
var base = await NetUtil().post(SARSAPI.market.shopCart.updateNum, var base = await NetUtil().post(SAASAPI.market.shopCart.updateNum,
params: {'appGoodsPushId': jcookGoodsId, 'num': num}); params: {'appGoodsPushId': jcookGoodsId, 'num': num});
if (!(base.success)) { if (!(base.success)) {
BotToast.showText(text: base.msg); BotToast.showText(text: base.msg);

@ -1,6 +1,6 @@
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/gen/assets.gen.dart'; import 'package:aku_new_community/gen/assets.gen.dart';
import 'package:aku_new_community/model/order/create_order_model.dart'; import 'package:aku_new_community/model/order/create_order_model.dart';
import 'package:aku_new_community/model/user/adress_model.dart'; import 'package:aku_new_community/model/user/adress_model.dart';
@ -73,7 +73,7 @@ class _SubmitOrderNormalPageState extends State<SubmitOrderNormalPage> {
Future<bool> createOrder( Future<bool> createOrder(
int addressId, List<SettlementGoodsDTO> goodsList) async { int addressId, List<SettlementGoodsDTO> goodsList) async {
BaseModel model = await NetUtil().post( BaseModel model = await NetUtil().post(
SARSAPI.market.shopCart.settlement, SAASAPI.market.shopCart.settlement,
params: { params: {
'addressId': addressId, 'addressId': addressId,
'settlementGoodsDTOList': goodsList.map((v) => v.toJson()).toList() 'settlementGoodsDTOList': goodsList.map((v) => v.toJson()).toList()
@ -759,7 +759,7 @@ class _SubmitOrderNormalPageState extends State<SubmitOrderNormalPage> {
Future<bool> changeNum(int jcookGoodsId, int num) async { Future<bool> changeNum(int jcookGoodsId, int num) async {
var cancel = BotToast.showLoading(); var cancel = BotToast.showLoading();
var base = await NetUtil().post(SARSAPI.market.shopCart.updateNum, var base = await NetUtil().post(SAASAPI.market.shopCart.updateNum,
params: {'appGoodsPushId': jcookGoodsId, 'num': num}); params: {'appGoodsPushId': jcookGoodsId, 'num': num});
if (!(base.success)) { if (!(base.success)) {
BotToast.showText(text: base.msg); BotToast.showText(text: base.msg);

@ -1,17 +1,6 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/const/resource.dart'; import 'package:aku_new_community/const/resource.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/models/market/shop_car/shop_car_list_model.dart'; import 'package:aku_new_community/models/market/shop_car/shop_car_list_model.dart';
import 'package:aku_new_community/ui/market/search/submit_order_page.dart'; import 'package:aku_new_community/ui/market/search/submit_order_page.dart';
import 'package:aku_new_community/ui/market/shop_car/shop_car_func.dart'; import 'package:aku_new_community/ui/market/shop_car/shop_car_func.dart';
@ -21,6 +10,14 @@ import 'package:aku_new_community/utils/network/net_util.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:aku_new_community/widget/buttons/bee_check_radio.dart'; import 'package:aku_new_community/widget/buttons/bee_check_radio.dart';
import 'package:aku_new_community/widget/buttons/end_button.dart'; import 'package:aku_new_community/widget/buttons/end_button.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
class ShopCarPage extends StatefulWidget { class ShopCarPage extends StatefulWidget {
const ShopCarPage({Key? key}) : super(key: key); const ShopCarPage({Key? key}) : super(key: key);
@ -96,7 +93,7 @@ class _ShopCarPageState extends State<ShopCarPage> {
header: MaterialHeader(), header: MaterialHeader(),
onRefresh: () async { onRefresh: () async {
var base = var base =
await NetUtil().get(SARSAPI.market.shopCart.myCart); await NetUtil().get(SAASAPI.market.shopCart.myCart);
if (base.success) { if (base.success) {
_models = (base.data as List) _models = (base.data as List)
.map((e) => ShopCarListModel.fromJson(e)) .map((e) => ShopCarListModel.fromJson(e))
@ -248,7 +245,7 @@ class _ShopCarPageState extends State<ShopCarPage> {
if (result == true) { if (result == true) {
BaseModel model = await NetUtil().post( BaseModel model = await NetUtil().post(
SARSAPI.market.shopCart.delete, SAASAPI.market.shopCart.delete,
params: { params: {
'appGoodsPushIds': _selectIndex.map((e) => _models[e].id).toList() 'appGoodsPushIds': _selectIndex.map((e) => _models[e].id).toList()
}, },
@ -607,7 +604,7 @@ class _ShopCarPageState extends State<ShopCarPage> {
Future<bool> changeNum(int jcookGoodsId, int num) async { Future<bool> changeNum(int jcookGoodsId, int num) async {
var cancel = BotToast.showLoading(); var cancel = BotToast.showLoading();
var base = await NetUtil().post(SARSAPI.market.shopCart.updateNum, var base = await NetUtil().post(SAASAPI.market.shopCart.updateNum,
params: {'appGoodsPushId': jcookGoodsId, 'num': num}); params: {'appGoodsPushId': jcookGoodsId, 'num': num});
if (!(base.success)) { if (!(base.success)) {
BotToast.showText(text: base.msg); BotToast.showText(text: base.msg);
@ -634,7 +631,7 @@ class _ShopCarPageState extends State<ShopCarPage> {
if (result == true) { if (result == true) {
BaseModel model = await NetUtil().post( BaseModel model = await NetUtil().post(
SARSAPI.market.shopCart.delete, SAASAPI.market.shopCart.delete,
params: { params: {
'appGoodsPushIds': _selectIndex.map((e) => _models[e].id).toList() 'appGoodsPushIds': _selectIndex.map((e) => _models[e].id).toList()
}, },

@ -1,14 +1,7 @@
import 'dart:ui'; import 'dart:ui';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:waterfall_flow/waterfall_flow.dart';
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/models/market/order/goods_home_model.dart'; import 'package:aku_new_community/models/market/order/goods_home_model.dart';
import 'package:aku_new_community/pages/tab_navigator.dart'; import 'package:aku_new_community/pages/tab_navigator.dart';
import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/utils/headers.dart';
@ -17,6 +10,11 @@ import 'package:aku_new_community/utils/network/net_util.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:aku_new_community/widget/buttons/end_button.dart'; import 'package:aku_new_community/widget/buttons/end_button.dart';
import 'package:aku_new_community/widget/buttons/line_button.dart'; import 'package:aku_new_community/widget/buttons/line_button.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:waterfall_flow/waterfall_flow.dart';
import '../market_home_goods_card.dart'; import '../market_home_goods_card.dart';
class MarketSuccessPage extends StatefulWidget { class MarketSuccessPage extends StatefulWidget {

@ -1,13 +1,5 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:common_utils/common_utils.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/ui/profile/house/house_item.dart'; import 'package:aku_new_community/ui/profile/house/house_item.dart';
import 'package:aku_new_community/ui/profile/house/pick_building_page.dart'; import 'package:aku_new_community/ui/profile/house/pick_building_page.dart';
import 'package:aku_new_community/ui/profile/house/pick_role_page.dart'; import 'package:aku_new_community/ui/profile/house/pick_role_page.dart';
@ -15,6 +7,12 @@ import 'package:aku_new_community/utils/headers.dart';
import 'package:aku_new_community/utils/network/base_model.dart'; import 'package:aku_new_community/utils/network/base_model.dart';
import 'package:aku_new_community/utils/network/net_util.dart'; import 'package:aku_new_community/utils/network/net_util.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:common_utils/common_utils.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
class AddHousePage extends StatefulWidget { class AddHousePage extends StatefulWidget {
AddHousePage({Key? key}) : super(key: key); AddHousePage({Key? key}) : super(key: key);

@ -9,7 +9,7 @@ import 'package:velocity_x/velocity_x.dart';
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/extensions/widget_list_ext.dart'; import 'package:aku_new_community/extensions/widget_list_ext.dart';
import 'package:aku_new_community/pages/life_pay/pay_finish_page.dart'; import 'package:aku_new_community/pages/life_pay/pay_finish_page.dart';
import 'package:aku_new_community/pages/life_pay/pay_util.dart'; import 'package:aku_new_community/pages/life_pay/pay_util.dart';

@ -4,7 +4,7 @@ import 'dart:typed_data';
import 'package:bot_toast/bot_toast.dart'; import 'package:bot_toast/bot_toast.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/models/house/lease_detail_model.dart'; import 'package:aku_new_community/models/house/lease_detail_model.dart';
import 'package:aku_new_community/models/house/lease_echo_model.dart'; import 'package:aku_new_community/models/house/lease_echo_model.dart';
import 'package:aku_new_community/models/house/submit_model.dart'; import 'package:aku_new_community/models/house/submit_model.dart';

@ -7,7 +7,7 @@ import 'package:power_logger/power_logger.dart';
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/models/house/lease_fee_list_model.dart'; import 'package:aku_new_community/models/house/lease_fee_list_model.dart';
import 'package:aku_new_community/pages/life_pay/pay_finish_page.dart'; import 'package:aku_new_community/pages/life_pay/pay_finish_page.dart';
import 'package:aku_new_community/pages/life_pay/pay_util.dart'; import 'package:aku_new_community/pages/life_pay/pay_util.dart';

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save