Commit 433b885b by li

no message

parent 41d545eb
node_modules/
<script> <script>
export default { export default {
onLaunch: function() { onLaunch: function() {
if(process.uniEnv.name == 'bjst') if (process.uniEnv.name == 'bjst') {
{ document.getElementsByTagName('body')[0].style.background =
document.getElementsByTagName('body')[0].style.background = "linear-gradient(0deg, #187B47, #13A13F, #15A147, #12794C)" "linear-gradient(0deg, #187B47, #13A13F, #15A147, #12794C)"
} }
// 禁止 ios 缩放屏幕 // 禁止 ios 缩放屏幕
document.addEventListener('gesturestart', function (event) { document.addEventListener('gesturestart', function(event) {
event.preventDefault(); event.preventDefault();
}); });
// 禁止移动端(IOS)双击页面变大 // 禁止移动端(IOS)双击页面变大
let touchTime = 0; let touchTime = 0;
document.addEventListener('touchstart', function (event) { document.addEventListener('touchstart', function(event) {
if (event.touches.length > 1) { if (event.touches.length > 1) {
event.preventDefault(); event.preventDefault();
} }
}); });
document.addEventListener( document.addEventListener(
'touchend', 'touchend',
function (event) { function(event) {
//记录当前点击的时间与下一次时间的间隔 //记录当前点击的时间与下一次时间的间隔
const nowTime = new Date(); const nowTime = new Date();
if (nowTime.getTime() - touchTime <= 300) { if (nowTime.getTime() - touchTime <= 300) {
...@@ -35,7 +35,8 @@ ...@@ -35,7 +35,8 @@
let isMobile = getArr.length ? true : false; let isMobile = getArr.length ? true : false;
// this.$store.state.isMobile = isMobile // this.$store.state.isMobile = isMobile
if (!(window && window.plus) && ((location.host.includes("127.0.0.1") || location.host.includes("localhost")))) { if (!(window && window.plus) && ((location.host.includes("127.0.0.1") || location.host.includes(
"localhost")))) {
if (!isMobile && window.frames.length == parent.frames.length) { if (!isMobile && window.frames.length == parent.frames.length) {
//pc携带参数跳转 //pc携带参数跳转
...@@ -48,35 +49,36 @@ ...@@ -48,35 +49,36 @@
} }
} }
}, },
onShow: function() { onShow: function() {},
}, onHide: function() {}
onHide: function() {
}
} }
</script> </script>
<style lang="scss"> <style lang="scss">
:root{ :root {
// --theme--:#00ba29; // --theme--:#00ba29;
// --borderTheme--:rgba(5, 156, 92, 0.2); // --borderTheme--:rgba(5, 156, 92, 0.2);
--theme--:#f18403; --theme--: #f18403;
--borderTheme--:#A3A3A3; --borderTheme--: #A3A3A3;
} }
// body{ // body{
// background: linear-gradient(0deg, #187B47, #13A13F, #15A147, #12794C); // background: linear-gradient(0deg, #187B47, #13A13F, #15A147, #12794C);
// } // }
/*每个页面公共css */ /*每个页面公共css */
@import 'vant/lib/index.css'; @import 'vant/lib/index.css';
@import "uview-ui/index.scss"; @import "uview-ui/index.scss";
.u-form-item__body__right__message{
.u-form-item__body__right__message {
display: none !important; display: none !important;
} }
uni-toast .uni-toast{
uni-toast .uni-toast {
display: flex; display: flex;
align-items: center; align-items: center;
padding: 20rpx 15rpx; padding: 20rpx 15rpx;
width: auto; width: auto;
box-shadow: 0rpx 2rpx 12rpx 0rpx rgba(0,0,0,0.1); box-shadow: 0rpx 2rpx 12rpx 0rpx rgba(0, 0, 0, 0.1);
border: 1px solid #D3D4D3; border: 1px solid #D3D4D3;
background: white !important; background: white !important;
color: black !important; color: black !important;
...@@ -85,16 +87,19 @@ ...@@ -85,16 +87,19 @@
font-size: 30rpx; font-size: 30rpx;
color: #606266; color: #606266;
} }
uni-toast .uni-simple-toast__text{
uni-toast .uni-simple-toast__text {
background: white !important; background: white !important;
color: black !important; color: black !important;
} }
.uni-toast .uni-toast__content{
.uni-toast .uni-toast__content {
margin: 0; margin: 0;
margin-left: 10rpx; margin-left: 10rpx;
white-space: nowrap; white-space: nowrap;
} }
uni-toast .uni-toast__icon{
uni-toast .uni-toast__icon {
margin: 0; margin: 0;
} }
</style> </style>
\ No newline at end of file
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<view v-if="item.type" style="flex: 1;" @click="getCurrentNmae(item.prop)"> <view v-if="item.type" style="flex: 1;" @click="getCurrentNmae(item.prop)">
<van-uploader :after-read="afterRead" :deletable="false" accept="all"> <van-uploader :after-read="afterRead" :deletable="false" accept="all">
<u-button class="btn" type="primary" <u-button class="btn" type="primary"
style="height: auto;padding: 10rpx 20rpx;background-color: white;color: #059c5c;"> style="height: auto;padding: 10rpx 20rpx;">
<text class="btnText" style="font-size: 18rpx;"> <text class="btnText" style="font-size: 18rpx;">
{{$t('components.form.choose')}} {{$t('components.form.choose')}}
</text> </text>
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
data() { data() {
return { return {
// propShow:false, // propShow:false,
BackToACHA:"Back To ACHA", BackToACHA: "Back To ACHA",
labelStyle: { labelStyle: {
"font-family": "Arial", "font-family": "Arial",
"font-weight": 400, "font-weight": 400,
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
// 当前选中字段 // 当前选中字段
currentName: "", currentName: "",
OBS: null, OBS: null,
param:null param: null
}; };
}, },
methods: { methods: {
...@@ -133,8 +133,15 @@ ...@@ -133,8 +133,15 @@
// #endif // #endif
}, },
getFilepath(e) { getFilepath(e) {
let date = new Date().getTime() let date = new Date().toLocaleDateString().split('/')
return date + e if (date[1] < 10) {
date[1] = '0' + date[1]
}
if (date[2] < 10) {
date[2] = '0' + date[2]
}
date = date.join('')
return date + '/' + new Date().getTime() + Math.round(Math.random() * 1000) + e
}, },
afterRead(file) { afterRead(file) {
let fileObj = file.file let fileObj = file.file
...@@ -170,7 +177,6 @@ ...@@ -170,7 +177,6 @@
'content-type': file.file.type, 'content-type': file.file.type,
'content-length': file.file.size 'content-length': file.file.size
} }
let filepath = this.getFilepath(fileObj.name) let filepath = this.getFilepath(fileObj.name)
let t = this; let t = this;
obsJiami(fileObj).then(r => { obsJiami(fileObj).then(r => {
...@@ -274,13 +280,10 @@ ...@@ -274,13 +280,10 @@
} }
}, },
created() { created() {
if(process.uniEnv.name == 'bjst') if (process.uniEnv.name == 'bjst') {
{
this.labelStyle.color = 'white' this.labelStyle.color = 'white'
this.BackToACHA = 'Back To ACHA' this.BackToACHA = 'Back To ACHA'
} } else {
else
{
this.labelStyle.color = 'black' this.labelStyle.color = 'black'
this.BackToACHA = 'Back To TC' this.BackToACHA = 'Back To TC'
} }
...@@ -367,6 +370,7 @@ ...@@ -367,6 +370,7 @@
font-size: 24rpx; font-size: 24rpx;
color: white; color: white;
} }
::v-deep.u-button--primary { ::v-deep.u-button--primary {
background: var(--theme--); background: var(--theme--);
border-color: white; border-color: white;
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
"proxy" : { "proxy" : {
// 代理配置 // 代理配置
"/" : { "/" : {
"target" : "http://38.47.232.137:18001/", "target" : "http://156.240.106.35:18001/",
"changeOrigin" : true, // 是否跨域 "changeOrigin" : true, // 是否跨域
"secure" : true, // 是否支持https协议的代理 "secure" : true, // 是否支持https协议的代理
"pathRewrite" : { "pathRewrite" : {
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)')) 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' : '') + '" />') 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> </script>
<!-- <link rel="icon" href="<%= BASE_URL %>static/indiaLogo.png" /> -->
<link rel="icon" href="<%= BASE_URL %>static/indiaLogo.png" /> <link rel="icon" href="<%= BASE_URL %>static/indiaLogo.png" />
<!-- <link rel="icon" href="<%= BASE_URL %>static/logo1.ico" /> -->
<link rel="stylesheet" href="<%= BASE_URL %>static/index.<%= VUE_APP_INDEX_CSS_HASH %>.css" /> <link rel="stylesheet" href="<%= BASE_URL %>static/index.<%= VUE_APP_INDEX_CSS_HASH %>.css" />
</head> </head>
<body> <body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment