Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
Project
Project
Details
Activity
Releases
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
viitto
mallapp
Commits
f8d09973
Commit
f8d09973
authored
Dec 16, 2024
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
授权获取手机号
parent
fa3a1c80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
73 additions
and
2 deletions
+73
-2
enterIndex.vue
pages/kotra/BrandEnterSetIn/enterIndex.vue
+73
-2
No files found.
pages/kotra/BrandEnterSetIn/enterIndex.vue
View file @
f8d09973
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
<text
class=
"tip"
v-if=
"item.tip"
>
{{
item
.
tip
}}
</text>
<text
class=
"tip"
v-if=
"item.tip"
>
{{
item
.
tip
}}
</text>
</view>
</view>
<view
class=
"con1"
v-if=
"item.type == 1"
>
<view
class=
"con1"
v-if=
"item.type == 1"
>
<input
<input
v-if=
"item.field!='Mobile'"
class=
"input"
class=
"input"
type=
"text"
type=
"text"
v-model=
"dataOne[item.field]"
v-model=
"dataOne[item.field]"
...
@@ -63,6 +63,28 @@
...
@@ -63,6 +63,28 @@
placeholder-style=
"color: #CECECEFF"
placeholder-style=
"color: #CECECEFF"
@
focus=
"inputFcous(item)"
@
focus=
"inputFcous(item)"
/>
/>
<view
v-else
style=
"display: flex;"
>
<input
class=
"input"
style=
"flex: 1;margin-right: 10px;"
type=
"text"
v-model=
"dataOne[item.field]"
:placeholder=
"item.text"
:disabled=
"nowStatus == 3 || nowStatus == 5 || isMobile ? true : false"
placeholder-style=
"color: #CECECEFF"
@
focus=
"inputFcous(item)"
/>
<view
v-show=
"isMobile"
>
<button
size=
"mini"
:class=
"[loadingMobile?'is-hoverPhone':'PhoneNumber']"
:loading=
"loadingMobile"
open-type=
"getPhoneNumber"
@
getphonenumber=
"getPhoneNumber"
>
获取手机号
</button>
</view>
</view>
<view
<view
v-if=
"nowStatus != 3 && nowStatus != 5"
v-if=
"nowStatus != 3 && nowStatus != 5"
style=
"
style=
"
...
@@ -85,6 +107,7 @@
...
@@ -85,6 +107,7 @@
mode=
"widthFix"
mode=
"widthFix"
></image>
></image>
</view>
</view>
</view>
</view>
<view
class=
"con2"
v-if=
"item.type == 2"
>
<view
class=
"con2"
v-if=
"item.type == 2"
>
<!-- 未上传成功 -->
<!-- 未上传成功 -->
...
@@ -343,10 +366,48 @@ export default {
...
@@ -343,10 +366,48 @@ export default {
{
name
:
'企业'
,
image
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638696228219050268.png'
,
id
:
3
},
{
name
:
'企业'
,
image
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638696228219050268.png'
,
id
:
3
},
{
name
:
'楼宇'
,
image
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638696228045398333.png'
,
id
:
4
},
{
name
:
'楼宇'
,
image
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638696228045398333.png'
,
id
:
4
},
],
],
isEnterType
:
false
isEnterType
:
false
,
isMobile
:
true
,
loadingMobile
:
false
,
};
};
},
},
methods
:
{
methods
:
{
getPhoneNumber
(
e
)
{
this
.
loadingMobile
=
true
if
(
e
.
detail
.
errMsg
==
"getPhoneNumber:ok"
){
let
parms
=
{
url
:
"/api/AppletLogin/GetUserPhoneNumber"
,
data
:
{
Code
:
e
.
detail
.
code
}
};
this
.
request2
(
parms
,
(
res
)
=>
{
this
.
loadingMobile
=
false
if
(
res
.
resultCode
==
1
)
{
this
.
dataOne
.
Mobile
=
res
.
data
.
phoneNumber
if
(
!
this
.
dataOne
.
Mobile
||
this
.
dataOne
.
Mobile
==
""
){
this
.
isMobile
=
false
wx
.
showToast
({
icon
:
'none'
,
title
:
"请手动输入手机号"
,
duration
:
1000
,
});
}
}
else
{
this
.
loadingMobile
=
false
this
.
isMobile
=
false
wx
.
showToast
({
icon
:
'none'
,
title
:
"请手动输入手机号"
,
duration
:
1000
,
});
}
});
}
else
{
this
.
isMobile
=
false
this
.
loadingMobile
=
false
}
},
// 输入框获取焦点
// 输入框获取焦点
inputFcous
(
e
)
{
inputFcous
(
e
)
{
e
.
delIcon
=
true
;
e
.
delIcon
=
true
;
...
@@ -1080,4 +1141,14 @@ export default {
...
@@ -1080,4 +1141,14 @@ export default {
.company-auth
.item.active
image
{
.company-auth
.item.active
image
{
opacity
:
unset
;
opacity
:
unset
;
}
}
.PhoneNumber
{
color
:
#ffffff
;
background-color
:
#017edf
;
border-color
:
#017edf
}
.is-hoverPhone
{
color
:
black
;
background-color
:
#C6E6FF
;
border-color
:
#C6E6FF
;
}
</
style
>
</
style
>
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