Browse Source

fix next page bug fix h5 title and ico/favicon.ico

yichael 4 years ago
parent
commit
8f291f92d4
8 changed files with 39 additions and 9 deletions
  1. 1 1
      components/login/loginByPWD.vue
  2. 1 1
      components/manager/assets.vue
  3. 0 1
      main.js
  4. 10 4
      manifest.json
  5. 1 1
      myData.js
  6. 1 1
      pages.json
  7. BIN
      static/ico/favicon.ico
  8. 25 0
      static/main.html

+ 1 - 1
components/login/loginByPWD.vue

@@ -70,7 +70,7 @@
 							console.log("登陆成功",this.account,data);
 							if(data.Type!='老师')
 							{
-								alert('没有权限登录');
+								alert('只有教师才有登录权限');
 								return;
 							}
 							

+ 1 - 1
components/manager/assets.vue

@@ -33,7 +33,7 @@
 				<text class="m_paging_item" v-for="i in pageTotalNum" @click="paging(i)" :key="i" :class="i==currentPage?'p_act':''">
 					{{i}}
 				</text>
-				<text class="m_paging_item m_paging_lower" v-show="bShowNextPageBtn" @click="paging(i)">下一页</text>
+				<text class="m_paging_item m_paging_lower" v-show="bShowNextPageBtn" @click="next()">下一页</text>
 			</view>
 		</view>
 		<popForm ref="popForm"></popForm>

+ 0 - 1
main.js

@@ -19,5 +19,4 @@ Vue.prototype.$UserId="mp.xyueds.com"
 
 import './public.css';
 import './uni.scss';
-
 import './myData.js';

+ 10 - 4
manifest.json

@@ -1,6 +1,6 @@
 {
-    "name" : "ZhongChuang",
-    "appid" : "",
+    "name" : "中传后台",
+    "appid" : "__UNI__BE47112",
     "description" : "",
     "versionName" : "1.0.0",
     "versionCode" : "100",
@@ -76,7 +76,7 @@
         "enable" : false
     },
     "h5" : {
-        "title" : "ZhongChuan",
+        "title" : "中传后台",
         "router" : {
             "mode" : "history",
             "base" : "./"
@@ -84,6 +84,12 @@
         "devServer" : {
             "port" : 9902
         },
-        "domain" : "www.yuyekeji.cn"
+        "domain" : "www.yuyekeji.cn",
+        "template" : "main.html",
+        "optimization" : {
+            "treeShaking" : {
+                "enable" : true
+            }
+        }
     }
 }

+ 1 - 1
myData.js

@@ -17,4 +17,4 @@ mydata_userInfo={
 
 // mydata_api='http://8.140.128.1:8085'
 // mydata_api='http://tanhuagame.com:8085'
-mydata_api='http://tanhuagame.com:8085/admin'
+mydata_api='http://ilabtft.cuc.edu.cn/admin'

+ 1 - 1
pages.json

@@ -11,7 +11,7 @@
 	],
 	"globalStyle": {
 		"navigationBarTextStyle": "black",
-		"navigationBarTitleText": "uni-app",
+		"navigationBarTitleText": "中传后台",
 		"navigationBarBackgroundColor": "#F8F8F8",
 		"backgroundColor": "#F8F8F8"
 	}

BIN
static/ico/favicon.ico


+ 25 - 0
static/main.html

@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html lang="zh-CN">
+    <head>
+	
+		<link rel="icon" href="<%= BASE_URL %>static/ico/favicon.ico">
+        <meta charset="utf-8">
+        <meta http-equiv="X-UA-Compatible" content="IE=edge">
+        <title>
+            <%= htmlWebpackPlugin.options.title %>
+        </title>
+		
+        <script>
+            var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
+            document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')
+        </script>
+        <link rel="stylesheet" href="<%= BASE_URL %>static/index.<%= VUE_APP_INDEX_CSS_HASH %>.css" />
+    </head>
+    <body>
+        <noscript>
+            <strong>Please enable JavaScript to continue.</strong>
+        </noscript>
+        <div id="app"></div>
+        <!-- built files will be auto injected -->
+    </body>
+</html>