Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
J
jd-vx-app
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
Administrator
jd-vx-app
Commits
61664437
Commit
61664437
authored
Jan 11, 2023
by
肖健
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
判断登录
parent
17ef1f66
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
20 deletions
+29
-20
index.vue
pagesA/pages/mrAct/index.vue
+29
-20
No files found.
pagesA/pages/mrAct/index.vue
View file @
61664437
...
...
@@ -32,25 +32,25 @@
</view>
<view>
<u--form
labelPosition=
"left"
errorType=
"toast"
:labelStyle=
"
{'fontSize': '30rpx', color : '#fff'}" labelWidth="200rpx" :model="actInfo" :rules="rules" ref="form1">
<u-form-item
label=
"收货人:"
prop=
"userName"
>
<u-form-item
label=
"收货人:"
prop=
"userName"
@
click=
"checkLogin"
>
<u--input
v-model=
"actInfo.userName"
placeholder=
"请输入"
placeholderStyle=
"color:rgba(255,225,255,.6)"
fontSize=
"28rpx"
color=
"#fff"
maxlength=
"50"
border=
"none"
inputAlign=
"right"
></u--input>
</u-form-item>
<u-line
color=
"rgba(255,225,255,.1)"
></u-line>
<u-form-item
label=
"收货电话:"
prop=
"telNumber"
>
<u-form-item
label=
"收货电话:"
prop=
"telNumber"
@
click=
"checkLogin"
>
<u--input
v-model=
"actInfo.telNumber"
placeholder=
"请输入"
placeholderStyle=
"color:rgba(255,225,255,.6)"
fontSize=
"28rpx"
color=
"#fff"
maxlength=
"20"
border=
"none"
inputAlign=
"right"
></u--input>
</u-form-item>
<u-line
color=
"rgba(255,225,255,.1)"
></u-line>
<u-form-item
label=
"收货地址:"
prop=
"address"
>
<u-form-item
label=
"收货地址:"
prop=
"address"
@
click=
"checkLogin"
>
<u--input
v-model=
"actInfo.address"
fontSize=
"28rpx"
color=
"#fff"
placeholderStyle=
"color:rgba(255,225,255,.6)"
@
tap=
"chooseAddress"
placeholder=
"省/市/区"
disabled
disabledColor=
"transparent"
border=
"none"
inputAlign=
"right"
></u--input>
<u-icon
slot=
"right"
name=
"arrow-right"
color=
"#fff"
@
tap=
"chooseAddress"
></u-icon>
</u-form-item>
<u-line
color=
"rgba(255,225,255,.1)"
></u-line>
<u-form-item
label=
"详细地址:"
prop=
"detailInfo"
>
<u-form-item
label=
"详细地址:"
prop=
"detailInfo"
@
click=
"checkLogin"
>
<u--input
v-model=
"actInfo.detailInfo"
placeholder=
"请输入"
placeholderStyle=
"color:rgba(255,225,255,.6)"
fontSize=
"28rpx"
color=
"#fff"
maxlength=
"100"
border=
"none"
inputAlign=
"right"
></u--input>
</u-form-item>
<u-line
color=
"rgba(255,225,255,.1)"
></u-line>
<u-form-item
label=
"验证码:"
prop=
"smsCode"
>
<u-form-item
label=
"验证码:"
prop=
"smsCode"
@
click=
"checkLogin"
>
<u--input
v-model=
"actInfo.smsCode"
placeholder=
"请输入"
placeholderStyle=
"color:rgba(255,225,255,.6)"
type=
"number"
fontSize=
"28rpx"
color=
"#fff"
maxlength=
"6"
border=
"none"
inputAlign=
"right"
></u--input>
<view
slot=
"right"
style=
"margin-left: 20rpx;border-left: 2rpx solid rgba(255,225,255,.1);padding-left:20rpx;"
>
<text
style=
"font-size:28rpx;color:#fff"
@
tap=
"getCode"
>
{{
tips
}}
</text>
...
...
@@ -302,11 +302,12 @@ export default {
},
goToIndex
()
{
this
.
receiveSuccessShow
=
false
uni
.
navigateTo
({
uni
.
reLaunch
({
url
:
'/pages/main'
})
},
chooseAddress
()
{
this
.
checkLogin
()
if
(
this
.
disabledSubmit
)
{
return
}
...
...
@@ -322,11 +323,30 @@ export default {
codeChange
(
text
)
{
this
.
tips
=
text
;
},
getCode
()
{
checkLogin
()
{
let
token
=
uni
.
getStorageSync
(
'userToken'
)
if
(
!
token
)
{
uni
.
setStorageSync
(
'routerLogin'
,
'/pagesA/pages/mrAct/index'
)
//跳转到登录页
let
returnPage
=
'/pages/main'
;
let
pageType
=
"reLaunch"
uni
.
navigateTo
({
url
:
"/pages/login/index/index?returnPage="
+
returnPage
+
'&pageType='
+
pageType
})
return
}
if
(
this
.
disabledSubmit
)
{
this
.
receivedFailShow
=
true
return
}
},
getCode
()
{
let
that
=
this
that
.
checkLogin
()
if
(
that
.
disabledSubmit
)
{
return
}
if
(
!
that
.
actInfo
.
telNumber
)
{
uni
.
$u
.
toast
(
'请填写收货电话'
)
return
...
...
@@ -380,6 +400,7 @@ export default {
},
// 获取爱车列表
getCarList
(){
this
.
checkLogin
()
if
(
this
.
disabledSubmit
)
{
return
}
...
...
@@ -434,7 +455,6 @@ export default {
//活动检查手机信息
async
checkCaptchaInfo
()
{
let
that
=
this
let
token
=
uni
.
getStorageSync
(
'userToken'
)
await
that
.
$http
.
request
({
url
:
'/app/move/activity/c/m'
,
method
:
'post'
,
...
...
@@ -465,18 +485,7 @@ export default {
//活动检查信息
submitAct
()
{
let
that
=
this
let
token
=
uni
.
getStorageSync
(
'userToken'
)
if
(
!
token
)
{
uni
.
setStorageSync
(
'routerLogin'
,
'/pagesA/pages/mrAct/index'
)
//跳转到登录页
let
returnPage
=
'/pages/main'
;
let
pageType
=
"reLaunch"
uni
.
navigateTo
({
url
:
"/pages/login/index/index?returnPage="
+
returnPage
+
'&pageType='
+
pageType
})
return
}
that
.
checkLogin
()
if
(
that
.
disabledSubmit
)
{
this
.
receivedFailShow
=
true
...
...
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