|
...
|
...
|
@@ -26,6 +26,7 @@ import 'package:one_key/widgets/system_app_bar.dart'; |
|
|
|
import 'package:one_key/widgets/v_empty_view.dart';
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
import 'package:tpns_flutter_plugin/tpns_flutter_plugin.dart';
|
|
|
|
import 'package:city_pickers/city_pickers.dart';
|
|
|
|
|
|
|
|
class IfNeedCreateStore extends StatefulWidget {
|
|
|
|
final List<CheckSellerAccSunModel> data;
|
|
...
|
...
|
@@ -191,34 +192,39 @@ class _IfNeedCreateStoreState extends State<IfNeedCreateStore> |
|
|
|
_baseIndoProvider = Provider.of<BaseIndoProvider>(context, listen: true);
|
|
|
|
return Scaffold(
|
|
|
|
backgroundColor: Colors.white,
|
|
|
|
appBar: SystemAppBar(
|
|
|
|
'选择店铺',
|
|
|
|
// leftTitle: '上一步',
|
|
|
|
appBar: SystemAppBar('选择店铺',
|
|
|
|
// leftTitle: '上一步',
|
|
|
|
rightImgName: 'add_check_store.png', onTapRight: () async {
|
|
|
|
Result result2 = await CityPickers.showCityPicker(
|
|
|
|
context: context,
|
|
|
|
);
|
|
|
|
print(result2);
|
|
|
|
}
|
|
|
|
|
|
|
|
// rightImgName: 'add_check_store.png', onTapRight: () {
|
|
|
|
// if (otherLoginProvider.pageState != PageState.Success) {
|
|
|
|
// // if (!App.sp.containsKey('openid') ||
|
|
|
|
// // App.sp.get("openid") == null ||
|
|
|
|
// // App.sp.get("openid") == '') {
|
|
|
|
// //跳转小程序
|
|
|
|
// Utils.goMiniProgramCreatePage(context);
|
|
|
|
// // } else {
|
|
|
|
// // //跳转至新建店铺流程
|
|
|
|
// // NavigatorUtil.goEnterStoreNamePage(context);
|
|
|
|
// // }
|
|
|
|
// } else {
|
|
|
|
// // if (!App.sp.containsKey('openid') ||
|
|
|
|
// // App.sp.get("openid") == null ||
|
|
|
|
// // App.sp.get("openid") == '') {
|
|
|
|
// // //跳转小程序
|
|
|
|
// // Utils.goMiniProgramCreatePage(context);
|
|
|
|
// // } else {
|
|
|
|
// //跳转至新建店铺流程
|
|
|
|
// NavigatorUtil.goEnterStoreNamePage(context);
|
|
|
|
// // }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
),
|
|
|
|
// rightImgName: 'add_check_store.png', onTapRight: () {
|
|
|
|
// if (otherLoginProvider.pageState != PageState.Success) {
|
|
|
|
// // if (!App.sp.containsKey('openid') ||
|
|
|
|
// // App.sp.get("openid") == null ||
|
|
|
|
// // App.sp.get("openid") == '') {
|
|
|
|
// //跳转小程序
|
|
|
|
// Utils.goMiniProgramCreatePage(context);
|
|
|
|
// // } else {
|
|
|
|
// // //跳转至新建店铺流程
|
|
|
|
// // NavigatorUtil.goEnterStoreNamePage(context);
|
|
|
|
// // }
|
|
|
|
// } else {
|
|
|
|
// // if (!App.sp.containsKey('openid') ||
|
|
|
|
// // App.sp.get("openid") == null ||
|
|
|
|
// // App.sp.get("openid") == '') {
|
|
|
|
// // //跳转小程序
|
|
|
|
// // Utils.goMiniProgramCreatePage(context);
|
|
|
|
// // } else {
|
|
|
|
// //跳转至新建店铺流程
|
|
|
|
// NavigatorUtil.goEnterStoreNamePage(context);
|
|
|
|
// // }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
),
|
|
|
|
body: Container(
|
|
|
|
// margin: EdgeInsets.only(bottom: ScreenUtil().setWidth(40)),
|
|
|
|
padding:
|
...
|
...
|
|