如果无锁不能进入高级功能
This commit is contained in:
parent
f1a095a6b4
commit
17908feb36
@ -2,6 +2,7 @@ import 'package:flutter/material.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/flavors.dart';
|
import 'package:star_lock/flavors.dart';
|
||||||
|
import 'package:star_lock/tools/commonDataManage.dart';
|
||||||
|
|
||||||
import '../../appRouters.dart';
|
import '../../appRouters.dart';
|
||||||
import '../../app_settings/app_colors.dart';
|
import '../../app_settings/app_colors.dart';
|
||||||
@ -91,8 +92,12 @@ class StarLockMinePageState extends State<StarLockMinePage> with BaseWidget {
|
|||||||
Obx(() => GestureDetector(
|
Obx(() => GestureDetector(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
if (state.isVip.value == null || !state.isVip.value) {
|
if (state.isVip.value == null || !state.isVip.value) {
|
||||||
Get.toNamed(Routers.advancedFeaturesWebPage,
|
if (CommonDataManage().currentKeyInfo == null) {
|
||||||
arguments: {'isShop': true});
|
logic.showToast('请先添加设备');
|
||||||
|
} else {
|
||||||
|
Get.toNamed(Routers.advancedFeaturesWebPage,
|
||||||
|
arguments: {'isShop': true});
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
Get.toNamed(
|
Get.toNamed(
|
||||||
Routers.valueAddedServicesHighFunctionPage);
|
Routers.valueAddedServicesHighFunctionPage);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user