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> {
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) {
... ...