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
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
70 additions
and
59 deletions
+70
-59
.gitignore
+1
-0
App.vue
+52
-46
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
>
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
)
{
event
.
preventDefault
();
document
.
addEventListener
(
'gesturestart'
,
function
(
event
)
{
event
.
preventDefault
();
});
// 禁止移动端(IOS)双击页面变大
let
touchTime
=
0
;
document
.
addEventListener
(
'touchstart'
,
function
(
event
)
{
if
(
event
.
touches
.
length
>
1
)
{
event
.
preventDefault
();
}
document
.
addEventListener
(
'touchstart'
,
function
(
event
)
{
if
(
event
.
touches
.
length
>
1
)
{
event
.
preventDefault
();
}
});
document
.
addEventListener
(
'touchend'
,
function
(
event
)
{
//记录当前点击的时间与下一次时间的间隔
const
nowTime
=
new
Date
();
if
(
nowTime
.
getTime
()
-
touchTime
<=
300
)
{
// event.preventDefault();
}
touchTime
=
nowTime
.
getTime
();
},
false
'touchend'
,
function
(
event
)
{
//记录当前点击的时间与下一次时间的间隔
const
nowTime
=
new
Date
();
if
(
nowTime
.
getTime
()
-
touchTime
<=
300
)
{
// event.preventDefault();
}
touchTime
=
nowTime
.
getTime
();
},
false
);
let
userAgentInfo
=
navigator
.
userAgent
;
let
Agents
=
[
'Android'
,
'iPhone'
,
'SymbianOS'
,
'Windows Phone'
,
'iPad'
,
'iPod'
];
let
getArr
=
Agents
.
filter
(
i
=>
userAgentInfo
.
includes
(
i
));
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
(
!
isMobile
&&
window
.
frames
.
length
==
parent
.
frames
.
length
)
{
//pc携带参数跳转
let
getRouter
=
window
.
location
.
href
.
split
(
"#"
);
if
(
getRouter
.
length
>
1
)
{
window
.
location
.
href
=
window
.
location
.
origin
+
"/pc.html#"
+
getRouter
.
pop
();
//编码
return
;
}
window
.
location
.
href
=
window
.
location
.
origin
+
"/pc.html"
;
}
if
(
!
(
window
&&
window
.
plus
)
&&
((
location
.
host
.
includes
(
"127.0.0.1"
)
||
location
.
host
.
includes
(
"localhost"
))))
{
if
(
!
isMobile
&&
window
.
frames
.
length
==
parent
.
frames
.
length
)
{
//pc携带参数跳转
let
getRouter
=
window
.
location
.
href
.
split
(
"#"
);
if
(
getRouter
.
length
>
1
)
{
window
.
location
.
href
=
window
.
location
.
origin
+
"/pc.html#"
+
getRouter
.
pop
();
//编码
return
;
}
window
.
location
.
href
=
window
.
location
.
origin
+
"/pc.html"
;
}
}
},
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
:
20
rpx
15
rpx
;
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
;
background
:
white
!important
;
color
:
black
!important
;
...
...
@@ -85,16 +87,19 @@
font-size
:
30
rpx
;
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
:
10
rpx
;
white-space
:
nowrap
;
}
uni-toast
.uni-toast__icon
{
uni-toast
.uni-toast__icon
{
margin
:
0
;
}
</
style
>
</
style
>
\ No newline at end of file
components/hlForm.vue
View file @
433b885b
...
...
@@ -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
:
24
rpx
;
color
:
white
;
}
::v-deep
.u-button--primary
{
background
:
var
(
--theme--
);
border-color
:
white
;
...
...
manifest.json
View file @
433b885b
...
...
@@ -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"
:
{
...
...
package-lock.json
View file @
433b885b
This diff is collapsed.
Click to expand it.
static/index.html
View file @
433b885b
...
...
@@ -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>
...
...
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