Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
html
/
danzhai-sign
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
b1971dd9
authored
May 06, 2019
by
hank
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
签到后地址修改
parent
cd6a6dc6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
5 deletions
+22
-5
src/views/Home.vue
+22
-5
No files found.
src/views/Home.vue
View file @
b1971dd9
...
@@ -24,8 +24,8 @@
...
@@ -24,8 +24,8 @@
</div>
</div>
</div>
</div>
<div
class=
"btn-box"
>
<div
class=
"btn-box"
>
<button
:class=
"btnClass"
@
click=
"save"
>
{{
isUse
==
1
?
'签到'
:
'已签到'
}}
</button>
<button
:class=
"btnClass"
@
click=
"save"
>
{{
isUse
==
1
?
'签到'
:
(
isPhoto
?
'我的摄影证'
:
'已签到'
)
}}
</button>
<button
class=
"log"
@
click=
"toricheng"
>
查看日程
</button>
<button
class=
"log"
@
click=
"toricheng"
>
摄影月赛
</button>
<!--
<router-link
to=
"http://mr-static.maxrocky.com/h5/wanda/dzgp"
tag=
"button"
class=
"log"
>
查看日程
</router-link>
-->
<!--
<router-link
to=
"http://mr-static.maxrocky.com/h5/wanda/dzgp"
tag=
"button"
class=
"log"
>
查看日程
</router-link>
-->
</div>
</div>
<img
src=
"../assets/bottom.png"
alt=
""
class=
"bottom"
>
<img
src=
"../assets/bottom.png"
alt=
""
class=
"bottom"
>
...
@@ -93,7 +93,11 @@ export default {
...
@@ -93,7 +93,11 @@ export default {
obj1
:
{},
obj1
:
{},
obj2
:
{},
obj2
:
{},
obj3
:
{},
obj3
:
{},
isUse
:
1
isUse
:
1
,
isPhoto
:
0
,
weburl
:
'/relay/contest/h5'
,
url
:
'http://web-comment.canskj.cn'
// 测试地址
// url: 'http://wanda-qj.maxrocky.com' // 正式地址
}
}
},
},
computed
:
{
computed
:
{
...
@@ -136,6 +140,7 @@ export default {
...
@@ -136,6 +140,7 @@ export default {
_this
.
phoneNumber
=
res
.
data
.
data
.
mobile
_this
.
phoneNumber
=
res
.
data
.
data
.
mobile
_this
.
address1
=
res
.
data
.
data
.
address
_this
.
address1
=
res
.
data
.
data
.
address
_this
.
danwei
=
res
.
data
.
data
.
company
_this
.
danwei
=
res
.
data
.
data
.
company
_this
.
isPhoto
=
res
.
data
.
data
.
is_passport
}
}
})
})
//分享
//分享
...
@@ -185,10 +190,17 @@ export default {
...
@@ -185,10 +190,17 @@ export default {
methods
:
{
methods
:
{
save
(){
save
(){
let
_this
=
this
;
let
_this
=
this
;
if
(
this
.
isUse
==
0
)
{
if
(
this
.
isUse
==
0
&&
!
this
.
isPhoto
)
{
// Toast('已签到');
// Toast('已签到');
return
;
return
;
}
}
if
(
this
.
isUse
==
0
&&
this
.
isPhoto
)
{
// Toast('已签到');
// 个人中心地址
var
userCenterHref
=
this
.
url
+
this
.
weburl
+
'/newuser/7'
;
window
.
location
.
replace
(
userCenterHref
);
return
;
}
if
(
this
.
$refs
.
input1
.
setVal
()
!=
false
){
if
(
this
.
$refs
.
input1
.
setVal
()
!=
false
){
this
.
name
=
this
.
$refs
.
input1
.
setVal
()
this
.
name
=
this
.
$refs
.
input1
.
setVal
()
}
else
{
}
else
{
...
@@ -275,7 +287,12 @@ export default {
...
@@ -275,7 +287,12 @@ export default {
},
},
toricheng
(){
toricheng
(){
window
.
location
.
replace
(
'http://mr-static.maxrocky.com/h5/wanda/dzgp/index.html'
);
// window.location.replace('http://mr-static.maxrocky.com/h5/wanda/dzgp/index.html');
// to 摄影月赛
//首页地址
var
indexHref
=
this
.
url
+
this
.
weburl
+
'/7'
;
window
.
location
.
replace
(
indexHref
);
},
},
//省市区 取消
//省市区 取消
handleNot
(){
handleNot
(){
...
...
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