Commit 99cd95d19a5816dcd9e36bb7ce4dd31b2682ac12

Authored by wdn127929
1 parent 292681d6

主厨介绍

@@ -265,14 +265,19 @@ class MarkChefModel { @@ -265,14 +265,19 @@ class MarkChefModel {
265 String introduce; 265 String introduce;
266 String chefName; 266 String chefName;
267 String image; 267 String image;
  268 + String isIntroduce;
  269 + String isAbove;
  270 + String isImages;
268 271
269 - MarkChefModel({  
270 - this.style,  
271 - this.sellerName,  
272 - this.introduce,  
273 - this.chefName,  
274 - this.image,  
275 - }); 272 + MarkChefModel(
  273 + {this.style,
  274 + this.sellerName,
  275 + this.introduce,
  276 + this.chefName,
  277 + this.image,
  278 + this.isIntroduce,
  279 + this.isAbove,
  280 + this.isImages});
276 281
277 MarkChefModel.fromJson(Map<String, dynamic> json) { 282 MarkChefModel.fromJson(Map<String, dynamic> json) {
278 style = json['style']; 283 style = json['style'];
@@ -280,6 +285,9 @@ class MarkChefModel { @@ -280,6 +285,9 @@ class MarkChefModel {
280 chefName = json['chef_name']; 285 chefName = json['chef_name'];
281 introduce = json['introduce']; 286 introduce = json['introduce'];
282 image = json['image']; 287 image = json['image'];
  288 + isIntroduce = json['is_introduce'];
  289 + isAbove = json['is_above'];
  290 + isImages = json['is_images'];
283 } 291 }
284 292
285 Map<String, dynamic> toJson() { 293 Map<String, dynamic> toJson() {
@@ -289,6 +297,9 @@ class MarkChefModel { @@ -289,6 +297,9 @@ class MarkChefModel {
289 data['chef_name'] = this.chefName; 297 data['chef_name'] = this.chefName;
290 data['introduce'] = this.introduce; 298 data['introduce'] = this.introduce;
291 data['image'] = this.image; 299 data['image'] = this.image;
  300 + data['is_introduce'] = this.isIntroduce;
  301 + data['is_above'] = this.isAbove;
  302 + data['is_images'] = this.isImages;
292 return data; 303 return data;
293 } 304 }
294 } 305 }
@@ -38,9 +38,9 @@ class ChefIntroducePage extends StatefulWidget { @@ -38,9 +38,9 @@ class ChefIntroducePage extends StatefulWidget {
38 } 38 }
39 39
40 class _ChefIntroducePageState extends State<ChefIntroducePage> { 40 class _ChefIntroducePageState extends State<ChefIntroducePage> {
41 - int currIndex = 0; //样式按钮默认选中第一个 41 + // int currIndex = 0; //样式按钮默认选中第一个
42 42
43 - String sellername; //店铺名称 43 + // String sellername; //店铺名称
44 44
45 TextEditingController chefIntroduceC = TextEditingController(); 45 TextEditingController chefIntroduceC = TextEditingController();
46 FocusNode chefIntroduceNode = FocusNode(); 46 FocusNode chefIntroduceNode = FocusNode();
@@ -52,15 +52,18 @@ class _ChefIntroducePageState extends State<ChefIntroducePage> { @@ -52,15 +52,18 @@ class _ChefIntroducePageState extends State<ChefIntroducePage> {
52 52
53 UploadImageProvider _uploadImageProvider; 53 UploadImageProvider _uploadImageProvider;
54 MarketingCenterProvider _marketingCenterProvider; 54 MarketingCenterProvider _marketingCenterProvider;
  55 + bool addChefIntroduce = false;
  56 + bool addChefImge = false;
  57 + bool addAbove = false;
55 58
56 @override 59 @override
57 void initState() { 60 void initState() {
58 super.initState(); 61 super.initState();
59 62
60 WidgetsBinding.instance.addPostFrameCallback((_) async { 63 WidgetsBinding.instance.addPostFrameCallback((_) async {
61 - UserModel userModel = Provider.of<UserModel>(context, listen: false);  
62 - sellername = userModel.user.sellername;  
63 - setState(() {}); 64 + // UserModel userModel = Provider.of<UserModel>(context, listen: false);
  65 + // sellername = userModel.user.sellername;
  66 + // setState(() {});
64 _getQiniuInfo(); 67 _getQiniuInfo();
65 await getSellerTemplateConf(); 68 await getSellerTemplateConf();
66 }); 69 });
@@ -82,7 +85,7 @@ class _ChefIntroducePageState extends State<ChefIntroducePage> { @@ -82,7 +85,7 @@ class _ChefIntroducePageState extends State<ChefIntroducePage> {
82 bool success = 85 bool success =
83 await _marketingCenterProvider.getSellerTemplateConf(context); 86 await _marketingCenterProvider.getSellerTemplateConf(context);
84 if (success && _marketingCenterProvider.markDataModel.chef != null) { 87 if (success && _marketingCenterProvider.markDataModel.chef != null) {
85 - currIndex = int.parse(_marketingCenterProvider.markDataModel.chef.style); 88 + // currIndex = int.parse(_marketingCenterProvider.markDataModel.chef.style);
86 89
87 _uploadImageProvider.firstImage.qiniuUrl = 90 _uploadImageProvider.firstImage.qiniuUrl =
88 _marketingCenterProvider.markDataModel.chef.image ?? null; 91 _marketingCenterProvider.markDataModel.chef.image ?? null;
@@ -96,6 +99,17 @@ class _ChefIntroducePageState extends State<ChefIntroducePage> { @@ -96,6 +99,17 @@ class _ChefIntroducePageState extends State<ChefIntroducePage> {
96 chefNameC.text = _marketingCenterProvider.markDataModel.chef.chefName; 99 chefNameC.text = _marketingCenterProvider.markDataModel.chef.chefName;
97 chefIntroduceC.text = 100 chefIntroduceC.text =
98 _marketingCenterProvider.markDataModel.chef.introduce; 101 _marketingCenterProvider.markDataModel.chef.introduce;
  102 + addChefIntroduce =
  103 + _marketingCenterProvider.markDataModel.chef.isIntroduce == '1'
  104 + ? true
  105 + : false;
  106 + addChefImge = _marketingCenterProvider.markDataModel.chef.isImages == '1'
  107 + ? true
  108 + : false;
  109 + addAbove = _marketingCenterProvider.markDataModel.chef.isAbove == '1'
  110 + ? true
  111 + : false;
  112 +
99 setState(() {}); 113 setState(() {});
100 } 114 }
101 } 115 }
@@ -128,8 +142,8 @@ class _ChefIntroducePageState extends State<ChefIntroducePage> { @@ -128,8 +142,8 @@ class _ChefIntroducePageState extends State<ChefIntroducePage> {
128 if (need) { 142 if (need) {
129 file = File(compressedFile.absolute.path); 143 file = File(compressedFile.absolute.path);
130 } 144 }
131 - UploadImageUtil().startUploadOnly(context,  
132 - file, 4, true, _uploadImageProvider); 145 + UploadImageUtil()
  146 + .startUploadOnly(context, file, 4, true, _uploadImageProvider);
133 } 147 }
134 } 148 }
135 149
@@ -245,203 +259,6 @@ class _ChefIntroducePageState extends State<ChefIntroducePage> { @@ -245,203 +259,6 @@ class _ChefIntroducePageState extends State<ChefIntroducePage> {
245 }); 259 });
246 } 260 }
247 261
248 - ///图文合并,图文分开,无文字  
249 - Widget _selectBtnWidget() {  
250 - return Container(  
251 - decoration: BoxDecoration(  
252 - border: Border(  
253 - bottom:  
254 - BorderSide(color: MyColours.color_E7E7E7, width: w(0.5)))),  
255 - margin: EdgeInsets.only(left: w(16)),  
256 - padding: EdgeInsets.only(top: w(12), bottom: w(12), right: w(16)),  
257 - child: Row(  
258 - mainAxisAlignment: MainAxisAlignment.spaceBetween,  
259 - children: [  
260 - Text(  
261 - '附加主厨介绍',  
262 - style: TextStyle(  
263 - color: MyColours.color_515151,  
264 - fontSize: ScreenUtil().setWidth(32)),  
265 - ),  
266 - Container(  
267 - height: ScreenUtil().setWidth(74),  
268 - decoration: BoxDecoration(  
269 - color: Color.fromRGBO(232, 232, 232, 1),  
270 - borderRadius: BorderRadius.circular(  
271 - r(11),  
272 - ),  
273 - // border: Border.all(  
274 - // width: w(1), color: MyColours.color_438E93),  
275 - ),  
276 - child: Row(  
277 - // mainAxisAlignment: MainAxisAlignment.spaceEvenly,  
278 - // crossAxisAlignment: CrossAxisAlignment.center,  
279 - children: <Widget>[  
280 - CommonButtonFlat(  
281 - content: "无介绍",  
282 - state: currIndex == 0 ? 1 : 0,  
283 - fontSize: 28,  
284 - right: false,  
285 - width: w(52),  
286 - onPress: () {  
287 - if (currIndex == 0) return;  
288 - setState(() {  
289 - currIndex = 0;  
290 - });  
291 - },  
292 - ),  
293 - currIndex == 2  
294 - ? MyDivider(  
295 - ScreenUtil().setWidth(4),  
296 - ScreenUtil().setWidth(46),  
297 - color: MyColours.color_dfdfdf,  
298 - )  
299 - : SizedBox(),  
300 - CommonButtonFlat(  
301 - content: "图文合并",  
302 - state: currIndex == 1 ? 1 : 0,  
303 - fontSize: 28,  
304 - width: w(66),  
305 - left: false,  
306 - right: false,  
307 - onPress: () {  
308 - if (currIndex == 1) return;  
309 - setState(() {  
310 - currIndex = 1;  
311 - });  
312 - },  
313 - ),  
314 - currIndex == 0  
315 - ? MyDivider(  
316 - ScreenUtil().setWidth(4),  
317 - ScreenUtil().setWidth(46),  
318 - color: MyColours.color_dfdfdf,  
319 - )  
320 - : SizedBox(),  
321 - Container(  
322 - child: CommonButtonFlat(  
323 - content: "图文分开",  
324 - left: false,  
325 - state: currIndex == 2 ? 1 : 0,  
326 - fontSize: 28,  
327 - width: w(66),  
328 - onPress: () {  
329 - if (currIndex == 2) return;  
330 - setState(() {  
331 - currIndex = 2;  
332 - });  
333 - },  
334 - )),  
335 - ],  
336 - ),  
337 - ),  
338 - ],  
339 - ));  
340 - }  
341 -  
342 - Widget _introduceWidget(EdgeInsets edgeInsets,  
343 - {double width = double.infinity,  
344 - Color textColor = MyColours.color_515151,  
345 - Color hintColor = MyColours.color_999999,  
346 - BoxDecoration boxDecoration}) {  
347 - return Container(  
348 - width: width,  
349 - alignment: Alignment.centerRight,  
350 - padding: edgeInsets,  
351 - decoration: boxDecoration,  
352 - child: Column(  
353 - crossAxisAlignment: CrossAxisAlignment.end,  
354 - children: [  
355 - Text(  
356 - 'Chief Cook',  
357 - style: TextStyle(color: MyColours.color_B39437, fontSize: font(14)),  
358 - ),  
359 - Text(  
360 - '知名主厨',  
361 - style: TextStyle(color: MyColours.color_B39437, fontSize: font(14)),  
362 - ),  
363 - VEmptyView(16),  
364 - // Text(  
365 - // '${sellername}',  
366 - // style: TextStyle(color: textColor, fontSize: font(14)),  
367 - // ),  
368 - Container(  
369 - width: double.infinity,  
370 - alignment: Alignment.topRight,  
371 - child: TextField(  
372 - textAlign: TextAlign.right,  
373 - controller: chefNameC,  
374 - focusNode: chefNameNode,  
375 - style: TextStyle(  
376 - color: textColor,  
377 - fontSize: ScreenUtil().setSp(28),  
378 - textBaseline: TextBaseline.alphabetic),  
379 - textAlignVertical: TextAlignVertical.center,  
380 - maxLines: 1,  
381 - decoration: InputDecoration(  
382 - hintText: "点这里录入主厨姓名",  
383 - hintStyle: TextStyle(  
384 - color: hintColor,  
385 - fontSize: ScreenUtil().setSp(28),  
386 - ),  
387 - contentPadding: EdgeInsets.zero,  
388 - border: OutlineInputBorder(borderSide: BorderSide.none),  
389 - ),  
390 - keyboardType: TextInputType.text,  
391 - onChanged: (value) {  
392 - setState(() {  
393 - // currentRemark = value ?? "";  
394 - });  
395 - }),  
396 - ),  
397 - VEmptyView(32),  
398 - Container(  
399 - width: double.infinity,  
400 - // margin: EdgeInsets.symmetric(horizontal: w(10)),  
401 - // padding: EdgeInsets.symmetric(horizontal: w(6)),  
402 - decoration: BoxDecoration(  
403 - border: Border(  
404 - right: BorderSide(  
405 - width: w(2), color: MyColours.color_EEAE74))),  
406 - child: Container(  
407 - width: double.infinity,  
408 - padding: EdgeInsets.symmetric(  
409 - horizontal: ScreenUtil().setWidth(12),  
410 - ),  
411 - alignment: Alignment.topRight,  
412 - child: TextField(  
413 - textAlign: TextAlign.right,  
414 - controller: chefIntroduceC,  
415 - focusNode: chefIntroduceNode,  
416 - style: TextStyle(  
417 - height: 2,  
418 - color: textColor,  
419 - fontSize: ScreenUtil().setSp(20),  
420 - textBaseline: TextBaseline.alphabetic),  
421 - textAlignVertical: TextAlignVertical.center,  
422 - maxLines: 7,  
423 - decoration: InputDecoration(  
424 - hintText: "点这里录入主厨介绍文字",  
425 - hintStyle: TextStyle(  
426 - color: hintColor,  
427 - fontSize: ScreenUtil().setSp(20),  
428 - ),  
429 - contentPadding: EdgeInsets.zero,  
430 - border: OutlineInputBorder(borderSide: BorderSide.none),  
431 - ),  
432 - keyboardType: TextInputType.multiline,  
433 - textInputAction: TextInputAction.newline,  
434 - onChanged: (value) {  
435 - setState(() {  
436 - // currentRemark = value ?? "";  
437 - });  
438 - }),  
439 - )),  
440 - ],  
441 - ),  
442 - );  
443 - }  
444 -  
445 Widget _uploadImage({EdgeInsets padding = EdgeInsets.zero}) { 262 Widget _uploadImage({EdgeInsets padding = EdgeInsets.zero}) {
446 return _uploadImageProvider.firstImage.file != null || 263 return _uploadImageProvider.firstImage.file != null ||
447 (_uploadImageProvider.firstImage.qiniuUrl != null && 264 (_uploadImageProvider.firstImage.qiniuUrl != null &&
@@ -605,61 +422,48 @@ class _ChefIntroducePageState extends State<ChefIntroducePage> { @@ -605,61 +422,48 @@ class _ChefIntroducePageState extends State<ChefIntroducePage> {
605 // ); 422 // );
606 } 423 }
607 424
608 - ///图文合并  
609 - Widget _mergingWidget() {  
610 - Color themColor = MyColours.color_0C0F0E;  
611 - int colorValue = null;  
612 - if (_marketingCenterProvider.markDataModel.home != null &&  
613 - _marketingCenterProvider.markDataModel.home.themeColor != null) {  
614 - colorValue =  
615 - int.parse(_marketingCenterProvider.markDataModel.home.themeColor);  
616 - }  
617 - if (colorValue != null) {  
618 - themColor = Color(colorValue);  
619 - }  
620 - return Column(  
621 - children: [  
622 - Stack(  
623 - alignment: Alignment.centerRight,  
624 - children: [  
625 - _uploadImage(  
626 - padding: EdgeInsets.only(right: w(160)),  
627 - ),  
628 - Positioned(  
629 - child: _introduceWidget(  
630 - EdgeInsets.only(  
631 - right: w(15), top: w(23), left: w(7), bottom: w(42)),  
632 - textColor: MyColours.color_ffffff,  
633 - hintColor: MyColours.color_ffffff,  
634 - boxDecoration: BoxDecoration(  
635 - gradient: LinearGradient(  
636 - stops: [0, 1],  
637 - begin: Alignment.topCenter,  
638 - end: Alignment.bottomCenter,  
639 - colors: [  
640 - themColor,  
641 - MyColours.color_4D0C0F0E,  
642 - ],  
643 - ),  
644 - )),  
645 - width: w(160),  
646 - ),  
647 - ],  
648 - ),  
649 - ],  
650 - );  
651 - }  
652 - 425 +
653 ///图文分开 426 ///图文分开
654 Widget _separateWidget() { 427 Widget _separateWidget() {
655 return Column(crossAxisAlignment: CrossAxisAlignment.start, children: [ 428 return Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
656 - _introduceWidget(EdgeInsets.all(w(15)),  
657 - boxDecoration: BoxDecoration(color: MyColours.color_ffffff)),  
658 - VEmptyView(18), 429 + // _introduceWidget(EdgeInsets.all(w(15)),
  430 + // boxDecoration: BoxDecoration(color: MyColours.color_ffffff)),
  431 + // VEmptyView(18),
659 _uploadImage(), 432 _uploadImage(),
660 ]); 433 ]);
661 } 434 }
662 435
  436 + Widget _item(String title, {bool select, GestureTapCallback onTap}) {
  437 + return InkWell(
  438 + onTap: onTap,
  439 + child: Container(
  440 + decoration: BoxDecoration(
  441 + border: Border(
  442 + bottom: BorderSide(
  443 + color: MyColours.color_E7E7E7, width: w(0.5)))),
  444 + margin: EdgeInsets.only(left: w(16)),
  445 + padding: EdgeInsets.only(top: w(12), bottom: w(12), right: w(16)),
  446 + child: Row(
  447 + children: [
  448 + Text(
  449 + title,
  450 + style: TextStyle(
  451 + color: MyColours.color_515151,
  452 + fontSize: ScreenUtil().setWidth(32)),
  453 + ),
  454 + Spacer(),
  455 + Container(
  456 + padding:
  457 + EdgeInsets.symmetric(horizontal: w(7), vertical: w(4)),
  458 + child: Image.asset(
  459 + Utils.getImgPath(select ? 'swich_on' : 'swich_off'),
  460 + width: w(44),
  461 + ),
  462 + )
  463 + ],
  464 + )));
  465 + }
  466 +
663 @override 467 @override
664 Widget build(BuildContext context) { 468 Widget build(BuildContext context) {
665 _uploadImageProvider = 469 _uploadImageProvider =
@@ -682,26 +486,97 @@ class _ChefIntroducePageState extends State<ChefIntroducePage> { @@ -682,26 +486,97 @@ class _ChefIntroducePageState extends State<ChefIntroducePage> {
682 child: SingleChildScrollView( 486 child: SingleChildScrollView(
683 child: Column( 487 child: Column(
684 children: [ 488 children: [
685 - _selectBtnWidget(), 489 + // _selectBtnWidget(),
  490 + // VEmptyView(24),
  491 + // Container(
  492 + // alignment: Alignment.centerLeft,
  493 + // padding: EdgeInsets.only(left: w(16)),
  494 + // height: w(48),
  495 + // child: Text(
  496 + // '效果预览',
  497 + // style: TextStyle(
  498 + // fontSize: font(16),
  499 + // color: MyColours.color_515151),
  500 + // ),
  501 + // ),
  502 + // VEmptyView(24),
  503 + _item('预订安排通知中附加主厨文字介绍', select: addChefIntroduce,
  504 + onTap: () {
  505 + setState(() {
  506 + addChefIntroduce = !addChefIntroduce;
  507 + });
  508 + }),
  509 +
686 VEmptyView(24), 510 VEmptyView(24),
  511 + //输入框
687 Container( 512 Container(
688 - alignment: Alignment.centerLeft,  
689 - padding: EdgeInsets.only(left: w(16)),  
690 - height: w(48),  
691 - child: Text(  
692 - '效果预览',  
693 - style: TextStyle(  
694 - fontSize: font(16),  
695 - color: MyColours.color_515151),  
696 - ), 513 + width: double.infinity,
  514 + margin: EdgeInsets.symmetric(
  515 + horizontal: ScreenUtil().setWidth(40)),
  516 + padding: EdgeInsets.symmetric(
  517 + horizontal: ScreenUtil().setWidth(40),
  518 + vertical: ScreenUtil().setWidth(20)),
  519 + alignment: Alignment.topLeft,
  520 + decoration: BoxDecoration(
  521 + color: MyColours.color_ffffff,
  522 + border: Border.all(
  523 + color: MyColours.color_DBDBDB,
  524 + width: ScreenUtil().setWidth(2)),
  525 + borderRadius: BorderRadius.circular(
  526 + ScreenUtil().setWidth(20))),
  527 + child: TextField(
  528 + controller: chefIntroduceC,
  529 + focusNode: chefIntroduceNode,
  530 + style: TextStyle(
  531 + color: MyColours.color_515151,
  532 + fontSize: ScreenUtil().setSp(28),
  533 + textBaseline: TextBaseline.alphabetic),
  534 + textAlignVertical: TextAlignVertical.center,
  535 + maxLines: 5,
  536 + maxLength: 100,
  537 + decoration: InputDecoration(
  538 + hintText: "点击录入餐厅介绍文字信息,最多100个汉字。",
  539 + hintStyle: TextStyle(
  540 + color: MyColours.color_999999,
  541 + fontSize: ScreenUtil().setSp(28),
  542 + ),
  543 + contentPadding: EdgeInsets.zero,
  544 + border: OutlineInputBorder(
  545 + borderSide: BorderSide.none),
  546 + ),
  547 + keyboardType: TextInputType.text,
  548 + onChanged: (value) {
  549 + setState(() {
  550 + // currentRemark = value ?? "";
  551 + });
  552 + }),
697 ), 553 ),
698 VEmptyView(24), 554 VEmptyView(24),
699 - currIndex == 0  
700 - ? _noTextWidget()  
701 - : currIndex == 1  
702 - ? _mergingWidget()  
703 - : _separateWidget(),  
704 - VEmptyView(18), 555 + Padding(
  556 + padding: EdgeInsets.symmetric(horizontal: w(20)),
  557 + child: MyDivider(
  558 + double.infinity,
  559 + w(0.5),
  560 + color: MyColours.color_DBDBDB,
  561 + )),
  562 + VEmptyView(24),
  563 + // _selectBtnWidget(),
  564 + _item('预订安排通知中附加主厨介绍图片', select: addChefImge, onTap: () {
  565 + setState(() {
  566 + addChefImge = !addChefImge;
  567 + });
  568 + }),
  569 +
  570 + VEmptyView(24),
  571 + _separateWidget(),
  572 + VEmptyView(24),
  573 + _item('主厨介绍文字显示在图片上', select: addAbove, onTap: () {
  574 + setState(() {
  575 + addAbove = !addAbove;
  576 + });
  577 + }),
  578 +
  579 + VEmptyView(24),
705 ], 580 ],
706 ), 581 ),
707 )), 582 )),
@@ -722,24 +597,19 @@ class _ChefIntroducePageState extends State<ChefIntroducePage> { @@ -722,24 +597,19 @@ class _ChefIntroducePageState extends State<ChefIntroducePage> {
722 FocusScope.of(context) 597 FocusScope.of(context)
723 .requestFocus(FocusNode()); //点击空白处隐藏键盘 598 .requestFocus(FocusNode()); //点击空白处隐藏键盘
724 599
725 - if ((currIndex == 1 || currIndex == 2)) {  
726 - if (chefNameC.text.trim().length == 0) {  
727 - Utils.showToast('请输入主厨姓名!');  
728 - return false;  
729 - }  
730 - if (chefIntroduceC.text.trim().length == 0) {  
731 - Utils.showToast('请输入主厨介绍文字!');  
732 - return false;  
733 - }  
734 - if (_uploadImageProvider.firstImage.qiniuUrl == null) {  
735 - Utils.showToast('请上传图片!');  
736 - return false;  
737 - }  
738 -  
739 - if (_uploadImageProvider.firstImage.process < 1) {  
740 - Utils.showToast('正在上传图片,请稍等');  
741 - return false;  
742 - } 600 + if (addChefIntroduce &&
  601 + chefIntroduceC.text.trim().length == 0) {
  602 + Utils.showToast('请输入主厨介绍文字!');
  603 + return false;
  604 + }
  605 + if (_uploadImageProvider.firstImage.qiniuUrl == null) {
  606 + Utils.showToast('请上传图片!');
  607 + return false;
  608 + }
  609 +
  610 + if (_uploadImageProvider.firstImage.process < 1) {
  611 + Utils.showToast('正在上传图片,请稍等');
  612 + return false;
743 } 613 }
744 614
745 // List<String> images = []; 615 // List<String> images = [];
@@ -766,11 +636,11 @@ class _ChefIntroducePageState extends State<ChefIntroducePage> { @@ -766,11 +636,11 @@ class _ChefIntroducePageState extends State<ChefIntroducePage> {
766 636
767 //接口 637 //接口
768 Map chefData = { 638 Map chefData = {
769 - 'style': currIndex.toString(),  
770 - 'seller_name': sellername,  
771 - 'chef_name': chefNameC.text,  
772 'introduce': chefIntroduceC.text, 639 'introduce': chefIntroduceC.text,
773 - 'image': _uploadImageProvider.firstImage.qiniuUrl 640 + 'image': _uploadImageProvider.firstImage.qiniuUrl,
  641 + 'is_introduce': addChefIntroduce ? '1' : '0',
  642 + 'is_images': addChefImge ? '1' : '0',
  643 + 'is_above': addAbove ? '1' : '0'
774 }; 644 };
775 645
776 Map<String, String> params = { 646 Map<String, String> params = {