Procházet zdrojové kódy

修复模拟考试bug

JXDS18FUJT před 2 roky
rodič
revize
d0c870f767

+ 1 - 3
src/otherPages/classifyArea/index.vue

@@ -91,9 +91,7 @@ export default {
 </script>
 
 <style lang="scss" scoped>
-.uni-app-fontsize-paragraph{
-  font-size: $uni-app-fontsize-paragraph;
-}
+
 .cell-box {
   display: flex;
   padding: 30rpx 30rpx;

+ 5 - 0
src/pages.json

@@ -30,6 +30,11 @@
       "path": "pages/extraWeb/index",
       "style": {}
     },
+    {
+      "path": "pages/extraHorWeb/index",
+      
+      "style": {"pageOrientation": "landscape"}
+    },
     {
       "path": "pages/download/index",
       "style": {

+ 1 - 7
src/pages/carVideo/components/tabLeft.vue

@@ -22,13 +22,7 @@ export default {
   goPath(item, index) {
       let query = Object.assign({}, this.query);
       query.title = item.text;
-      if(item.text==='真实考场模拟'){
-        uni.showToast({
-          title:"请到App体验",
-          icon:"none"
-        })
-        return
-      }
+   
       if (this.needVipList.includes(index) && !this.isVip) {
         uni.showModal({
           title: "提示",

+ 2 - 2
src/pages/carVideo/index.vue

@@ -327,7 +327,7 @@ export default {
       {
         img: "https://t1-1305573081.file.myqcloud.com/ctjk/mp-wx/carVideo/RealExaminationRoomSimulation%402x.png",
         text: "真实考场模拟",
-        path: "/otherPages/classifyFree/index",
+        path: '/pages/extraHorWeb/index',
       },
 
       {
@@ -385,7 +385,7 @@ export default {
       {
         img: "https://t1-1305573081.file.myqcloud.com/ctjk/mp-wx/carVideo/RealExaminationRoomSimulation%402x.png",
         text: "真实考场模拟",
-        path: "/otherPages/classifyFree/index",
+        path: '/pages/extraHorWeb/index',
       },
 
       {

+ 6 - 0
src/pages/carVideo/xx.json

@@ -0,0 +1,6 @@
+{
+    "username": "流星灬飞雨",
+    "subject": 1,
+    "gs": "hc",
+    "headimg": "https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-i-0813_cb58ac62ed774529afe52d7a866f120f.jpeg?from=4010531038"
+}

+ 36 - 0
src/pages/extraHorWeb/index.vue

@@ -0,0 +1,36 @@
+<template>
+  <div>
+    <web-view :src="src"></web-view>
+  </div>
+</template>
+
+<script>
+import utils from "@/utils/index";
+export default {
+  data() {
+    return {
+      query: {},
+      src: "https://mn.zzxcx.net/#/exam/begin",
+      params:""
+    };
+  },
+  methods: {
+    name() {},
+  },
+  onLoad(query) {
+    this.query = query;
+    this.params = query.params
+    console.log(this.params)
+    //src=https://mn.zzxcx.net/#/exam/begin&params={"username":"微信用户","subject":4,"headimg":"https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132"}
+    this.src = this.src+'?'+utils.mapToUrlQuery({
+      username:"微信用户",
+      gs:query.gs,
+      subject:query.subject,
+      headimg:"https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132"
+    });
+  },
+};
+</script>
+
+<style lang="scss" scoped>
+</style>

+ 6 - 1
src/pages/extraWeb/index.vue

@@ -5,11 +5,13 @@
 </template>
 
 <script>
+import utils from "@/utils/index";
 export default {
   data() {
     return {
       query: {},
       src: "",
+      params:""
     };
   },
   methods: {
@@ -17,7 +19,10 @@ export default {
   },
   onLoad(query) {
     this.query = query;
-    this.src = this.query.src;
+    this.params = query.params
+    console.log(this.params)
+    JSON.parse(this.params)
+    this.src = this.query.src+'?'+utils.mapToUrlQuery(JSON.parse(this.params||{}));
   },
 };
 </script>

+ 12 - 10
src/pages/user/index.vue

@@ -2,6 +2,7 @@
   <scroll-view scroll-y class="content">
     <div class="user">
       <van-cell
+    
         center
         :value="userInfo.nickName ? userInfo.nickName : '新用户'"
       
@@ -15,7 +16,7 @@
           <image class="user-headImg" v-else :src="unLoginHead"></image>
         </view>
       </van-cell>
-      <van-cell
+      <!-- <van-cell
         title="资料下载"
         is-link
         @click="goVipPath('/otherPages/pdfList/index')"
@@ -24,7 +25,7 @@
         <template #icon>
           <m-icon type="fkbz" class="cell-icon" />
         </template>
-      </van-cell>
+      </van-cell> -->
       <!-- <van-cell title="我要提现" value="" is-link center @click="goCashOut">
         </van-cell> -->
       <!-- <van-cell title="我的下级" value="" is-link center @click="goMyBranch">
@@ -126,6 +127,7 @@ export default {
   },
   mounted() {
     this.$store.dispatch("GetInfo");
+
   },
   methods: {
     goVipPath(url) {
@@ -146,14 +148,14 @@ export default {
         desc: "业务需要",
         success(res) {
           console.log(res);
-          api.user
-            .userInfoUserInfo({
-              headImage: res.userInfo.avatarUrl,
-              nickName: res.userInfo.nickName,
-            })
-            .then((res) => {
-              that.$store.dispatch("GetInfo");
-            });
+          // api.user
+          //   .userInfoUserInfo({
+          //     headImage: res.userInfo.avatarUrl,
+          //     nickName: res.userInfo.nickName,
+          //   })
+          //   .then((res) => {
+          //     that.$store.dispatch("GetInfo");
+          //   });
         },
       });