|
...
|
...
|
@@ -283,10 +283,10 @@ class _CollectStoreInfoPageState extends State<CollectStoreInfoPage> { |
|
|
|
Utils.showToast('请输入店铺名称');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (storeAddress == '点击设置您的地址') {
|
|
|
|
Utils.showToast('请设置您的地址');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
// if (storeAddress == '点击设置您的地址') {
|
|
|
|
// Utils.showToast('请设置您的地址');
|
|
|
|
// return;
|
|
|
|
// }
|
|
|
|
if (phoneC.text.trim().length == 0) {
|
|
|
|
Utils.showToast('请输入联系电话');
|
|
|
|
return;
|
|
...
|
...
|
@@ -303,15 +303,18 @@ class _CollectStoreInfoPageState extends State<CollectStoreInfoPage> { |
|
|
|
.requestFocus(FocusNode()); //点击空白处隐藏键盘
|
|
|
|
Map<String, String> params = {
|
|
|
|
'sellername': nameC.text,
|
|
|
|
'map_address': storeAddress,
|
|
|
|
'phone': phoneC.text,
|
|
|
|
'rname': personC.text,
|
|
|
|
'pro_code': proCode,
|
|
|
|
'city_code': cityCode,
|
|
|
|
'dis_code': disCode,
|
|
|
|
'lat': lat.toString(),
|
|
|
|
'long': lng.toString()
|
|
|
|
};
|
|
|
|
if (storeAddress != '点击设置您的地址') {
|
|
|
|
//填写了地址
|
|
|
|
params['map_address'] = storeAddress;
|
|
|
|
params['lat'] = lat.toString();
|
|
|
|
params['long'] = lng.toString();
|
|
|
|
}
|
|
|
|
bool success = await collectStoreProvider
|
|
|
|
.setSellerCollect(context, params);
|
|
|
|
if (success) {
|
...
|
...
|
|