Browse Source

修复滑动bug前

JXDS18FUJT 2 years ago
parent
commit
dff5bbca0e

+ 7 - 0
src/api/modules/system.js

@@ -6,6 +6,13 @@ const system = {
             method: 'get'
         })
 
+    },
+    systemConfigConfigKey(configKey){
+        return request({
+            url:`system/config/configKey/${configKey}`,
+            method: 'get'
+        })
+
     }
 
 }

+ 23 - 14
src/components/m-do-topic/m-do-topic.vue

@@ -49,15 +49,18 @@
         <image mode="widthFix" :src="problemList[problemListIndex].image"></image>
       </view>
       <view v-if="!hiddenFunction" class="funcicon-list">
-        <div @click="collectTopics" :class="!problemList[problemListIndex].isCollect?'funcicon-item':'funcicon-item funcicon-item_select'" >
-          <van-icon style="margin-right:8rpx;" v-if="!problemList[problemListIndex].isCollect" name="star-o" size="10px" />
-          <van-icon style="margin-right:8rpx;" color="#ffde00ff" v-if="problemList[problemListIndex].isCollect" name="star" size="10px" />
+        <div @click="collectTopics"
+          :class="!problemList[problemListIndex].isCollect ? 'funcicon-item' : 'funcicon-item funcicon-item_select'">
+          <van-icon style="margin-right:8rpx;" v-if="!problemList[problemListIndex].isCollect" name="star-o"
+            size="10px" />
+          <van-icon style="margin-right:8rpx;" color="#ffde00ff" v-if="problemList[problemListIndex].isCollect"
+            name="star" size="10px" />
           <span>收藏</span>
         </div>
         <div @click="
           readQuestionAndAnswer();
         completeQuestion();
-                  " class="funcicon-item funcicon-item_select">
+                            " class="funcicon-item funcicon-item_select">
           <m-jp-icon style="margin-right:8rpx;" type="a-dtda" size="10px" />
           <span>读题+答案</span>
         </div>
@@ -265,7 +268,7 @@
       <funList :midFunc="midFunc" v-if="!hiddenFunction" @collect="collectTopics" @readQuestionAndAnswer="
         readQuestionAndAnswer();
       completeQuestion();
-              " :problemListItem="problemList[problemListIndex]"></funList>
+                      " :problemListItem="problemList[problemListIndex]"></funList>
 
       <!-- #endif -->
       <view v-if="!hiddenFunction" class="function-list">
@@ -277,7 +280,7 @@
         <div @click="
           readQuestionAndAnswer();
         completeQuestion();
-                  " class="function-item">
+                            " class="function-item">
           <m-jp-icon type="a-dtda" size="25px" />
           <span>读题+答案</span>
         </div>
@@ -305,7 +308,10 @@
           <text style="font-size:24rpx">上一题</text>
         </van-tabbar-item>
         <van-tabbar-item style="text-align: center;">
-          <view>
+          <view @click="
+            () => {
+              selectProblemListVisible = true;
+            }">
             <view>
               <icon slot="icon" class="icon-box-img" type="success" size="9px"></icon><text style="margin-left:8rpx;">{{
                 trueNum }}</text>
@@ -480,7 +486,7 @@
       " :explainJs="problemList[problemListIndex].explainJs" :explainjsmp3="problemList[problemListIndex].explainjsmp3"
         :show="explainJsVisible"></explainJs>
     </view>
-</view>
+  </view>
 </template>
 
 <script>
@@ -1613,12 +1619,14 @@ export default {
     }
   }
 }
-.funcicon-list{
+
+.funcicon-list {
   width: 100%;
   display: flex;
   font-size: 26rpx;
   margin-top: 16rpx;
-  .funcicon-item{
+
+  .funcicon-item {
 
     display: flex;
     flex-direction: row;
@@ -1626,17 +1634,19 @@ export default {
     padding: 0 20rpx;
     height: 48rpx;
     line-height: 48rpx;
-    border:2rpx solid #8A9099;
+    border: 2rpx solid #8A9099;
     border-radius: 20rpx;
     margin-left: 10rpx;
     color: #8A9099;
   }
-  .funcicon-item_select{
+
+  .funcicon-item_select {
     border-color: #498EF5;
     color: #498EF5;
   }
 
 }
+
 .function-list {
   width: 100%;
   font-size: 13px;
@@ -1661,5 +1671,4 @@ export default {
       margin-top: 5px;
     }
   }
-}
-</style>
+}</style>

+ 6 - 6
src/otherPages/collection/index.vue

@@ -53,14 +53,14 @@ export default {
   data() {
     return {
       wrongBg:
-        "https://t1-1305573081.file.myqcloud.com/wxapp/static/imgs/collection/wrongBg.png",
+        "https://t1-1305573081.file.myqcloud.com/ctjk/mp-wx/collection/wrongBg.png",
       collectionBottomBg:
-        "https://t1-1305573081.file.myqcloud.com/wxapp/static/imgs/collection/collectionBottomBg.png",
+        "https://t1-1305573081.file.myqcloud.com/ctjk/mp-wx/collection/collectionBottomBg.png",
       goArrow,
       collectionBg:
-        "https://t1-1305573081.file.myqcloud.com/wxapp/static/imgs/collection/collectionBg.png",
+        "https://t1-1305573081.file.myqcloud.com/ctjk/mp-wx/collection/collectionBg.png",
       collectionHeader:
-        "https://t1-1305573081.file.myqcloud.com/wxapp/static/imgs/collection/collectionHeader.png",
+        "https://t1-1305573081.file.myqcloud.com/ctjk/mp-wx/collection/collectionHeader.png",
       query: {
         questionIds: "",
       },
@@ -105,14 +105,14 @@ export default {
       if (type == "wrong" && this.wrongListCount == 0) {
         uni.showToast({
           title: "没有题目了",
-          icon: "fail",
+          icon: "none",
         });
         return;
       }
       if (type == "collect" && this.collectionListCount == 0) {
         uni.showToast({
           title: "没有题目了",
-          icon: "fail",
+          icon: "none",
         });
         return;
       }

+ 2 - 0
src/otherPages/exercise/index.vue

@@ -11,7 +11,9 @@
       :trueNum.sync="trueNum"
       :falseNum.sync="falseNum"
       :query="query"
+      :problemListTotal.sync="problemListTotal"
       :problemListIndex.sync="problemListIndex"
+      
     ></m-do-topic>
     <!-- <view class="function-list">
       <div class="function-item">

+ 3 - 3
src/otherPages/exerciseCollect/index.vue

@@ -11,7 +11,7 @@
       :falseNum.sync="falseNum"
       :query="query"
       :problemListTotal.sync="problemListTotal"
-      :problemListIndex="problemListIndex"
+      :problemListIndex.sync="problemListIndex"
     ></m-do-topic>
 
     <explainJs
@@ -25,7 +25,7 @@
       :show="explainJsVisible"
     ></explainJs>
     <!-- #ifdef MP-WEIXIN -->
-    <van-tabbar height="20px">
+    <!-- <van-tabbar height="20px">
       <van-tabbar-item @click="goBeforeTopics"
         ><van-icon
           slot="icon"
@@ -70,7 +70,7 @@
           size="18px"
         />下一题
       </van-tabbar-item>
-    </van-tabbar>
+    </van-tabbar> -->
     <!-- #endif -->
     <!-- #ifdef MP-TOUTIAO -->
     <tabbar height="35px">

+ 1 - 0
src/otherPages/exerciseExam/index.vue

@@ -16,6 +16,7 @@
       :falseNum.sync="falseNum"
       :query="query"
       :problemListIndex.sync="problemListIndex"
+      :problemListTotal.sync="problemListTotal"
     ></m-do-topic>
     <!-- <view class="function-list">
       <div class="function-item">

+ 1 - 0
src/otherPages/exerciseFree/index.vue

@@ -14,6 +14,7 @@
       :falseNum.sync="falseNum"
       :query="query"
       :problemListIndex.sync="problemListIndex"
+      :problemListTotal.sync="problemListTotal"
     ></m-do-topic>
     <!-- <view class="function-list">
       <div class="function-item">

+ 1 - 0
src/otherPages/exerciseMi/index.vue

@@ -14,6 +14,7 @@
       :falseNum.sync="falseNum"
       :query="query"
       :problemListIndex.sync="problemListIndex"
+      :problemListTotal.sync="problemListTotal"
     ></m-do-topic>
     <!-- <view class="function-list">
       <div class="function-item">

+ 2 - 2
src/otherPages/exerciseWrong/index.vue

@@ -25,7 +25,7 @@
       :show="explainJsVisible"
     ></explainJs>
     <!-- #ifdef MP-WEIXIN -->
-    <van-tabbar height="20px">
+    <!-- <van-tabbar height="20px">
       <van-tabbar-item @click="goBeforeTopics"
         ><van-icon
           slot="icon"
@@ -70,7 +70,7 @@
           size="18px"
         />下一题
       </van-tabbar-item>
-    </van-tabbar>
+    </van-tabbar> -->
     <!-- #endif -->
     <!-- #ifdef MP-TOUTIAO -->
     <tabbar height="35px">

+ 1 - 0
src/otherPages/mockExam/index.vue

@@ -11,6 +11,7 @@
       :falseNum.sync="falseNum"
       :query="query"
       :problemListIndex.sync="problemListIndex"
+      :problemListTotal.sync="problemListTotal"
     ></m-do-topic>
     <!-- #ifdef MP-WEIXIN -->
     <van-tabbar>

+ 2 - 1
src/pages.json

@@ -461,7 +461,8 @@
       },
       {
         "name": "查看网页",
-        "path": "pages/webview/webview"
+        "path": "pages/extraWeb/index",
+        "query":"src=https://nbjk-h5.zzxcx.net"
       },
       {
         "name": "购买vip",

+ 5 - 5
src/pages/carVideo/components/userInfoHead.vue

@@ -63,11 +63,11 @@ export default {
     jpcjUserInfo() {
       return this.$store.state.user.jpcjUserInfo || {};
     },
-    expireTime() {
-      return this.$store.state.user.userInfo.expireTime
-        ? this.$store.state.user.userInfo.expireTime.split(/\s+/)[0]
-        : "";
-    },
+    // expireTime() {
+    //   return this.$store.state.user.userInfo.expireTime
+    //     ? this.$store.state.user.userInfo.expireTime.split(/\s+/)[0]
+    //     : "";
+    // },
     isVip() {
       console.log(this.$store.getters.isVip);
       return this.$store.getters.isVip;

+ 106 - 159
src/pages/carVideo/index.vue

@@ -43,28 +43,20 @@
     <view>
       <swiper :indicator-dots="false" style="height: 200rpx">
         <swiper-item class="swiperBanner">
-          <image  class="banner" src="https://t1-1305573081.file.myqcloud.com/ctjk/mp-wx/carVideo/banner.png"></image>
+          <image class="banner" src="https://t1-1305573081.file.myqcloud.com/ctjk/mp-wx/carVideo/banner.png"></image>
         </swiper-item>
-       
+
       </swiper>
     </view>
     <view class="carType">
-      <view
-        v-for="(item, index) in carType"
-        @click="changeVehicle(item)"
-        :key="index"
-      >
-        <view
-          @click="
-            () => {
-              carTypeIndex = index;
-            }
-          "
-          class="col"
-          :class="{
-            col_selected: carTypeIndex == index,
-          }"
-        >
+      <view v-for="(item, index) in carType" @click="changeVehicle(item)" :key="index">
+        <view @click="
+          () => {
+            carTypeIndex = index;
+          }
+        " class="col" :class="{
+  col_selected: carTypeIndex == index,
+}">
           <image :class="['carType-img' + index]" :src="item.img"></image>
           <view class="h6"></view>
           <text class="carType-title">{{ item.title }}</text>
@@ -73,46 +65,23 @@
       </view>
     </view>
     <view class="point">
-      <view
-        :style="{
-          left: carTypeIndex * 172 + 'rpx',
-        }"
-        class="point-area"
-      >
-        <image
-          class=""
-          src="https://t1-1305573081.file.myqcloud.com/ctjk/mp-wx/carVideo/triangle1@2x.png"
-        ></image>
+      <view :style="{
+        left: carTypeIndex * 172 + 'rpx',
+      }" class="point-area">
+        <image class="" src="https://t1-1305573081.file.myqcloud.com/ctjk/mp-wx/carVideo/triangle1@2x.png"></image>
       </view>
     </view>
     <!-- #ifdef MP-WEIXIN -->
     <view class="tab">
-      <van-tabs
-        animated
-        class="custom-tabs"
-        :active="active"
-        id="tabs"
-        @change="changeSubject"
-        :sticky="true"
-      >
-      <!-- <van-tab title="教学视频"><subjectVideoSelect></subjectVideoSelect></van-tab> -->
+      <van-tabs animated class="custom-tabs" :active="active" id="tabs" @change="changeSubject" :sticky="true">
+        <van-tab v-if="xcx_video_open" title="教学视频">
+          <subjectVideoSelect></subjectVideoSelect>
+        </van-tab>
         <van-tab title="科目一">
           <view class="tab-container">
-            <tab-left
-              :subject="1"
-              :query="tabQuery"
-              :leftList="leftList1"
-            ></tab-left>
-            <tab-center
-              :subject="1"
-              :query="tabQuery"
-              :centerList="centerList1"
-            ></tab-center>
-            <tab-right
-              :subject="1"
-              :query="tabQuery"
-              :rightList="rightList1"
-            ></tab-right>
+            <tab-left :subject="1" :query="tabQuery" :leftList="leftList1"></tab-left>
+            <tab-center :subject="1" :query="tabQuery" :centerList="centerList1"></tab-center>
+            <tab-right :subject="1" :query="tabQuery" :rightList="rightList1"></tab-right>
           </view>
         </van-tab>
         <!-- <van-tab title="科目二">
@@ -141,21 +110,9 @@
         </van-tab> -->
         <van-tab title="科目四">
           <view class="tab-container">
-            <tab-left
-              :query="tabQuery"
-              :subject="4"
-              :leftList="leftList4"
-            ></tab-left>
-            <tab-center
-              :query="tabQuery"
-              :subject="4"
-              :centerList="centerList4"
-            ></tab-center>
-            <tab-right
-              :query="tabQuery"
-              :subject="4"
-              :rightList="rightList4"
-            ></tab-right>
+            <tab-left :query="tabQuery" :subject="4" :leftList="leftList4"></tab-left>
+            <tab-center :query="tabQuery" :subject="4" :centerList="centerList4"></tab-center>
+            <tab-right :query="tabQuery" :subject="4" :rightList="rightList4"></tab-right>
           </view>
         </van-tab>
       </van-tabs>
@@ -163,72 +120,39 @@
     <!-- #endif -->
     <!-- #ifdef MP-TOUTIAO -->
     <view class="tabTitle">
-      <view
-        :style="{
-          left: active * 25 + '%',
-        }"
-        class="rect"
-      >
+      <view :style="{
+        left: active * 25 + '%',
+      }" class="rect">
         <view class="rect-color"> </view>
       </view>
-      <view
-        @click="
-          () => {
-            active = index;
-            tabQuery.name = item;
-            tabQuery.subject = index + 1;
-          }
-        "
-        v-for="(item, index) in subjectMap"
-        :key="index"
-        class="tabTitle-row"
-      >
+      <view @click="
+        () => {
+          active = index;
+          tabQuery.name = item;
+          tabQuery.subject = index + 1;
+        }
+      " v-for="(item, index) in subjectMap" :key="index" class="tabTitle-row">
         {{ item }}
       </view>.
-      
+
     </view>
     <view class="tab">
-      <swiper
-        scroll-x
-        id="tabs"
-        circular
-        :current="active"
-        :scroll-left="50"
-        @change="
-          (e) => {
-            active = e.detail.current;
-          }
-        "
-      >
+      <swiper scroll-x id="tabs" circular :current="active" :scroll-left="50" @change="
+        (e) => {
+          active = e.detail.current;
+        }
+      ">
         <swiper-item id="tab1" style="display: inline-block; width: 100%">
           <view class="tab-container">
-            <tab-left
-              :needVipList="[0, 1]"
-              :subject="1"
-              :query="tabQuery"
-              :leftList="leftList1"
-            ></tab-left>
-            <tab-center
-              :needVipList="[0, 1]"
-              :subject="1"
-              :query="tabQuery"
-              :centerList="centerList1"
-            ></tab-center>
-            <tab-right
-              :needVipList="[0, 1]"
-              :subject="1"
-              :query="tabQuery"
-              :rightList="rightList1"
-            ></tab-right>
+            <tab-left :needVipList="[0, 1]" :subject="1" :query="tabQuery" :leftList="leftList1"></tab-left>
+            <tab-center :needVipList="[0, 1]" :subject="1" :query="tabQuery" :centerList="centerList1"></tab-center>
+            <tab-right :needVipList="[0, 1]" :subject="1" :query="tabQuery" :rightList="rightList1"></tab-right>
           </view>
         </swiper-item>
 
         <swiper-item id="tab2" style="display: inline-block; width: 100%">
           <view v-for="(item, index) in typeList" :key="index">
-            <branch-two
-              v-if="index == 1"
-              :carVideoList="item.children"
-            ></branch-two>
+            <branch-two v-if="index == 1" :carVideoList="item.children"></branch-two>
           </view>
         </swiper-item>
 
@@ -242,55 +166,34 @@
             </van-grid-item>
           </van-grid> -->
           <view v-for="(item, index) in typeList" :key="index">
-            <branch-two
-              v-if="index == 2"
-              :carVideoList="item.children"
-            ></branch-two>
+            <branch-two v-if="index == 2" :carVideoList="item.children"></branch-two>
           </view>
         </swiper-item>
         <swiper-item id="tab4" style="display: inline-block; width: 100%">
           <view class="tab-container">
-            <tab-left
-              :needVipList="[0, 1]"
-              :query="tabQuery"
-              :subject="4"
-              :leftList="leftList4"
-            ></tab-left>
-            <tab-center
-              :needVipList="[0, 1]"
-              :query="tabQuery"
-              :subject="4"
-              :centerList="centerList4"
-            ></tab-center>
-            <tab-right
-              :needVipList="[0, 1]"
-              :query="tabQuery"
-              :subject="4"
-              :rightList="rightList4"
-            ></tab-right>
+            <tab-left :needVipList="[0, 1]" :query="tabQuery" :subject="4" :leftList="leftList4"></tab-left>
+            <tab-center :needVipList="[0, 1]" :query="tabQuery" :subject="4" :centerList="centerList4"></tab-center>
+            <tab-right :needVipList="[0, 1]" :query="tabQuery" :subject="4" :rightList="rightList4"></tab-right>
           </view>
         </swiper-item>
       </swiper>
     </view>
     <!-- #endif -->
     <view v-if="tabQuery.name !== '教学视频'" class="two">
-      <view
-      @click="
-          goPath(
-            '/otherPages/selectRulePaper/index',
-            {
-              title: '新规秘卷',
-            },
-            true
-          )
-        "
-        class="two-item"
-      >
+      <view @click="
+        goPath(
+          '/otherPages/selectRulePaper/index',
+          {
+            title: '新规秘卷',
+          },
+          true
+        )
+      " class="two-item">
         <image class="" src="https://t1-1305573081.file.myqcloud.com/ctjk/mp-wx/carVideo/xingui.png"></image>
-        <text style="color: #fff;font-size: 46rpx;top:34rpx"  class="twp-text">新规秘卷</text>
+        <text style="color: #fff;font-size: 46rpx;top:34rpx" class="twp-text">新规秘卷</text>
         <text style="color: #fff;font-size: 30rpx;top:104rpx" class="twp-text">考前秘籍 直击考点</text>
       </view>
-     
+
     </view>
     <!-- <view v-if="active == 0 || active == 3">
       <van-cell
@@ -341,6 +244,7 @@ import userInfoHead from "./components/userInfoHead.vue";
 import freeUseBg from "@/assets/img/freeUseBg.png";
 import newRulesBg from "@/assets/img/newRulesPaperBg.png";
 import utils from "@/utils/index";
+import api from '@/api'
 import subjectVideoSelect from './components/subjectVideoSelect.vue'
 export default {
   components: {
@@ -355,6 +259,7 @@ export default {
     subjectVideoSelect
   },
   data: () => ({
+    xcx_video_open: 0,
     freeUseBg,
     newRulesBg,
     subjectMap: ["科目一", "科目二", "科目三", "科目四"],
@@ -561,6 +466,7 @@ export default {
   }),
   computed: {
     userData() {
+      console.log(this.$store.state)
       return this.$store.state.user.userInfo || {};
     },
   },
@@ -580,6 +486,18 @@ export default {
     // this.recomVideos3 = data[3].children[0];
     this.loading = false;
     this.$store.dispatch("GetInfo");
+    api.system.systemConfigConfigKey('xcx_video_open').then(res => {
+
+      this.xcx_video_open = Number(res.data)
+      this.$nextTick(() => {
+        this.selectComponent("#tabs").resize() // 需要延迟
+      })
+
+
+
+
+      console.log(this.xcx_video_open)
+    })
 
     // this.$nextTick(() => {
     //   this.selectComponent("#tabs").resize();
@@ -589,11 +507,11 @@ export default {
     clickCell(carVideoList) {
       this.$utils.route.goPage(`/pages/carVideo/moreVideo?active=${this.active}`, null, {
         carVideoList: carVideoList,
-        active:this.active
+        active: this.active
       });
     },
     goPath(url, extraQuery = {}, needVip = false) {
-   
+
       uni.navigateTo({
         url:
           url + "?" + utils.mapToUrlQuery({ ...this.tabQuery, ...extraQuery }),
@@ -639,7 +557,7 @@ export default {
       }
     },
     changeSubject(e) {
-      this.tabQuery.subject = e.detail.title=='科目一'?1:4;
+      this.tabQuery.subject = e.detail.title == '科目一' ? 1 : 4;
       this.tabQuery.name = e.detail.title;
     },
     goLightMock(e) {
@@ -670,20 +588,24 @@ export default {
   padding: 0 30rpx;
   display: flex;
   justify-content: space-between;
+
   .two-item {
     position: relative;
+
     .twp-text {
       position: absolute;
       top: 32rpx;
       left: 30rpx;
       font-size: 32rpx;
     }
+
     image {
       width: 690rpx;
       height: 192rpx;
     }
   }
 }
+
 .tabTitle {
   width: 690rpx;
   margin: 0 auto;
@@ -695,9 +617,11 @@ export default {
   height: 66rpx;
   position: relative;
   box-sizing: border-box;
+
   .tabTitle-row {
     width: 172rpx;
   }
+
   .rect {
     width: 25%;
     text-align: center;
@@ -705,6 +629,7 @@ export default {
     bottom: 0;
     left: 0;
     height: 4rpx;
+
     .rect-color {
       width: 60%;
       height: 4rpx;
@@ -713,18 +638,22 @@ export default {
     }
   }
 }
+
 swiper-item {
   overflow-y: scroll;
 }
+
 .h6 {
   height: 6rpx;
 }
+
 .carVideo {
   position: relative;
   background: #fff;
   min-height: 100vh;
   width: 100%;
 }
+
 .swiperBanner {
   width: 690rpx;
   height: 200rpx;
@@ -733,10 +662,12 @@ swiper-item {
   align-content: center;
   align-items: center;
 }
+
 .banner {
   width: 690rpx;
   height: 200rpx;
 }
+
 .carType {
   width: 690rpx;
   height: 152rpx;
@@ -745,9 +676,11 @@ swiper-item {
   display: flex;
   flex-direction: row;
   margin-top: 32rpx;
+
   .col_selected {
     background: #bfd8ff;
   }
+
   .col {
     width: 172rpx;
     height: 100%;
@@ -756,42 +689,51 @@ swiper-item {
     align-items: center;
     align-content: center;
     justify-content: center;
+
     .carType-img0 {
       width: 133rpx;
       height: 45rpx;
     }
+
     .carType-img1 {
       width: 108rpx;
       height: 56rpx;
     }
+
     .carType-img2 {
       width: 82rpx;
       height: 60rpx;
     }
+
     .carType-img3 {
       width: 86rpx;
       height: 59rpx;
     }
+
     .carType-typeName {
       color: #333;
       font-size: 26rpx;
     }
+
     .carType-title {
       color: #333;
       font-size: 26rpx;
     }
   }
 }
+
 .point {
   width: 690rpx;
   margin: 0 auto;
   height: 16rpx;
   display: flex;
   position: relative;
+
   image {
     width: 30rpx;
     height: 14rpx;
   }
+
   .point-area {
     width: 25%;
     display: flex;
@@ -810,11 +752,13 @@ swiper-item {
     overflow-y: scroll;
     height: 800rpx;
   }
+
   .custom-tabs {
     /deep/ .van-tabs__line {
       background: #498ef5;
     }
   }
+
   .tab-container {
     width: 690rpx;
     display: flex;
@@ -823,9 +767,11 @@ swiper-item {
     align-items: flex-start;
   }
 }
+
 .vant-tab {
   height: 100px;
 }
+
 .video-box {
   background-color: #ffffff;
   display: flex;
@@ -836,6 +782,7 @@ swiper-item {
   margin-bottom: 30rpx;
   z-index: 0;
   justify-content: space-between;
+
   .custom-video-topbottom ::v-deep .video-item {
     margin-right: 0;
     margin-bottom: 0;

+ 1 - 1
src/pages/user/index.vue

@@ -4,7 +4,7 @@
       <van-cell
         center
         :value="userInfo.nickName ? userInfo.nickName : '新用户'"
-        @tap="getUserProfile"
+      
       >
         <view slot="title">
           <image

+ 1 - 1
src/store/modules/user.js

@@ -39,7 +39,7 @@ const user = {
 				state.tokenObj.date = new Date().getTime()
 		},
 		SET_USERINFO: (state, userInfo) => {
-			state.userInfo = userInfo
+			return state.userInfo = userInfo
 		},
 		SET_NAME: (state, name) => {
 			state.name = name