浏览代码

添加我的tab标签

11wqe1 1 周之前
父节点
当前提交
ff0077d937
共有 1 个文件被更改,包括 10 次插入7 次删除
  1. 10 7
      src/views/appStoreCopy/index.vue

+ 10 - 7
src/views/appStoreCopy/index.vue

@@ -63,7 +63,7 @@
                 <div class="appBlockTop">
                   <div style="display: flex;justify-content: space-between;align-items: center;margin-bottom: 10px;">
                     <img class="appBlockTopImg" :src="i.json.icon" alt="" />
-                    <img style="width: 16px;" src="../../assets/images/appStoreCopy/appde.svg" alt="" />
+                    <!-- <img style="width: 16px;" src="../../assets/images/appStoreCopy/appde.svg" alt="" /> -->
                   </div>
                   <div class="appBlockTopTit">{{ i.name }}</div>
                   <div style="display: flex;align-items: center;">
@@ -308,14 +308,19 @@ export default {
     getData(val = '') {
       this.getAllOP(0)
       this.getAllOP(2)
+
+      let selectJuri = 4
+      if (val == 'k11') {
+        selectJuri = 1
+      }
       this.tabPage = val
       this.isShow = true
       let params = {
         uid: this.userinfo.userid,
         name: this.searchText,
         label: '',
-        type: val,
-        juri: this.selectJuri,
+        type: val == 'k11' ? '' : val,
+        juri: selectJuri,
         stand: this.userinfo.schoolArea,
         status:'',
         model:'',
@@ -418,14 +423,13 @@ export default {
                   })
               }
               this.getAllOP(type)
-              // this.getAllOP(2)
           })
           .catch(err => {
             console.log(err)
             this.$message.error('操作失败')
           })
     },
-    // 获取点赞 与收藏
+    // 获取2点赞 与0收藏
     getAllOP(val){
         let params = {
             uid: this.userinfo.userid,
@@ -435,10 +439,8 @@ export default {
         select_appStoreSave(params)
           .then(res => {
             if (val == 0) {
-              // console.log('111');
               this.collList = res[0];
             }else{
-              // console.log('222');
               this.likeList = res[0];
             }
           })
@@ -461,6 +463,7 @@ export default {
           let _data = res[0]
           if (_data.length > 0) {
             this.typeList = _data
+            this.typeList.unshift({ id: 'k11', name: '我的' })
             this.typeList.unshift({ id: '', name: '全部' })
           } else {
             this.typeList = []