Browse Source

去掉每日答题,修改每周专项答题页面的样式

huangtao 3 years ago
parent
commit
c3a903cb71

+ 8 - 1
src/views/home/answer/page-answer-special.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="contentBody">
+  <div class="contentBody pageAnswerSpecial">
     <van-nav-bar title="专项答题" left-arrow @click-left="handleBackFun" />
     <van-list
       v-model="loading"
@@ -111,6 +111,13 @@ export default {
 };
 </script>
 
+<style lang="scss">
+.pageAnswerSpecial {
+  .van-cell__value {
+    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
+  }
+}
+</style>
 <style lang="scss" scoped>
 .contentBody {
   .vanCell {

+ 8 - 1
src/views/home/answer/page-answer-week.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="contentBody">
+  <div class="contentBody pageAnswerWeek">
     <van-nav-bar title="每周答题" left-arrow @click-left="handleBackFun" />
     <van-list
       v-model="loading"
@@ -101,6 +101,13 @@ export default {
 };
 </script>
 
+<style lang="scss">
+.pageAnswerWeek {
+  .van-cell__value {
+    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
+  }
+}
+</style>
 <style lang="scss" scoped>
 .contentBody {
   .vanCell {

+ 7 - 6
src/views/home/answer/page-answer.vue

@@ -20,6 +20,7 @@
             <div>{{ item.title[1] }}</div>
           </div>
         </div>
+        <div style="width: 31%"></div>
       </div>
     </div>
     <!-- 竞赛答题 -->
@@ -63,12 +64,12 @@ export default {
     // 查询:答题练习的列表数据
     getAnswerPracticeListFun() {
       this.answerPracticeList = [
-        {
-          id: 1,
-          url: require("@/assets/image/answer/01.png"),
-          title: ["不积跬步", "无以至千里"],
-          type: { name: "今日答题", code: "daily-questions" }
-        },
+        // {
+        //   id: 1,
+        //   url: require("@/assets/image/answer/01.png"),
+        //   title: ["不积跬步", "无以至千里"],
+        //   type: { name: "今日答题", code: "daily-questions" }
+        // },
         {
           id: 2,
           url: require("@/assets/image/answer/02.png"),

+ 7 - 11
src/views/home/index.vue

@@ -8,8 +8,7 @@
       bind:click-right=""
     >
     </van-nav-bar>
-    <div v-show="activeTabName === 0" class="dropdown-div">
-    </div>
+    <div v-show="activeTabName === 0" class="dropdown-div"></div>
     <transition name="tab" mode="out-in">
       <component :is="currentComponents" class="page" />
     </transition>
@@ -86,9 +85,7 @@ export default {
   activated() {
     this.setLanXinNavigator();
   },
-  mounted() {
-
-  },
+  mounted() {},
   watch: {
     // 监听:首页切换tab的下标
     homeChangeTabIndex(value) {
@@ -191,7 +188,7 @@ export default {
       this.$_http
         .get(this.$_API.JTXT_GET_ENGINEERINGWORK_LIST)
         .then(res => {
-          this.engineeringWorkList.push({ "id": "", "name": "全部" });
+          // this.engineeringWorkList.push({ "id": "", "name": "全部" });
           this.engineeringWorkList = [...this.engineeringWorkList, ...res.data];
           this.engineeringWorkList.forEach(element => {
             element["text"] = element.name;
@@ -199,9 +196,9 @@ export default {
           });
           //   选择工作列表
           this.engineeringWorkChooseValue =
-      this.chooseEngneeringWork && this.chooseEngneeringWork.value
-        ? this.chooseEngneeringWork.value
-        : this.engineeringWorkList[0].value;
+            this.chooseEngneeringWork && this.chooseEngneeringWork.value
+              ? this.chooseEngneeringWork.value
+              : this.engineeringWorkList[0].value;
           this.handleChangeEngneeringWorkFun(this.engineeringWorkChooseValue);
         })
         .catch(() => {
@@ -297,5 +294,4 @@ export default {
   padding-bottom: 2rem; // 多2em,避免tab栏挡住内容
 }
 </style>
-<style lang="scss">
-</style>
+<style lang="scss"></style>

+ 6 - 5
src/views/home/person/page-person.vue

@@ -159,17 +159,17 @@ export default {
         .get(this.$_API.JTXT_GET_ENGINEERINGWORK_LIST)
         .then(res => {
           console.log("--获取工作列表--" + JSON.stringify(res));
-          this.engineeringWorkList.push({ "id": "", "name": "全部" });
+          // this.engineeringWorkList.push({ "id": "", "name": "全部" });
           this.engineeringWorkList = [...this.engineeringWorkList, ...res.data];
           this.engineeringWorkList.forEach(element => {
             element["text"] = element.name;
             element["value"] = element.name;
           });
-          //   选择工列表
+          //   选择工列表
           this.engineeringWorkChooseValue =
-      this.chooseEngneeringWork && this.chooseEngneeringWork.value
-        ? this.chooseEngneeringWork.value
-        : this.engineeringWorkList[0].value;
+            this.chooseEngneeringWork && this.chooseEngneeringWork.value
+              ? this.chooseEngneeringWork.value
+              : this.engineeringWorkList[0].value;
           this.handleChangeEngneeringWorkFun(this.engineeringWorkChooseValue);
           console.log(this.userInfo);
           this.getDailyPoints();
@@ -181,6 +181,7 @@ export default {
     },
     // 操作:选择了工种
     handleChangeEngneeringWorkFun(value) {
+      console.log(value);
       let resultItem = null;
       for (let i = 0; i < this.engineeringWorkList.length; i++) {
         let item = this.engineeringWorkList[i];