Explorar el Código

更新门店地址的状态反馈修改

shizhongqi hace 11 meses
padre
commit
e46ff97da4
Se han modificado 1 ficheros con 16 adiciones y 8 borrados
  1. 16 8
      hdApp/src/pagesStore/me/expressSet.vue

+ 16 - 8
hdApp/src/pagesStore/me/expressSet.vue

@@ -372,18 +372,26 @@ export default {
           // 刷新门店信息
           // 刷新门店信息
           await this.getShopAddressInfo();
           await this.getShopAddressInfo();
         } else {
         } else {
-          uni.showToast({
-            title: result.message || '更新失败',
-            icon: 'none'
-          });
+          console.log(result);
+          if(result.msg && result.msg.includes('content.address_info.house is empty')){
+            this.$msg('门店的门牌号未填写')
+          } else {
+            console.log(result.msg);
+            uni.showToast({
+              title: '更新失败',
+              icon: 'none'
+            });
+          }
         }
         }
       } catch (error) {
       } catch (error) {
         uni.hideLoading();
         uni.hideLoading();
         console.error('更新门店地址失败:', error);
         console.error('更新门店地址失败:', error);
-        uni.showToast({
-          title: '更新失败,请重试',
-          icon: 'none'
-        });
+        if(error.msg && error.msg.includes('content.address_info.house is empty')){
+          this.$msg('门店的门牌号未填写')
+        } else {
+          console.log(error.msg);
+          this.$msg('更新失败')
+        }
       }
       }
     },
     },