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
d5eeefbf
Commit
d5eeefbf
authored
Jan 11, 2023
by
肖健
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
61664437
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
7 deletions
+30
-7
main.vue
pages/main.vue
+6
-1
index.vue
pagesA/pages/mrAct/index.vue
+24
-6
No files found.
pages/main.vue
View file @
d5eeefbf
...
...
@@ -259,7 +259,12 @@
}
},
onLoad
(
option
)
{
let
returnPage
=
option
.
returnPage
if
(
returnPage
)
{
uni
.
navigateTo
({
url
:
returnPage
})
}
//扫码二维码进入小程序
if
(
option
.
q
)
{
let
q
=
decodeURIComponent
(
option
.
q
)
...
...
pagesA/pages/mrAct/index.vue
View file @
d5eeefbf
...
...
@@ -33,11 +33,11 @@
<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"
@
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--input
v-model=
"actInfo.userName"
placeholder=
"请输入"
:disabled=
"disabledSubmit"
disabledColor=
"color:rgba(255,225,255,.3)"
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"
@
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--input
v-model=
"actInfo.telNumber"
placeholder=
"请输入"
:disabled=
"disabledSubmit"
disabledColor=
"color:rgba(255,225,255,.3)"
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"
@
click=
"checkLogin"
>
...
...
@@ -47,11 +47,11 @@
</u-form-item>
<u-line
color=
"rgba(255,225,255,.1)"
></u-line>
<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--input
v-model=
"actInfo.detailInfo"
placeholder=
"请输入"
:disabled=
"disabledSubmit"
disabledColor=
"color:rgba(255,225,255,.3)"
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"
@
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>
<u--input
v-model=
"actInfo.smsCode"
placeholder=
"请输入"
:disabled=
"disabledSubmit"
disabledColor=
"color:rgba(255,225,255,.3)"
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>
</view>
...
...
@@ -293,7 +293,8 @@ export default {
trigger
:
[
'blur'
,
'change'
]
}
],
}
},
appName
:
'京东挪车牌领取'
,
}
},
methods
:
{
...
...
@@ -449,7 +450,7 @@ export default {
}
else
{
that
.
disabledSubmit
=
false
}
that
.
alreadyMsg
=
res
.
alreadyMsg
that
.
alreadyMsg
=
res
.
alreadyMsg
.
replace
(
/
\n
/g
,
'
\
n'
)
})
},
//活动检查手机信息
...
...
@@ -534,7 +535,24 @@ export default {
onReady
()
{
this
.
$refs
.
form1
.
setRules
(
this
.
rules
)
},
onShareAppMessage
(
res
)
{
if
(
res
.
from
===
'menu'
)
{
return
{
title
:
this
.
appName
,
path
:
'/pages/main?returnPage=/pagesA/pages/mrAct/index'
};
}
},
onShareTimeline
(
res
){
return
{
title
:
this
.
appName
,
path
:
'/pages/main?returnPage=/pagesA/pages/mrAct/index'
};
},
onLoad
(
option
)
{
uni
.
setNavigationBarTitle
({
title
:
this
.
appName
,
});
let
that
=
this
let
token
=
uni
.
getStorageSync
(
'userToken'
)
if
(
token
)
{
...
...
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