Kaynağa Gözat

首页改版前

zhangyujun 3 yıl önce
ebeveyn
işleme
e7029165bf
3 değiştirilmiş dosya ile 25 ekleme ve 21 silme
  1. 8 7
      src/pages.json
  2. 0 1
      src/pages/home/index.vue
  3. 17 13
      src/pages/mockExam/begin.vue

+ 8 - 7
src/pages.json

@@ -7,13 +7,7 @@
     //     "navigationStyle": "custom"
     //   }
     // },
-    {
-      "path": "pages/lightMock/index",
-      "style": {
-        "navigationBarTitleText": "灯光模拟",
-        "enablePullDownRefresh": false
-      }
-    },
+
     {
       "path": "pages/carVideo/index",
       "style": {
@@ -22,6 +16,13 @@
         "navigationStyle": "custom"
       }
     },
+    {
+      "path": "pages/lightMock/index",
+      "style": {
+        "navigationBarTitleText": "灯光模拟",
+        "enablePullDownRefresh": false
+      }
+    },
     {
       "path": "pages/index/index",
       "style": {

+ 0 - 1
src/pages/home/index.vue

@@ -9,7 +9,6 @@
 					<text style="color: #FFFFFF;">极速生活圈</text>
 				</view>
 			</topbar>
-
 			<loadSke :loading='topLoading' :list='bannerList'>
 				<m-banner :bannerList="bannerList"></m-banner>
 				<m-home-coupon :couponList="couponList"></m-home-coupon>

+ 17 - 13
src/pages/mockExam/begin.vue

@@ -55,29 +55,33 @@
 </template>
 
 <script>
-import subject4Img from "@/assets/img/subject4@2x.png";
-import subject1Img from "@/assets/img/subject1@2x.png";
 import backButton from "@/assets/img/backButton.png";
 // import { getCurrentPage } from '../../../dist/build/mp-weixin/wxcomponents/vant/common/utils';
 export default {
   data() {
+    let subject1Img =
+      "https://t1-1305573081.file.myqcloud.com/wxapp/static/imgs/%E7%A7%91%E7%9B%AE%E4%B8%80.png";
+    let subject4Img =
+      "https://t1-1305573081.file.myqcloud.com/wxapp/static/imgs/%E7%A7%91%E7%9B%AE%E5%9B%9B.png";
     return {
-      subject4Img,
       subject1Img,
-      subjectImg: subject4Img,
+      subject4Img,
+      subjectImg: subject1Img,
       backButton,
-      query:{
-        username:"",
-        headimg:""
-      }
+      query: {
+        username: "",
+        headimg: "",
+      },
     };
   },
-  onLoad(option){
+  onLoad(option) {
     //username=%E5%BC%A0%E5%AE%87%E5%86%9B&subject=1&type=liceCar&headimg=https%3A%2F%2Fthirdwx.qlogo.cn%2Fmmopen%2Fvi_32%2FQ0j4TwGTfTL42T648KSueEiaibrIt0jgEmgBUlRvbu1ES3VnKoBicK4GOnuYK8oeSLL0V0gmeGaWwONo78oPpvzUQ%2F132
-    this.query = option
-    this.query.username = decodeURIComponent(option.username)
-    this.query.headimg = decodeURIComponent(option.headimg)
-
+    this.query = option;
+    this.query.subject == 4
+      ? (this.subjectImg = this.subject4Img)
+      : (this.subjectImg = this.subject1Img);
+    this.query.username = decodeURIComponent(option.username);
+    this.query.headimg = decodeURIComponent(option.headimg);
   },
   methods: {
     goExam() {