Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-web-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-web-master
Commits
35f6dad3
Commit
35f6dad3
authored
Oct 25, 2024
by
chenwei
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改提货点接口
parent
dd79d7c3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
35 deletions
+42
-35
integral.js
src/api/integral.js
+8
-1
IntegralExchange.vue
src/views/jiedao/profile/components/IntegralExchange.vue
+34
-34
No files found.
src/api/integral.js
View file @
35f6dad3
...
...
@@ -26,7 +26,14 @@ export function getBranchList(params) {
params
,
});
}
// 获取提货点的接口
export
function
getWarehouseList
(
params
)
{
return
request
({
url
:
"
/admin-api/member/score-rule/warehouse-tree-region-list
"
,
method
:
"
get
"
,
params
,
});
}
// 获取积分活动列表
export
function
integralActivityList
(
data
)
{
return
request
({
...
...
src/views/jiedao/profile/components/IntegralExchange.vue
View file @
35f6dad3
...
...
@@ -31,10 +31,10 @@
class=
"imgs"
:src=
"language == 'zh_CN' ? item.imgZh : item.imgEn"
alt=
""
>
/
>
<div
class=
"gift-tag"
>
<div
class=
"tags"
>
<img
class=
"tag-image"
src=
"@/assets/integral/score.png"
>
<img
class=
"tag-image"
src=
"@/assets/integral/score.png"
/
>
<div
class=
"tag-text"
>
{{
item
.
pointsRequire
}}
</div>
</div>
</div>
...
...
@@ -62,10 +62,10 @@
<
/template
>
<
script
>
import
{
integralList
,
get
BranchList
}
from
'
@/api/integral
'
import
{
integralList
,
get
WarehouseList
}
from
"
@/api/integral
"
;
export
default
{
name
:
'
IntegralExchange
'
,
name
:
"
IntegralExchange
"
,
data
()
{
return
{
list
:
[],
...
...
@@ -73,73 +73,73 @@ export default {
nodeList
:
[],
selectedNodeId
:
null
,
checkStrictly
:
true
,
cascaderState
:
true
}
cascaderState
:
true
,
}
;
}
,
computed
:
{
language
()
{
// eslint-disable-next-line vue/no-side-effects-in-computed-properties
this
.
cascaderState
=
false
this
.
cascaderState
=
false
;
this
.
$nextTick
(()
=>
{
this
.
cascaderState
=
true
}
)
return
this
.
$store
.
getters
.
language
}
this
.
cascaderState
=
true
;
}
)
;
return
this
.
$store
.
getters
.
language
;
}
,
}
,
watch
:
{
selectedNodeId
(
val
)
{
if
(
val
&&
val
.
length
>
2
)
{
this
.
nodeId
=
val
[
val
.
length
-
1
]
this
.
getIntegralList
()
}
this
.
nodeId
=
val
[
val
.
length
-
1
];
this
.
getIntegralList
();
}
}
,
}
,
created
()
{
this
.
getIntegralList
()
this
.
getNodeInfo
()
this
.
getIntegralList
()
;
this
.
getNodeInfo
()
;
}
,
methods
:
{
changeSelect
()
{
this
.
checkStrictly
=
false
this
.
checkStrictly
=
false
;
}
,
// 获取礼品列表
async
getIntegralList
()
{
try
{
const
memberId
=
this
.
$store
.
getters
.
id
const
memberId
=
this
.
$store
.
getters
.
id
;
const
{
code
,
data
}
=
await
integralList
({
memberId
,
nodeId
:
this
.
nodeId
}
)
if
(
code
!==
0
)
return
this
.
list
=
data
.
list
nodeId
:
this
.
nodeId
,
}
)
;
if
(
code
!==
0
)
return
;
this
.
list
=
data
.
list
;
if
(
!
this
.
nodeId
)
{
if
(
data
.
city
)
{
this
.
selectedNodeId
=
[
data
.
country
,
data
.
city
]
this
.
selectedNodeId
=
[
data
.
country
,
data
.
city
]
;
}
else
{
this
.
selectedNodeId
=
[
data
.
country
]
this
.
selectedNodeId
=
[
data
.
country
]
;
}
}
}
catch
(
err
)
{
console
.
log
(
err
)
console
.
log
(
err
)
;
}
}
,
// 获取网点信息
async
getNodeInfo
()
{
try
{
const
{
code
,
data
}
=
await
get
BranchList
()
if
(
code
!==
0
)
return
this
.
nodeList
=
data
console
.
log
(
data
)
const
{
code
,
data
}
=
await
get
WarehouseList
();
if
(
code
!==
0
)
return
;
this
.
nodeList
=
data
;
console
.
log
(
data
)
;
}
catch
(
err
)
{
console
.
log
(
err
)
console
.
log
(
err
)
;
}
}
,
// 跳转详情
toDetail
(
id
)
{
this
.
$router
.
push
({
path
:
`/jiedao/jd-exchange-operate`
,
query
:
{
id
}
}
)
}
}
}
this
.
$router
.
push
({
path
:
`/jiedao/jd-exchange-operate`
,
query
:
{
id
}
}
);
}
,
}
,
}
;
<
/script
>
<
style
lang
=
"
scss
"
scoped
>
...
...
chenwei
@chenwei
mentioned in commit
78542170
·
Oct 25, 2024
mentioned in commit
78542170
mentioned in commit 7854217094fa94720885c606d8e670ae55822775
Toggle commit list
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