瀏覽代碼

更新example

tags/0.0.1
Weller 4 年之前
父節點
當前提交
024094823b
共有 2 個文件被更改,包括 6 次插入2 次删除
  1. +3
    -2
      example/lib/main.dart
  2. +3
    -0
      lib/util/taobao/taobao_auth.dart

+ 3
- 2
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<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 查看文件

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


Loading…
取消
儲存