|
@@ -26,6 +26,7 @@ import 'package:one_key/widgets/system_app_bar.dart'; |
|
@@ -26,6 +26,7 @@ import 'package:one_key/widgets/system_app_bar.dart'; |
|
26
|
import 'package:one_key/widgets/v_empty_view.dart';
|
26
|
import 'package:one_key/widgets/v_empty_view.dart';
|
|
27
|
import 'package:provider/provider.dart';
|
27
|
import 'package:provider/provider.dart';
|
|
28
|
import 'package:tpns_flutter_plugin/tpns_flutter_plugin.dart';
|
28
|
import 'package:tpns_flutter_plugin/tpns_flutter_plugin.dart';
|
|
|
|
29
|
+import 'package:city_pickers/city_pickers.dart';
|
|
29
|
|
30
|
|
|
30
|
class IfNeedCreateStore extends StatefulWidget {
|
31
|
class IfNeedCreateStore extends StatefulWidget {
|
|
31
|
final List<CheckSellerAccSunModel> data;
|
32
|
final List<CheckSellerAccSunModel> data;
|
|
@@ -191,34 +192,39 @@ class _IfNeedCreateStoreState extends State<IfNeedCreateStore> |
|
@@ -191,34 +192,39 @@ class _IfNeedCreateStoreState extends State<IfNeedCreateStore> |
|
191
|
_baseIndoProvider = Provider.of<BaseIndoProvider>(context, listen: true);
|
192
|
_baseIndoProvider = Provider.of<BaseIndoProvider>(context, listen: true);
|
|
192
|
return Scaffold(
|
193
|
return Scaffold(
|
|
193
|
backgroundColor: Colors.white,
|
194
|
backgroundColor: Colors.white,
|
|
194
|
- appBar: SystemAppBar(
|
|
|
|
195
|
- '选择店铺',
|
|
|
|
196
|
- // leftTitle: '上一步',
|
195
|
+ appBar: SystemAppBar('选择店铺',
|
|
|
|
196
|
+ // leftTitle: '上一步',
|
|
|
|
197
|
+ rightImgName: 'add_check_store.png', onTapRight: () async {
|
|
|
|
198
|
+ Result result2 = await CityPickers.showCityPicker(
|
|
|
|
199
|
+ context: context,
|
|
|
|
200
|
+ );
|
|
|
|
201
|
+ print(result2);
|
|
|
|
202
|
+ }
|
|
197
|
|
203
|
|
|
198
|
- // rightImgName: 'add_check_store.png', onTapRight: () {
|
|
|
|
199
|
- // if (otherLoginProvider.pageState != PageState.Success) {
|
|
|
|
200
|
- // // if (!App.sp.containsKey('openid') ||
|
|
|
|
201
|
- // // App.sp.get("openid") == null ||
|
|
|
|
202
|
- // // App.sp.get("openid") == '') {
|
|
|
|
203
|
- // //跳转小程序
|
|
|
|
204
|
- // Utils.goMiniProgramCreatePage(context);
|
|
|
|
205
|
- // // } else {
|
|
|
|
206
|
- // // //跳转至新建店铺流程
|
|
|
|
207
|
- // // NavigatorUtil.goEnterStoreNamePage(context);
|
|
|
|
208
|
- // // }
|
|
|
|
209
|
- // } else {
|
|
|
|
210
|
- // // if (!App.sp.containsKey('openid') ||
|
|
|
|
211
|
- // // App.sp.get("openid") == null ||
|
|
|
|
212
|
- // // App.sp.get("openid") == '') {
|
|
|
|
213
|
- // // //跳转小程序
|
|
|
|
214
|
- // // Utils.goMiniProgramCreatePage(context);
|
|
|
|
215
|
- // // } else {
|
|
|
|
216
|
- // //跳转至新建店铺流程
|
|
|
|
217
|
- // NavigatorUtil.goEnterStoreNamePage(context);
|
|
|
|
218
|
- // // }
|
|
|
|
219
|
- // }
|
|
|
|
220
|
- // }
|
|
|
|
221
|
- ),
|
204
|
+ // rightImgName: 'add_check_store.png', onTapRight: () {
|
|
|
|
205
|
+ // if (otherLoginProvider.pageState != PageState.Success) {
|
|
|
|
206
|
+ // // if (!App.sp.containsKey('openid') ||
|
|
|
|
207
|
+ // // App.sp.get("openid") == null ||
|
|
|
|
208
|
+ // // App.sp.get("openid") == '') {
|
|
|
|
209
|
+ // //跳转小程序
|
|
|
|
210
|
+ // Utils.goMiniProgramCreatePage(context);
|
|
|
|
211
|
+ // // } else {
|
|
|
|
212
|
+ // // //跳转至新建店铺流程
|
|
|
|
213
|
+ // // NavigatorUtil.goEnterStoreNamePage(context);
|
|
|
|
214
|
+ // // }
|
|
|
|
215
|
+ // } else {
|
|
|
|
216
|
+ // // if (!App.sp.containsKey('openid') ||
|
|
|
|
217
|
+ // // App.sp.get("openid") == null ||
|
|
|
|
218
|
+ // // App.sp.get("openid") == '') {
|
|
|
|
219
|
+ // // //跳转小程序
|
|
|
|
220
|
+ // // Utils.goMiniProgramCreatePage(context);
|
|
|
|
221
|
+ // // } else {
|
|
|
|
222
|
+ // //跳转至新建店铺流程
|
|
|
|
223
|
+ // NavigatorUtil.goEnterStoreNamePage(context);
|
|
|
|
224
|
+ // // }
|
|
|
|
225
|
+ // }
|
|
|
|
226
|
+ // }
|
|
|
|
227
|
+ ),
|
|
222
|
body: Container(
|
228
|
body: Container(
|
|
223
|
// margin: EdgeInsets.only(bottom: ScreenUtil().setWidth(40)),
|
229
|
// margin: EdgeInsets.only(bottom: ScreenUtil().setWidth(40)),
|
|
224
|
padding:
|
230
|
padding:
|