rk
2026-03-11 0e4b49f4bee160790b1830e6a8606e739b32fc3b
mini-program/pages/new-address/new-address.vue
@@ -117,6 +117,22 @@
               })
         },
         submit() {
            if (!this.form.name) return uni.showToast({
               title: '收件人不能为空!',
               icon: 'none'
            })
            if (!this.form.phone) return uni.showToast({
               title: '联系电话不能为空!',
               icon: 'none'
            })
            if (!this.form.areaName) return uni.showToast({
               title: '所在地区不能为空!',
               icon: 'none'
            })
            if (!this.form.addr) return uni.showToast({
               title: '详细地址不能为空!',
               icon: 'none'
            })
            if (this.type === 1) {
               this.$u.api.createAddr(this.form)
                  .then(res => {