Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
two-one-pro
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
li
two-one-pro
Commits
433b885b
Commit
433b885b
authored
May 22, 2024
by
li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
41d545eb
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
44 additions
and
33 deletions
+44
-33
.gitignore
+1
-0
App.vue
+26
-20
components/hlForm.vue
+15
-11
manifest.json
+1
-1
package-lock.json
+0
-0
static/index.html
+1
-1
No files found.
.gitignore
0 → 100644
View file @
433b885b
node_modules/
App.vue
View file @
433b885b
<
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
:
20
rpx
15
rpx
;
padding
:
20
rpx
15
rpx
;
width
:
auto
;
width
:
auto
;
box-shadow
:
0
rpx
2
rpx
12
rpx
0
rpx
rgba
(
0
,
0
,
0
,
0.1
);
box-shadow
:
0
rpx
2
rpx
12
rpx
0
rpx
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
:
30
rpx
;
font-size
:
30
rpx
;
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
:
10
rpx
;
margin-left
:
10
rpx
;
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
components/hlForm.vue
View file @
433b885b
...
@@ -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
:
24
rpx
;
font-size
:
24
rpx
;
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
;
...
...
manifest.json
View file @
433b885b
...
@@ -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"
:
{
...
...
package-lock.json
View file @
433b885b
This diff is collapsed.
Click to expand it.
static/index.html
View file @
433b885b
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment