Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
scrm-wx-merchant-activity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8c890e45
authored
Jul 28, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交代码
1 parent
24d01e7c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
src/api/shopmallApi.js
src/store/modules/app.js
src/views/crowdfunding/index.vue
src/api/shopmallApi.js
View file @
8c890e4
...
@@ -16,8 +16,8 @@ export default {
...
@@ -16,8 +16,8 @@ export default {
data
:
{
data
:
{
method
:
'scrm.api.shopmall.weapp.activity.group'
,
method
:
'scrm.api.shopmall.weapp.activity.group'
,
id
,
id
,
returnAll
:
true
},
}
returnAll
:
true
})
})
},
},
/** 创建订单(立即购买) */
/** 创建订单(立即购买) */
...
...
src/store/modules/app.js
View file @
8c890e4
...
@@ -50,7 +50,7 @@ const actions = {
...
@@ -50,7 +50,7 @@ const actions = {
wxLogin
({
dispatch
},
{
code
,
redirectUrl
,
appId
})
{
wxLogin
({
dispatch
},
{
code
,
redirectUrl
,
appId
})
{
ssoApi
.
login
({
ssoApi
.
login
({
code
,
code
,
appId
,
appId
:
window
.
$fetchConfig
.
appid
,
state
:
'snsapi_userinfo'
state
:
'snsapi_userinfo'
}).
then
(({
code
,
data
,
message
})
=>
{
}).
then
(({
code
,
data
,
message
})
=>
{
let
route
=
state
.
lastPath
==
'crowdfunding'
?
''
:
state
.
lastPath
||
''
let
route
=
state
.
lastPath
==
'crowdfunding'
?
''
:
state
.
lastPath
||
''
...
@@ -82,7 +82,7 @@ const actions = {
...
@@ -82,7 +82,7 @@ const actions = {
let
[
redirectUrl
]
=
window
.
location
.
href
.
split
(
'?'
)
let
[
redirectUrl
]
=
window
.
location
.
href
.
split
(
'?'
)
const
isWxWork
=
util
.
getLocalStorage
(
'is_wxwork'
)
const
isWxWork
=
util
.
getLocalStorage
(
'is_wxwork'
)
const
code
=
getParams
(
'code'
)
const
code
=
getParams
(
'code'
)
cons
t
appId
=
util
.
getAppId
()
le
t
appId
=
util
.
getAppId
()
util
.
showLoading
()
util
.
showLoading
()
if
(
process
.
env
.
NODE_ENV
==
'development'
)
{
//本地开发
if
(
process
.
env
.
NODE_ENV
==
'development'
)
{
//本地开发
if
(
code
)
{
if
(
code
)
{
...
@@ -93,7 +93,7 @@ const actions = {
...
@@ -93,7 +93,7 @@ const actions = {
getUserInfoFlag
:
false
getUserInfoFlag
:
false
}
:
{
}
:
{
code
,
code
,
appId
,
appId
:
window
.
$fetchConfig
.
appid
,
state
:
'snsapi_userinfo'
state
:
'snsapi_userinfo'
}
}
ssoApi
[
target
](
PARAMS
)
ssoApi
[
target
](
PARAMS
)
...
...
src/views/crowdfunding/index.vue
View file @
8c890e4
...
@@ -331,6 +331,7 @@ export default {
...
@@ -331,6 +331,7 @@ export default {
}
,
}
,
getActivityGroup
()
{
getActivityGroup
()
{
shopmallApi
.
getActivityGroup
(
this
.
id
).
then
(({
code
,
message
,
data
}
)
=>
{
shopmallApi
.
getActivityGroup
(
this
.
id
).
then
(({
code
,
message
,
data
}
)
=>
{
console
.
log
(
data
)
let
arr
=
[],
items
=
[]
let
arr
=
[],
items
=
[]
// console.log(JSON.parse(JSON.stringify(data)))
// console.log(JSON.parse(JSON.stringify(data)))
if
(
code
==
'0'
)
{
if
(
code
==
'0'
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment