Explorar o código

付费规则调整

qymljy %!s(int64=2) %!d(string=hai) anos
pai
achega
27ab6caa92

+ 7 - 4
src/SManagement/user/pay-orders/modules/add.vue

@@ -287,7 +287,12 @@ export default {
       this.dataNow = dateNow
       if (this.$route.query.isPay == 2){
 
-        this.list.forEach(item=>{
+        this.list.forEach((item,index)=>{
+          for (var i=0;i<this.$route.query.userid.length;i++){
+            if (item.userid == this.$route.query.userid[i]){
+              item.checkRow = true
+            }
+          }
           if (item.isleader === 1){
             if (item.enddate[this.form.sys_site_systempartitionid]){
               if (dateNow > item.enddate[this.form.sys_site_systempartitionid]){
@@ -299,9 +304,7 @@ export default {
               this.userLeader = item.userid
             }
           }
-          if (item.userid == this.$route.query.userid){
-            item.checkRow = true
-          }
+
         })
         this.userids = []
         this.list.forEach(item=>{

+ 7 - 2
src/views/homePage/index.vue

@@ -141,10 +141,14 @@ export default {
         this.userids = []
         this.nowAccount = res.data[0]
         res.data.forEach((item,index)=>{
-          name = name + item.name
+          if (index === 0){
+            name = name + item.name
+          }else {
+            name = name + '/' + item.name
+          }
           this.userids[index] = item.userid
         })
-        this.contentMsg = name + '申请账号付费,请前往处理!'
+        this.contentMsg = name +  ' 申请账号付费,请前往处理!'
       }else {
         this.dialogVisible = false
       }
@@ -164,6 +168,7 @@ export default {
           apps = item
         }
       })
+      console.log(this.userids,'付费账号')
       sessionStorage.setItem('active_modules',JSON.stringify(apps))
       this.activePath = '/pay_orders'
       this.$router.replace({path:'/pay_orders',query:{isPay:'2',id:this.nowAccount.sys_site_systempartitionid,userid:this.userids}})