|
@@ -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
|
} |