对现存需求疑点和未完成项在线上环境隐藏

This commit is contained in:
“DaisyWu” 2024-08-07 13:37:14 +08:00
parent 01db54a346
commit 004a38b341
5 changed files with 130 additions and 116 deletions

View File

@ -145,6 +145,7 @@ class _LockDetailPageState extends State<LockDetailPage>
'isOnlyOneData': state.isOnlyOneData 'isOnlyOneData': state.isOnlyOneData
}); });
}), }),
if (!F.isProductionEnv)
labelText( labelText(
img: 'images/icon_puzzlepiece_extension.png', img: 'images/icon_puzzlepiece_extension.png',
text: '配件'.tr, text: '配件'.tr,
@ -994,19 +995,15 @@ class _LockDetailPageState extends State<LockDetailPage>
final List<Widget> showWidgetArr = <Widget>[]; final List<Widget> showWidgetArr = <Widget>[];
// //
if (state.isAttendance.value == 1) { if (state.isAttendance.value == 1) {
showWidgetArr.add(bottomItem( showWidgetArr.add(bottomItem('images/main/icon_main_clockingIn.png',
'images/main/icon_main_clockingIn.png', '考勤'.tr, state.bottomBtnisEable.value, () {
'考勤'.tr,
state.bottomBtnisEable.value, () {
Get.toNamed(Routers.checkingInListPage, Get.toNamed(Routers.checkingInListPage,
arguments: state.keyInfos.value); arguments: state.keyInfos.value);
})); }));
} }
// //
showWidgetArr.add(bottomItem( showWidgetArr.add(bottomItem('images/main/icon_main_operatingRecord.png',
'images/main/icon_main_operatingRecord.png', '操作记录'.tr, state.bottomBtnisEable.value, () {
'操作记录'.tr,
state.bottomBtnisEable.value, () {
Get.toNamed(Routers.doorLockLogPage, Get.toNamed(Routers.doorLockLogPage,
arguments: <String, LockListInfoItemEntity>{ arguments: <String, LockListInfoItemEntity>{
'keyInfo': state.keyInfos.value 'keyInfo': state.keyInfos.value
@ -1032,27 +1029,21 @@ class _LockDetailPageState extends State<LockDetailPage>
final List<Widget> showWidgetArr = <Widget>[]; final List<Widget> showWidgetArr = <Widget>[];
// //
if (state.isAttendance.value == 1) { if (state.isAttendance.value == 1) {
showWidgetArr.add(bottomItem( showWidgetArr.add(bottomItem('images/main/icon_main_clockingIn.png',
'images/main/icon_main_clockingIn.png', '考勤'.tr, state.bottomBtnisEable.value, () {
'考勤'.tr,
state.bottomBtnisEable.value, () {
Get.toNamed(Routers.checkingInListPage, Get.toNamed(Routers.checkingInListPage,
arguments: state.keyInfos.value); arguments: state.keyInfos.value);
})); }));
} }
// //
showWidgetArr.add(bottomItem( showWidgetArr.add(bottomItem('images/main/icon_main_electronicKey.png',
'images/main/icon_main_electronicKey.png', '电子钥匙'.tr, state.bottomBtnisEable.value, () {
'电子钥匙'.tr,
state.bottomBtnisEable.value, () {
Get.toNamed(Routers.electronicKeyListPage); Get.toNamed(Routers.electronicKeyListPage);
})); }));
// //
showWidgetArr.add(bottomItem( showWidgetArr.add(bottomItem('images/main/icon_main_password.png', '密码'.tr,
'images/main/icon_main_password.png',
'密码'.tr,
state.bottomBtnisEable.value, () { state.bottomBtnisEable.value, () {
Get.toNamed(Routers.passwordKeyListPage, Get.toNamed(Routers.passwordKeyListPage,
arguments: <String, LockListInfoItemEntity>{ arguments: <String, LockListInfoItemEntity>{
@ -1062,9 +1053,7 @@ class _LockDetailPageState extends State<LockDetailPage>
// ic卡 // ic卡
if (state.keyInfos.value.lockFeature!.icCard == 1) { if (state.keyInfos.value.lockFeature!.icCard == 1) {
showWidgetArr.add(bottomItem( showWidgetArr.add(bottomItem('images/main/icon_main_icCard.png', ''.tr,
'images/main/icon_main_icCard.png',
''.tr,
state.bottomBtnisEable.value, () { state.bottomBtnisEable.value, () {
Get.toNamed(Routers.cardListPage, arguments: <String, int?>{ Get.toNamed(Routers.cardListPage, arguments: <String, int?>{
'lockId': state.keyInfos.value.lockId, 'lockId': state.keyInfos.value.lockId,
@ -1074,10 +1063,8 @@ class _LockDetailPageState extends State<LockDetailPage>
// //
if (state.keyInfos.value.lockFeature!.fingerprint == 1) { if (state.keyInfos.value.lockFeature!.fingerprint == 1) {
showWidgetArr.add(bottomItem( showWidgetArr.add(bottomItem('images/main/icon_main_fingerprint.png',
'images/main/icon_main_fingerprint.png', '指纹'.tr, state.bottomBtnisEable.value, () {
'指纹'.tr,
state.bottomBtnisEable.value, () {
Get.toNamed(Routers.fingerprintListPage, arguments: <String, int?>{ Get.toNamed(Routers.fingerprintListPage, arguments: <String, int?>{
'lockId': state.keyInfos.value.lockId, 'lockId': state.keyInfos.value.lockId,
}); });
@ -1086,10 +1073,8 @@ class _LockDetailPageState extends State<LockDetailPage>
// //
if (state.keyInfos.value.lockFeature!.bluetoothRemoteControl == 1) { if (state.keyInfos.value.lockFeature!.bluetoothRemoteControl == 1) {
showWidgetArr.add(bottomItem( showWidgetArr.add(bottomItem('images/main/icon_main_remoteControl.png',
'images/main/icon_main_remoteControl.png', '遥控'.tr, state.bottomBtnisEable.value, () {
'遥控'.tr,
state.bottomBtnisEable.value, () {
Get.toNamed(Routers.remoteControlListPage, arguments: <String, int?>{ Get.toNamed(Routers.remoteControlListPage, arguments: <String, int?>{
'lockId': state.keyInfos.value.lockId, 'lockId': state.keyInfos.value.lockId,
}); });
@ -1165,9 +1150,7 @@ class _LockDetailPageState extends State<LockDetailPage>
final List<Widget> endWiddget = <Widget>[]; final List<Widget> endWiddget = <Widget>[];
endWiddget.add( endWiddget.add(
// //
bottomItem( bottomItem('images/main/icon_main_operatingRecord.png', '操作记录'.tr,
'images/main/icon_main_operatingRecord.png',
'操作记录'.tr,
state.bottomBtnisEable.value, () { state.bottomBtnisEable.value, () {
// Get.toNamed(Routers.lockOperatingRecordPage, // Get.toNamed(Routers.lockOperatingRecordPage,
// arguments: {"keyInfo": state.keyInfos.value}); // arguments: {"keyInfo": state.keyInfos.value});
@ -1189,6 +1172,7 @@ class _LockDetailPageState extends State<LockDetailPage>
}); });
})); }));
} }
if (!F.isProductionEnv) {
endWiddget.add( endWiddget.add(
// //
bottomItem( bottomItem(
@ -1197,10 +1181,12 @@ class _LockDetailPageState extends State<LockDetailPage>
state.bottomBtnisEable.value, () { state.bottomBtnisEable.value, () {
Get.toNamed(Routers.msgNotificationPage, arguments: <String, int?>{ Get.toNamed(Routers.msgNotificationPage, arguments: <String, int?>{
'lockId': state.keyInfos.value.lockId, 'lockId': state.keyInfos.value.lockId,
'isSupportCatEye': state.keyInfos.value.lockFeature!.isSupportCatEye, 'isSupportCatEye':
state.keyInfos.value.lockFeature!.isSupportCatEye,
}); });
}), }),
); );
}
if (F.isSKY) { if (F.isSKY) {
endWiddget.add( endWiddget.add(

View File

@ -133,13 +133,13 @@ class _MsgNotificationPageState extends State<MsgNotificationPage> {
SizedBox( SizedBox(
height: 10.h, height: 10.h,
), ),
Obx(() => CommonItem( // Obx(() => CommonItem(
leftTitel: '有人按门铃'.tr, // leftTitel: '有人按门铃'.tr,
rightTitle: "", // rightTitle: "",
isHaveLine: true, // isHaveLine: true,
isHaveRightWidget: true, // isHaveRightWidget: true,
rightWidget: // rightWidget:
SizedBox(width: 60.w, height: 50.h, child: _switch(3)))), // SizedBox(width: 60.w, height: 50.h, child: _switch(3)))),
SizedBox( SizedBox(
height: 10.h, height: 10.h,
), ),

View File

@ -221,6 +221,7 @@ class _MineSetPageState extends State<MineSetPage>
Get.toNamed(Routers.authorizedAdministratorListPage); Get.toNamed(Routers.authorizedAdministratorListPage);
}), }),
//by DaisyWu -- //by DaisyWu --
if (!F.isProductionEnv)
CommonItem( CommonItem(
leftTitel: TranslationLoader.lanKeys!.authorityManagement!.tr, leftTitel: TranslationLoader.lanKeys!.authorityManagement!.tr,
rightTitle: '', rightTitle: '',
@ -246,14 +247,15 @@ class _MineSetPageState extends State<MineSetPage>
action: () { action: () {
Get.toNamed(Routers.transferSmartLockPage); Get.toNamed(Routers.transferSmartLockPage);
}), }),
CommonItem( //
leftTitel: TranslationLoader.lanKeys!.transferGateway!.tr, // CommonItem(
rightTitle: '', // leftTitel: TranslationLoader.lanKeys!.transferGateway!.tr,
isHaveLine: true, // rightTitle: '',
isHaveDirection: true, // isHaveLine: true,
action: () { // isHaveDirection: true,
Get.toNamed(Routers.selectGetewayListPage); // action: () {
}), // Get.toNamed(Routers.selectGetewayListPage);
// }),
SizedBox( SizedBox(
height: 10.h, height: 10.h,
), ),
@ -326,7 +328,7 @@ class _MineSetPageState extends State<MineSetPage>
height: 10.h, height: 10.h,
), ),
// //
if (!F.isLite) if (!F.isProductionEnv)
CommonItem( CommonItem(
leftTitel: 'Amazon Alexa', leftTitel: 'Amazon Alexa',
rightTitle: '', rightTitle: '',
@ -335,7 +337,7 @@ class _MineSetPageState extends State<MineSetPage>
action: () { action: () {
logic.showToast('功能暂未开放'.tr); logic.showToast('功能暂未开放'.tr);
}), }),
if (!F.isLite) if (!F.isProductionEnv)
CommonItem( CommonItem(
leftTitel: 'Google Home', leftTitel: 'Google Home',
rightTitle: '', rightTitle: '',
@ -344,7 +346,7 @@ class _MineSetPageState extends State<MineSetPage>
action: () { action: () {
logic.showToast('功能暂未开放'.tr); logic.showToast('功能暂未开放'.tr);
}), }),
if (!F.isLite) if (!F.isProductionEnv)
CommonItem( CommonItem(
leftTitel: TranslationLoader.lanKeys!.xiaomiIOTPlatform!.tr, leftTitel: TranslationLoader.lanKeys!.xiaomiIOTPlatform!.tr,
rightTitle: '', rightTitle: '',

View File

@ -236,12 +236,18 @@ class _ValueAddedServicesHighFunctionPageState
'群发钥匙'.tr), '群发钥匙'.tr),
// _buildItem("images/mine/icon_mine_highFunctionContent_bjft.png", // _buildItem("images/mine/icon_mine_highFunctionContent_bjft.png",
// TranslationLoader.lanKeys!.markedHouseState!.tr), // TranslationLoader.lanKeys!.markedHouseState!.tr),
_buildItem('images/mine/icon_mine_highFunctionContent_fkgj.png', // _buildItem('images/mine/icon_mine_highFunctionContent_fkgj.png',
TranslationLoader.lanKeys!.cardIssuingtool!.tr), // TranslationLoader.lanKeys!.cardIssuingtool!.tr),
_buildItem( // _buildItem(
'images/mine/icon_mine_highFunctionContent_fkgj.png', '推送'), // 'images/mine/icon_mine_highFunctionContent_fkgj.png', '推送'),
_buildItem( // _buildItem(
'images/mine/icon_mine_highFunctionContent_fkgj.png', '考勤'), // 'images/mine/icon_mine_highFunctionContent_fkgj.png', '考勤'),
_buildItem('images/mine/icon_mine_highFunctionContent_bjft.png',
'导出锁数据'.tr),
_buildItem('images/mine/icon_mine_highFunctionContent_bjft.png',
'常开模式'.tr),
_buildItem('images/mine/icon_mine_highFunctionContent_bjft.png',
'一键开锁'.tr),
], ],
), ),
), ),

View File

@ -3,6 +3,7 @@ import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
import 'package:star_lock/common/XSConstantMacro/XSConstantMacro.dart'; import 'package:star_lock/common/XSConstantMacro/XSConstantMacro.dart';
import 'package:star_lock/flavors.dart';
import 'package:star_lock/mine/valueAddedServices/valueAddedServicesList/valueAddedServicesList_logic.dart'; import 'package:star_lock/mine/valueAddedServices/valueAddedServicesList/valueAddedServicesList_logic.dart';
import 'package:star_lock/mine/valueAddedServices/valueAddedServicesList/valueAddedServicesList_state.dart'; import 'package:star_lock/mine/valueAddedServices/valueAddedServicesList/valueAddedServicesList_state.dart';
import 'package:star_lock/tools/commonDataManage.dart'; import 'package:star_lock/tools/commonDataManage.dart';
@ -57,7 +58,10 @@ class _ValueAddedServicesPageListState
Get.toNamed(Routers.valueAddedServicesNoteAndEmailDetailPage, Get.toNamed(Routers.valueAddedServicesNoteAndEmailDetailPage,
arguments: <String, int>{'type': 2}); arguments: <String, int>{'type': 2});
}), }),
_valueAddedServicesItem(Image.asset('images/mine/icon_mine_valueAddedServices_realName.png'), '实名认证'.tr, () { _valueAddedServicesItem(
Image.asset(
'images/mine/icon_mine_valueAddedServices_realName.png'),
'实名认证'.tr, () {
Get.toNamed(Routers.valueAddedServicesRealNamePage); Get.toNamed(Routers.valueAddedServicesRealNamePage);
}), }),
_valueAddedServicesItem( _valueAddedServicesItem(
@ -89,17 +93,20 @@ class _ValueAddedServicesPageListState
// TranslationLoader.lanKeys!.checkingIn!.tr, () { // TranslationLoader.lanKeys!.checkingIn!.tr, () {
// Navigator.pushNamed(context, Routers.gatewayDetailPage); // Navigator.pushNamed(context, Routers.gatewayDetailPage);
// }), // }),
_valueAddedServicesItem( //
Image.asset( // _valueAddedServicesItem(
'images/mine/icon_mine_valueAddedServices_storage.png'), // Image.asset(
TranslationLoader.lanKeys!.recordsRetention!.tr, () { // 'images/mine/icon_mine_valueAddedServices_storage.png'),
EasyLoading.showToast('功能暂未开放', duration: 2000.milliseconds); // TranslationLoader.lanKeys!.recordsRetention!.tr, () {
}), // EasyLoading.showToast('功能暂未开放', duration: 2000.milliseconds);
// }),
if (!F.isProductionEnv)
_valueAddedServicesItem( _valueAddedServicesItem(
Image.asset('images/mine/icon_mine_valueAddedServices_vip.png'), Image.asset('images/mine/icon_mine_valueAddedServices_vip.png'),
'可视对讲', () { '可视对讲', () {
EasyLoading.showToast('功能暂未开放', duration: 2000.milliseconds); EasyLoading.showToast('功能暂未开放', duration: 2000.milliseconds);
}), }),
if (!F.isProductionEnv)
_valueAddedServicesItem( _valueAddedServicesItem(
Text( Text(
'A', 'A',
@ -111,6 +118,7 @@ class _ValueAddedServicesPageListState
'Amazon Alexa', () { 'Amazon Alexa', () {
EasyLoading.showToast('功能暂未开放', duration: 2000.milliseconds); EasyLoading.showToast('功能暂未开放', duration: 2000.milliseconds);
}), }),
if (!F.isProductionEnv)
_valueAddedServicesItem( _valueAddedServicesItem(
Text( Text(
'G', 'G',
@ -122,6 +130,18 @@ class _ValueAddedServicesPageListState
'Google Home', () { 'Google Home', () {
EasyLoading.showToast('功能暂未开放', duration: 2000.milliseconds); EasyLoading.showToast('功能暂未开放', duration: 2000.milliseconds);
}), }),
if (!F.isProductionEnv)
_valueAddedServicesItem(
Text(
'M',
style: TextStyle(
color: Colors.white,
fontSize: 38.sp,
fontWeight: FontWeight.w600),
),
'小米IOT平台', () {
EasyLoading.showToast('功能暂未开放', duration: 2000.milliseconds);
}),
], ],
), ),
); );