Commit 8e90ed906245ef651de2bb788de8bee7456447cd

Authored by wdn127929
1 parent 6b22d521

h5

@@ -11,14 +11,14 @@ if (flutterRoot == null) { @@ -11,14 +11,14 @@ if (flutterRoot == null) {
11 throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 11 throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 } 12 }
13 13
14 -def flutterVersionCode = "190" 14 +def flutterVersionCode = "200"
15 if (flutterVersionCode == null) { 15 if (flutterVersionCode == null) {
16 - flutterVersionCode = '190' 16 + flutterVersionCode = '200'
17 } 17 }
18 18
19 -def flutterVersionName = "1.9.0" 19 +def flutterVersionName = "2.0.0"
20 if (flutterVersionName == null) { 20 if (flutterVersionName == null) {
21 - flutterVersionName = '1.9.0' 21 + flutterVersionName = '2.0.0'
22 } 22 }
23 23
24 apply plugin: 'com.android.application' 24 apply plugin: 'com.android.application'
@@ -9,6 +9,7 @@ import 'package:flutter_statusbarcolor/flutter_statusbarcolor.dart'; @@ -9,6 +9,7 @@ import 'package:flutter_statusbarcolor/flutter_statusbarcolor.dart';
9 import 'package:fluttertoast/fluttertoast.dart'; 9 import 'package:fluttertoast/fluttertoast.dart';
10 import 'package:flutter/services.dart'; 10 import 'package:flutter/services.dart';
11 import 'package:fluwx/fluwx.dart'; 11 import 'package:fluwx/fluwx.dart';
  12 +import 'package:one_key/pages/login/web_page.dart';
12 import 'package:one_key/provider/user_model.dart'; 13 import 'package:one_key/provider/user_model.dart';
13 import 'package:one_key/utils/navigator_util.dart'; 14 import 'package:one_key/utils/navigator_util.dart';
14 import 'package:one_key/widgets/loading.dart'; 15 import 'package:one_key/widgets/loading.dart';
@@ -216,19 +217,32 @@ class Utils { @@ -216,19 +217,32 @@ class Utils {
216 //分享邀请函 217 //分享邀请函
217 static goShareInvicationToWeChat(String rid) async { 218 static goShareInvicationToWeChat(String rid) async {
218 String _webPageUrl = "http://colorcun.com/"; 219 String _webPageUrl = "http://colorcun.com/";
  220 + // String _thumbnail =
  221 + // "https://xt04.colorcun.com/h5/index.html#/?id=163854&hasInvitation=1";
  222 +
219 String _thumbnail = 223 String _thumbnail =
220 "https://qn.colorcun.com/reserve/images/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_201911151148572.jpg"; 224 "https://qn.colorcun.com/reserve/images/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_201911151148572.jpg";
221 - String _title = "用餐已为您安排,点击查看详情"; 225 + String _title = "用餐已为您安排";
222 String _userName = "gh_487873d353b3"; 226 String _userName = "gh_487873d353b3";
223 String _path = "pages/customer/index?id=$rid&hasInvitation=1"; 227 String _path = "pages/customer/index?id=$rid&hasInvitation=1";
224 - String _description = "OneKey";  
225 - var model = new WeChatShareMiniProgramModel(  
226 - webPageUrl: _webPageUrl,  
227 - userName: _userName,  
228 - title: _title,  
229 - path: _path,  
230 - description: _description,  
231 - thumbnail: WeChatImage.network(_thumbnail)); 228 + String _description = "进入查看包间详情,转发同行好友,还可一键导航到饭店";
  229 + //跳转小程序
  230 + // var model = new WeChatShareMiniProgramModel(
  231 + // webPageUrl: _webPageUrl,
  232 + // userName: _userName,
  233 + // title: _title,
  234 + // path: _path,
  235 + // description: _description,
  236 + // thumbnail: WeChatImage.network(_thumbnail));
  237 + //分享链接
  238 + var model = WeChatShareWebPageModel(
  239 + 'https://xt04.colorcun.com/h5/index.html#/?id=$rid&hasInvitation=1',
  240 + title: _title,
  241 + description: _description,
  242 + thumbnail: WeChatImage.network(_thumbnail),
  243 + scene: WeChatScene.SESSION,
  244 + );
  245 +
232 bool isSuccess = await shareToWeChat(model); 246 bool isSuccess = await shareToWeChat(model);
233 return isSuccess; 247 return isSuccess;
234 } 248 }