Browse Source

feat: 免费版选择省份逻辑调整

Signed-off-by: tangshizhe <48740614+tangshizhe@users.noreply.github.com>
tangshizhe 9 months ago
parent
commit
4bb6282094

+ 5 - 3
src/jfw/modules/app/src/web/templates/areaPack/page_set_area.html

@@ -368,11 +368,13 @@
                 },
                 confirmed: function (area) {
                     this.setAreaSelected(area)
-                    if (this.moreThanSubCount) {
-                        this.popupTip = true
-                    } else if(!this.isNeedApi) {
+                    if(!this.isNeedApi) {
                       sessionStorage.setItem('freeSelectArea', JSON.stringify(area))
                       history.back()
+                      return
+                    }
+                    if (this.moreThanSubCount) {
+                        this.popupTip = true
                     } else {
                         this.userUpdate(area)
                     }

+ 5 - 3
src/web/templates/areaPack/wx/page_set_area.html

@@ -374,11 +374,13 @@
                 },
                 confirmed: function (area) {
                     this.setAreaSelected(area)
-                    if (this.moreThanSubCount) {
-                        this.popupTip = true
-                    } else if(!this.isNeedApi) {
+                    if(!this.isNeedApi) {
                       sessionStorage.setItem('freeSelectArea', JSON.stringify(area))
                       history.back()
+                      return
+                    }
+                    if (this.moreThanSubCount) {
+                        this.popupTip = true
                     } else {
                         this.userUpdate(area)
                     }