Przeglądaj źródła

付费规则调整

qymljy 2 lat temu
rodzic
commit
a82ed256c7
1 zmienionych plików z 6 dodań i 3 usunięć
  1. 6 3
      src/views/homePage/index.vue

+ 6 - 3
src/views/homePage/index.vue

@@ -42,8 +42,8 @@
         >
       <span>{{contentMsg}}</span>
       <span slot="footer" class="dialog-footer">
-      <el-button @click="dialogVisible = false" size="small">取 消</el-button>
-      <el-button v-if="type[0].usertype == '22'" @click="onReminder" size="small">提醒付费</el-button>
+      <el-button @click="dialogVisible = false" size="small">下次再说</el-button>
+      <el-button v-if="type[0].usertype == '22'" @click="onReminder" size="small">提醒主账号付费</el-button>
       <el-button type="primary" @click="onPay" size="small">去付费</el-button>
   </span>
     </el-dialog>
@@ -104,13 +104,14 @@ export default {
     },
     async queryAccount(){
       sessionStorage.setItem('flag','1')
+      this.nowAccount = []
       const res = await this.$api.requested({
         "classname": "webmanage.site.paymentrules",
         "method": "queryRemind",
         "content": {},
       })
       this.nowAccount = res.data[0]
-      if (res.data.length > 0){
+      if (res.data.length > 1){
 
         this.dialogVisible = true
         this.contentMsg = '【'+res.data[0].partitionname+'】将在'+res.data[0].days+'天后到期,请尽快续费!'
@@ -119,6 +120,7 @@ export default {
       }
     },
     async queryReminder(){
+      this.nowAccount = []
       const res = await this.$api.requested({
         "classname": "webmanage.site.paymentrules",
         "method": "queryRemindUser",
@@ -128,6 +130,7 @@ export default {
         this.dialogVisible = true
         let name = ''
         this.userids = []
+        this.nowAccount = res.data[0]
         res.data.forEach((item,index)=>{
           name = name + item.name
           this.userids[index] = item.userid