优化一下代码
This commit is contained in:
2
.npmrc
2
.npmrc
@@ -1,4 +1,4 @@
|
|||||||
registry=http://192.168.1.87:4873/
|
registry=http://registry.npmmirror.com
|
||||||
email=aixianling@sinoecare.com
|
email=aixianling@sinoecare.com
|
||||||
always-auth=true
|
always-auth=true
|
||||||
package-lock=false
|
package-lock=false
|
||||||
|
|||||||
@@ -81,9 +81,9 @@
|
|||||||
"jest": "^25.4.0",
|
"jest": "^25.4.0",
|
||||||
"mini-types": "*",
|
"mini-types": "*",
|
||||||
"miniprogram-api-typings": "^3.3.2",
|
"miniprogram-api-typings": "^3.3.2",
|
||||||
"node-sass": "npm:sass@^1.51.0",
|
|
||||||
"postcss-comment": "^2.0.0",
|
"postcss-comment": "^2.0.0",
|
||||||
"query-string": "^7.1.1",
|
"query-string": "^7.1.1",
|
||||||
|
"sass": "^1.79.5",
|
||||||
"uview-ui": "^1.8.4",
|
"uview-ui": "^1.8.4",
|
||||||
"vconsole": "^3.12.1",
|
"vconsole": "^3.12.1",
|
||||||
"vue-template-compiler": "^2.6.11"
|
"vue-template-compiler": "^2.6.11"
|
||||||
|
|||||||
@@ -34,7 +34,8 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
repairWxSDK() {
|
repairWxSDK() {
|
||||||
wx = jWeixin
|
const {jWeixin} = window
|
||||||
|
window.wx = jWeixin
|
||||||
},
|
},
|
||||||
initLoginBtn() {
|
initLoginBtn() {
|
||||||
let btn = document.createElement("div")
|
let btn = document.createElement("div")
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
},
|
},
|
||||||
"devServer": {
|
"devServer": {
|
||||||
"disableHostCheck": true,
|
"disableHostCheck": true,
|
||||||
"port": "80",
|
"port": "443",
|
||||||
"open": true,
|
"open": true,
|
||||||
"proxy": {
|
"proxy": {
|
||||||
"/lan": {
|
"/lan": {
|
||||||
|
|||||||
@@ -2,43 +2,42 @@
|
|||||||
<html lang="zh-CN">
|
<html lang="zh-CN">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport"
|
<meta name="viewport"
|
||||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||||
<meta name="format-detection" content="telephone=yes"/>
|
<meta name="format-detection" content="telephone=yes"/>
|
||||||
<title>企微应用产品库</title>
|
<title>企微应用产品库</title>
|
||||||
<!-- 正式发布的时候使用,开发期间不启用。↓ -->
|
<!-- 正式发布的时候使用,开发期间不启用。↓ -->
|
||||||
<!-- <script src="/h5/touch-emulator.js"></script>
|
<!-- <script src="/h5/touch-emulator.js"></script>
|
||||||
<script>
|
|
||||||
TouchEmulator();
|
|
||||||
if (document.documentElement.clientWidth > 1024) {
|
|
||||||
window.location.href = '/h5/pcguide.html#'+location.pathname+location.search;
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
<style>
|
|
||||||
::-webkit-scrollbar{
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<script>
|
<script>
|
||||||
var _hmt = _hmt || [];
|
TouchEmulator();
|
||||||
(function() {
|
if (document.documentElement.clientWidth > 1024) {
|
||||||
var hm = document.createElement("script");
|
window.location.href = '/h5/pcguide.html#'+location.pathname+location.search;
|
||||||
hm.src = "https://hm.baidu.com/hm.js?";// 百度统计key
|
}
|
||||||
var s = document.getElementsByTagName("script")[0];
|
|
||||||
s.parentNode.insertBefore(hm, s);
|
|
||||||
})();
|
|
||||||
</script> -->
|
|
||||||
<!-- 正式发布的时候使用,开发期间不启用。↑ -->
|
|
||||||
<script>
|
|
||||||
// document.addEventListener('DOMContentLoaded', function() {
|
|
||||||
// document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px'
|
|
||||||
// })
|
|
||||||
</script>
|
</script>
|
||||||
<link rel="stylesheet" href="<%= BASE_URL %>static/index.<%= VUE_APP_INDEX_CSS_HASH %>.css"/>
|
<style>
|
||||||
<script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js" referrerpolicy="origin"></script>
|
::-webkit-scrollbar{
|
||||||
<script src="https://open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js" referrerpolicy="origin"></script>
|
display: none;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<script>
|
||||||
|
var _hmt = _hmt || [];
|
||||||
|
(function() {
|
||||||
|
var hm = document.createElement("script");
|
||||||
|
hm.src = "https://hm.baidu.com/hm.js?";// 百度统计key
|
||||||
|
var s = document.getElementsByTagName("script")[0];
|
||||||
|
s.parentNode.insertBefore(hm, s);
|
||||||
|
})();
|
||||||
|
</script> -->
|
||||||
|
<!-- 正式发布的时候使用,开发期间不启用。↑ -->
|
||||||
|
<script>
|
||||||
|
// document.addEventListener('DOMContentLoaded', function() {
|
||||||
|
// document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px'
|
||||||
|
// })
|
||||||
|
</script>
|
||||||
|
<link rel="stylesheet" href="<%= BASE_URL %>static/index.<%= VUE_APP_INDEX_CSS_HASH %>.css"/>
|
||||||
|
<script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
@@ -46,7 +45,7 @@ if (document.documentElement.clientWidth > 1024) {
|
|||||||
<!-- 请勿在此文件编写页面代码或直接运行此文件。 -->
|
<!-- 请勿在此文件编写页面代码或直接运行此文件。 -->
|
||||||
<!-- 详见文档:https://uniapp.dcloud.io/collocation/manifest?id=h5-template -->
|
<!-- 详见文档:https://uniapp.dcloud.io/collocation/manifest?id=h5-template -->
|
||||||
<noscript>
|
<noscript>
|
||||||
<strong>Please enable JavaScript to continue.</strong>
|
<strong>Please enable JavaScript to continue.</strong>
|
||||||
</noscript>
|
</noscript>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
<!-- built files will be auto injected -->
|
<!-- built files will be auto injected -->
|
||||||
|
|||||||
Reference in New Issue
Block a user