Browse Source

修改移动端问题

aaa 3 years ago
parent
commit
63f26d1b21

+ 11 - 5
src/views/home/answer/page-answer-special.vue

@@ -8,11 +8,11 @@
       @load="onLoad()"
     >
       <van-cell
+       class="vanCell"
         v-for="(item, index) in specialAnswerList"
         :key="index"
       >
         <div slot="default" class="contentItemDiv">
-          <div>
             <div class="contentItemTitle">
               {{ item.name }}
             </div>
@@ -26,7 +26,6 @@
                     <span class="startText">开始答题</span>
                 </div>
             </div>
-          </div>
         </div>
       </van-cell>
     </van-list>
@@ -105,8 +104,14 @@ export default {
 
 <style lang="scss" scoped>
 .contentBody {
-  background-color: #fff;
-  .contentItemDiv {
+  .vanCell{
+    background-color: #F0F0F0;
+   .contentItemDiv {
+    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
+    background-color: #FFFFFF;
+    height: 80px;
+    border-radius: 2px;
+    padding: 10px;
     .contentItemTitle {
       font-size: 0.65rem;
       font-weight: bold;
@@ -124,13 +129,14 @@ export default {
       justify-content: flex-end;
       .startButtonBox{
           border-radius: 2px;
-          background-color: #696969;
+          background-color: #0088E9;
       }
       .startText{
           margin: 10px 5px;
           color: #fff;
       }
     }
+    }
   }
 
 }

+ 1 - 1
src/views/home/exam/page-exam.vue

@@ -102,7 +102,7 @@ export default {
       this.isInited = false;
       this.$store.commit("toggleLoading", true);
       let params = {
-        // engineertypeid: this.chooseEngneeringWork.id,
+        engineertypeid: this.chooseEngneeringWork.id,
         page: this.examPage,
         size: this.examSize
       };

+ 2 - 1
src/views/home/index.vue

@@ -191,7 +191,8 @@ export default {
       this.$_http
         .get(this.$_API.JTXT_GET_ENGINEERINGWORK_LIST)
         .then(res => {
-          this.engineeringWorkList = res.data;
+          this.engineeringWorkList.push({ "id": "", "name": "全部" });
+          this.engineeringWorkList = [...this.engineeringWorkList, ...res.data];
           this.engineeringWorkList.forEach(element => {
             element["text"] = element.name;
             element["value"] = element.name;

+ 2 - 1
src/views/home/person/page-person.vue

@@ -159,7 +159,8 @@ export default {
         .get(this.$_API.JTXT_GET_ENGINEERINGWORK_LIST)
         .then(res => {
           console.log("--获取工作列表--" + JSON.stringify(res));
-          this.engineeringWorkList = res.data;
+          this.engineeringWorkList.push({ "id": "", "name": "全部" });
+          this.engineeringWorkList = [...this.engineeringWorkList, ...res.data];
           this.engineeringWorkList.forEach(element => {
             element["text"] = element.name;
             element["value"] = element.name;