瀏覽代碼

yb8.0提测

jwyu 2 年之前
父節點
當前提交
2bfb794a6c
共有 6 個文件被更改,包括 31 次插入11 次删除
  1. 1 1
      mixin/index.js
  2. 6 0
      pages.json
  3. 17 3
      pages/video/videoList.vue
  4. 二進制
      static/tabbar/video-s.png
  5. 二進制
      static/tabbar/video.png
  6. 7 7
      utils/config.js

+ 1 - 1
mixin/index.js

@@ -5,7 +5,7 @@ moment.locale('zh-cn');
 import {globalImgUrls} from "../utils/config"
 import store from '@/store'
 
-const tabbarPathList=['pages/activity/activity','pages/pricedriven/pricedriven','pages/report/report','pages/question/question']
+const tabbarPathList=['pages/activity/activity','pages/pricedriven/pricedriven','pages/video/videoList','pages/report/report','pages/question/question']
 
 module.exports = {
   watch: {

+ 6 - 0
pages.json

@@ -276,6 +276,12 @@
 				"iconPath": "./static/tabbar/price.png",
 				"selectedIconPath": "./static/tabbar/price-s.png"
 			},
+			{
+				"pagePath": "pages/video/videoList",
+				"text": "视频社区",
+				"iconPath": "./static/tabbar/video.png",
+				"selectedIconPath": "./static/tabbar/video-s.png"
+			},
 			{
 				"pagePath": "pages/activity/activity",
 				"text": "活动",

+ 17 - 3
pages/video/videoList.vue

@@ -45,7 +45,13 @@
         </view>
 
         <!-- 筛选 -->
-        <van-popup :show="showFilter" position="bottom" :safe-area-inset-bottom="false" round @close="showFilter=false">
+        <van-popup 
+            :show="showFilter" 
+            position="bottom" 
+            :safe-area-inset-bottom="true" 
+            round 
+            @close="showFilter=false"
+        >
             <view class="filter-wrap">
                 <view class="flex top">
                     <text style="color:#000">全部筛选</text>
@@ -120,6 +126,8 @@ export default {
         }
     },
     onPullDownRefresh(){
+        this.videoId=0
+        this.selectPerId=0
         this.page=1
         this.list=[]
         this.finished=false
@@ -140,8 +148,13 @@ export default {
 
         //点击分类某项
         handleSelectPerItem(item){
-            this.selectPerId=item.PermissionId
-            this.videoId=0
+            if(this.selectPerId==item.PermissionId){
+                this.selectPerId=0
+            }else{
+                this.selectPerId=item.PermissionId
+            }
+            
+            this.videoId=0//重置掉分享进入的状态
             this.page=1
             this.list=[]
             this.finished=false
@@ -278,6 +291,7 @@ export default {
 .filter-wrap{
     background-color: #fff;
     padding-top: 53rpx;
+    padding-bottom: 100rpx;
     .top{
         font-size: 32rpx;
         justify-content: space-between;

二進制
static/tabbar/video-s.png


二進制
static/tabbar/video.png


+ 7 - 7
utils/config.js

@@ -50,13 +50,13 @@ const defaultTabBarListConfig=[
 		iconPath: "../static/tabbar/price.png",
 		selectedIconPath: "../static/tabbar/price-s.png"
 	},
-    // {
-    //     key: "chart",
-    //     pagePath: "pages/chart/chart",
-    //     text: "图库",
-    //     iconPath: "../static/tabbar/chart.png",
-    //     selectedIconPath: "../static/tabbar/chart-s.png",
-    // },
+    {
+        key: "video",
+        pagePath: "pages/video/videoList",
+        text: "视频社区",
+        iconPath: "../static/tabbar/video.png",
+        selectedIconPath: "../static/tabbar/video-s.png",
+    },
     {
         key: "question",
         pagePath: "pages/question/question",