Showing
9 changed files
with
1055 additions
and
188 deletions
assets/back_white.png
0 → 100644
617 Bytes
assets/yd_bg_new.png
0 → 100644
4.15 MB
assets/yd_edit_new.png
0 → 100644
1.22 KB
assets/yd_logo.png
0 → 100644
67.2 KB
assets/yd_person.png
0 → 100644
222 KB
| @@ -41,10 +41,11 @@ class InvicationPageState extends State<InvicationPage> { | @@ -41,10 +41,11 @@ class InvicationPageState extends State<InvicationPage> { | ||
| 41 | double couponHeight = 180.0; | 41 | double couponHeight = 180.0; |
| 42 | CouponProvider couponProvider; | 42 | CouponProvider couponProvider; |
| 43 | BaseIndoProvider _baseIndoProvider; | 43 | BaseIndoProvider _baseIndoProvider; |
| 44 | - String name = '请填写姓名'; | ||
| 45 | - String position = '请填写职位'; | ||
| 46 | - String phone = '请填写电话'; | 44 | + String name = '填写姓名'; |
| 45 | + String position = '填写职位'; | ||
| 46 | + String phone = '填写电话'; | ||
| 47 | String qiniuUrl = ''; | 47 | String qiniuUrl = ''; |
| 48 | + final GlobalKey key = new GlobalKey(); | ||
| 48 | 49 | ||
| 49 | @override | 50 | @override |
| 50 | void initState() { | 51 | void initState() { |
| @@ -223,6 +224,20 @@ class InvicationPageState extends State<InvicationPage> { | @@ -223,6 +224,20 @@ class InvicationPageState extends State<InvicationPage> { | ||
| 223 | Utils.setBarStatus(true, color: Colors.white); | 224 | Utils.setBarStatus(true, color: Colors.white); |
| 224 | } | 225 | } |
| 225 | 226 | ||
| 227 | + ///浏览照片 | ||
| 228 | + /// | ||
| 229 | + _seePhoto() { | ||
| 230 | + List<String> temp = []; | ||
| 231 | + if (_baseIndoProvider.photoList.length > 0) { | ||
| 232 | + for (int i = 0; i < _baseIndoProvider.photoList.length; i++) { | ||
| 233 | + temp.add(_baseIndoProvider.photoList[i].image); | ||
| 234 | + } | ||
| 235 | + | ||
| 236 | + ///没有上传完成的不可以点击 | ||
| 237 | + _showPhotoView(context, 0, temp); | ||
| 238 | + } | ||
| 239 | + } | ||
| 240 | + | ||
| 226 | @override | 241 | @override |
| 227 | Widget build(BuildContext context) { | 242 | Widget build(BuildContext context) { |
| 228 | // TODO: implement build | 243 | // TODO: implement build |
| @@ -233,7 +248,7 @@ class InvicationPageState extends State<InvicationPage> { | @@ -233,7 +248,7 @@ class InvicationPageState extends State<InvicationPage> { | ||
| 233 | // height: double.infinity, | 248 | // height: double.infinity, |
| 234 | decoration: BoxDecoration( | 249 | decoration: BoxDecoration( |
| 235 | image: DecorationImage( | 250 | image: DecorationImage( |
| 236 | - image: AssetImage("assets/bg_invication.png"), fit: BoxFit.cover), | 251 | + image: AssetImage("assets/yd_bg_new.png"), fit: BoxFit.fill), |
| 237 | ), | 252 | ), |
| 238 | child: Scaffold( | 253 | child: Scaffold( |
| 239 | backgroundColor: Colors.transparent, | 254 | backgroundColor: Colors.transparent, |
| @@ -241,7 +256,7 @@ class InvicationPageState extends State<InvicationPage> { | @@ -241,7 +256,7 @@ class InvicationPageState extends State<InvicationPage> { | ||
| 241 | child: Stack( | 256 | child: Stack( |
| 242 | children: [ | 257 | children: [ |
| 243 | Container( | 258 | Container( |
| 244 | - margin: EdgeInsets.only(top: ScreenUtil().setWidth(10 * 2)), | 259 | + margin: EdgeInsets.only(top: ScreenUtil().setWidth(13 * 2)), |
| 245 | padding: | 260 | padding: |
| 246 | EdgeInsets.only(top: ScreenUtil().setWidth(35 * 2)), | 261 | EdgeInsets.only(top: ScreenUtil().setWidth(35 * 2)), |
| 247 | child: Column(children: [ | 262 | child: Column(children: [ |
| @@ -254,58 +269,57 @@ class InvicationPageState extends State<InvicationPage> { | @@ -254,58 +269,57 @@ class InvicationPageState extends State<InvicationPage> { | ||
| 254 | child: Column( | 269 | child: Column( |
| 255 | children: <Widget>[ | 270 | children: <Widget>[ |
| 256 | Image.asset( | 271 | Image.asset( |
| 257 | - "assets/img_ydap.png", | ||
| 258 | - width: ScreenUtil().setWidth(220 * 2), | ||
| 259 | - height: ScreenUtil().setHeight(98 * 2), | 272 | + "assets/yd_logo.png", |
| 273 | + width: ScreenUtil().setWidth(233 * 2), | ||
| 274 | + height: ScreenUtil().setHeight(51 * 2), | ||
| 260 | ), | 275 | ), |
| 261 | - VEmptyView(10), | 276 | + VEmptyView(26), |
| 262 | Container( | 277 | Container( |
| 263 | margin: EdgeInsets.symmetric( | 278 | margin: EdgeInsets.symmetric( |
| 264 | horizontal: ScreenUtil().setWidth(40)), | 279 | horizontal: ScreenUtil().setWidth(40)), |
| 265 | // padding: EdgeInsets.all( | 280 | // padding: EdgeInsets.all( |
| 266 | // ScreenUtil().setWidth(60)), | 281 | // ScreenUtil().setWidth(60)), |
| 267 | - decoration: BoxDecoration( | ||
| 268 | - gradient: LinearGradient( | ||
| 269 | - begin: Alignment.topCenter, | ||
| 270 | - end: Alignment.bottomCenter, | ||
| 271 | - colors: [ | ||
| 272 | - MyColours.color_F7F1E8, | ||
| 273 | - MyColours.color_E3D6C7, | ||
| 274 | - ], | ||
| 275 | - ), | ||
| 276 | - borderRadius: BorderRadius.circular( | ||
| 277 | - ScreenUtil().setWidth(10))), | 282 | + // decoration: BoxDecoration( |
| 283 | + // gradient: LinearGradient( | ||
| 284 | + // begin: Alignment.topCenter, | ||
| 285 | + // end: Alignment.bottomCenter, | ||
| 286 | + // colors: [ | ||
| 287 | + // MyColours.color_F7F1E8, | ||
| 288 | + // MyColours.color_E3D6C7, | ||
| 289 | + // ], | ||
| 290 | + // ), | ||
| 291 | + // borderRadius: BorderRadius.circular( | ||
| 292 | + // ScreenUtil().setWidth(10))), | ||
| 278 | child: Column( | 293 | child: Column( |
| 279 | crossAxisAlignment: | 294 | crossAxisAlignment: |
| 280 | CrossAxisAlignment.center, | 295 | CrossAxisAlignment.center, |
| 281 | children: [ | 296 | children: [ |
| 282 | Container( | 297 | Container( |
| 298 | + // color: Colors.red, | ||
| 283 | width: | 299 | width: |
| 284 | ScreenUtil().setWidth(335 * 2), | 300 | ScreenUtil().setWidth(335 * 2), |
| 285 | height: | 301 | height: |
| 286 | ScreenUtil().setWidth(200 * 2), | 302 | ScreenUtil().setWidth(200 * 2), |
| 287 | - decoration: BoxDecoration( | ||
| 288 | - image: DecorationImage( | ||
| 289 | - alignment: | ||
| 290 | - Alignment.topCenter, | ||
| 291 | - image: AssetImage( | ||
| 292 | - "assets/yd_baiinfo_bg.png"), | ||
| 293 | - fit: BoxFit.cover), | ||
| 294 | - ), | 303 | + // decoration: BoxDecoration( |
| 304 | + // image: DecorationImage( | ||
| 305 | + // alignment: | ||
| 306 | + // Alignment.topCenter, | ||
| 307 | + // image: AssetImage( | ||
| 308 | + // "assets/yd_baiinfo_bg.png"), | ||
| 309 | + // fit: BoxFit.cover), | ||
| 310 | + // ), | ||
| 295 | child: Row( | 311 | child: Row( |
| 296 | crossAxisAlignment: | 312 | crossAxisAlignment: |
| 297 | CrossAxisAlignment.start, | 313 | CrossAxisAlignment.start, |
| 298 | children: [ | 314 | children: [ |
| 299 | Padding( | 315 | Padding( |
| 300 | padding: EdgeInsets.only( | 316 | padding: EdgeInsets.only( |
| 301 | - top: ScreenUtil() | ||
| 302 | - .setWidth(20), | ||
| 303 | left: ScreenUtil() | 317 | left: ScreenUtil() |
| 304 | - .setWidth(60)), | 318 | + .setWidth(70)), |
| 305 | child: qiniuUrl == '' | 319 | child: qiniuUrl == '' |
| 306 | ? Image.asset( | 320 | ? Image.asset( |
| 307 | Utils.getImgPath( | 321 | Utils.getImgPath( |
| 308 | - 'person'), | 322 | + 'yd_person'), |
| 309 | width: ScreenUtil().setWidth( | 323 | width: ScreenUtil().setWidth( |
| 310 | 143 * 2), | 324 | 143 * 2), |
| 311 | height: ScreenUtil() | 325 | height: ScreenUtil() |
| @@ -321,17 +335,20 @@ class InvicationPageState extends State<InvicationPage> { | @@ -321,17 +335,20 @@ class InvicationPageState extends State<InvicationPage> { | ||
| 321 | HEmptyView(10), | 335 | HEmptyView(10), |
| 322 | Spacer(), | 336 | Spacer(), |
| 323 | Container( | 337 | Container( |
| 324 | - height: ScreenUtil() | ||
| 325 | - .setWidth(200 * 2), | 338 | + padding: EdgeInsets.only( |
| 339 | + top: ScreenUtil() | ||
| 340 | + .setWidth(37 * 2)), | ||
| 341 | + // height: ScreenUtil() | ||
| 342 | + // .setWidth(200 * 2), | ||
| 326 | child: Column( | 343 | child: Column( |
| 327 | mainAxisAlignment: | 344 | mainAxisAlignment: |
| 328 | MainAxisAlignment | 345 | MainAxisAlignment |
| 329 | .start, | 346 | .start, |
| 330 | crossAxisAlignment: | 347 | crossAxisAlignment: |
| 331 | CrossAxisAlignment | 348 | CrossAxisAlignment |
| 332 | - .start, | 349 | + .end, |
| 333 | children: [ | 350 | children: [ |
| 334 | - VEmptyView(60), | 351 | + // VEmptyView(60), |
| 335 | GestureDetector( | 352 | GestureDetector( |
| 336 | behavior: | 353 | behavior: |
| 337 | HitTestBehavior | 354 | HitTestBehavior |
| @@ -342,29 +359,29 @@ class InvicationPageState extends State<InvicationPage> { | @@ -342,29 +359,29 @@ class InvicationPageState extends State<InvicationPage> { | ||
| 342 | child: Container( | 359 | child: Container( |
| 343 | width: ScreenUtil() | 360 | width: ScreenUtil() |
| 344 | .setWidth( | 361 | .setWidth( |
| 345 | - 100 * 2), | 362 | + 120 * 2), |
| 346 | height: ScreenUtil() | 363 | height: ScreenUtil() |
| 347 | .setWidth( | 364 | .setWidth( |
| 348 | - 24 * 2), | 365 | + 42 * 2), |
| 349 | child: Text( | 366 | child: Text( |
| 350 | name, | 367 | name, |
| 351 | overflow: | 368 | overflow: |
| 352 | TextOverflow | 369 | TextOverflow |
| 353 | .ellipsis, | 370 | .ellipsis, |
| 371 | + textAlign: | ||
| 372 | + TextAlign | ||
| 373 | + .right, | ||
| 354 | style: TextStyle( | 374 | style: TextStyle( |
| 355 | - fontWeight: | ||
| 356 | - FontWeight | ||
| 357 | - .bold, | ||
| 358 | color: MyColours | 375 | color: MyColours |
| 359 | - .color_794F28, | 376 | + .color_ffffff, |
| 360 | fontSize: | 377 | fontSize: |
| 361 | ScreenUtil() | 378 | ScreenUtil() |
| 362 | .setSp( | 379 | .setSp( |
| 363 | - 36)), | 380 | + 60)), |
| 364 | ), | 381 | ), |
| 365 | ), | 382 | ), |
| 366 | ), | 383 | ), |
| 367 | - VEmptyView(6), | 384 | + // VEmptyView(6), |
| 368 | InkWell( | 385 | InkWell( |
| 369 | onTap: () { | 386 | onTap: () { |
| 370 | _goBaseInfoPage(); | 387 | _goBaseInfoPage(); |
| @@ -372,26 +389,29 @@ class InvicationPageState extends State<InvicationPage> { | @@ -372,26 +389,29 @@ class InvicationPageState extends State<InvicationPage> { | ||
| 372 | child: Container( | 389 | child: Container( |
| 373 | width: ScreenUtil() | 390 | width: ScreenUtil() |
| 374 | .setWidth( | 391 | .setWidth( |
| 375 | - 100 * 2), | 392 | + 120 * 2), |
| 376 | height: | 393 | height: |
| 377 | ScreenUtil() | 394 | ScreenUtil() |
| 378 | .setWidth( | 395 | .setWidth( |
| 379 | - 18 * | 396 | + 22 * |
| 380 | 2), | 397 | 2), |
| 381 | child: Text( | 398 | child: Text( |
| 382 | - position, | 399 | + phone, |
| 383 | overflow: | 400 | overflow: |
| 384 | TextOverflow | 401 | TextOverflow |
| 385 | .ellipsis, | 402 | .ellipsis, |
| 403 | + textAlign: | ||
| 404 | + TextAlign | ||
| 405 | + .right, | ||
| 386 | style: TextStyle( | 406 | style: TextStyle( |
| 387 | color: MyColours | 407 | color: MyColours |
| 388 | - .color_794F28, | 408 | + .color_ffffff, |
| 389 | fontSize: ScreenUtil() | 409 | fontSize: ScreenUtil() |
| 390 | .setSp( | 410 | .setSp( |
| 391 | - 28)), | 411 | + 32)), |
| 392 | ), | 412 | ), |
| 393 | )), | 413 | )), |
| 394 | - VEmptyView(6), | 414 | + // VEmptyView(6), |
| 395 | InkWell( | 415 | InkWell( |
| 396 | onTap: () { | 416 | onTap: () { |
| 397 | _goBaseInfoPage(); | 417 | _goBaseInfoPage(); |
| @@ -399,38 +419,43 @@ class InvicationPageState extends State<InvicationPage> { | @@ -399,38 +419,43 @@ class InvicationPageState extends State<InvicationPage> { | ||
| 399 | child: Container( | 419 | child: Container( |
| 400 | width: ScreenUtil() | 420 | width: ScreenUtil() |
| 401 | .setWidth( | 421 | .setWidth( |
| 402 | - 100 * 2), | 422 | + 120 * 2), |
| 403 | height: | 423 | height: |
| 404 | ScreenUtil() | 424 | ScreenUtil() |
| 405 | .setWidth( | 425 | .setWidth( |
| 406 | - 18 * | 426 | + 24 * |
| 407 | 2), | 427 | 2), |
| 408 | child: Text( | 428 | child: Text( |
| 409 | - phone, | 429 | + position, |
| 410 | overflow: | 430 | overflow: |
| 411 | TextOverflow | 431 | TextOverflow |
| 412 | .ellipsis, | 432 | .ellipsis, |
| 433 | + textAlign: | ||
| 434 | + TextAlign | ||
| 435 | + .right, | ||
| 413 | style: TextStyle( | 436 | style: TextStyle( |
| 414 | color: MyColours | 437 | color: MyColours |
| 415 | - .color_794F28, | 438 | + .color_ffffff, |
| 416 | fontSize: ScreenUtil() | 439 | fontSize: ScreenUtil() |
| 417 | .setSp( | 440 | .setSp( |
| 418 | - 28)), | 441 | + 34)), |
| 419 | ), | 442 | ), |
| 420 | )), | 443 | )), |
| 421 | - VEmptyView(14), | 444 | + |
| 422 | RoundButton( | 445 | RoundButton( |
| 446 | + // width: ScreenUtil().setWidth(95), | ||
| 423 | height: ScreenUtil() | 447 | height: ScreenUtil() |
| 424 | - .setWidth(94 * 2), | 448 | + .setWidth(60 * 2), |
| 425 | image: | 449 | image: |
| 426 | Utils.getImgPath( | 450 | Utils.getImgPath( |
| 427 | - 'yd_bianji'), | 451 | + 'yd_edit_new'), |
| 428 | imgWidth: 24, | 452 | imgWidth: 24, |
| 453 | + radius: 0, | ||
| 429 | space: ScreenUtil() | 454 | space: ScreenUtil() |
| 430 | .setWidth(20), | 455 | .setWidth(20), |
| 431 | text: '编辑', | 456 | text: '编辑', |
| 432 | textColor: MyColours | 457 | textColor: MyColours |
| 433 | - .color_794F28, | 458 | + .color_BA9953, |
| 434 | isBold: false, | 459 | isBold: false, |
| 435 | fontSize: 28, | 460 | fontSize: 28, |
| 436 | gradientStart: Colors | 461 | gradientStart: Colors |
| @@ -456,150 +481,147 @@ class InvicationPageState extends State<InvicationPage> { | @@ -456,150 +481,147 @@ class InvicationPageState extends State<InvicationPage> { | ||
| 456 | // )) | 481 | // )) |
| 457 | // ], | 482 | // ], |
| 458 | // ), | 483 | // ), |
| 484 | + // Container( | ||
| 485 | + // color: MyColours.color_EEDBC4, | ||
| 486 | + // width: double.infinity, | ||
| 487 | + // height: ScreenUtil().setWidth(40), | ||
| 488 | + // ), | ||
| 489 | + VEmptyView(76), | ||
| 490 | + // Image.asset( | ||
| 491 | + // "assets/yd_up.png", | ||
| 492 | + // width: ScreenUtil().setWidth(195 * 2), | ||
| 493 | + // height: | ||
| 494 | + // ScreenUtil().setHeight(33 * 2), | ||
| 495 | + // ), | ||
| 496 | + // VEmptyView(50), | ||
| 459 | Container( | 497 | Container( |
| 460 | - color: MyColours.color_EEDBC4, | ||
| 461 | - width: double.infinity, | ||
| 462 | - height: ScreenUtil().setWidth(40), | ||
| 463 | - ), | ||
| 464 | - VEmptyView(40), | ||
| 465 | - Image.asset( | ||
| 466 | - "assets/yd_up.png", | ||
| 467 | - width: ScreenUtil().setWidth(195 * 2), | ||
| 468 | - height: | ||
| 469 | - ScreenUtil().setHeight(33 * 2), | ||
| 470 | - ), | ||
| 471 | - VEmptyView(50), | ||
| 472 | - Container( | ||
| 473 | - height: ScreenUtil().setWidth(48), | 498 | + height: ScreenUtil().setWidth(58), |
| 474 | child: Text( | 499 | child: Text( |
| 475 | user.sellername, | 500 | user.sellername, |
| 476 | style: TextStyle( | 501 | style: TextStyle( |
| 477 | - letterSpacing: ScreenUtil() | ||
| 478 | - .setWidth(2.13 * 2), | ||
| 479 | - color: MyColours.color_794F28, | ||
| 480 | - fontWeight: FontWeight.bold, | 502 | + // letterSpacing: ScreenUtil() |
| 503 | + // .setWidth(2.13 * 2), | ||
| 504 | + color: MyColours.color_BA9953, | ||
| 505 | + // fontWeight: FontWeight.bold, | ||
| 481 | fontSize: | 506 | fontSize: |
| 482 | - ScreenUtil().setSp(36)), | 507 | + ScreenUtil().setSp(42)), |
| 483 | ), | 508 | ), |
| 484 | ), | 509 | ), |
| 485 | - VEmptyView(30), | 510 | + VEmptyView(14), |
| 486 | Container( | 511 | Container( |
| 487 | - height: ScreenUtil().setWidth(36), | 512 | + height: ScreenUtil().setWidth(58), |
| 488 | child: Text( | 513 | child: Text( |
| 489 | - '已为您安排在包间', | 514 | + '${dateTimeStr}', |
| 490 | style: TextStyle( | 515 | style: TextStyle( |
| 491 | letterSpacing: ScreenUtil() | 516 | letterSpacing: ScreenUtil() |
| 492 | - .setWidth(1.7 * 2), | ||
| 493 | - color: MyColours.color_C19E5B, | 517 | + .setWidth(1.8 * 2), |
| 518 | + color: MyColours.color_BA9953, | ||
| 494 | fontSize: | 519 | fontSize: |
| 495 | - ScreenUtil().setSp(28)), | 520 | + ScreenUtil().setSp(42)), |
| 496 | ), | 521 | ), |
| 497 | ), | 522 | ), |
| 498 | - VEmptyView(12), | ||
| 499 | - Row( | ||
| 500 | - mainAxisAlignment: | ||
| 501 | - MainAxisAlignment.center, | ||
| 502 | - children: [ | ||
| 503 | - Image.asset( | ||
| 504 | - "assets/bj_left.png", | ||
| 505 | - width: | ||
| 506 | - ScreenUtil().setWidth(30 * 2), | ||
| 507 | - height: ScreenUtil() | ||
| 508 | - .setHeight(58 * 2), | ||
| 509 | - ), | ||
| 510 | - Container( | ||
| 511 | - height: ScreenUtil().setWidth(48), | ||
| 512 | - child: Text( | ||
| 513 | - widget.tableInfo | ||
| 514 | - .replaceAll("\n", ""), | ||
| 515 | - style: TextStyle( | ||
| 516 | - letterSpacing: ScreenUtil() | ||
| 517 | - .setWidth(2.13 * 2), | ||
| 518 | - color: | ||
| 519 | - MyColours.color_794F28, | ||
| 520 | - fontWeight: FontWeight.bold, | ||
| 521 | - fontSize: | ||
| 522 | - ScreenUtil().setSp(42)), | ||
| 523 | - ), | ||
| 524 | - ), | ||
| 525 | - Image.asset( | ||
| 526 | - "assets/bj_right.png", | ||
| 527 | - width: | ||
| 528 | - ScreenUtil().setWidth(30 * 2), | ||
| 529 | - height: ScreenUtil() | ||
| 530 | - .setHeight(58 * 2), | ||
| 531 | - ), | ||
| 532 | - ], | ||
| 533 | - ), | ||
| 534 | - _baseIndoProvider.photoList.length > 0 | ||
| 535 | - ? VEmptyView(18) | ||
| 536 | - : Container(), | ||
| 537 | - _baseIndoProvider.photoList.length > 0 | ||
| 538 | - ? RoundButton( | ||
| 539 | - onPressed: () { | ||
| 540 | - List<String> temp = []; | ||
| 541 | - if (_baseIndoProvider | ||
| 542 | - .photoList.length > | ||
| 543 | - 0) { | ||
| 544 | - for (int i = 0; | ||
| 545 | - i < | ||
| 546 | - _baseIndoProvider | ||
| 547 | - .photoList | ||
| 548 | - .length; | ||
| 549 | - i++) { | ||
| 550 | - temp.add(_baseIndoProvider | ||
| 551 | - .photoList[i].image); | ||
| 552 | - } | ||
| 553 | - | ||
| 554 | - ///没有上传完成的不可以点击 | ||
| 555 | - _showPhotoView( | ||
| 556 | - context, 0, temp); | ||
| 557 | - } | ||
| 558 | - }, | ||
| 559 | - text: '浏览照片', | ||
| 560 | - width: ScreenUtil() | ||
| 561 | - .setWidth(68 * 2), | ||
| 562 | - height: ScreenUtil() | ||
| 563 | - .setWidth(24 * 2), | ||
| 564 | - fontSize: 26, | ||
| 565 | - textColor: | ||
| 566 | - MyColours.color_794F28, | ||
| 567 | - isBold: false, | ||
| 568 | - gradientStart: Color.fromRGBO( | ||
| 569 | - 121, 79, 40, 0.1), | ||
| 570 | - gradientEnd: Color.fromRGBO( | ||
| 571 | - 121, 79, 40, 0.1), | ||
| 572 | - ) | ||
| 573 | - : Container(), | ||
| 574 | - VEmptyView(60), | 523 | + VEmptyView(26), |
| 575 | Container( | 524 | Container( |
| 576 | - height: ScreenUtil().setWidth(40), | 525 | + height: ScreenUtil().setWidth(44), |
| 577 | child: Text( | 526 | child: Text( |
| 578 | - '时间:${dateTimeStr}', | 527 | + '已为您安排在包间', |
| 579 | style: TextStyle( | 528 | style: TextStyle( |
| 580 | - letterSpacing: ScreenUtil() | ||
| 581 | - .setWidth(1.8 * 2), | ||
| 582 | - color: MyColours.color_794F28, | ||
| 583 | - fontWeight: FontWeight.bold, | 529 | + color: MyColours.color_ffffff, |
| 584 | fontSize: | 530 | fontSize: |
| 585 | - ScreenUtil().setSp(30)), | 531 | + ScreenUtil().setSp(32)), |
| 586 | ), | 532 | ), |
| 587 | ), | 533 | ), |
| 588 | - VEmptyView(20), | 534 | + VEmptyView(28), |
| 535 | + GestureDetector( | ||
| 536 | + onTap: () { | ||
| 537 | + _seePhoto(); | ||
| 538 | + }, | ||
| 539 | + child: Container( | ||
| 540 | + child: Stack( | ||
| 541 | + alignment: Alignment.bottomCenter, | ||
| 542 | + overflow: Overflow.visible, | ||
| 543 | + children: [ | ||
| 544 | + Container( | ||
| 545 | + constraints: BoxConstraints( | ||
| 546 | + maxWidth: ScreenUtil() | ||
| 547 | + .setWidth(195 * 2)), | ||
| 548 | + padding: EdgeInsets.fromLTRB( | ||
| 549 | + ScreenUtil().setWidth(60), | ||
| 550 | + ScreenUtil().setWidth(30), | ||
| 551 | + ScreenUtil().setWidth(60), | ||
| 552 | + ScreenUtil() | ||
| 553 | + .setWidth(24 * 2)), | ||
| 554 | + // height: | ||
| 555 | + // ScreenUtil().setWidth(84 * 2), | ||
| 556 | + decoration: BoxDecoration( | ||
| 557 | + borderRadius: BorderRadius | ||
| 558 | + .all(Radius.circular( | ||
| 559 | + ScreenUtil() | ||
| 560 | + .setWidth( | ||
| 561 | + 13 * 2))), | ||
| 562 | + border: Border.all( | ||
| 563 | + color: MyColours | ||
| 564 | + .color_BA9953, | ||
| 565 | + width: ScreenUtil() | ||
| 566 | + .setWidth(4))), | ||
| 567 | + child: Text( | ||
| 568 | + widget.tableInfo | ||
| 569 | + .replaceAll("\n", ""), | ||
| 570 | + style: TextStyle( | ||
| 571 | + // letterSpacing: ScreenUtil() | ||
| 572 | + // .setWidth(2.13 * 2), | ||
| 573 | + color: MyColours | ||
| 574 | + .color_BA9953, | ||
| 575 | + fontWeight: | ||
| 576 | + FontWeight.bold, | ||
| 577 | + fontSize: ScreenUtil() | ||
| 578 | + .setSp(52)), | ||
| 579 | + ), | ||
| 580 | + ), | ||
| 581 | + Positioned( | ||
| 582 | + key: key, | ||
| 583 | + bottom: ScreenUtil() | ||
| 584 | + .setWidth(-24), | ||
| 585 | + child: _baseIndoProvider | ||
| 586 | + .photoList | ||
| 587 | + .length > | ||
| 588 | + 0 | ||
| 589 | + ? RoundButton( | ||
| 590 | + onPressed: () { | ||
| 591 | + _seePhoto(); | ||
| 592 | + }, | ||
| 593 | + text: '浏览照片', | ||
| 594 | + width: ScreenUtil() | ||
| 595 | + .setWidth(68 * 2), | ||
| 596 | + height: ScreenUtil() | ||
| 597 | + .setWidth(24 * 2), | ||
| 598 | + fontSize: 26, | ||
| 599 | + textColor: MyColours | ||
| 600 | + .color_333333, | ||
| 601 | + isBold: false, | ||
| 602 | + gradientStart: | ||
| 603 | + MyColours | ||
| 604 | + .color_BA9953, | ||
| 605 | + gradientEnd: MyColours | ||
| 606 | + .color_BA9953, | ||
| 607 | + ) | ||
| 608 | + : Container(), | ||
| 609 | + ) | ||
| 610 | + ], | ||
| 611 | + ))), | ||
| 612 | + | ||
| 613 | + VEmptyView(70), | ||
| 589 | Container( | 614 | Container( |
| 590 | // height: ScreenUtil().setWidth(40), | 615 | // height: ScreenUtil().setWidth(40), |
| 591 | child: Text( | 616 | child: Text( |
| 592 | - '地址:${user.sellerAddr}', | 617 | + '${user.sellerAddr}', |
| 593 | maxLines: 3, | 618 | maxLines: 3, |
| 594 | overflow: TextOverflow.ellipsis, | 619 | overflow: TextOverflow.ellipsis, |
| 595 | textAlign: TextAlign.center, | 620 | textAlign: TextAlign.center, |
| 596 | style: TextStyle( | 621 | style: TextStyle( |
| 597 | - letterSpacing: ScreenUtil() | ||
| 598 | - .setWidth(1.8 * 2), | ||
| 599 | - color: MyColours.color_794F28, | ||
| 600 | - fontWeight: FontWeight.bold, | 622 | + color: MyColours.color_BA9953, |
| 601 | fontSize: | 623 | fontSize: |
| 602 | - ScreenUtil().setSp(30)), | 624 | + ScreenUtil().setSp(28)), |
| 603 | ), | 625 | ), |
| 604 | ), | 626 | ), |
| 605 | // VEmptyView(20), | 627 | // VEmptyView(20), |
| @@ -615,14 +637,14 @@ class InvicationPageState extends State<InvicationPage> { | @@ -615,14 +637,14 @@ class InvicationPageState extends State<InvicationPage> { | ||
| 615 | // gradientEnd: | 637 | // gradientEnd: |
| 616 | // Color.fromRGBO(121, 79, 40, 0.1), | 638 | // Color.fromRGBO(121, 79, 40, 0.1), |
| 617 | // ), | 639 | // ), |
| 618 | - VEmptyView(50), | ||
| 619 | - Image.asset( | ||
| 620 | - "assets/yd_down.png", | ||
| 621 | - width: ScreenUtil().setWidth(195 * 2), | ||
| 622 | - height: | ||
| 623 | - ScreenUtil().setHeight(33 * 2), | ||
| 624 | - ), | ||
| 625 | - VEmptyView(60), | 640 | + // VEmptyView(50), |
| 641 | + // Image.asset( | ||
| 642 | + // "assets/yd_down.png", | ||
| 643 | + // width: ScreenUtil().setWidth(195 * 2), | ||
| 644 | + // height: | ||
| 645 | + // ScreenUtil().setHeight(33 * 2), | ||
| 646 | + // ), | ||
| 647 | + // VEmptyView(60), | ||
| 626 | ], | 648 | ], |
| 627 | ), | 649 | ), |
| 628 | ) | 650 | ) |
| @@ -761,14 +783,13 @@ class InvicationPageState extends State<InvicationPage> { | @@ -761,14 +783,13 @@ class InvicationPageState extends State<InvicationPage> { | ||
| 761 | child: Container( | 783 | child: Container( |
| 762 | padding: EdgeInsets.fromLTRB( | 784 | padding: EdgeInsets.fromLTRB( |
| 763 | ScreenUtil().setWidth(40), | 785 | ScreenUtil().setWidth(40), |
| 764 | - ScreenUtil().setWidth(40), | 786 | + ScreenUtil().setWidth(28), |
| 765 | ScreenUtil().setWidth(200), | 787 | ScreenUtil().setWidth(200), |
| 766 | ScreenUtil().setWidth(100), | 788 | ScreenUtil().setWidth(100), |
| 767 | ), | 789 | ), |
| 768 | alignment: Alignment.centerLeft, | 790 | alignment: Alignment.centerLeft, |
| 769 | - // color: Colors.red, | ||
| 770 | child: Image.asset( | 791 | child: Image.asset( |
| 771 | - "assets/invication_back.png", | 792 | + "assets/back_white.png", |
| 772 | width: ScreenUtil().setWidth(20), | 793 | width: ScreenUtil().setWidth(20), |
| 773 | height: ScreenUtil().setHeight(31), | 794 | height: ScreenUtil().setHeight(31), |
| 774 | )), | 795 | )), |
lib/pages/invicate/invitation_page_old.dart
0 → 100644
| 1 | +// import 'package:cached_network_image/cached_network_image.dart'; | ||
| 2 | +// import 'package:common_utils/common_utils.dart'; | ||
| 3 | +// import 'package:flutter/material.dart'; | ||
| 4 | +// import 'package:flutter_screenutil/flutter_screenutil.dart'; | ||
| 5 | +// import 'package:one_key/models/seller_phone_model.dart'; | ||
| 6 | +// import 'package:one_key/models/user.dart'; | ||
| 7 | +// import 'package:one_key/pages/online_check/photo_view_wiget.dart'; | ||
| 8 | +// import 'package:one_key/provider/base_info_provider.dart'; | ||
| 9 | +// import 'package:one_key/provider/coupon_provider.dart'; | ||
| 10 | +// import 'package:one_key/provider/user_model.dart'; | ||
| 11 | +// import 'package:one_key/res/colors.dart'; | ||
| 12 | +// import 'package:one_key/utils/navigator_util.dart'; | ||
| 13 | +// import 'package:one_key/utils/utils.dart'; | ||
| 14 | +// import 'package:one_key/widgets/h_empty_view.dart'; | ||
| 15 | +// import 'package:one_key/widgets/round_button.dart'; | ||
| 16 | +// import 'package:one_key/widgets/v_empty_view.dart'; | ||
| 17 | +// import 'package:provider/provider.dart'; | ||
| 18 | + | ||
| 19 | +// class InvicationPage extends StatefulWidget { | ||
| 20 | +// final String rid; //预订订单id | ||
| 21 | +// final String tableInfo; //桌位信息 | ||
| 22 | +// final String ddate; | ||
| 23 | +// final String ddateStr; | ||
| 24 | +// final String phone; | ||
| 25 | + | ||
| 26 | +// InvicationPage( | ||
| 27 | +// this.rid, this.tableInfo, this.ddate, this.ddateStr, this.phone); | ||
| 28 | + | ||
| 29 | +// @override | ||
| 30 | +// State<StatefulWidget> createState() { | ||
| 31 | +// // TODO: implement createState | ||
| 32 | +// return new InvicationPageState(); | ||
| 33 | +// } | ||
| 34 | +// } | ||
| 35 | + | ||
| 36 | +// class InvicationPageState extends State<InvicationPage> { | ||
| 37 | +// User user; | ||
| 38 | +// DateTime dateTime; | ||
| 39 | +// String dateTimeStr = ""; | ||
| 40 | +// ScrollController controller = ScrollController(); | ||
| 41 | +// double couponHeight = 180.0; | ||
| 42 | +// CouponProvider couponProvider; | ||
| 43 | +// BaseIndoProvider _baseIndoProvider; | ||
| 44 | +// String name = '请填写姓名'; | ||
| 45 | +// String position = '请填写职位'; | ||
| 46 | +// String phone = '请填写电话'; | ||
| 47 | +// String qiniuUrl = ''; | ||
| 48 | + | ||
| 49 | +// @override | ||
| 50 | +// void initState() { | ||
| 51 | +// super.initState(); | ||
| 52 | + | ||
| 53 | +// WidgetsBinding.instance.addPostFrameCallback((_) { | ||
| 54 | +// _getActivityByRid(); | ||
| 55 | +// _getCustomerActivityBaseinfo(); | ||
| 56 | +// _getSellerPhotoById(); | ||
| 57 | +// }); | ||
| 58 | +// Utils.changeStatusColor(color: Colors.transparent); | ||
| 59 | +// dateTime = | ||
| 60 | +// DateTime.fromMillisecondsSinceEpoch(int.parse(widget.ddate) * 1000); | ||
| 61 | +// user = Provider.of<UserModel>(context, listen: false).user; | ||
| 62 | +// dateTimeStr = | ||
| 63 | +// "${dateTime.year}/${Utils.addZeroNumber(dateTime.month)}/${Utils.addZeroNumber(dateTime.day)} 星期${Utils.formatWeekDayNum(dateTime.weekday)} ${widget.ddateStr}"; | ||
| 64 | +// } | ||
| 65 | + | ||
| 66 | +// _getSellerPhotoById() async { | ||
| 67 | +// Map<String, String> params = { | ||
| 68 | +// 'sellerid': Provider.of<UserModel>(context, listen: false).user.sellerid, | ||
| 69 | +// "type": '2', | ||
| 70 | +// }; | ||
| 71 | +// bool success = await _baseIndoProvider.getSellerPhotoById(context, params); | ||
| 72 | +// } | ||
| 73 | + | ||
| 74 | +// _getCustomerActivityBaseinfo() async { | ||
| 75 | +// Map<String, String> params = { | ||
| 76 | +// 'sellerid': Provider.of<UserModel>(context, listen: false).user.sellerid, | ||
| 77 | +// "uid": Provider.of<UserModel>(context, listen: false).user.openid, | ||
| 78 | +// }; | ||
| 79 | +// bool success = | ||
| 80 | +// await _baseIndoProvider.getCustomerActivityBaseinfo(context, params); | ||
| 81 | +// if (success) { | ||
| 82 | +// name = _baseIndoProvider.baseInfoSunModel.name; | ||
| 83 | +// qiniuUrl = _baseIndoProvider.baseInfoSunModel.photo; | ||
| 84 | +// // _uploadImageProvider.erweima.qiniuUrl = | ||
| 85 | +// // _baseIndoProvider.baseInfoSunModel.qrcode; | ||
| 86 | +// phone = _baseIndoProvider.baseInfoSunModel.phone; | ||
| 87 | +// position = _baseIndoProvider.baseInfoSunModel.position; | ||
| 88 | +// setState(() {}); | ||
| 89 | +// } else { | ||
| 90 | +// // name = '请填写姓名'; | ||
| 91 | +// // position = '请填写职位'; | ||
| 92 | +// // phone = '请填写电话'; | ||
| 93 | +// // qiniuUrl = ''; | ||
| 94 | +// } | ||
| 95 | +// } | ||
| 96 | + | ||
| 97 | +// _getActivityByRid() async { | ||
| 98 | +// Map<String, String> params = { | ||
| 99 | +// "rid": widget.rid, | ||
| 100 | +// }; | ||
| 101 | +// await couponProvider.getActivityByRid(context, params, isShowLoading: true); | ||
| 102 | +// //flase默认5个 true 不默认5个 | ||
| 103 | +// if (!couponProvider.hasModify) { | ||
| 104 | +// //没有绑定的券,默认给5个,获取优惠券列表 | ||
| 105 | +// _couponNetworkData(isShowLoading: true); | ||
| 106 | +// } | ||
| 107 | +// } | ||
| 108 | + | ||
| 109 | +// ///消费券默认5张 | ||
| 110 | +// _couponNetworkData({bool isShowLoading = true}) async { | ||
| 111 | +// Map<String, String> params = { | ||
| 112 | +// "uid": Provider.of<UserModel>(context, listen: false).user.openid, | ||
| 113 | +// 'status': '1' | ||
| 114 | +// }; | ||
| 115 | +// await couponProvider.getCustomerSelectActivity(context, params, | ||
| 116 | +// isShowLoading: isShowLoading); | ||
| 117 | +// //此人已经新建好券 | ||
| 118 | +// if (couponProvider.couponListSelect.length > 0) { | ||
| 119 | +// couponProvider.initCouponSelect(context); | ||
| 120 | + | ||
| 121 | +// if (couponProvider.coupons.length == 0) { | ||
| 122 | +// setState(() { | ||
| 123 | +// couponHeight = 0; | ||
| 124 | +// }); | ||
| 125 | +// } else { | ||
| 126 | +// setState(() { | ||
| 127 | +// couponHeight = 180.0; | ||
| 128 | +// }); | ||
| 129 | +// } | ||
| 130 | +// } else { | ||
| 131 | +// //没有新建的优惠券 | ||
| 132 | +// setState(() { | ||
| 133 | +// couponHeight = 0; | ||
| 134 | +// }); | ||
| 135 | +// } | ||
| 136 | +// } | ||
| 137 | + | ||
| 138 | +// @override | ||
| 139 | +// void dispose() { | ||
| 140 | +// Utils.changeStatusColor(); | ||
| 141 | +// couponProvider.clearSelect(); | ||
| 142 | +// super.dispose(); | ||
| 143 | +// } | ||
| 144 | + | ||
| 145 | +// //中间内容显示组件 | ||
| 146 | +// Widget _middleWidget(String title, String content) { | ||
| 147 | +// return Column( | ||
| 148 | +// children: <Widget>[ | ||
| 149 | +// VEmptyView(80), | ||
| 150 | +// Row( | ||
| 151 | +// mainAxisSize: MainAxisSize.min, | ||
| 152 | +// children: <Widget>[ | ||
| 153 | +// Image.asset( | ||
| 154 | +// "assets/invication_line_left.png", | ||
| 155 | +// width: ScreenUtil().setWidth(44), | ||
| 156 | +// height: ScreenUtil().setWidth(4), | ||
| 157 | +// ), | ||
| 158 | +// Container( | ||
| 159 | +// margin: | ||
| 160 | +// EdgeInsets.symmetric(horizontal: ScreenUtil().setWidth(13)), | ||
| 161 | +// child: Text(title, | ||
| 162 | +// style: TextStyle( | ||
| 163 | +// color: MyColours.color_CEB689, | ||
| 164 | +// fontSize: ScreenUtil().setSp(28))), | ||
| 165 | +// ), | ||
| 166 | +// Image.asset( | ||
| 167 | +// "assets/invication_line_right.png", | ||
| 168 | +// width: ScreenUtil().setWidth(44), | ||
| 169 | +// height: ScreenUtil().setWidth(4), | ||
| 170 | +// ) | ||
| 171 | +// ], | ||
| 172 | +// ), | ||
| 173 | +// Container( | ||
| 174 | +// margin: EdgeInsets.only(top: ScreenUtil().setHeight(20)), | ||
| 175 | +// child: Text( | ||
| 176 | +// content, | ||
| 177 | +// style: TextStyle( | ||
| 178 | +// color: MyColours.color_F2F2F2, | ||
| 179 | +// fontSize: ScreenUtil().setSp(36)), | ||
| 180 | +// ), | ||
| 181 | +// ) | ||
| 182 | +// ], | ||
| 183 | +// ); | ||
| 184 | +// } | ||
| 185 | + | ||
| 186 | +// _goBaseInfoPage() async { | ||
| 187 | +// bool needRefresh = await NavigatorUtil.goBaseInfoPage(context); | ||
| 188 | +// if (needRefresh != null && needRefresh) { | ||
| 189 | +// //刷新页面数据 | ||
| 190 | +// _getCustomerActivityBaseinfo(); | ||
| 191 | +// } | ||
| 192 | +// } | ||
| 193 | + | ||
| 194 | +// //查看大图 | ||
| 195 | +// _showPhotoView(BuildContext context, int index, List imgs, | ||
| 196 | +// {isShow = false, List dashName}) async { | ||
| 197 | +// // if (imgs.length == 1 && | ||
| 198 | +// // imgs[0] == | ||
| 199 | +// // 'http://nosqn.colorcun.com/custom/lite-online/image/def-banner.png') { | ||
| 200 | +// // imgs[0] = 'http://nosqn.colorcun.com/app/seller-hj-empty.png'; | ||
| 201 | +// // } | ||
| 202 | +// Utils.setBarStatus(false, color: Colors.black); | ||
| 203 | +// dynamic result = await showGeneralDialog( | ||
| 204 | +// context: context, | ||
| 205 | +// barrierDismissible: false, | ||
| 206 | +// // barrierColor: Colors.red, | ||
| 207 | +// barrierLabel: | ||
| 208 | +// MaterialLocalizations.of(context).modalBarrierDismissLabel, | ||
| 209 | +// transitionDuration: const Duration(milliseconds: 150), | ||
| 210 | +// pageBuilder: (BuildContext context, Animation animation, | ||
| 211 | +// Animation secondaryAnimation) { | ||
| 212 | +// Widget child = Stack( | ||
| 213 | +// children: <Widget>[ | ||
| 214 | +// PhotoPreview( | ||
| 215 | +// initialIndex: index, | ||
| 216 | +// photoList: imgs, | ||
| 217 | +// isShow: isShow, | ||
| 218 | +// dashName: dashName) | ||
| 219 | +// ], | ||
| 220 | +// ); | ||
| 221 | +// return child; | ||
| 222 | +// }); | ||
| 223 | +// Utils.setBarStatus(true, color: Colors.white); | ||
| 224 | +// } | ||
| 225 | + | ||
| 226 | +// @override | ||
| 227 | +// Widget build(BuildContext context) { | ||
| 228 | +// // TODO: implement build | ||
| 229 | +// _baseIndoProvider = Provider.of<BaseIndoProvider>(context, listen: true); | ||
| 230 | +// couponProvider = Provider.of<CouponProvider>(context, listen: true); | ||
| 231 | +// return Container( | ||
| 232 | +// width: double.infinity, | ||
| 233 | +// // height: double.infinity, | ||
| 234 | +// decoration: BoxDecoration( | ||
| 235 | +// image: DecorationImage( | ||
| 236 | +// image: AssetImage("assets/bg_invication.png"), fit: BoxFit.cover), | ||
| 237 | +// ), | ||
| 238 | +// child: Scaffold( | ||
| 239 | +// backgroundColor: Colors.transparent, | ||
| 240 | +// body: SafeArea( | ||
| 241 | +// child: Stack( | ||
| 242 | +// children: [ | ||
| 243 | +// Container( | ||
| 244 | +// margin: EdgeInsets.only(top: ScreenUtil().setWidth(10 * 2)), | ||
| 245 | +// padding: | ||
| 246 | +// EdgeInsets.only(top: ScreenUtil().setWidth(35 * 2)), | ||
| 247 | +// child: Column(children: [ | ||
| 248 | +// Expanded( | ||
| 249 | +// child: ListView( | ||
| 250 | +// controller: controller, | ||
| 251 | +// physics: BouncingScrollPhysics(), | ||
| 252 | +// children: <Widget>[ | ||
| 253 | +// Center( | ||
| 254 | +// child: Column( | ||
| 255 | +// children: <Widget>[ | ||
| 256 | +// Image.asset( | ||
| 257 | +// "assets/img_ydap.png", | ||
| 258 | +// width: ScreenUtil().setWidth(220 * 2), | ||
| 259 | +// height: ScreenUtil().setHeight(98 * 2), | ||
| 260 | +// ), | ||
| 261 | +// VEmptyView(10), | ||
| 262 | +// Container( | ||
| 263 | +// margin: EdgeInsets.symmetric( | ||
| 264 | +// horizontal: ScreenUtil().setWidth(40)), | ||
| 265 | +// // padding: EdgeInsets.all( | ||
| 266 | +// // ScreenUtil().setWidth(60)), | ||
| 267 | +// decoration: BoxDecoration( | ||
| 268 | +// gradient: LinearGradient( | ||
| 269 | +// begin: Alignment.topCenter, | ||
| 270 | +// end: Alignment.bottomCenter, | ||
| 271 | +// colors: [ | ||
| 272 | +// MyColours.color_F7F1E8, | ||
| 273 | +// MyColours.color_E3D6C7, | ||
| 274 | +// ], | ||
| 275 | +// ), | ||
| 276 | +// borderRadius: BorderRadius.circular( | ||
| 277 | +// ScreenUtil().setWidth(10))), | ||
| 278 | +// child: Column( | ||
| 279 | +// crossAxisAlignment: | ||
| 280 | +// CrossAxisAlignment.center, | ||
| 281 | +// children: [ | ||
| 282 | +// Container( | ||
| 283 | +// width: | ||
| 284 | +// ScreenUtil().setWidth(335 * 2), | ||
| 285 | +// height: | ||
| 286 | +// ScreenUtil().setWidth(200 * 2), | ||
| 287 | +// decoration: BoxDecoration( | ||
| 288 | +// image: DecorationImage( | ||
| 289 | +// alignment: | ||
| 290 | +// Alignment.topCenter, | ||
| 291 | +// image: AssetImage( | ||
| 292 | +// "assets/yd_baiinfo_bg.png"), | ||
| 293 | +// fit: BoxFit.cover), | ||
| 294 | +// ), | ||
| 295 | +// child: Row( | ||
| 296 | +// crossAxisAlignment: | ||
| 297 | +// CrossAxisAlignment.start, | ||
| 298 | +// children: [ | ||
| 299 | +// Padding( | ||
| 300 | +// padding: EdgeInsets.only( | ||
| 301 | +// top: ScreenUtil() | ||
| 302 | +// .setWidth(20), | ||
| 303 | +// left: ScreenUtil() | ||
| 304 | +// .setWidth(60)), | ||
| 305 | +// child: qiniuUrl == '' | ||
| 306 | +// ? Image.asset( | ||
| 307 | +// Utils.getImgPath( | ||
| 308 | +// 'person'), | ||
| 309 | +// width: ScreenUtil().setWidth( | ||
| 310 | +// 143 * 2), | ||
| 311 | +// height: ScreenUtil() | ||
| 312 | +// .setWidth( | ||
| 313 | +// 190 * 2)) | ||
| 314 | +// : Image.network(qiniuUrl, | ||
| 315 | +// width: ScreenUtil() | ||
| 316 | +// .setWidth( | ||
| 317 | +// 143 * 2), | ||
| 318 | +// height: ScreenUtil() | ||
| 319 | +// .setWidth(190 * 2)), | ||
| 320 | +// ), | ||
| 321 | +// HEmptyView(10), | ||
| 322 | +// Spacer(), | ||
| 323 | +// Container( | ||
| 324 | +// height: ScreenUtil() | ||
| 325 | +// .setWidth(200 * 2), | ||
| 326 | +// child: Column( | ||
| 327 | +// mainAxisAlignment: | ||
| 328 | +// MainAxisAlignment | ||
| 329 | +// .start, | ||
| 330 | +// crossAxisAlignment: | ||
| 331 | +// CrossAxisAlignment | ||
| 332 | +// .start, | ||
| 333 | +// children: [ | ||
| 334 | +// VEmptyView(60), | ||
| 335 | +// GestureDetector( | ||
| 336 | +// behavior: | ||
| 337 | +// HitTestBehavior | ||
| 338 | +// .opaque, | ||
| 339 | +// onTap: () { | ||
| 340 | +// _goBaseInfoPage(); | ||
| 341 | +// }, | ||
| 342 | +// child: Container( | ||
| 343 | +// width: ScreenUtil() | ||
| 344 | +// .setWidth( | ||
| 345 | +// 100 * 2), | ||
| 346 | +// height: ScreenUtil() | ||
| 347 | +// .setWidth( | ||
| 348 | +// 24 * 2), | ||
| 349 | +// child: Text( | ||
| 350 | +// name, | ||
| 351 | +// overflow: | ||
| 352 | +// TextOverflow | ||
| 353 | +// .ellipsis, | ||
| 354 | +// style: TextStyle( | ||
| 355 | +// fontWeight: | ||
| 356 | +// FontWeight | ||
| 357 | +// .bold, | ||
| 358 | +// color: MyColours | ||
| 359 | +// .color_794F28, | ||
| 360 | +// fontSize: | ||
| 361 | +// ScreenUtil() | ||
| 362 | +// .setSp( | ||
| 363 | +// 36)), | ||
| 364 | +// ), | ||
| 365 | +// ), | ||
| 366 | +// ), | ||
| 367 | +// VEmptyView(6), | ||
| 368 | +// InkWell( | ||
| 369 | +// onTap: () { | ||
| 370 | +// _goBaseInfoPage(); | ||
| 371 | +// }, | ||
| 372 | +// child: Container( | ||
| 373 | +// width: ScreenUtil() | ||
| 374 | +// .setWidth( | ||
| 375 | +// 100 * 2), | ||
| 376 | +// height: | ||
| 377 | +// ScreenUtil() | ||
| 378 | +// .setWidth( | ||
| 379 | +// 18 * | ||
| 380 | +// 2), | ||
| 381 | +// child: Text( | ||
| 382 | +// position, | ||
| 383 | +// overflow: | ||
| 384 | +// TextOverflow | ||
| 385 | +// .ellipsis, | ||
| 386 | +// style: TextStyle( | ||
| 387 | +// color: MyColours | ||
| 388 | +// .color_794F28, | ||
| 389 | +// fontSize: ScreenUtil() | ||
| 390 | +// .setSp( | ||
| 391 | +// 28)), | ||
| 392 | +// ), | ||
| 393 | +// )), | ||
| 394 | +// VEmptyView(6), | ||
| 395 | +// InkWell( | ||
| 396 | +// onTap: () { | ||
| 397 | +// _goBaseInfoPage(); | ||
| 398 | +// }, | ||
| 399 | +// child: Container( | ||
| 400 | +// width: ScreenUtil() | ||
| 401 | +// .setWidth( | ||
| 402 | +// 100 * 2), | ||
| 403 | +// height: | ||
| 404 | +// ScreenUtil() | ||
| 405 | +// .setWidth( | ||
| 406 | +// 18 * | ||
| 407 | +// 2), | ||
| 408 | +// child: Text( | ||
| 409 | +// phone, | ||
| 410 | +// overflow: | ||
| 411 | +// TextOverflow | ||
| 412 | +// .ellipsis, | ||
| 413 | +// style: TextStyle( | ||
| 414 | +// color: MyColours | ||
| 415 | +// .color_794F28, | ||
| 416 | +// fontSize: ScreenUtil() | ||
| 417 | +// .setSp( | ||
| 418 | +// 28)), | ||
| 419 | +// ), | ||
| 420 | +// )), | ||
| 421 | +// VEmptyView(14), | ||
| 422 | +// RoundButton( | ||
| 423 | +// height: ScreenUtil() | ||
| 424 | +// .setWidth(94 * 2), | ||
| 425 | +// image: | ||
| 426 | +// Utils.getImgPath( | ||
| 427 | +// 'yd_bianji'), | ||
| 428 | +// imgWidth: 24, | ||
| 429 | +// space: ScreenUtil() | ||
| 430 | +// .setWidth(20), | ||
| 431 | +// text: '编辑', | ||
| 432 | +// textColor: MyColours | ||
| 433 | +// .color_794F28, | ||
| 434 | +// isBold: false, | ||
| 435 | +// fontSize: 28, | ||
| 436 | +// gradientStart: Colors | ||
| 437 | +// .transparent, | ||
| 438 | +// gradientEnd: Colors | ||
| 439 | +// .transparent, | ||
| 440 | +// onPressed: () { | ||
| 441 | +// _goBaseInfoPage(); | ||
| 442 | +// }, | ||
| 443 | +// ) | ||
| 444 | +// ], | ||
| 445 | +// )), | ||
| 446 | +// HEmptyView(60), | ||
| 447 | +// ], | ||
| 448 | +// )), | ||
| 449 | +// // Positioned( | ||
| 450 | +// // bottom: 0, | ||
| 451 | +// // child: Container( | ||
| 452 | +// // color: MyColours.color_EEDBC4, | ||
| 453 | +// // width: double.infinity, | ||
| 454 | +// // height: | ||
| 455 | +// // ScreenUtil().setWidth(40), | ||
| 456 | +// // )) | ||
| 457 | +// // ], | ||
| 458 | +// // ), | ||
| 459 | +// Container( | ||
| 460 | +// color: MyColours.color_EEDBC4, | ||
| 461 | +// width: double.infinity, | ||
| 462 | +// height: ScreenUtil().setWidth(40), | ||
| 463 | +// ), | ||
| 464 | +// VEmptyView(40), | ||
| 465 | +// Image.asset( | ||
| 466 | +// "assets/yd_up.png", | ||
| 467 | +// width: ScreenUtil().setWidth(195 * 2), | ||
| 468 | +// height: | ||
| 469 | +// ScreenUtil().setHeight(33 * 2), | ||
| 470 | +// ), | ||
| 471 | +// VEmptyView(50), | ||
| 472 | +// Container( | ||
| 473 | +// height: ScreenUtil().setWidth(48), | ||
| 474 | +// child: Text( | ||
| 475 | +// user.sellername, | ||
| 476 | +// style: TextStyle( | ||
| 477 | +// letterSpacing: ScreenUtil() | ||
| 478 | +// .setWidth(2.13 * 2), | ||
| 479 | +// color: MyColours.color_794F28, | ||
| 480 | +// fontWeight: FontWeight.bold, | ||
| 481 | +// fontSize: | ||
| 482 | +// ScreenUtil().setSp(36)), | ||
| 483 | +// ), | ||
| 484 | +// ), | ||
| 485 | +// VEmptyView(30), | ||
| 486 | +// Container( | ||
| 487 | +// height: ScreenUtil().setWidth(36), | ||
| 488 | +// child: Text( | ||
| 489 | +// '已为您安排在包间', | ||
| 490 | +// style: TextStyle( | ||
| 491 | +// letterSpacing: ScreenUtil() | ||
| 492 | +// .setWidth(1.7 * 2), | ||
| 493 | +// color: MyColours.color_C19E5B, | ||
| 494 | +// fontSize: | ||
| 495 | +// ScreenUtil().setSp(28)), | ||
| 496 | +// ), | ||
| 497 | +// ), | ||
| 498 | +// VEmptyView(12), | ||
| 499 | +// Row( | ||
| 500 | +// mainAxisAlignment: | ||
| 501 | +// MainAxisAlignment.center, | ||
| 502 | +// children: [ | ||
| 503 | +// Image.asset( | ||
| 504 | +// "assets/bj_left.png", | ||
| 505 | +// width: | ||
| 506 | +// ScreenUtil().setWidth(30 * 2), | ||
| 507 | +// height: ScreenUtil() | ||
| 508 | +// .setHeight(58 * 2), | ||
| 509 | +// ), | ||
| 510 | +// Container( | ||
| 511 | +// height: ScreenUtil().setWidth(48), | ||
| 512 | +// child: Text( | ||
| 513 | +// widget.tableInfo | ||
| 514 | +// .replaceAll("\n", ""), | ||
| 515 | +// style: TextStyle( | ||
| 516 | +// letterSpacing: ScreenUtil() | ||
| 517 | +// .setWidth(2.13 * 2), | ||
| 518 | +// color: | ||
| 519 | +// MyColours.color_794F28, | ||
| 520 | +// fontWeight: FontWeight.bold, | ||
| 521 | +// fontSize: | ||
| 522 | +// ScreenUtil().setSp(42)), | ||
| 523 | +// ), | ||
| 524 | +// ), | ||
| 525 | +// Image.asset( | ||
| 526 | +// "assets/bj_right.png", | ||
| 527 | +// width: | ||
| 528 | +// ScreenUtil().setWidth(30 * 2), | ||
| 529 | +// height: ScreenUtil() | ||
| 530 | +// .setHeight(58 * 2), | ||
| 531 | +// ), | ||
| 532 | +// ], | ||
| 533 | +// ), | ||
| 534 | +// _baseIndoProvider.photoList.length > 0 | ||
| 535 | +// ? VEmptyView(18) | ||
| 536 | +// : Container(), | ||
| 537 | +// _baseIndoProvider.photoList.length > 0 | ||
| 538 | +// ? RoundButton( | ||
| 539 | +// onPressed: () { | ||
| 540 | +// List<String> temp = []; | ||
| 541 | +// if (_baseIndoProvider | ||
| 542 | +// .photoList.length > | ||
| 543 | +// 0) { | ||
| 544 | +// for (int i = 0; | ||
| 545 | +// i < | ||
| 546 | +// _baseIndoProvider | ||
| 547 | +// .photoList | ||
| 548 | +// .length; | ||
| 549 | +// i++) { | ||
| 550 | +// temp.add(_baseIndoProvider | ||
| 551 | +// .photoList[i].image); | ||
| 552 | +// } | ||
| 553 | + | ||
| 554 | +// ///没有上传完成的不可以点击 | ||
| 555 | +// _showPhotoView( | ||
| 556 | +// context, 0, temp); | ||
| 557 | +// } | ||
| 558 | +// }, | ||
| 559 | +// text: '浏览照片', | ||
| 560 | +// width: ScreenUtil() | ||
| 561 | +// .setWidth(68 * 2), | ||
| 562 | +// height: ScreenUtil() | ||
| 563 | +// .setWidth(24 * 2), | ||
| 564 | +// fontSize: 26, | ||
| 565 | +// textColor: | ||
| 566 | +// MyColours.color_794F28, | ||
| 567 | +// isBold: false, | ||
| 568 | +// gradientStart: Color.fromRGBO( | ||
| 569 | +// 121, 79, 40, 0.1), | ||
| 570 | +// gradientEnd: Color.fromRGBO( | ||
| 571 | +// 121, 79, 40, 0.1), | ||
| 572 | +// ) | ||
| 573 | +// : Container(), | ||
| 574 | +// VEmptyView(60), | ||
| 575 | +// Container( | ||
| 576 | +// height: ScreenUtil().setWidth(40), | ||
| 577 | +// child: Text( | ||
| 578 | +// '时间:${dateTimeStr}', | ||
| 579 | +// style: TextStyle( | ||
| 580 | +// letterSpacing: ScreenUtil() | ||
| 581 | +// .setWidth(1.8 * 2), | ||
| 582 | +// color: MyColours.color_794F28, | ||
| 583 | +// fontWeight: FontWeight.bold, | ||
| 584 | +// fontSize: | ||
| 585 | +// ScreenUtil().setSp(30)), | ||
| 586 | +// ), | ||
| 587 | +// ), | ||
| 588 | +// VEmptyView(20), | ||
| 589 | +// Container( | ||
| 590 | +// // height: ScreenUtil().setWidth(40), | ||
| 591 | +// child: Text( | ||
| 592 | +// '地址:${user.sellerAddr}', | ||
| 593 | +// maxLines: 3, | ||
| 594 | +// overflow: TextOverflow.ellipsis, | ||
| 595 | +// textAlign: TextAlign.center, | ||
| 596 | +// style: TextStyle( | ||
| 597 | +// letterSpacing: ScreenUtil() | ||
| 598 | +// .setWidth(1.8 * 2), | ||
| 599 | +// color: MyColours.color_794F28, | ||
| 600 | +// fontWeight: FontWeight.bold, | ||
| 601 | +// fontSize: | ||
| 602 | +// ScreenUtil().setSp(30)), | ||
| 603 | +// ), | ||
| 604 | +// ), | ||
| 605 | +// // VEmptyView(20), | ||
| 606 | +// // RoundButton( | ||
| 607 | +// // text: '一键导航', | ||
| 608 | +// // width: ScreenUtil().setWidth(68 * 2), | ||
| 609 | +// // height: ScreenUtil().setWidth(24 * 2), | ||
| 610 | +// // fontSize: 24, | ||
| 611 | +// // textColor: MyColours.color_794F28, | ||
| 612 | +// // isBold: false, | ||
| 613 | +// // gradientStart: | ||
| 614 | +// // Color.fromRGBO(121, 79, 40, 0.1), | ||
| 615 | +// // gradientEnd: | ||
| 616 | +// // Color.fromRGBO(121, 79, 40, 0.1), | ||
| 617 | +// // ), | ||
| 618 | +// VEmptyView(50), | ||
| 619 | +// Image.asset( | ||
| 620 | +// "assets/yd_down.png", | ||
| 621 | +// width: ScreenUtil().setWidth(195 * 2), | ||
| 622 | +// height: | ||
| 623 | +// ScreenUtil().setHeight(33 * 2), | ||
| 624 | +// ), | ||
| 625 | +// VEmptyView(60), | ||
| 626 | +// ], | ||
| 627 | +// ), | ||
| 628 | +// ) | ||
| 629 | +// ], | ||
| 630 | +// ), | ||
| 631 | +// ), | ||
| 632 | +// VEmptyView(couponHeight), | ||
| 633 | +// ])), | ||
| 634 | +// Container( | ||
| 635 | +// width: double.infinity, | ||
| 636 | +// height: ScreenUtil().setHeight(99), | ||
| 637 | +// child: Row( | ||
| 638 | +// children: <Widget>[ | ||
| 639 | +// GestureDetector( | ||
| 640 | +// onTap: () { | ||
| 641 | +// if (widget.phone.isEmpty) { | ||
| 642 | +// Utils.showToast("没有预订人电话信息"); | ||
| 643 | +// return; | ||
| 644 | +// } | ||
| 645 | +// NavigatorUtil.goSmsPage(context, widget.rid); | ||
| 646 | +// }, | ||
| 647 | +// child: Container( | ||
| 648 | +// width: ScreenUtil().setWidth(135 * 2), | ||
| 649 | +// height: double.infinity, | ||
| 650 | +// alignment: Alignment.center, | ||
| 651 | +// decoration: BoxDecoration( | ||
| 652 | +// color: MyColours.color_262628, | ||
| 653 | +// border: Border( | ||
| 654 | +// top: BorderSide( | ||
| 655 | +// width: ScreenUtil().setWidth(1), | ||
| 656 | +// color: MyColours.color_ECD9B7))), | ||
| 657 | +// child: Text( | ||
| 658 | +// "发短信", | ||
| 659 | +// style: TextStyle( | ||
| 660 | +// color: MyColours.color_ECD9B7, | ||
| 661 | +// fontSize: ScreenUtil().setSp(28)), | ||
| 662 | +// ), | ||
| 663 | +// ), | ||
| 664 | +// ), | ||
| 665 | +// Expanded( | ||
| 666 | +// child: GestureDetector( | ||
| 667 | +// onTap: () async { | ||
| 668 | +// if (ObjectUtil.isEmpty( | ||
| 669 | +// _baseIndoProvider.baseInfoSunModel)) { | ||
| 670 | +// Utils.showToast('请输入个人资料'); | ||
| 671 | +// return; | ||
| 672 | +// } | ||
| 673 | +// if (ObjectUtil.isEmpty(_baseIndoProvider | ||
| 674 | +// .baseInfoSunModel.name)) { | ||
| 675 | +// Utils.showToast('请填写您的姓名'); | ||
| 676 | +// return; | ||
| 677 | +// } | ||
| 678 | +// if (ObjectUtil.isEmpty(_baseIndoProvider | ||
| 679 | +// .baseInfoSunModel.phone)) { | ||
| 680 | +// Utils.showToast('请填写您的联系电话'); | ||
| 681 | +// return; | ||
| 682 | +// } | ||
| 683 | +// if (ObjectUtil.isEmpty(_baseIndoProvider | ||
| 684 | +// .baseInfoSunModel.position)) { | ||
| 685 | +// Utils.showToast('请填写您在餐厅中的职位'); | ||
| 686 | +// return; | ||
| 687 | +// } | ||
| 688 | +// if (ObjectUtil.isEmpty(_baseIndoProvider | ||
| 689 | +// .baseInfoSunModel.phone)) { | ||
| 690 | +// Utils.showToast('请上传您的头像'); | ||
| 691 | +// return; | ||
| 692 | +// } | ||
| 693 | +// if (ObjectUtil.isEmpty(_baseIndoProvider | ||
| 694 | +// .baseInfoSunModel.qrcode)) { | ||
| 695 | +// Utils.showToast('请上传您的微信二维码'); | ||
| 696 | +// return; | ||
| 697 | +// } | ||
| 698 | +// if (!couponProvider.hasModify && | ||
| 699 | +// couponProvider.coupons.length > 0) { | ||
| 700 | +// Map<String, String> params = { | ||
| 701 | +// "rid": widget.rid, | ||
| 702 | +// "aid": Utils.listToStringEnglish( | ||
| 703 | +// couponProvider.coupons) | ||
| 704 | +// }; | ||
| 705 | +// bool isSuc = await couponProvider | ||
| 706 | +// .setActivityAsReserve(context, params); | ||
| 707 | +// if (isSuc) { | ||
| 708 | +// couponProvider.hasModify = true; | ||
| 709 | + | ||
| 710 | +// bool isSuccess = | ||
| 711 | +// await Utils.goShareInvicationToWeChat( | ||
| 712 | +// widget.rid, | ||
| 713 | +// Provider.of<UserModel>(context, | ||
| 714 | +// listen: false) | ||
| 715 | +// .user | ||
| 716 | +// .openid); | ||
| 717 | +// print(isSuccess); | ||
| 718 | +// // couponProvider.couponsShow = []; | ||
| 719 | +// // couponProvider.couponsShow | ||
| 720 | +// // .addAll(couponProvider.coupons); | ||
| 721 | +// // couponProvider.coupons = []; | ||
| 722 | +// // couponProvider.notifyListeners(); | ||
| 723 | +// } | ||
| 724 | +// } else { | ||
| 725 | +// bool isSuccess = | ||
| 726 | +// await Utils.goShareInvicationToWeChat( | ||
| 727 | +// widget.rid, | ||
| 728 | +// Provider.of<UserModel>(context, | ||
| 729 | +// listen: false) | ||
| 730 | +// .user | ||
| 731 | +// .openid); | ||
| 732 | +// print(isSuccess); | ||
| 733 | +// } | ||
| 734 | +// }, | ||
| 735 | +// child: Container( | ||
| 736 | +// width: double.infinity, | ||
| 737 | +// height: double.infinity, | ||
| 738 | +// color: MyColours.color_ECD9B7, | ||
| 739 | +// alignment: Alignment.center, | ||
| 740 | +// child: Text( | ||
| 741 | +// "通知客户", | ||
| 742 | +// style: TextStyle( | ||
| 743 | +// color: MyColours.color_7B512A, | ||
| 744 | +// fontSize: ScreenUtil().setSp(30)), | ||
| 745 | +// ), | ||
| 746 | +// ), | ||
| 747 | +// ), | ||
| 748 | +// ) | ||
| 749 | +// ], | ||
| 750 | +// ), | ||
| 751 | +// ) | ||
| 752 | +// ])), | ||
| 753 | +// Positioned( | ||
| 754 | +// left: ScreenUtil().setWidth(0), | ||
| 755 | +// top: ScreenUtil().setWidth(0), | ||
| 756 | +// child: GestureDetector( | ||
| 757 | +// onTap: () { | ||
| 758 | +// Navigator.of(context).pop(); | ||
| 759 | +// }, | ||
| 760 | +// behavior: HitTestBehavior.opaque, | ||
| 761 | +// child: Container( | ||
| 762 | +// padding: EdgeInsets.fromLTRB( | ||
| 763 | +// ScreenUtil().setWidth(40), | ||
| 764 | +// ScreenUtil().setWidth(40), | ||
| 765 | +// ScreenUtil().setWidth(200), | ||
| 766 | +// ScreenUtil().setWidth(100), | ||
| 767 | +// ), | ||
| 768 | +// alignment: Alignment.centerLeft, | ||
| 769 | +// // color: Colors.red, | ||
| 770 | +// child: Image.asset( | ||
| 771 | +// "assets/invication_back.png", | ||
| 772 | +// width: ScreenUtil().setWidth(20), | ||
| 773 | +// height: ScreenUtil().setHeight(31), | ||
| 774 | +// )), | ||
| 775 | +// ), | ||
| 776 | +// ), | ||
| 777 | +// Positioned( | ||
| 778 | +// // left: ScreenUtil().setWidth(180), | ||
| 779 | +// bottom: ScreenUtil().setWidth(110), | ||
| 780 | +// right: ScreenUtil().setWidth(40), | ||
| 781 | +// child: couponProvider.hasModify || | ||
| 782 | +// couponProvider.coupons.length > 0 || | ||
| 783 | +// couponProvider.couponListSelect.length > 0 | ||
| 784 | +// ? GestureDetector( | ||
| 785 | +// onTap: () async { | ||
| 786 | +// NavigatorUtil.goCouponSelectPage(context, | ||
| 787 | +// rid: widget.rid, | ||
| 788 | +// hasModify: couponProvider.hasModify); | ||
| 789 | +// }, | ||
| 790 | +// behavior: HitTestBehavior.opaque, | ||
| 791 | +// child: Column( | ||
| 792 | +// crossAxisAlignment: CrossAxisAlignment.center, | ||
| 793 | +// children: [ | ||
| 794 | +// Container( | ||
| 795 | +// padding: EdgeInsets.symmetric( | ||
| 796 | +// horizontal: ScreenUtil().setWidth(40), | ||
| 797 | +// vertical: ScreenUtil().setWidth(16)), | ||
| 798 | +// height: ScreenUtil().setWidth(35 * 2), | ||
| 799 | +// decoration: BoxDecoration( | ||
| 800 | +// color: MyColours.color_000000, | ||
| 801 | +// borderRadius: BorderRadius.circular( | ||
| 802 | +// ScreenUtil().setWidth(20))), | ||
| 803 | +// child: Row( | ||
| 804 | +// children: [ | ||
| 805 | +// Text( | ||
| 806 | +// '并赠送给顾客${couponProvider.coupons.length}张优惠券', | ||
| 807 | +// textAlign: TextAlign.center, | ||
| 808 | +// style: TextStyle( | ||
| 809 | +// color: MyColours.color_f5f5f5, | ||
| 810 | +// fontWeight: FontWeight.bold, | ||
| 811 | +// fontSize: ScreenUtil().setSp(28), | ||
| 812 | +// ), | ||
| 813 | +// ), | ||
| 814 | +// HEmptyView(40), | ||
| 815 | +// RoundButton( | ||
| 816 | +// width: ScreenUtil().setWidth(124), | ||
| 817 | +// height: ScreenUtil().setWidth(46), | ||
| 818 | +// text: '点击查看', | ||
| 819 | +// textColor: MyColours.color_FDA31D, | ||
| 820 | +// fontSize: 24, | ||
| 821 | +// isBold: true, | ||
| 822 | +// radius: ScreenUtil().setWidth(10), | ||
| 823 | +// gradientStart: MyColours.color_f5f5f5, | ||
| 824 | +// gradientEnd: MyColours.color_f5f5f5, | ||
| 825 | +// onPressed: () async { | ||
| 826 | +// NavigatorUtil.goCouponSelectPage( | ||
| 827 | +// context, | ||
| 828 | +// rid: widget.rid, | ||
| 829 | +// hasModify: | ||
| 830 | +// couponProvider.hasModify); | ||
| 831 | +// }, | ||
| 832 | +// ) | ||
| 833 | +// ], | ||
| 834 | +// )), | ||
| 835 | +// Image.asset(Utils.getImgPath('jian'), | ||
| 836 | +// width: ScreenUtil().setWidth(28), | ||
| 837 | +// height: ScreenUtil().setWidth(20)) | ||
| 838 | +// ], | ||
| 839 | +// )) | ||
| 840 | +// : Container(), | ||
| 841 | +// ) | ||
| 842 | +// ], | ||
| 843 | +// )))); | ||
| 844 | +// } | ||
| 845 | +// } |
| @@ -308,11 +308,11 @@ class _BaseInfoPageState extends State<BaseInfoPage> { | @@ -308,11 +308,11 @@ class _BaseInfoPageState extends State<BaseInfoPage> { | ||
| 308 | height: ScreenUtil().setWidth(imgSize * 2), | 308 | height: ScreenUtil().setWidth(imgSize * 2), |
| 309 | decoration: BoxDecoration( | 309 | decoration: BoxDecoration( |
| 310 | borderRadius: BorderRadius.circular(radius), | 310 | borderRadius: BorderRadius.circular(radius), |
| 311 | - color: Color.fromRGBO(0, 0, 0, 0.2)), | 311 | + color: Color.fromRGBO(0, 0, 0, 0.6)), |
| 312 | child: Center( | 312 | child: Center( |
| 313 | child: Text('上传中', | 313 | child: Text('上传中', |
| 314 | style: | 314 | style: |
| 315 | - TextStyle(color: MyColours.color_333333)), | 315 | + TextStyle(color: MyColours.color_999999)), |
| 316 | ), | 316 | ), |
| 317 | ) | 317 | ) |
| 318 | : Container(), | 318 | : Container(), |
| @@ -83,4 +83,5 @@ class MyColours { | @@ -83,4 +83,5 @@ class MyColours { | ||
| 83 | static const Color color_794F28 = Color(0xff794F28); | 83 | static const Color color_794F28 = Color(0xff794F28); |
| 84 | static const Color color_C19E5B = Color(0xffC19E5B); | 84 | static const Color color_C19E5B = Color(0xffC19E5B); |
| 85 | static const Color color_EEDBC4 = Color(0xffEEDBC4); | 85 | static const Color color_EEDBC4 = Color(0xffEEDBC4); |
| 86 | + static const Color color_BA9953 = Color(0xffBA9953); | ||
| 86 | } | 87 | } |
-
Please register or login to post a comment