Commit a8c8efe5846e71b9590047556b0e46eba62ca987

Authored by wdn127929
1 parent ab7ebb3b

设置营销中心----客户通知页面设置选项

@@ -48,6 +48,9 @@ class GetDzSellerConfSunModel { @@ -48,6 +48,9 @@ class GetDzSellerConfSunModel {
48 String isShowPrice; 48 String isShowPrice;
49 String isOpenCancel; 49 String isOpenCancel;
50 50
  51 + String isNotice;
  52 + String isMarketing;
  53 +
51 GetDzSellerConfSunModel( 54 GetDzSellerConfSunModel(
52 {this.id, 55 {this.id,
53 this.sid, 56 this.sid,
@@ -67,7 +70,9 @@ class GetDzSellerConfSunModel { @@ -67,7 +70,9 @@ class GetDzSellerConfSunModel {
67 this.isStoreSms, 70 this.isStoreSms,
68 this.storeDate, 71 this.storeDate,
69 this.isShowPrice, 72 this.isShowPrice,
70 - this.isOpenCancel}); 73 + this.isOpenCancel,
  74 + this.isNotice,
  75 + this.isMarketing});
71 76
72 GetDzSellerConfSunModel.fromJson(Map<String, dynamic> json) { 77 GetDzSellerConfSunModel.fromJson(Map<String, dynamic> json) {
73 id = json['id']; 78 id = json['id'];
@@ -91,6 +96,8 @@ class GetDzSellerConfSunModel { @@ -91,6 +96,8 @@ class GetDzSellerConfSunModel {
91 storeDate = json['store_date']; 96 storeDate = json['store_date'];
92 isShowPrice = json['is_show_price']; 97 isShowPrice = json['is_show_price'];
93 isOpenCancel = json['is_open_cancel_temp']; 98 isOpenCancel = json['is_open_cancel_temp'];
  99 + isNotice = json['is_seller_notice'];
  100 + isMarketing = json['is_seller_marketing'];
94 } 101 }
95 102
96 Map<String, dynamic> toJson() { 103 Map<String, dynamic> toJson() {
@@ -114,6 +121,8 @@ class GetDzSellerConfSunModel { @@ -114,6 +121,8 @@ class GetDzSellerConfSunModel {
114 data['store_date'] = this.storeDate; 121 data['store_date'] = this.storeDate;
115 data['is_show_price'] = this.isShowPrice; 122 data['is_show_price'] = this.isShowPrice;
116 data['is_open_cancel_temp'] = this.isOpenCancel; 123 data['is_open_cancel_temp'] = this.isOpenCancel;
  124 + data['is_seller_notice'] = this.isNotice;
  125 + data['is_seller_marketing'] = this.isMarketing;
117 126
118 return data; 127 return data;
119 } 128 }
@@ -96,6 +96,7 @@ class HandleOnlinePageState extends State<HandleOnlinePage> { @@ -96,6 +96,7 @@ class HandleOnlinePageState extends State<HandleOnlinePage> {
96 }); 96 });
97 if (detailEntity.status == "6") { 97 if (detailEntity.status == "6") {
98 //已拒绝不跳转 98 //已拒绝不跳转
  99 + setMessageStatus();
99 if (refuseDialogState != null) { 100 if (refuseDialogState != null) {
100 refuseDialogState(() {}); 101 refuseDialogState(() {});
101 } 102 }
@@ -363,7 +364,7 @@ class HandleOnlinePageState extends State<HandleOnlinePage> { @@ -363,7 +364,7 @@ class HandleOnlinePageState extends State<HandleOnlinePage> {
363 "mid": widget.mid, 364 "mid": widget.mid,
364 "cause": json.encode(causeMap), 365 "cause": json.encode(causeMap),
365 "uid": userModel.user.openid, 366 "uid": userModel.user.openid,
366 - 'note_name':userModel.user.account, 367 + 'note_name': userModel.user.account,
367 }; 368 };
368 if (status == "6") { 369 if (status == "6") {
369 isPause = (ac == "1" ? true : false); 370 isPause = (ac == "1" ? true : false);
@@ -579,8 +580,8 @@ class HandleOnlinePageState extends State<HandleOnlinePage> { @@ -579,8 +580,8 @@ class HandleOnlinePageState extends State<HandleOnlinePage> {
579 height: 84, 580 height: 84,
580 fontSize: 34, 581 fontSize: 34,
581 onPress: () async { 582 onPress: () async {
582 - Map map =  
583 - await NavigatorUtil.goSelectTableFPage( 583 + Map map = await NavigatorUtil
  584 + .goSelectTableFPage(
584 context, 585 context,
585 widget.rid, 586 widget.rid,
586 int.parse(detailEntity.ddate) * 587 int.parse(detailEntity.ddate) *
@@ -4,6 +4,7 @@ import 'package:one_key/widgets/system_app_bar.dart'; @@ -4,6 +4,7 @@ import 'package:one_key/widgets/system_app_bar.dart';
4 import 'package:one_key/widgets/v_empty_view.dart'; 4 import 'package:one_key/widgets/v_empty_view.dart';
5 import 'package:provider/provider.dart'; 5 import 'package:provider/provider.dart';
6 6
  7 +import '../../../constant/state.dart';
7 import '../../../provider/marketing_center_provider.dart'; 8 import '../../../provider/marketing_center_provider.dart';
8 import '../../../provider/user_model.dart'; 9 import '../../../provider/user_model.dart';
9 import '../../../res/colors.dart'; 10 import '../../../res/colors.dart';
@@ -13,6 +14,7 @@ import '../../../utils/screen_util.dart'; @@ -13,6 +14,7 @@ import '../../../utils/screen_util.dart';
13 import '../../../utils/utils.dart'; 14 import '../../../utils/utils.dart';
14 import '../../../widgets/MyDivider.dart'; 15 import '../../../widgets/MyDivider.dart';
15 import '../../../widgets/h_empty_view.dart'; 16 import '../../../widgets/h_empty_view.dart';
  17 +import '../../../widgets/page_exception.dart';
16 import '../../../widgets/round_button.dart'; 18 import '../../../widgets/round_button.dart';
17 import '../../online_check/photo_view_wiget.dart'; 19 import '../../online_check/photo_view_wiget.dart';
18 20
@@ -68,8 +70,19 @@ class _CustomerNoticeSettingPageState extends State<CustomerNoticeSettingPage> { @@ -68,8 +70,19 @@ class _CustomerNoticeSettingPageState extends State<CustomerNoticeSettingPage> {
68 cancelSms = marketingCenterProvider.dzSellerConfModel.isOpenCancel == '1' 70 cancelSms = marketingCenterProvider.dzSellerConfModel.isOpenCancel == '1'
69 ? true 71 ? true
70 : false; 72 : false;
71 - setState(() {}); 73 +
  74 + noticeSms = marketingCenterProvider.dzSellerConfModel.isNotice == '1'
  75 + ? true
  76 + : false;
  77 + marketingSms =
  78 + marketingCenterProvider.dzSellerConfModel.isMarketing == '1'
  79 + ? true
  80 + : false;
  81 + marketingCenterProvider.pageStateSetting = PageState.Success;
  82 + } else {
  83 + marketingCenterProvider.pageStateSetting = PageState.ConnectivityError;
72 } 84 }
  85 + setState(() {});
73 } 86 }
74 87
75 _getThemeData() async { 88 _getThemeData() async {
@@ -137,6 +150,8 @@ class _CustomerNoticeSettingPageState extends State<CustomerNoticeSettingPage> { @@ -137,6 +150,8 @@ class _CustomerNoticeSettingPageState extends State<CustomerNoticeSettingPage> {
137 _setData() async { 150 _setData() async {
138 Future.wait<bool>([ 151 Future.wait<bool>([
139 _setCancelSMS(), 152 _setCancelSMS(),
  153 + _setNotice(),
  154 + _setMarketing(),
140 _setNewType(), 155 _setNewType(),
141 ]).then((results) { 156 ]).then((results) {
142 print(results[0]); 157 print(results[0]);
@@ -149,7 +164,7 @@ class _CustomerNoticeSettingPageState extends State<CustomerNoticeSettingPage> { @@ -149,7 +164,7 @@ class _CustomerNoticeSettingPageState extends State<CustomerNoticeSettingPage> {
149 }); 164 });
150 } 165 }
151 166
152 - ///启用预订安排通知图文模式 167 + ///客户取消预订时自动发送通知短信
153 Future<bool> _setCancelSMS({bool isShowLoading = true}) async { 168 Future<bool> _setCancelSMS({bool isShowLoading = true}) async {
154 Map<String, String> params = { 169 Map<String, String> params = {
155 'sid': Provider.of<UserModel>(context, listen: false).user.sellerid, 170 'sid': Provider.of<UserModel>(context, listen: false).user.sellerid,
@@ -167,6 +182,42 @@ class _CustomerNoticeSettingPageState extends State<CustomerNoticeSettingPage> { @@ -167,6 +182,42 @@ class _CustomerNoticeSettingPageState extends State<CustomerNoticeSettingPage> {
167 } 182 }
168 } 183 }
169 184
  185 + ///使用店铺手机发送通知短信
  186 + Future<bool> _setNotice({bool isShowLoading = true}) async {
  187 + Map<String, String> params = {
  188 + 'sid': Provider.of<UserModel>(context, listen: false).user.sellerid,
  189 + 'key': 'is_seller_notice',
  190 + 'value': noticeSms ? '1' : '0'
  191 + };
  192 +
  193 + bool success = await marketingCenterProvider.setConfing(context, params,
  194 + needToast: false);
  195 +
  196 + if (success) {
  197 + return true;
  198 + } else {
  199 + return false;
  200 + }
  201 + }
  202 +
  203 + ///使用店铺手机发送营销短信
  204 + Future<bool> _setMarketing({bool isShowLoading = true}) async {
  205 + Map<String, String> params = {
  206 + 'sid': Provider.of<UserModel>(context, listen: false).user.sellerid,
  207 + 'key': 'is_seller_marketing',
  208 + 'value': marketingSms ? '1' : '0'
  209 + };
  210 +
  211 + bool success = await marketingCenterProvider.setConfing(context, params,
  212 + needToast: false);
  213 +
  214 + if (success) {
  215 + return true;
  216 + } else {
  217 + return false;
  218 + }
  219 + }
  220 +
170 ///启用预订安排通知图文模式 221 ///启用预订安排通知图文模式
171 Future<bool> _setNewType({bool isShowLoading = true}) async { 222 Future<bool> _setNewType({bool isShowLoading = true}) async {
172 Map<String, String> params = { 223 Map<String, String> params = {
@@ -278,15 +329,12 @@ class _CustomerNoticeSettingPageState extends State<CustomerNoticeSettingPage> { @@ -278,15 +329,12 @@ class _CustomerNoticeSettingPageState extends State<CustomerNoticeSettingPage> {
278 ))); 329 )));
279 } 330 }
280 331
281 - Widget _itemSmsWidget(bool isSelect, String title) { 332 + Widget _itemSmsWidget(bool isSelect, String title,
  333 + {GestureTapCallback onTap}) {
282 return Column( 334 return Column(
283 children: [ 335 children: [
284 InkWell( 336 InkWell(
285 - onTap: () {  
286 - setState(() {  
287 - isSelect = !isSelect;  
288 - });  
289 - }, 337 + onTap: onTap,
290 child: Padding( 338 child: Padding(
291 padding: EdgeInsets.only( 339 padding: EdgeInsets.only(
292 left: w(16), top: w(14), bottom: w(3), right: w(12)), 340 left: w(16), top: w(14), bottom: w(3), right: w(12)),
@@ -300,7 +348,7 @@ class _CustomerNoticeSettingPageState extends State<CustomerNoticeSettingPage> { @@ -300,7 +348,7 @@ class _CustomerNoticeSettingPageState extends State<CustomerNoticeSettingPage> {
300 ), 348 ),
301 Spacer(), 349 Spacer(),
302 Container( 350 Container(
303 - padding: EdgeInsets.symmetric( 351 + margin: EdgeInsets.symmetric(
304 horizontal: w(7), vertical: w(4)), 352 horizontal: w(7), vertical: w(4)),
305 child: Image.asset( 353 child: Image.asset(
306 Utils.getImgPath(isSelect ? 'swich_on' : 'swich_off'), 354 Utils.getImgPath(isSelect ? 'swich_on' : 'swich_off'),
@@ -352,151 +400,182 @@ class _CustomerNoticeSettingPageState extends State<CustomerNoticeSettingPage> { @@ -352,151 +400,182 @@ class _CustomerNoticeSettingPageState extends State<CustomerNoticeSettingPage> {
352 marketingCenterProvider = 400 marketingCenterProvider =
353 Provider.of<MarketingCenterProvider>(context, listen: true); 401 Provider.of<MarketingCenterProvider>(context, listen: true);
354 return Scaffold( 402 return Scaffold(
355 - backgroundColor: MyColours.color_ffffff,  
356 - appBar: SystemAppBar('客户通知设置'),  
357 - body: Column(  
358 - children: [  
359 - Expanded(  
360 - child: SingleChildScrollView(  
361 - child: Padding(  
362 - padding: EdgeInsets.only(left: w(16)),  
363 - child: Column(  
364 - crossAxisAlignment: CrossAxisAlignment.start,  
365 - children: [  
366 - _title('短信通知'),  
367 - _itemSmsWidget(cancelSms, '客户取消预订时自动发送通知短信'),  
368 - _itemSmsWidget(noticeSms, '使用店铺手机发送通知短信'),  
369 - _itemSmsWidget(marketingSms, '使用店铺手机发送营销短信'),  
370 - VEmptyView(24),  
371 -  
372 - _title('微信通知'),  
373 - VEmptyView(24),  
374 -  
375 - InkWell(  
376 - onTap: () {  
377 - NavigatorUtil.goInvitationThemeHomePage(context);  
378 - },  
379 - child: Padding(  
380 - padding: EdgeInsets.only(  
381 - left: w(16),  
382 - top: w(14),  
383 - bottom: w(3),  
384 - right: w(12)),  
385 - child: Row(  
386 - mainAxisAlignment:  
387 - MainAxisAlignment.spaceBetween,  
388 - children: [  
389 - Text(  
390 - '客户通知主题选择',  
391 - style: TextStyle(  
392 - color: MyColours.color_515151,  
393 - fontSize: font(14)),  
394 - ),  
395 - HEmptyView(20),  
396 -  
397 - Expanded(  
398 - child: Text(  
399 - themeName,  
400 - textAlign: TextAlign.right,  
401 - style: TextStyle(  
402 - color: MyColours.color_515151,  
403 - fontSize: font(14)),  
404 - )),  
405 - Container(  
406 - padding: EdgeInsets.symmetric(  
407 - horizontal: w(11), vertical: w(4)),  
408 - child: Image.asset(  
409 - "assets/arrow_right_new.png",  
410 - width: w(9),  
411 - height: w(16),  
412 - ),  
413 - )  
414 - // RoundButton(  
415 - // text: '预览',  
416 - // gradientStart: MyColours.color_ffffff,  
417 - // gradientEnd: MyColours.color_ffffff,  
418 - // borderColor: MyColours.color_438E93,  
419 - // textColor: MyColours.color_438E93,  
420 - // radius: ScreenUtil().setWidth(22),  
421 - // fontSize: 24,  
422 - // width: w(72),  
423 - // height: ScreenUtil().setWidth(44),  
424 - // isBold: true,  
425 - // onPressed: () {  
426 - // NavigatorUtil.goMarkingPreviewPage(context);  
427 - // },  
428 - // ),  
429 - ]))),  
430 - Padding(  
431 - padding: EdgeInsets.only(left: w(16),right: w(12)),  
432 - child: MyDivider(double.infinity, w(0.5),  
433 - color: MyColours.color_E7E7E7)),  
434 - // _item('首图形象展示', onTap: () {  
435 - // NavigatorUtil.goFirstImagePage(context);  
436 - // }),  
437 - _item('预订信息模块设置', onTap: () {  
438 - NavigatorUtil.goBookInfoPage(context);  
439 - }),  
440 - _item('店铺介绍模块设置', onTap: () {  
441 - NavigatorUtil.goStoreIntroducePage(context);  
442 - }),  
443 - _item('主厨介绍设置', onTap: () {  
444 - NavigatorUtil.goChefIntroducePage(context);  
445 - }),  
446 - _item('招牌菜展示设置', onTap: () {  
447 - NavigatorUtil.goDishShowPage(context);  
448 - }),  
449 - _item('客户互动设置', onTap: () {  
450 - NavigatorUtil.goMarkingInteractionPage(context);  
451 - }),  
452 - ], 403 + backgroundColor: MyColours.color_ffffff,
  404 + appBar: SystemAppBar('客户通知设置'),
  405 + body: Consumer<MarketingCenterProvider>(builder: (context1, model, _) {
  406 + if (model.pageState != PageState.Success) {
  407 + return ExceptionPage(
  408 + pageState: model.pageState,
  409 + callback: () async {
  410 + getDzSellerConf();
  411 + _getThemeData();
  412 + },
  413 + emptyMsg: "暂时没有客户通知设置哦",
  414 + emptyImg: "empty_search",
  415 + showMsg: "加载中,请稍后...",
  416 + );
  417 + } else {
  418 + return Column(
  419 + children: [
  420 + Expanded(
  421 + child: SingleChildScrollView(
  422 + child: Padding(
  423 + padding: EdgeInsets.only(left: w(16)),
  424 + child: Column(
  425 + crossAxisAlignment: CrossAxisAlignment.start,
  426 + children: [
  427 + _title('短信通知'),
  428 + _itemSmsWidget(cancelSms, '客户取消预订时自动发送通知短信',
  429 + onTap: () {
  430 + setState(() {
  431 + cancelSms = !cancelSms;
  432 + });
  433 + }),
  434 + _itemSmsWidget(noticeSms, '使用店铺手机发送通知短信', onTap: () {
  435 + setState(() {
  436 + noticeSms = !noticeSms;
  437 + });
  438 + }),
  439 + _itemSmsWidget(marketingSms, '使用店铺手机发送营销短信',
  440 + onTap: () {
  441 + setState(() {
  442 + marketingSms = !marketingSms;
  443 + });
  444 + }),
  445 + VEmptyView(24),
  446 +
  447 + _title('微信通知'),
  448 + VEmptyView(24),
  449 +
  450 + InkWell(
  451 + onTap: () {
  452 + NavigatorUtil.goInvitationThemeHomePage(
  453 + context);
  454 + },
  455 + child: Padding(
  456 + padding: EdgeInsets.only(
  457 + left: w(16),
  458 + top: w(14),
  459 + bottom: w(3),
  460 + right: w(12)),
  461 + child: Row(
  462 + mainAxisAlignment:
  463 + MainAxisAlignment.spaceBetween,
  464 + children: [
  465 + Text(
  466 + '客户通知主题选择',
  467 + style: TextStyle(
  468 + color: MyColours.color_515151,
  469 + fontSize: font(14)),
  470 + ),
  471 + HEmptyView(20),
  472 +
  473 + Expanded(
  474 + child: Text(
  475 + themeName,
  476 + textAlign: TextAlign.right,
  477 + style: TextStyle(
  478 + color: MyColours.color_515151,
  479 + fontSize: font(14)),
  480 + )),
  481 + Container(
  482 + padding: EdgeInsets.symmetric(
  483 + horizontal: w(11),
  484 + vertical: w(4)),
  485 + child: Image.asset(
  486 + "assets/arrow_right_new.png",
  487 + width: w(9),
  488 + height: w(16),
  489 + ),
  490 + )
  491 + // RoundButton(
  492 + // text: '预览',
  493 + // gradientStart: MyColours.color_ffffff,
  494 + // gradientEnd: MyColours.color_ffffff,
  495 + // borderColor: MyColours.color_438E93,
  496 + // textColor: MyColours.color_438E93,
  497 + // radius: ScreenUtil().setWidth(22),
  498 + // fontSize: 24,
  499 + // width: w(72),
  500 + // height: ScreenUtil().setWidth(44),
  501 + // isBold: true,
  502 + // onPressed: () {
  503 + // NavigatorUtil.goMarkingPreviewPage(context);
  504 + // },
  505 + // ),
  506 + ]))),
  507 + Padding(
  508 + padding:
  509 + EdgeInsets.only(left: w(16), right: w(12)),
  510 + child: MyDivider(double.infinity, w(0.5),
  511 + color: MyColours.color_E7E7E7)),
  512 + // _item('首图形象展示', onTap: () {
  513 + // NavigatorUtil.goFirstImagePage(context);
  514 + // }),
  515 + _item('预订信息模块设置', onTap: () {
  516 + NavigatorUtil.goBookInfoPage(context);
  517 + }),
  518 + _item('店铺介绍模块设置', onTap: () {
  519 + NavigatorUtil.goStoreIntroducePage(context);
  520 + }),
  521 + _item('主厨介绍设置', onTap: () {
  522 + NavigatorUtil.goChefIntroducePage(context);
  523 + }),
  524 + _item('招牌菜展示设置', onTap: () {
  525 + NavigatorUtil.goDishShowPage(context);
  526 + }),
  527 + _item('客户互动设置', onTap: () {
  528 + NavigatorUtil.goMarkingInteractionPage(context);
  529 + }),
  530 + ],
  531 + )),
453 )), 532 )),
454 - )),  
455 - Container(  
456 - color: MyColours.color_ffffff,  
457 - padding: EdgeInsets.only(  
458 - left: w(23), right: w(23), top: w(12), bottom: w(25)),  
459 - child: Row(  
460 - children: [  
461 - // RoundButton(  
462 - // text: '图文预览',  
463 - // width: w(100),  
464 - // gradientStart: MyColours.color_ffffff,  
465 - // gradientEnd: MyColours.color_ffffff,  
466 - // borderColor: MyColours.color_438E93,  
467 - // radius: r(5),  
468 - // fontSize: 32,  
469 - // height: w(40),  
470 - // textColor: MyColours.color_438E93,  
471 - // isBold: true,  
472 - // onPressed: () async {  
473 - // // NavigatorUtil.goMarkingPreviewPage(context);  
474 - // if (previewUrl == '') {  
475 - // Utils.showToast('暂时没有可预览的图文信息');  
476 - // return;  
477 - // }  
478 - // //  
479 - // _showPhotoView(context, 0, [previewUrl]);  
480 - // }),  
481 - // HEmptyView(30),  
482 - Expanded(  
483 - child: RoundButton(  
484 - text: '保存',  
485 - gradientStart: MyColours.color_199095,  
486 - gradientEnd: MyColours.color_199095,  
487 - // borderColor: MyColours.color_999999,  
488 - radius: r(5),  
489 - fontSize: 32,  
490 - height: w(40),  
491 - isBold: true,  
492 - onPressed: () async {  
493 - //调用接口  
494 - _setData();  
495 - }))  
496 - ],  
497 - ))  
498 - ],  
499 - ),  
500 - ); 533 + Container(
  534 + color: MyColours.color_ffffff,
  535 + padding: EdgeInsets.only(
  536 + left: w(23), right: w(23), top: w(12), bottom: w(25)),
  537 + child: Row(
  538 + children: [
  539 + // RoundButton(
  540 + // text: '图文预览',
  541 + // width: w(100),
  542 + // gradientStart: MyColours.color_ffffff,
  543 + // gradientEnd: MyColours.color_ffffff,
  544 + // borderColor: MyColours.color_438E93,
  545 + // radius: r(5),
  546 + // fontSize: 32,
  547 + // height: w(40),
  548 + // textColor: MyColours.color_438E93,
  549 + // isBold: true,
  550 + // onPressed: () async {
  551 + // // NavigatorUtil.goMarkingPreviewPage(context);
  552 + // if (previewUrl == '') {
  553 + // Utils.showToast('暂时没有可预览的图文信息');
  554 + // return;
  555 + // }
  556 + // //
  557 + // _showPhotoView(context, 0, [previewUrl]);
  558 + // }),
  559 + // HEmptyView(30),
  560 + Expanded(
  561 + child: RoundButton(
  562 + text: '保存',
  563 + gradientStart: MyColours.color_199095,
  564 + gradientEnd: MyColours.color_199095,
  565 + // borderColor: MyColours.color_999999,
  566 + radius: r(5),
  567 + fontSize: 32,
  568 + height: w(40),
  569 + isBold: true,
  570 + onPressed: () async {
  571 + //调用接口
  572 + _setData();
  573 + }))
  574 + ],
  575 + ))
  576 + ],
  577 + );
  578 + }
  579 + }));
501 } 580 }
502 } 581 }
@@ -25,7 +25,7 @@ class MarketingCenterProvider extends ChangeNotifier { @@ -25,7 +25,7 @@ class MarketingCenterProvider extends ChangeNotifier {
25 PageState pageStateRechargeHome = PageState.Loading; 25 PageState pageStateRechargeHome = PageState.Loading;
26 PageState pageStateBookInfo = PageState.Loading; 26 PageState pageStateBookInfo = PageState.Loading;
27 PageState pageStateThemeHome = PageState.Loading; 27 PageState pageStateThemeHome = PageState.Loading;
28 - 28 + PageState pageStateSetting = PageState.Loading;
29 29
30 List<RechargeListSunModel> rechargeList = []; 30 List<RechargeListSunModel> rechargeList = [];
31 31
@@ -64,6 +64,7 @@ class MarketingCenterProvider extends ChangeNotifier { @@ -64,6 +64,7 @@ class MarketingCenterProvider extends ChangeNotifier {
64 .catchError((error) { 64 .catchError((error) {
65 print(error.toString()); 65 print(error.toString());
66 Utils.showToast('请求失败,请重试'); 66 Utils.showToast('请求失败,请重试');
  67 +
67 return false; 68 return false;
68 }); 69 });
69 if (baseResp.code == Constant.status_success) { 70 if (baseResp.code == Constant.status_success) {