更新天气获取方式;更新关于我们和操作说明地址配置
This commit is contained in:
@@ -6,8 +6,9 @@ import 'package:vbvs_app/common/util/MyUtils.dart';
|
||||
import 'package:vbvs_app/component/tool/WebViewWidget.dart';
|
||||
|
||||
class AboutUsPage extends StatefulWidget {
|
||||
String url;
|
||||
late MyWebView webView;
|
||||
AboutUsPage({super.key});
|
||||
AboutUsPage({super.key, required this.url});
|
||||
|
||||
@override
|
||||
State<AboutUsPage> createState() => _AboutUsPageState();
|
||||
@@ -20,9 +21,10 @@ class _AboutUsPageState extends State<AboutUsPage> {
|
||||
// pdfController.loadPdf();
|
||||
|
||||
widget.webView = MyWebView(
|
||||
url: AppConstants().ent_type == 1
|
||||
? "https://mp.weixin.qq.com/s/IAr4RNBy0hGJXGKyMxe7eQ"
|
||||
: "https://mp.weixin.qq.com/s/7BvvprVDqX1eOzM3Lms8dg",
|
||||
// url: AppConstants().ent_type == 1
|
||||
// ? "https://mp.weixin.qq.com/s/IAr4RNBy0hGJXGKyMxe7eQ"
|
||||
// : "https://mp.weixin.qq.com/s/7BvvprVDqX1eOzM3Lms8dg",
|
||||
url:widget.url,
|
||||
onLoad: () {
|
||||
print('网页载入完毕');
|
||||
},
|
||||
|
||||
@@ -2,10 +2,12 @@ import 'package:ef/ef.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
import 'package:flutterflow_ui/flutterflow_ui.dart';
|
||||
import 'package:vbvs_app/common/color/ServiceConstant.dart';
|
||||
import 'package:vbvs_app/common/color/appConstants.dart';
|
||||
import 'package:vbvs_app/common/color/app_uri_status.dart';
|
||||
import 'package:vbvs_app/common/util/FitTool.dart';
|
||||
import 'package:vbvs_app/common/util/MyUtils.dart';
|
||||
import 'package:vbvs_app/common/util/requestWithLog.dart';
|
||||
import 'package:vbvs_app/component/tool/ClickableContainer.dart';
|
||||
import 'package:vbvs_app/component/tool/CustomCard.dart';
|
||||
import 'package:vbvs_app/component/tool/TopSlideNotification.dart';
|
||||
@@ -14,6 +16,7 @@ import 'package:vbvs_app/controller/main_bottom/global_controller.dart';
|
||||
import 'package:vbvs_app/controller/setting/language/language_controller.dart';
|
||||
import 'package:vbvs_app/controller/theme_controller/ThemeController.dart';
|
||||
import 'package:vbvs_app/controller/user_info_controller.dart';
|
||||
import 'package:vbvs_app/enum/APPPackageType.dart';
|
||||
import 'package:vbvs_app/model/api_response.dart';
|
||||
|
||||
class SettingPage extends StatefulWidget {
|
||||
@@ -295,9 +298,40 @@ class _SettingPageState extends State<SettingPage> {
|
||||
.currentColor.sc21, // 点击时的背景色
|
||||
padding: EdgeInsetsDirectional.fromSTEB(
|
||||
0.rpx, 0.rpx, 0.rpx, 0.rpx),
|
||||
onTap: () {
|
||||
onTap: () async {
|
||||
String url =
|
||||
"https://mp.weixin.qq.com/s/IAr4RNBy0hGJXGKyMxe7eQ";
|
||||
String serviceAddress =
|
||||
ServiceConstant.service_address;
|
||||
String serviceName =
|
||||
ServiceConstant.server_service;
|
||||
String serviceApi =
|
||||
ServiceConstant.user_setting;
|
||||
String queryUrl =
|
||||
"$serviceAddress$serviceName$serviceApi";
|
||||
String type = "app_about_us";
|
||||
String code = "th";
|
||||
if (AppConstants().ent_type ==
|
||||
APPPackageType.TH.code) {
|
||||
code = "th";
|
||||
} else if (AppConstants().ent_type ==
|
||||
APPPackageType.HUANSHUI.code) {
|
||||
code = "hs";
|
||||
} else {
|
||||
code = 'th';
|
||||
}
|
||||
queryUrl =
|
||||
"$queryUrl?type=$type&code=$code";
|
||||
await requestWithLog(
|
||||
logTitle: "查询操作说明",
|
||||
method: MyHttpMethod.get,
|
||||
queryUrl: queryUrl,
|
||||
onSuccess: (res) {
|
||||
url = res.data['url'];
|
||||
},
|
||||
);
|
||||
print('点击了容器');
|
||||
Get.toNamed("/aboutUsPage");
|
||||
Get.toNamed("/aboutUsPage", arguments: url);
|
||||
},
|
||||
child: Container(
|
||||
child: Padding(
|
||||
|
||||
Reference in New Issue
Block a user