Showing
6 changed files
with
43 additions
and
24 deletions
| @@ -18,19 +18,19 @@ if (flutterRoot == null) { | @@ -18,19 +18,19 @@ if (flutterRoot == null) { | ||
| 18 | 18 | ||
| 19 | 19 | ||
| 20 | 20 | ||
| 21 | -def flutterVersionCode = "519" | 21 | +def flutterVersionCode = "520" |
| 22 | if (flutterVersionCode == null) { | 22 | if (flutterVersionCode == null) { |
| 23 | - flutterVersionCode = '519' | 23 | + flutterVersionCode = '520' |
| 24 | 24 | ||
| 25 | 25 | ||
| 26 | 26 | ||
| 27 | } | 27 | } |
| 28 | 28 | ||
| 29 | 29 | ||
| 30 | -def flutterVersionName = "5.1.9" | 30 | +def flutterVersionName = "5.2.0" |
| 31 | 31 | ||
| 32 | if (flutterVersionName == null) { | 32 | if (flutterVersionName == null) { |
| 33 | - flutterVersionName = '5.1.9' | 33 | + flutterVersionName = '5.2.0' |
| 34 | 34 | ||
| 35 | 35 | ||
| 36 | } | 36 | } |
| 1 | class HttpUrl { | 1 | class HttpUrl { |
| 2 | + static const String qiniu_address = "http://rs.qiniuapi.com/"; //七牛云服务端请求地址 | ||
| 2 | static const String server_address = "http://xt04.colorcun.com/"; //服务端请求地址 | 3 | static const String server_address = "http://xt04.colorcun.com/"; //服务端请求地址 |
| 3 | static const String app_user_login = | 4 | static const String app_user_login = |
| 4 | "?service=Android.User.AppUserLogin"; //登录地址 | 5 | "?service=Android.User.AppUserLogin"; //登录地址 |
| @@ -509,9 +510,7 @@ class HttpUrl { | @@ -509,9 +510,7 @@ class HttpUrl { | ||
| 509 | static const String sort_by_table = | 510 | static const String sort_by_table = |
| 510 | "?service=App.Tables.SortByTable"; // 区域内桌位排序 | 511 | "?service=App.Tables.SortByTable"; // 区域内桌位排序 |
| 511 | 512 | ||
| 512 | - | ||
| 513 | - static const String get_reserve_action_log = | ||
| 514 | - "?service=Android.Reserve.GetReserveActionLog"; // 获取预订操作记录 | ||
| 515 | - | 513 | + static const String get_reserve_action_log = |
| 514 | + "?service=Android.Reserve.GetReserveActionLog"; // 获取预订操作记录 | ||
| 516 | 515 | ||
| 517 | } | 516 | } |
| @@ -258,8 +258,8 @@ class _CouponPosterPageState extends State<CouponPosterPage> { | @@ -258,8 +258,8 @@ class _CouponPosterPageState extends State<CouponPosterPage> { | ||
| 258 | .color_E4461D)), | 258 | .color_E4461D)), |
| 259 | ])), | 259 | ])), |
| 260 | VEmptyView(10), | 260 | VEmptyView(10), |
| 261 | - Row( | ||
| 262 | - children: [ | 261 | + // Row( |
| 262 | + // children: [ | ||
| 263 | Text( | 263 | Text( |
| 264 | address, | 264 | address, |
| 265 | maxLines: 10, | 265 | maxLines: 10, |
| @@ -271,13 +271,13 @@ class _CouponPosterPageState extends State<CouponPosterPage> { | @@ -271,13 +271,13 @@ class _CouponPosterPageState extends State<CouponPosterPage> { | ||
| 271 | fontSize: font(14), | 271 | fontSize: font(14), |
| 272 | ), | 272 | ), |
| 273 | ), | 273 | ), |
| 274 | - Image.asset( | ||
| 275 | - Utils.getImgPath( | ||
| 276 | - 'location_orange'), | ||
| 277 | - width: w(25), | ||
| 278 | - ) | ||
| 279 | - ], | ||
| 280 | - ), | 274 | + // Image.asset( |
| 275 | + // Utils.getImgPath( | ||
| 276 | + // 'location_orange'), | ||
| 277 | + // width: w(25), | ||
| 278 | + // ) | ||
| 279 | + // ], | ||
| 280 | + // ), | ||
| 281 | ], | 281 | ], |
| 282 | ), | 282 | ), |
| 283 | )) | 283 | )) |
| @@ -212,12 +212,16 @@ class _FeastCreatePageState extends State<FeastCreatePage> { | @@ -212,12 +212,16 @@ class _FeastCreatePageState extends State<FeastCreatePage> { | ||
| 212 | customC.text = basicInfo.remark; | 212 | customC.text = basicInfo.remark; |
| 213 | //备注图片 | 213 | //备注图片 |
| 214 | _uploadImageProvider.feastRemarkImageList = []; | 214 | _uploadImageProvider.feastRemarkImageList = []; |
| 215 | - basicInfo.images.forEach((element) { | ||
| 216 | - UploadImgModel imgModel = UploadImgModel(); | ||
| 217 | - imgModel.qiniuUrl = element.url; | ||
| 218 | - imgModel.process = 1; | ||
| 219 | - _uploadImageProvider.feastRemarkImageList.add(imgModel); | ||
| 220 | - }); | 215 | + print(basicInfo.images); |
| 216 | + if (basicInfo.images != null) { | ||
| 217 | + basicInfo.images.forEach((element) { | ||
| 218 | + UploadImgModel imgModel = UploadImgModel(); | ||
| 219 | + imgModel.qiniuUrl = element.url; | ||
| 220 | + imgModel.process = 1; | ||
| 221 | + _uploadImageProvider.feastRemarkImageList.add(imgModel); | ||
| 222 | + }); | ||
| 223 | + } | ||
| 224 | + | ||
| 221 | /** | 225 | /** |
| 222 | * 选台 | 226 | * 选台 |
| 223 | */ | 227 | */ |
| @@ -430,7 +434,7 @@ class _FeastCreatePageState extends State<FeastCreatePage> { | @@ -430,7 +434,7 @@ class _FeastCreatePageState extends State<FeastCreatePage> { | ||
| 430 | bool success = await feastModel.getBanquetById(context, pramas); | 434 | bool success = await feastModel.getBanquetById(context, pramas); |
| 431 | if (success) { | 435 | if (success) { |
| 432 | _uploadImageProvider.feastRemarkContractImageList = []; | 436 | _uploadImageProvider.feastRemarkContractImageList = []; |
| 433 | - feastModel.banquetDetail.contractInfo.contractImages.forEach((element) { | 437 | + feastModel.banquetDetail.contractInfo?.contractImages?.forEach((element) { |
| 434 | UploadImgModel uploadImgModel = UploadImgModel(); | 438 | UploadImgModel uploadImgModel = UploadImgModel(); |
| 435 | uploadImgModel.process = 1; | 439 | uploadImgModel.process = 1; |
| 436 | uploadImgModel.qiniuUrl = element.url; | 440 | uploadImgModel.qiniuUrl = element.url; |
| 1 | import 'dart:convert'; | 1 | import 'dart:convert'; |
| 2 | 2 | ||
| 3 | +import 'package:dio/dio.dart'; | ||
| 3 | import 'package:flutter/material.dart'; | 4 | import 'package:flutter/material.dart'; |
| 4 | import 'package:flutter_screenutil/flutter_screenutil.dart'; | 5 | import 'package:flutter_screenutil/flutter_screenutil.dart'; |
| 5 | import 'package:one_key/constant/state.dart'; | 6 | import 'package:one_key/constant/state.dart'; |
| 6 | import 'package:one_key/models/table_photo_model.dart'; | 7 | import 'package:one_key/models/table_photo_model.dart'; |
| 7 | import 'package:one_key/models/upload_img_model.dart'; | 8 | import 'package:one_key/models/upload_img_model.dart'; |
| 9 | +import 'package:one_key/net/dio_util.dart'; | ||
| 8 | import 'package:one_key/pages/online_check/img_picker_widget.dart'; | 10 | import 'package:one_key/pages/online_check/img_picker_widget.dart'; |
| 9 | import 'package:one_key/provider/table_photo_manager_provider.dart'; | 11 | import 'package:one_key/provider/table_photo_manager_provider.dart'; |
| 10 | import 'package:one_key/provider/upload_img_provider.dart'; | 12 | import 'package:one_key/provider/upload_img_provider.dart'; |
| @@ -130,6 +132,18 @@ class _TablePhotoManagerPageState extends State<TablePhotoManagerPage> { | @@ -130,6 +132,18 @@ class _TablePhotoManagerPageState extends State<TablePhotoManagerPage> { | ||
| 130 | bool success = await _tablePhotoManagerModel.delTablePhoto(context, params, | 132 | bool success = await _tablePhotoManagerModel.delTablePhoto(context, params, |
| 131 | isShowLoading: true); | 133 | isShowLoading: true); |
| 132 | if (success) { | 134 | if (success) { |
| 135 | + // String entry = 'qn.colorcun.com:FhPRiYHsv64MELeqTDp9A5TBuBp1/jpeg'; | ||
| 136 | + // Codec<String, String> stringToBase64 = utf8.fuse(base64); | ||
| 137 | + // String encoded = stringToBase64.encode(entry); | ||
| 138 | + // DioUtil.getInstance().getDio().options.headers = { | ||
| 139 | + // "Authorization": | ||
| 140 | + // 'Qiniu uva-aaonM8dukeR6phc9yuPBrOXk9brrNW_PxLD7:7RbiwJYcLWQlVBaYarlWsKKLtDc=:eyJzY29wZSI6ImNvbG9yY3VuLWF0dHIiLCJkZWFkbGluZSI6MTcxMDEzMjAzNH0=' | ||
| 141 | + // }; | ||
| 142 | + // Response response = await DioUtil.getInstance() | ||
| 143 | + // .getDio() | ||
| 144 | + // .post('http://rs.qiniuapi.com/delete/${encoded}'); | ||
| 145 | + | ||
| 146 | + // print(response); | ||
| 133 | print('删除成功'); | 147 | print('删除成功'); |
| 134 | //调用删除桌子图片接口 | 148 | //调用删除桌子图片接口 |
| 135 | _uploadImageProvider.tableImageList.removeWhere( | 149 | _uploadImageProvider.tableImageList.removeWhere( |
| @@ -115,6 +115,7 @@ class UploadImageUtil { | @@ -115,6 +115,7 @@ class UploadImageUtil { | ||
| 115 | uploadImageProvider.notifyListeners(); | 115 | uploadImageProvider.notifyListeners(); |
| 116 | }); | 116 | }); |
| 117 | // 添加实际发送进度订阅 | 117 | // 添加实际发送进度订阅 |
| 118 | + | ||
| 118 | putController.addSendProgressListener((percent) { | 119 | putController.addSendProgressListener((percent) { |
| 119 | // _onlineCheckEditProvider.imageList[index].process = percent; | 120 | // _onlineCheckEditProvider.imageList[index].process = percent; |
| 120 | // setState(() {}); | 121 | // setState(() {}); |
| @@ -129,6 +130,7 @@ class UploadImageUtil { | @@ -129,6 +130,7 @@ class UploadImageUtil { | ||
| 129 | return; | 130 | return; |
| 130 | } | 131 | } |
| 131 | print('开始上传文件'); | 132 | print('开始上传文件'); |
| 133 | + | ||
| 132 | storage.putFile( | 134 | storage.putFile( |
| 133 | selectedFile, | 135 | selectedFile, |
| 134 | usedToken, | 136 | usedToken, |
-
Please register or login to post a comment