miaofuhao лет назад: 2
Родитель
Сommit
93e7cf9406

+ 3 - 3
CallCenterWeb.UI/RMYYAPP/manifest.json

@@ -2,8 +2,8 @@
2 2
     "name" : "郑州人民医院综合服务保障调度平台",
3 3
     "appid" : "__UNI__5A5207D",
4 4
     "description" : "",
5
-    "versionName" : "1.2.33",
6
-    "versionCode" : 122,
5
+    "versionName" : "1.2.34",
6
+    "versionCode" : 123,
7 7
     "transformPx" : false,
8 8
     /* 5+App特有相关 */
9 9
     "app-plus" : {
@@ -129,6 +129,6 @@
129 129
     },
130 130
     "h5" : {
131 131
         "title" : "郑州人民医院综合服务保障调度平台",
132
-        "template" : "templateh5.html"
132
+        "template" : ""
133 133
     }
134 134
 }

+ 27 - 26
CallCenterWeb.UI/RMYYAPP/pages/myTask/myTask.vue

@@ -228,33 +228,34 @@
228 228
 						console.log(nowVersionCode + "---" + serveVersionCode)
229 229
 						if (nowVersionCode !== serveVersionCode) {
230 230
 							if (typeUp === 0) {
231
-								plus.runtime.openURL(data.FileUrl[0].F_FileUrl, err => {
232
-									plus.runtime.openURL(data.FileUrl[0].F_FileUrl);
233
-								}, 'com.android.browser');
234
-								// uni.showModal({
235
-								// 	title: '更新',
236
-								// 	content: '是否更新',
237
-								// 	success: function (res) {
238
-								// 		if (res.confirm) {
239
-								// 			console.log(data.F_FileUrl)
240
-								// 		} else if (res.cancel) {
241
-								// 			this.$mHelper.toast("取消更新");
242
-								// 		}
243
-								// 	}
244
-								// });
231
+								
232
+								uni.showModal({
233
+									title: '更新',
234
+									content: '是否更新',
235
+									showCancel:false,
236
+									success: function (res) {
237
+										if (res.confirm) { 
238
+											plus.runtime.openURL(data.FileUrl[0].F_FileUrl, err => {
239
+												plus.runtime.openURL(data.FileUrl[0].F_FileUrl);
240
+											}, 'com.android.browser');
241
+										} else if (res.cancel) {
242
+											this.$mHelper.toast("取消更新");
243
+										}
244
+									}
245
+								});
245 246
 							} else if (typeUp === 1) {
246
-								plus.runtime.openURL(data.F_Url);
247
-								// uni.showModal({
248
-								// 	title: '更新',
249
-								// 	content: '是否更新',
250
-								// 	success: function (res) {
251
-								// 		if (res.confirm) {
252
-								// 			plus.runtime.openURL(data.F_Url);
253
-								// 		} else if (res.cancel) {
254
-								// 			this.$mHelper.toast("取消更新");
255
-								// 		}
256
-								// 	}
257
-								// });
247
+								uni.showModal({
248
+									title: '更新',
249
+									content: '是否更新',
250
+									showCancel:false,
251
+									success: function (res) {
252
+										if (res.confirm) {
253
+											plus.runtime.openURL(data.F_Url);
254
+										} else if (res.cancel) {
255
+											this.$mHelper.toast("取消更新");
256
+										}
257
+									}
258
+								});
258 259
 
259 260
 							}
260 261
 

+ 0 - 25
CallCenterWeb.UI/RMYYAPP/templateh5.html

@@ -1,25 +0,0 @@
1
-<!DOCTYPE html>
2
-<html lang="zh-CN">
3
-	<head>
4
-		<meta charset="utf-8">
5
-		<meta http-equiv="X-UA-Compatible" content="IE=edge">
6
-		<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
7
-		<meta http-equiv="Pragma" content="no-cache" />
8
-		<meta http-equiv="Expires" content="0" />
9
-		<title>
10
-			<%= htmlWebpackPlugin.options.title %>
11
-		</title>
12
-		<script>
13
-			var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
14
-			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' : '') + '" />')
15
-		</script>
16
-		<link rel="stylesheet" href="<%= BASE_URL %>static/index.<%= VUE_APP_INDEX_CSS_HASH %>.css" />
17
-	</head>
18
-	<body>
19
-		<noscript>
20
-			<strong>Please enable JavaScript to continue.</strong>
21
-		</noscript>
22
-		<div id="app"></div>
23
-		<!-- built files will be auto injected -->
24
-	</body>
25
-</html>

+ 0 - 18
CallCenterWeb.UI/RMYYAPP/vue.config.js

@@ -1,18 +0,0 @@
1
-let filePath = '';   // 默认文件路径
2
-let TimeStamp = '';  // 时间戳
3
-let Version = '-V1.0.1-'; // 版本号
4
-//编译环境判断,可以根据不同环境来做相应的配置
5
-if (process.env.UNI_PLATFORM === 'h5') {
6
-  filePath = 'static/js/'
7
-  TimeStamp = new Date().getTime();
8
-  process.env.VUE_APP_INDEX_CSS_HASH=`${Version}${TimeStamp}`   //给css文件也使用该时间戳
9
-}
10
- 
11
-module.exports = {
12
-  configureWebpack: {
13
-    output: { //重构文件名
14
-      filename: `${filePath}[name].${Version}${TimeStamp}.js`, // index文件重命名为带有版本号+时间戳的格式
15
-      chunkFilename: `${filePath}[name].${Version}${TimeStamp}.js` // static/js/pages-home-index.-V1-754654657.js  
16
-    },
17
-  },
18
-}