Sfoglia il codice sorgente

更新example

tags/0.0.1
Weller 4 anni fa
parent
commit
024094823b
2 ha cambiato i file con 6 aggiunte e 2 eliminazioni
  1. +3
    -2
      example/lib/main.dart
  2. +3
    -0
      lib/util/taobao/taobao_auth.dart

+ 3
- 2
example/lib/main.dart Vedi File

@@ -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<MyApp> {

@override
Widget build(BuildContext context) {
return MaterialApp(home: LaunchPage(builder: (context) => HomePage(),),);
return MaterialApp(
home: HomePage(),
);
}
}



+ 3
- 0
lib/util/taobao/taobao_auth.dart Vedi File

@@ -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');


Caricamento…
Annulla
Salva