瀏覽代碼

付费规则调整

qymljy 2 年之前
父節點
當前提交
9207d26436
共有 1 個文件被更改,包括 12 次插入1 次删除
  1. 12 1
      src/views/homePage/index.vue

+ 12 - 1
src/views/homePage/index.vue

@@ -42,7 +42,7 @@
         >
       <span>{{contentMsg}}</span>
       <span slot="footer" class="dialog-footer">
-      <el-button @click="dialogVisible = false" size="small">下次再说</el-button>
+      <el-button @click="queryNext" 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>
@@ -119,6 +119,15 @@ export default {
         this.queryReminder()
       }
     },
+    queryNext(){
+      this.dialogVisible = false
+      if (JSON.parse(sessionStorage.getItem('flag')) == 2 || this.type[0].usertype == '22'){
+
+      }else {
+        sessionStorage.setItem('flag','2')
+        this.queryReminder()
+      }
+    },
     async queryReminder(){
       this.nowAccount = []
       const res = await this.$api.requested({
@@ -136,6 +145,8 @@ export default {
           this.userids[index] = item.userid
         })
         this.contentMsg = name + '申请账号付费,请前往处理!'
+      }else {
+        this.dialogVisible = false
       }
 
     },