Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
Overview
Overview
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
高淑倩
7-Eleven
Commits
e9536a08
Commit
e9536a08
authored
Sep 19, 2019
by
赵雅纹
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixbug-ZYW' into 'dev_7.1.0'
Fixbug zyw See merge request
!134
parents
ca6135e2
59faed29
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
9 deletions
+25
-9
addAddress.js
src/pages/addAddress/addAddress.js
+16
-5
Http.js
src/utils/Http.js
+9
-4
No files found.
src/pages/addAddress/addAddress.js
View file @
e9536a08
...
...
@@ -22,7 +22,9 @@ wxService.page({
userId
:
''
,
name
:
''
,
phone
:
''
,
fullArea
:
''
,
province
:
''
,
city
:
''
,
district
:
''
,
address
:
''
,
type
:
1
},
...
...
@@ -86,12 +88,14 @@ wxService.page({
userId
:
data
.
userId
,
name
:
data
.
name
,
phone
:
data
.
phone
,
fullArea
:
data
.
fullArea
,
province
:
data
.
province
,
city
:
data
.
city
,
district
:
data
.
district
,
address
:
data
.
address
,
type
:
data
.
type
},
isSelect
:
data
.
type
,
cityView
:
data
.
fullArea
cityView
:
data
.
province
+
' '
+
data
.
city
+
' '
+
data
.
district
})
wxService
.
getC1
().
then
((
c1
)
=>
{
return
wxService
.
Promise
.
all
([
wxService
.
Promise
.
resolve
(
c1
),
wxService
.
getC2ByC1
(
'北京'
),
wxService
.
getC3ByC2
(
'北京北京市'
)])
...
...
@@ -115,10 +119,15 @@ wxService.page({
console
.
log
(
citys
)
if
(
citys
)
{
const
cityView
=
[
citys
[
0
][
multiIndex
[
0
]],
citys
[
1
][
multiIndex
[
1
]],
citys
[
2
][
multiIndex
[
2
]]].
join
(
' '
)
this
.
setData
({
multiIndex
,
cityView
cityView
,
'params.province'
:
citys
[
0
][
multiIndex
[
0
]],
'params.city'
:
citys
[
1
][
multiIndex
[
1
]],
'params.district'
:
citys
[
2
][
multiIndex
[
2
]]
})
}
},
...
...
@@ -202,7 +211,9 @@ wxService.page({
userId
:
memberId
,
name
:
e
.
detail
.
value
.
name
,
phone
:
e
.
detail
.
value
.
phone
,
fullArea
:
this
.
data
.
cityView
,
province
:
this
.
data
.
params
.
province
,
city
:
this
.
data
.
params
.
city
,
district
:
this
.
data
.
params
.
district
,
address
:
e
.
detail
.
value
.
address
,
type
:
this
.
data
.
isSelect
?
1
:
0
}
...
...
src/utils/Http.js
View file @
e9536a08
...
...
@@ -89,7 +89,8 @@ class Http {
method
:
'GET'
,
header
:
{
'buyer-token'
:
this
.
getToken
(),
'TENTACLE_CONTENT'
:
this
.
getTentacle
()
// 'TENTACLE_CONTENT': this.getTentacle(),
'TENTACLE_CONTENT'
:
'{"id":"621346354647797760","tentacleType":3,"tentacleId":"611969009872691200","contentType":1}'
},
data
:
parmas
})
...
...
@@ -99,7 +100,9 @@ class Http {
method
:
'GET'
,
header
:
{
'tunnel-token'
:
'aa8a1bfb7f6c5031d172d94b6574293ef954a6f2d4e16657da008e0cc15588feD'
,
'TENTACLE_CONTENT'
:
this
.
getTentacle
()
// 'TENTACLE_CONTENT': this.getTentacle(),
'TENTACLE_CONTENT'
:
'{"id":"621346354647797760","tentacleType":3,"tentacleId":"611969009872691200","contentType":1}'
},
data
:
parmas
})
...
...
@@ -117,7 +120,8 @@ class Http {
method
:
'POST'
,
header
:
{
'buyer-token'
:
this
.
getToken
(),
'TENTACLE_CONTENT'
:
this
.
getTentacle
()
// 'TENTACLE_CONTENT': this.getTentacle()
'TENTACLE_CONTENT'
:
'{"id":"621346354647797760","tentacleType":3,"tentacleId":"611969009872691200","contentType":1}'
},
data
:
parmas
,
channel
:
channel
...
...
@@ -128,7 +132,8 @@ class Http {
method
:
'POST'
,
header
:
{
'tunnel-token'
:
'aa8a1bfb7f6c5031d172d94b6574293ef954a6f2d4e16657da008e0cc15588feD'
,
'TENTACLE_CONTENT'
:
this
.
getTentacle
()
// 'TENTACLE_CONTENT': this.getTentacle()
'TENTACLE_CONTENT'
:
'{"id":"621346354647797760","tentacleType":3,"tentacleId":"611969009872691200","contentType":1}'
},
data
:
parmas
,
channel
:
channel
...
...
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