StephenArk30 6 yıl önce
ebeveyn
işleme
4e1e2bf667

Dosya farkı çok büyük olduğundan ihmal edildi
+ 237 - 237
sourcecode/h5app/vue/package-lock.json


+ 2 - 0
sourcecode/h5app/vue/package.json

@@ -8,10 +8,12 @@
     "lint": "vue-cli-service lint"
   },
   "dependencies": {
+    "plugin": "^0.3.3",
     "qiniu-js": "^2.5.3",
     "vant": "^1.4.8",
     "vue": "^2.5.17",
     "vue-clipboard2": "^0.2.1",
+    "vue-meta": "^1.5.6",
     "vue-resource": "^1.5.1",
     "vue-router": "^3.0.2",
     "vue-toast-component": "^2.0.0",

+ 1 - 1
sourcecode/h5app/vue/src/connector/simple-demo.js

@@ -245,7 +245,7 @@ smartIdentity/saveBatch
 "dormDistrict":1, // 宿舍区 0: 斋区, 1: 西南, 2: 南区, 3: 西丽
 "userSex":1, // 用户性别
 "userSchoolCard":20123333222,
-"userReviewStatus":1000,
+"userReviewStatus":1000, // 校卡审核状态 30: 默认; 100: 审核中; 1000: 审核通过; 500: 审核失败
 "reviewerId":1,
 "reviewerNote":"nmo",
 "reviewerNoteToUser":"noo"

+ 6 - 4
sourcecode/h5app/vue/src/main.js

@@ -1,7 +1,8 @@
-import Vue from 'vue'
-import App from './App.vue'
-import { router } from './router'
-import VueClipboard from 'vue-clipboard2'
+import Vue from 'vue';
+import App from './App.vue';
+import VueMeta from 'vue-meta';
+import {router} from './router';
+import VueClipboard from 'vue-clipboard2';
 import VueResource from 'vue-resource';
 import {Lazyload} from 'vant';
 
@@ -9,6 +10,7 @@ Vue.config.productionTip = false;
 Vue.use(VueClipboard);
 Vue.use(VueResource);
 Vue.use(Lazyload);
+Vue.use(VueMeta);
 
 Vue.http.options.emulateJSON = true;
 Vue.http.options.emulateHTTP = true;

+ 7 - 11
sourcecode/h5app/vue/src/router.js

@@ -7,7 +7,8 @@ const routes = [
     {
         path: '*',
         redirect: '/login',
-        navShow: false
+        navShow: false,
+        content: "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
     },
     {
         name: 'login',
@@ -15,7 +16,6 @@ const routes = [
         meta: {
             title: '登录',
             navShow: false,
-            name: "viewport",
             content: "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
         }
     },
@@ -25,7 +25,6 @@ const routes = [
         meta: {
             title: '未注册',
             navShow: false,
-            name: "viewport",
             content: "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
         }
     },
@@ -35,7 +34,6 @@ const routes = [
         meta: {
             title: '安全验证',
             navShow: false,
-            name: "viewport",
             content: "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
         }
     },
@@ -45,7 +43,6 @@ const routes = [
         meta: {
             title: '礼物登记',
             navShow: false,
-            name: "viewport",
             content: "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
         }
     },
@@ -55,7 +52,6 @@ const routes = [
         meta: {
             title: '首页',
             navShow: true,
-            name: "viewport",
             content: "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
         }
     },
@@ -65,7 +61,6 @@ const routes = [
         meta: {
             title: '我的',
             navShow: true,
-            name: "viewport",
             content: "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
         }
     },
@@ -74,7 +69,8 @@ const routes = [
         component: () => import('./views/share'),
         meta: {
             title: '分享海报',
-            navShow: false
+            navShow: false,
+            content: "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
         }
     },
     {
@@ -83,7 +79,6 @@ const routes = [
         meta: {
             title: '礼品卡',
             navShow: false,
-            name: "viewport",
             content: "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
         }
     },
@@ -93,7 +88,6 @@ const routes = [
         meta:{
             title:'礼物卡(评价)',
             navShow: false,
-            name: "viewport",
             content: "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
         }
     },
@@ -103,7 +97,6 @@ const routes = [
         meta:{
             title:'内部测试',
             navShow: false,
-            name: "viewport",
             content: "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
         }
     }
@@ -117,6 +110,9 @@ routes.forEach(route => {
 const router = new Router({ routes });
 
 router.beforeEach((to, from, next) => {
+    if (to.meta.content) {
+        document.getElementsByName('viewport')[0].content = to.meta.content;
+    }
     const title = to.meta && to.meta.title;
     if (title) {
         document.title = title;

+ 3 - 3
sourcecode/h5app/vue/src/views/SecurityVerify.vue

@@ -175,10 +175,10 @@
                             userSex: parseInt(that.radio),
                             userSchoolCard: 111111,
                             userSchoolCardPic: imgURL,
-                            userReviewStatus: 0,
+                            userReviewStatus: 100,
                             reviewerId: 1,
-                            reviewerNote: "nmo",
-                            reviewerNoteToUser: "noo"
+                            reviewerNote: "未审核",
+                            reviewerNoteToUser: "未审核"
                         };
                         console.log('----- User Identity -----');
                         BasicFunction.get_data("smartIdentity/saveBatch", function (response) {

+ 9 - 1
sourcecode/h5app/vue/src/views/index.vue

@@ -125,7 +125,15 @@
             console.log("presents:");
             console.log(presentList);
             this.presents = presentList;
-        }
+        },
+        // metaInfo: {
+        //     content: {
+        //         width: "device - width",
+        //         "initial-scale": "1.0",
+        //         "maximum-scale":"1.0",
+        //         "user-scalable": "no"
+        //     }
+        // },
     }
 
 </script>

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor