Toggle navigation
This project
Loading...
Sign in
xt
/
xcx-book
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Download as
Email Patches
Plain Diff
Browse Files
Commit
1c60af0237da9cfa99d8b15ff691c5a7e49e8e82
Authored by
liuxuqinfhp1220
2019-07-25 16:32:59 +0800
1 parent
92d5b6c2
no message
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
5 deletions
components/userinfo/getphone.js
pages/reserve/submit.json
pages/reserve/submit.wxml
project.config.json
utils/api.url.js
components/userinfo/getphone.js
View file @
1c60af0
import
App
from
'../../utils/api'
;
Component
({
methods
:{
getphone
(
e
){
console
.
log
(
e
)
let
parmdata
=
{
session_key
:
wx
.
getStorageSync
(
'customer_session_key'
),
encryptedData
:
e
.
detail
.
encryptedData
,
iv
:
e
.
detail
.
iv
}
App
.
Customer
.
GetCustomerTel
(
parmdata
).
then
((
json
)
=>
{
console
.
log
(
json
)
if
(
json
.
ret
==
200
){
let
phoneNumber
=
JSON
.
parse
(
json
.
data
).
phoneNumber
;
this
.
triggerEvent
(
'getphoneNumber'
,{
phone
:
phoneNumber
})
}
})
}
}
})
...
...
pages/reserve/submit.json
View file @
1c60af0
...
...
@@ -2,6 +2,7 @@
"usingComponents"
:
{
"nav"
:
"/components/nav/nav"
,
"formids"
:
"/components/formids/formids"
,
"card"
:
"/components/seller-card/seller-card"
"card"
:
"/components/seller-card/seller-card"
,
"phone"
:
"/components/userinfo/getphone"
}
}
\ No newline at end of file
...
...
pages/reserve/submit.wxml
View file @
1c60af0
...
...
@@ -50,8 +50,9 @@
type="number"
value="{{user.phone}}"
placeholder-class="input-pl"/>
<view class="flex-rr switch">
一键获取
<view class="flex-rr">
<!-- 一键获取 -->
<phone></phone>
</view>
</view>
</view>
...
...
project.config.json
View file @
1c60af0
...
...
@@ -7,7 +7,7 @@
"minified"
:
true
,
"newFeature"
:
true
,
"nodeModules"
:
true
,
"autoAudits"
:
tru
e
,
"autoAudits"
:
fals
e
,
"uglifyFileName"
:
false
,
"checkInvalidKey"
:
true
,
"enhance"
:
true
,
...
...
utils/api.url.js
View file @
1c60af0
...
...
@@ -284,5 +284,8 @@ export default {
'App.Customer.GetHouseFullDateTimes'
:
null
,
//根据指定年份月份获取当月满房的日期
'App.Customer.GetHouseFullDate'
:
null
'App.Customer.GetHouseFullDate'
:
null
,
//获取微信用户绑定的手机号
'App.Customer.GetCustomerTel'
:
null
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment