Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈玉桐
marketing
Commits
347053b7
Commit
347053b7
authored
Nov 25, 2019
by
陈玉桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
3631f6b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
2 deletions
+27
-2
tool.vue
src/views/tool.vue
+27
-2
No files found.
src/views/tool.vue
View file @
347053b7
...
...
@@ -15,7 +15,7 @@
<div
id=
"posterBom"
>
<div
id=
"posterTime"
>
<div
:style=
"
{background: backgroundColor}">
<input
type=
"tel"
@
blur=
"inputBlur"
v-model=
"currentDay"
placeholder=
"请输入"
maxlength=
"2"
>
<input
type=
"tel"
id=
"currentDayInput"
@
blur=
"inputBlur"
v-model=
"currentDay"
placeholder=
"请输入"
maxlength=
"2"
>
<span>
/
{{
days
}}
</span>
</div>
<p
:style=
"
{color: backgroundColor}">“让护眼,像刷牙一样成为习惯”
</p>
...
...
@@ -50,7 +50,7 @@
<div
id=
"posterBomWrap"
:style=
"
{background: backgroundColor}">
<div
id=
"posterTime"
>
<div>
<input
type=
"tel"
@
blur=
"inputBlur"
v-model=
"currentDay"
placeholder=
"请输入"
maxlength=
"2"
>
<input
type=
"tel"
id=
"currentDayInput"
@
blur=
"inputBlur"
v-model=
"currentDay"
placeholder=
"请输入"
maxlength=
"2"
>
<span>
/
{{
days
}}
</span>
</div>
<p>
“让护眼,像刷牙一样成为习惯”
</p>
...
...
@@ -229,6 +229,29 @@ export default {
jsApiList
:
[
'chooseImage'
,
'uploadImage'
]
// 必填,需要使用的JS接口列表
})
wx
.
ready
(
function
(){
var
deviceW
=
document
.
documentElement
.
clientWidth
;
var
deviceH
=
document
.
documentElement
.
clientHeight
;
// alert(deviceW+','+deviceH)
let
pic
=
document
.
getElementById
(
"posterOutAddpicBox"
)
if
(
deviceW
==
375
&&
deviceH
==
603
){
//iPhone 678
// pic.style.top = '80px'
pic
.
style
.
width
=
'200px'
pic
.
style
.
height
=
'200px'
}
else
if
(
deviceW
==
375
&&
deviceH
==
724
){
//iPhoneX
// pic.style.top = '80px'
pic
.
style
.
width
=
'225px'
pic
.
style
.
height
=
'225px'
}
// else if(deviceW == 414 && deviceH == 808){//iPhoneXR iPhoneXS Max
// pic.style.width = '266px'
// pic.style.height = '266px'
// }
else
if
(
deviceW
>=
393
&&
deviceH
>=
667
){
pic
.
style
.
width
=
'266px'
pic
.
style
.
height
=
'266px'
}
})
wx
.
error
(
function
(
res
){})
})
...
...
@@ -255,6 +278,8 @@ export default {
},
methods
:
{
create
()
{
// 使input失去焦点
document
.
getElementById
(
"currentDayInput"
).
blur
()
if
(
this
.
enrollStatus
==
1
){
//已报名
if
(
this
.
status
==
2
){
this
.
tipDialogText
=
'活动已结束'
...
...
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