Commit 433b885b by li

no message

parent 41d545eb
node_modules/
<script>
export default {
onLaunch: function() {
if(process.uniEnv.name == 'bjst')
{
document.getElementsByTagName('body')[0].style.background = "linear-gradient(0deg, #187B47, #13A13F, #15A147, #12794C)"
if (process.uniEnv.name == 'bjst') {
document.getElementsByTagName('body')[0].style.background =
"linear-gradient(0deg, #187B47, #13A13F, #15A147, #12794C)"
}
// 禁止 ios 缩放屏幕
document.addEventListener('gesturestart', function (event) {
document.addEventListener('gesturestart', function(event) {
event.preventDefault();
});
// 禁止移动端(IOS)双击页面变大
let touchTime = 0;
document.addEventListener('touchstart', function (event) {
document.addEventListener('touchstart', function(event) {
if (event.touches.length > 1) {
event.preventDefault();
}
});
document.addEventListener(
'touchend',
function (event) {
function(event) {
//记录当前点击的时间与下一次时间的间隔
const nowTime = new Date();
if (nowTime.getTime() - touchTime <= 300) {
......@@ -35,7 +35,8 @@
let isMobile = getArr.length ? true : false;
// 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) {
//pc携带参数跳转
......@@ -48,35 +49,36 @@
}
}
},
onShow: function() {
},
onHide: function() {
}
onShow: function() {},
onHide: function() {}
}
</script>
<style lang="scss">
:root{
:root {
// --theme--:#00ba29;
// --borderTheme--:rgba(5, 156, 92, 0.2);
--theme--:#f18403;
--borderTheme--:#A3A3A3;
--theme--: #f18403;
--borderTheme--: #A3A3A3;
}
// body{
// background: linear-gradient(0deg, #187B47, #13A13F, #15A147, #12794C);
// }
/*每个页面公共css */
@import 'vant/lib/index.css';
@import "uview-ui/index.scss";
.u-form-item__body__right__message{
.u-form-item__body__right__message {
display: none !important;
}
uni-toast .uni-toast{
uni-toast .uni-toast {
display: flex;
align-items: center;
padding: 20rpx 15rpx;
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;
background: white !important;
color: black !important;
......@@ -85,16 +87,19 @@
font-size: 30rpx;
color: #606266;
}
uni-toast .uni-simple-toast__text{
uni-toast .uni-simple-toast__text {
background: white !important;
color: black !important;
}
.uni-toast .uni-toast__content{
.uni-toast .uni-toast__content {
margin: 0;
margin-left: 10rpx;
white-space: nowrap;
}
uni-toast .uni-toast__icon{
uni-toast .uni-toast__icon {
margin: 0;
}
</style>
\ No newline at end of file
......@@ -6,7 +6,7 @@
<view v-if="item.type" style="flex: 1;" @click="getCurrentNmae(item.prop)">
<van-uploader :after-read="afterRead" :deletable="false" accept="all">
<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;">
{{$t('components.form.choose')}}
</text>
......@@ -89,7 +89,7 @@
data() {
return {
// propShow:false,
BackToACHA:"Back To ACHA",
BackToACHA: "Back To ACHA",
labelStyle: {
"font-family": "Arial",
"font-weight": 400,
......@@ -109,7 +109,7 @@
// 当前选中字段
currentName: "",
OBS: null,
param:null
param: null
};
},
methods: {
......@@ -133,8 +133,15 @@
// #endif
},
getFilepath(e) {
let date = new Date().getTime()
return date + e
let date = new Date().toLocaleDateString().split('/')
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) {
let fileObj = file.file
......@@ -170,7 +177,6 @@
'content-type': file.file.type,
'content-length': file.file.size
}
let filepath = this.getFilepath(fileObj.name)
let t = this;
obsJiami(fileObj).then(r => {
......@@ -274,13 +280,10 @@
}
},
created() {
if(process.uniEnv.name == 'bjst')
{
if (process.uniEnv.name == 'bjst') {
this.labelStyle.color = 'white'
this.BackToACHA = 'Back To ACHA'
}
else
{
} else {
this.labelStyle.color = 'black'
this.BackToACHA = 'Back To TC'
}
......@@ -367,6 +370,7 @@
font-size: 24rpx;
color: white;
}
::v-deep.u-button--primary {
background: var(--theme--);
border-color: white;
......
......@@ -73,7 +73,7 @@
"proxy" : {
// 代理配置
"/" : {
"target" : "http://38.47.232.137:18001/",
"target" : "http://156.240.106.35:18001/",
"changeOrigin" : true, // 是否跨域
"secure" : true, // 是否支持https协议的代理
"pathRewrite" : {
......
......@@ -15,8 +15,8 @@
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="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" />
</head>
<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