Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
html
/
h5wandahuijia
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2eb55fb0
authored
Jun 05, 2019
by
mamingqun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改文案
parent
b72c0328
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
8 deletions
+25
-8
dist.zip
+0
-0
src/pages/index/ImgUp.vue
+25
-8
No files found.
dist.zip
0 → 100644
View file @
2eb55fb0
File added
src/pages/index/ImgUp.vue
View file @
2eb55fb0
...
@@ -9,8 +9,8 @@
...
@@ -9,8 +9,8 @@
<div
class=
"upLoad"
>
<div
class=
"upLoad"
>
<div
class=
"list-default-img"
@
click
.
stop=
"addPicTemp"
v-show=
"isPhoto"
>
<div
class=
"list-default-img"
@
click
.
stop=
"addPicTemp"
v-show=
"isPhoto"
>
<img
src=
"./assets/images/icon_photo.png"
>
<img
src=
"./assets/images/icon_photo.png"
>
<
p>
上传一张美美的照片
</p
>
<
!--
<p>
上传一张美美的照片
</p>
--
>
<p>
优质的照片让夺冠更为轻松
</p>
<p>
笑脸面部特写才能参与评奖哦
</p>
<input
<input
type=
"file"
type=
"file"
id=
"text"
id=
"text"
...
@@ -115,7 +115,7 @@
...
@@ -115,7 +115,7 @@
<group>
<group>
<x-textarea
<x-textarea
v-model=
"memo"
v-model=
"memo"
placeholder=
"请
务必注明被拍摄者姓名以及所在地
..."
placeholder=
"请
给您的作品添加描述
..."
:show-counter=
"true"
:show-counter=
"true"
@
on-blur=
"goBottom"
@
on-blur=
"goBottom"
:max=
"30"
:max=
"30"
...
@@ -254,9 +254,24 @@ export default {
...
@@ -254,9 +254,24 @@ export default {
this
.
activeIndex
=
num
;
this
.
activeIndex
=
num
;
},
},
addPicTemp
()
{
addPicTemp
()
{
this
.
photoTipOn
=
true
if
(
localStorage
.
getItem
(
"index"
))
{
var
index
=
localStorage
.
getItem
(
"index"
)
if
(
index
>=
3
)
{
this
.
addPic
()
}
else
{
this
.
photoTipOn
=
true
index
++
localStorage
.
setItem
(
"index"
,
index
)
}
}
else
{
localStorage
.
setItem
(
"index"
,
1
)
this
.
photoTipOn
=
true
}
},
},
addPic
()
{
addPic
()
{
this
.
photoTipOn
=
false
let
vm
=
this
;
let
vm
=
this
;
// document.getElementById('text').click();
// document.getElementById('text').click();
wx
.
ready
(()
=>
{
wx
.
ready
(()
=>
{
...
@@ -827,16 +842,18 @@ body {
...
@@ -827,16 +842,18 @@ body {
}
}
.photo-tip-wrap
{
.photo-tip-wrap
{
position
:
fixed
;
position
:
absolute
;
left
:
0
;
left
:
0
;
right
:
0
;
right
:
0
;
top
:
0
;
top
:
0
;
bottom
:
0
;
bottom
:
-1000px
;
background
:
rgba
(
0
,
0
,
0
,
0.3
);
background
:
rgba
(
0
,
0
,
0
,
0.5
);
//
height
:
1000px
;
.photo-tip
{
.photo-tip
{
position
:
absolute
;
position
:
absolute
;
top
:
30%
;
top
:
650px
;
left
:
50%
;
left
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
transform
:
translate
(
-50%
,
-50%
);
//
border
:
1px
solid
black
;
//
border
:
1px
solid
black
;
...
...
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