Commit eb6a83f9bcc543a7267351f754c1f2d5c8780a66

Authored by wdn127929
2 parents 165dddc9 db8ce2a1

Merge branch 'v5.2.0.4+' into v5.2.1+

@@ -283,10 +283,10 @@ class _CollectStoreInfoPageState extends State<CollectStoreInfoPage> { @@ -283,10 +283,10 @@ class _CollectStoreInfoPageState extends State<CollectStoreInfoPage> {
283 Utils.showToast('请输入店铺名称'); 283 Utils.showToast('请输入店铺名称');
284 return; 284 return;
285 } 285 }
286 - if (storeAddress == '点击设置您的地址') {  
287 - Utils.showToast('请设置您的地址');  
288 - return;  
289 - } 286 + // if (storeAddress == '点击设置您的地址') {
  287 + // Utils.showToast('请设置您的地址');
  288 + // return;
  289 + // }
290 if (phoneC.text.trim().length == 0) { 290 if (phoneC.text.trim().length == 0) {
291 Utils.showToast('请输入联系电话'); 291 Utils.showToast('请输入联系电话');
292 return; 292 return;
@@ -303,15 +303,18 @@ class _CollectStoreInfoPageState extends State<CollectStoreInfoPage> { @@ -303,15 +303,18 @@ class _CollectStoreInfoPageState extends State<CollectStoreInfoPage> {
303 .requestFocus(FocusNode()); //点击空白处隐藏键盘 303 .requestFocus(FocusNode()); //点击空白处隐藏键盘
304 Map<String, String> params = { 304 Map<String, String> params = {
305 'sellername': nameC.text, 305 'sellername': nameC.text,
306 - 'map_address': storeAddress,  
307 'phone': phoneC.text, 306 'phone': phoneC.text,
308 'rname': personC.text, 307 'rname': personC.text,
309 'pro_code': proCode, 308 'pro_code': proCode,
310 'city_code': cityCode, 309 'city_code': cityCode,
311 'dis_code': disCode, 310 'dis_code': disCode,
312 - 'lat': lat.toString(),  
313 - 'long': lng.toString()  
314 }; 311 };
  312 + if (storeAddress != '点击设置您的地址') {
  313 + //填写了地址
  314 + params['map_address'] = storeAddress;
  315 + params['lat'] = lat.toString();
  316 + params['long'] = lng.toString();
  317 + }
315 bool success = await collectStoreProvider 318 bool success = await collectStoreProvider
316 .setSellerCollect(context, params); 319 .setSellerCollect(context, params);
317 if (success) { 320 if (success) {