Parcourir la source

Merge branch '1.22.0_dev' of http://192.168.0.138:3000/FnuoOS_ZhiYing/zhiying_base_widget into 1.22.0_dev

tags/0.0.17
“yanghuaxuan” il y a 3 ans
Parent
révision
bb5d14a685
1 fichiers modifiés avec 10 ajouts et 4 suppressions
  1. +10
    -4
      lib/pages/order_found_page/order_found_result/order_found_result_page.dart

+ 10
- 4
lib/pages/order_found_page/order_found_result/order_found_result_page.dart Voir le fichier

@@ -6,6 +6,7 @@ import 'package:zhiying_base_widget/pages/order_found_page/order_found_result/or
import 'package:zhiying_base_widget/pages/order_found_page/order_found_result/order_found_result_model.dart';

import 'package:zhiying_comm/zhiying_comm.dart';
import 'package:fluttertoast/fluttertoast.dart';

class OrderFoundResultPage extends StatefulWidget {
//有数据的model
@@ -59,12 +60,16 @@ class _OrderFoundResultPageState extends State<OrderFoundResultPage> {
// _bloc.getData();
}

//找回订单操作
retrieveOrderClick() {
print("是我的,找回该订单点击");
Map<String, dynamic> params = {};
params['oid'] = model?.ordId;
NetUtil.request('/api/v1/order/find',
method: NetMethod.POST, params: params, onSuccess: (data) {});
NetUtil.request('/api/v1/order/find', method: NetMethod.POST, params: params,
onSuccess: (data) {
Fluttertoast.showToast(msg: "找回成功");
Navigator.pop(context, "success");
});
}

continueToQuery() {
@@ -73,9 +78,10 @@ class _OrderFoundResultPageState extends State<OrderFoundResultPage> {
}

//复制订单号
copyOrderCode() {
copyOrderCode() async{
ClipboardData data = new ClipboardData(text: model?.ordId);
Clipboard.setData(data);
await Clipboard.setData(data);
Fluttertoast.showToast(msg: "已复制订单号");
}

@override


Chargement…
Annuler
Enregistrer