Browse Source

fix: 标准售价地区传参调整

Signed-off-by: tangshizhe <48740614+tangshizhe@users.noreply.github.com>
tangshizhe 1 year ago
parent
commit
cc82d54faa
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/views/order/components/otherOrderEdit.vue

+ 4 - 2
src/views/order/components/otherOrderEdit.vue

@@ -420,7 +420,8 @@ export default {
     }
     }
   },
   },
   watch: {
   watch: {
-    addEventListenerVip () {
+    addEventListenerVip (val) {
+      console.log(val)
       let areaCount = 0
       let areaCount = 0
       const _this = this
       const _this = this
       let {area, cycleCount, cycleUnit, vipStartTime, buySubject, buyCount, vipType, phone, productType} = this.others
       let {area, cycleCount, cycleUnit, vipStartTime, buySubject, buyCount, vipType, phone, productType} = this.others
@@ -439,7 +440,7 @@ export default {
           }
           }
         }
         }
       } else {
       } else {
-        if (this.areaNums.areaCount) {
+        if (this.areaNums.areaCount && this.areaNums.areaCount > 0) {
           areaCount = this.areaNums.areaCount
           areaCount = this.areaNums.areaCount
         } else {
         } else {
           areaCount = 0
           areaCount = 0
@@ -1257,6 +1258,7 @@ export default {
         this.intered(res.vip_starttime, res.user_phone, returnInfo ? returnInfo[0].money : [])
         this.intered(res.vip_starttime, res.user_phone, returnInfo ? returnInfo[0].money : [])
         //购买省份
         //购买省份
         if (productType == '5') {
         if (productType == '5') {
+          this.areaNums.areaCount = filterData.newBuyset.areacount
           const area = Object.keys(filterData.area).map(name => {
           const area = Object.keys(filterData.area).map(name => {
             let reg = /[省,市,壮族,维吾尔,特别行政区,自治区,回族]/g
             let reg = /[省,市,壮族,维吾尔,特别行政区,自治区,回族]/g
             if (name) {
             if (name) {