From 024094823b29daa79b791a776bff7c0a8e4b9de9 Mon Sep 17 00:00:00 2001 From: Weller <1812208341@qq.com> Date: Fri, 25 Sep 2020 20:32:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0example?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/lib/main.dart | 5 +++-- lib/util/taobao/taobao_auth.dart | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index 6592e04..118b5c1 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -3,7 +3,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_alibc/flutter_alibc.dart'; import 'package:jdsdk/jdsdk.dart'; import 'package:url_launcher/url_launcher.dart'; -import 'package:zhiying_comm/pages/launch_page/launch_page.dart'; import 'package:zhiying_comm/register.dart'; import 'package:zhiying_comm/zhiying_comm.dart'; @@ -35,7 +34,9 @@ class _MyAppState extends State { @override Widget build(BuildContext context) { - return MaterialApp(home: LaunchPage(builder: (context) => HomePage(),),); + return MaterialApp( + home: HomePage(), + ); } } diff --git a/lib/util/taobao/taobao_auth.dart b/lib/util/taobao/taobao_auth.dart index f3b8047..a06ad54 100644 --- a/lib/util/taobao/taobao_auth.dart +++ b/lib/util/taobao/taobao_auth.dart @@ -13,6 +13,9 @@ class TaobaoAuth { return TaobaoAuthAlert(); }); if (isConfirm != null && isConfirm == true) { + Map data = + await NetUtil.post('/api/v1/taobao/auth', method: NetMethod.GET); + TradeResult result = await FlutterAlibc.openByUrl( url: 'https://uland.taobao.com/coupon/edetail?e=3HzI2W1Beb8GQASttHIRqXnNjWpDy9mhXwL7S63FIwYKZE0HebgG45okpD6aY36atPRANf7tQQAMfuX5VbbjJDEhJpUUrcnYl02IO45oPAVVa4HVocdYY3Y9x3IctcCWLspxGy3zBjY8IeN8lvhRA2lzrR4%2BfrcbCbBkjRdlgvJ932VMXbyLuXFtBQJOD%2BAi1xjdOwSZLqE%3D&traceId=0bb623e116004208111058861eea6c&relationId=528397833&union_lens=lensId:TAPI@1600420811@0b8fdc87_0dbb_174a0839173_b4fc@01&relationId=528397833');