sunlupeng 7 mesi fa
parent
commit
070378c0e8
2 ha cambiato i file con 9 aggiunte e 9 eliminazioni
  1. 4 2
      src/api/zanApi.js
  2. 5 7
      src/views/HomeView/EarnPoints.vue

+ 4 - 2
src/api/zanApi.js

@@ -1,4 +1,6 @@
-// 客户表彰列表
+import request from '@/utils/request'
+
+// 列表
 export function zanList(query) {
   return request({
     url: '/mall-video/video/user/page',
@@ -7,7 +9,7 @@ export function zanList(query) {
   })
 }
 
-//客户表彰上传
+//上传
 export function uploadZan(data) {
   return request({
     url: '/mall-video/video/upload',

+ 5 - 7
src/views/HomeView/EarnPoints.vue

@@ -539,10 +539,8 @@ export default {
   },
   created() {
     this.getTypeListCite();
-    this.getTypeListZan();
     this.getAllUserList();
     this.getDataListCite();
-    this.getDataListTrain();
     this.getTypeList();
     this.getDataList();
     this.getIntegralNotice();
@@ -721,11 +719,14 @@ export default {
     },
     handleClick(tab, event) {
       console.log(tab.name, event);
-      if(tab.name=='fourth'){
+      if(tab.name == 'fourth'){
         this.getRemarkHtml('trainrule');
+        this.getDataListTrain();
       }
-      if(tab.name=='sixth'){
+      if(tab.name == 'sixth'){
         this.getRemarkHtml('zanRule');
+        this.getTypeListZan();
+        this.getDataListZan()
       }
     },
     getIntegralNotice() {
@@ -830,9 +831,6 @@ export default {
         this.recipientsList = response.data.data;
       }).catch(() => { });
     },
-    handleClick(tab, event) {
-      console.log(tab.name, event);
-    },
     handleRemoveCite(file, fileList) {
       console.log(file, fileList);
       let fileIds = [];