Răsfoiți Sursa

提交0个省份展示

wangkaiyue 5 ani în urmă
părinte
comite
0bcb41fcae

+ 14 - 1
src/web/staticres/vipsubscribe/js/editArea.js

@@ -158,7 +158,12 @@ function init() {
     } else {
         //$('.all_area').hide()
         $('.optional_count').show()
-        $('.total').html(areaData.data.buyset.areacount)
+        if(areaData.data.buyset.areacount!=0){
+            $('.total').html(areaData.data.buyset.areacount)
+        }else{
+            $(".optional_count").css("display","none");
+        }
+
         $('.tab.whole').parent('li').hide();
         // $('.checkbox.other').attr('disabled',true);
         initResult()
@@ -186,6 +191,14 @@ function initResult() {
             })
         }
     }
+    /*else{ //购买全国是否可以编辑市
+        $('.province').each(function () {
+            let that = $(this).parent('.tab:not(.municipality)');
+            that.bind('click', function () {
+                slideFun($(this));
+            })
+        })
+    }*/
     // 渲染已选择结果
     for (const k in p) {
         console.log(p[k], k)

+ 2 - 2
src/web/templates/weixin/vipsubscribe/edit_subscribe.html

@@ -80,9 +80,9 @@
                     $(".city").css("display", "");
                     $(".edit_item.city span").text(cityCount + "个市");
                 }
-                let descText = "";
+                let descText = "已购买";
                 if (this.reqData.buyset.areacount > 0) {
-                    descText = "已购买" + this.reqData.buyset.areacount + "个省级区域"
+                    descText += this.reqData.buyset.areacount + "个省级区域"
                 }
                 if (cityCount > 0) {
                     if (this.reqData.buyset.areacount > 0) {