Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
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
hujun
tl_estate
Commits
740b465b
Commit
740b465b
authored
Jun 19, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微信邀请注册
parent
8eb5589a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
91 additions
and
31 deletions
+91
-31
inviteRegister.vue
...c/appnew/src/components/inviteRegister/inviteRegister.vue
+87
-30
entrance.vue
public/appnew/src/components/publicEg/entrance.vue
+4
-1
No files found.
public/appnew/src/components/inviteRegister/inviteRegister.vue
View file @
740b465b
<
template
>
<div>
<div
class=
"register-con"
>
<img
:src=
"bgImage"
class=
"zhuce-img"
>
<img
:src=
"bgImage"
class=
"zhuce-img
pointer-click-item
"
>
<div
class=
"register-body"
>
<div
class=
"div-phone li-item"
>
<span
class=
"register-span"
>
手机号码
</span>
<input
type=
"text"
id=
"phone"
class=
"infos"
placeholder=
"请输入号码"
>
<input
type=
"text"
id=
"phone"
class=
"infos"
placeholder=
"请输入号码"
v-model
.
trim=
"phone"
>
</div>
<div
class=
"div-ranks li-item"
>
<input
type=
"number"
id=
"ranks"
class=
"infos1"
placeholder=
"请输入验证码"
>
<a
class=
"send1"
>
获取验证码
</a>
<input
type=
"number"
id=
"ranks"
class=
"infos1"
placeholder=
"请输入验证码"
v-model
.
trim=
"code"
>
<a
href=
"javascript:;"
class=
"send1"
@
click=
"getCode"
v-show=
"!isGetCode"
>
获取验证码
</a>
<a
href=
"javascript:;"
class=
"send1"
v-show=
"isGetCode"
>
{{
countSecond
}}
</a>
</div>
<div
class=
"register-div"
>
<img
class=
"zc_nor_button"
:src=
"yueduImage"
>
<img
class=
"zc_nor_button"
:src=
"yueduImage"
v-show=
"!isGetImg"
@
click=
"isGetImg=!isGetImg"
>
<img
class=
"zc_nor_button"
:src=
"noyueduImage"
v-show=
"isGetImg"
@
click=
"isGetImg=!isGetImg"
>
<router-link
to=
"/agreement"
class=
'a-link'
>
我已阅读
<span>
...
...
@@ -26,7 +30,11 @@
</div>
<div
class=
"div-conform"
>
<a
class=
"conform"
>
提交
</a>
<a
href=
"javascript:;"
@
click=
"submitOk"
v-show=
"!isSaving"
class=
"conform flex-center"
>
提交
</a>
<a
href=
"javascript:;"
v-show=
"isSaving"
class=
"conform flex-center"
>
提交中
</a>
<!--
<a
class=
"conform"
>
提交
</a>
-->
</div>
<div
class=
"clear"
></div>
<div
class=
"qr-code-area"
>
...
...
@@ -52,46 +60,93 @@
yueduImage
,
noyueduImage
,
qrCodeImg
,
isGetCode
:
false
,
countSecond
:
60
,
phone
:
''
,
code
:
''
,
isSaving
:
false
,
isGetImg
:
false
,
}),
created
()
{
let
_this
=
this
;
_this
.
common
.
duringRequest
({
'urlStr'
:
'/api/userVerify'
,
startAction
()
{
_this
.
isSaving
=
true
;
},
endAction
()
{
_this
.
isSaving
=
false
;
}
});
},
mounted
()
{
let
_this
=
this
;
},
methods
:
{
getCode
()
{
let
_this
=
this
;
_this
.
isGetCode
=
true
;
_this
.
axios
({
method
:
'post'
,
url
:
'/api/sendCode'
,
responseType
:
'json'
,
data
:
{
'device_id'
:
_this
.
$route
.
query
.
device_id
,
'phone'
:
_this
.
phone
,
}
})
.
then
(
function
(
response
)
{
if
(
response
.
data
.
code
==
200
&&
response
.
data
.
data
)
{
layer
.
tipsX
(
'验证码已发送,请注意查收'
);
}
else
{
layer
.
tipsX
(
response
.
data
.
msg
);
}
})
.
catch
(
function
(
error
)
{
layer
.
tipsX
(
error
);
});
//点击发送验证码的同时已经开始计时
let
_timer
=
setInterval
(
function
(){
if
(
_this
.
countSecond
<=
1
){
clearInterval
(
_timer
);
_this
.
isGetCode
=
false
;
}
else
{
_this
.
countSecond
-=
1
;
}
},
1000
);
},
submitOk
()
{
let
_this
=
this
;
if
(
_this
.
common
.
isMobile
(
_this
.
phone
))
{
if
(
_this
.
common
.
isMobile
(
_this
.
phone
)){
if
(
_this
.
isGetImg
){
layer
.
tipsX
(
'你还未阅读《同联商业服务协议》'
);
};
_this
.
axios
({
method
:
'post'
,
url
:
'/admin/member/checkInvite'
,
responseType
:
'json'
,
data
:
{
'userid'
:
_this
.
$route
.
query
.
userid
,
'phone'
:
_this
.
phone
,
'code'
:
_this
.
code
}
})
.
then
(
function
(
response
)
{
if
(
response
.
data
.
code
===
200
&&
response
.
data
.
data
)
{
layer
.
tipsX
(
'注册成功'
);
}
else
{
layer
.
tipsX
(
response
.
data
.
message
);
}
})
.
catch
(
function
(
error
)
{
layer
.
tipsX
(
error
);
});
}
else
{
method
:
'post'
,
url
:
'/api/userVerify'
,
responseType
:
'json'
,
data
:
{
'phone'
:
_this
.
phone
,
'device_id'
:
_this
.
$route
.
query
.
device_id
,
'code'
:
_this
.
code
,
'wx_union_id'
:
_this
.
$route
.
query
.
wx_union_id
,
'referrer_id'
:
_this
.
$route
.
query
.
referrer_id
,
'referrer_source'
:
_this
.
$route
.
query
.
referrer_source
,
}
})
.
then
(
function
(
response
)
{
if
(
response
.
data
.
code
==
200
&&
response
.
data
.
data
)
{
layer
.
tipsX
(
'注册成功'
);
}
else
{
layer
.
tipsX
(
response
.
data
.
msg
);
}
})
.
catch
(
function
(
error
)
{
layer
.
tipsX
(
error
);
});
}
else
{
layer
.
tipsX
(
'手机号码格式不正确'
);
}
}
...
...
@@ -227,6 +282,8 @@ input::-webkit-input-placeholder{
}
.div-conform
a
{
color
:
#FFFFFF
;
border-radius
:
0.35rem
;
}
#btn
{
background
:
none
;
...
...
public/appnew/src/components/publicEg/entrance.vue
View file @
740b465b
...
...
@@ -47,7 +47,10 @@
'path'
:
'/inviteRegister'
,
'nameCustom'
:
'邀请注册'
,
'query'
:
{
// 'id':'160',
'device_id'
:
'0'
,
'wx_union_id'
:
'0'
,
'referrer_id'
:
'160'
,
'referrer_source'
:
'10'
,
}
},
{
...
...
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