Commit c5e456dfd21cc7bab90c357b28bf8f92f656f48b

Authored by wdn127929
1 parent 9a419c2e

标准版客情使用极速版页面

... ... @@ -1032,7 +1032,16 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver {
}
if (Utils.getAuthority(context, '我的客情')) {
NavigatorUtil.goMyCustomerPage(context);
if (collectStoreProvider
.sellerNormalSpecial) {
//标准版
NavigatorUtil.goMyCustomerListPageSim(
context);
} else {
NavigatorUtil.goMyCustomerPage(
context);
}
}
},
child: _item(
... ... @@ -1228,8 +1237,16 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver {
}
if (Utils.getAuthority(
context, '全店客情')) {
NavigatorUtil.goStoreCustomerPage(
context);
if (collectStoreProvider
.sellerNormalSpecial) {
//标准版
NavigatorUtil
.goCustomerListPageSim(
context);
} else {
NavigatorUtil.goStoreCustomerPage(
context);
}
}
},
child: _item(
... ...
... ... @@ -25,9 +25,11 @@ class CollectStoreProvider with ChangeNotifier {
bool sellerFeast = false; //宴会
bool sellerPreserve = false; //客情维护
bool sellerMarketing = false; //客情营销
bool sellerNormal = false; //超能或者标准
bool sellerNormal = false; //超能或者标准或高级
bool sellerSimple = false; //极速版
bool sellerNormalSpecial = false;//标准版客情和极速版一样
String sellerNormalEdate = '';
/// 收集店铺信息
... ... @@ -134,6 +136,10 @@ class CollectStoreProvider with ChangeNotifier {
if (int.parse(element.cdate) * 1000 ==
cdates[cdates.length - 1].millisecondsSinceEpoch) {
temp.add(element); //最新的版本信息
if(element.vid == '4'|| element.vid == '13'){
sellerNormalSpecial = true;
}
}
} else {
temp.add(element); //模块信息
... ... @@ -193,6 +199,9 @@ class CollectStoreProvider with ChangeNotifier {
if (int.parse(element.cdate) * 1000 ==
cdates[cdates.length - 1].millisecondsSinceEpoch) {
temp.add(element); //最新的版本信息
if(element.vid == '4'|| element.vid == '13'){
sellerNormalSpecial = true;
}
}
} else {
temp.add(element); //模块信息
... ...