Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
ec75081b
Commit
ec75081b
authored
Jan 22, 2024
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
参数优化
parent
f137177a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
16 deletions
+24
-16
src/pages/index/index.vue
+24
-16
No files found.
src/pages/index/index.vue
View file @
ec75081b
...
@@ -644,35 +644,43 @@ export default {
...
@@ -644,35 +644,43 @@ export default {
},
},
saveSpokesmanShareGoodsLog
({
link
,
type
})
{
saveSpokesmanShareGoodsLog
({
link
,
type
})
{
let
query
=
{};
let
query
=
{};
if
(
getQueryVariable
(
link
,
"spokesmanGroupId"
))
{
if
(
this
.
getQueryVariableNotNull
(
link
,
"spokesmanGroupId"
))
{
query
.
spokesmanGroupId
=
getQueryVariable
(
link
,
"spokesmanGroupId"
)
query
.
spokesmanGroupId
=
this
.
getQueryVariableNotNull
(
link
,
"spokesmanGroupId"
);
}
}
if
(
getQueryVariable
(
link
,
"spokesmanRelId"
))
{
if
(
this
.
getQueryVariableNotNull
(
link
,
"spokesmanRelId"
))
{
query
.
spokesmanRelId
=
getQueryVariable
(
link
,
"spokesmanRelId"
)
query
.
spokesmanRelId
=
this
.
getQueryVariableNotNull
(
link
,
"spokesmanRelId"
);
}
}
if
(
getQueryVariable
(
link
,
"userId"
))
{
if
(
this
.
getQueryVariableNotNull
(
link
,
"userId"
))
{
query
.
userId
=
getQueryVariable
(
link
,
"userId"
)
query
.
userId
=
this
.
getQueryVariableNotNull
(
link
,
"userId"
);
}
}
if
(
getQueryVariable
(
link
,
"productId"
))
{
if
(
this
.
getQueryVariableNotNull
(
link
,
"productId"
))
{
query
.
productId
=
getQueryVariable
(
link
,
"productId"
)
query
.
productId
=
this
.
getQueryVariableNotNull
(
link
,
"productId"
);
}
}
if
(
getQueryVariable
(
link
,
"terminalProductId"
))
{
if
(
this
.
getQueryVariableNotNull
(
link
,
"terminalProductId"
))
{
query
.
terminalProductId
=
getQueryVariable
(
link
,
"terminalProductId"
)
query
.
terminalProductId
=
this
.
getQueryVariableNotNull
(
link
,
"terminalProductId"
);
}
}
if
(
getQueryVariable
(
link
,
"mixid"
))
{
if
(
this
.
getQueryVariableNotNull
(
link
,
"mixid"
))
{
query
.
mixid
=
getQueryVariable
(
link
,
"mixid"
)
query
.
mixid
=
this
.
getQueryVariableNotNull
(
link
,
"mixid"
);
}
}
if
(
getQueryVariable
(
link
,
"spokesmanShopId"
))
{
if
(
this
.
getQueryVariableNotNull
(
link
,
"spokesmanShopId"
))
{
query
.
spokesmanShopId
=
getQueryVariable
(
link
,
"spokesmanShopId"
)
query
.
spokesmanShopId
=
this
.
getQueryVariableNotNull
(
link
,
"spokesmanShopId"
);
}
}
if
(
getQueryVariable
(
link
,
"timeStamp"
))
{
if
(
this
.
getQueryVariableNotNull
(
link
,
"timeStamp"
))
{
query
.
timeStamp
=
getQueryVariable
(
link
,
"timeStamp"
)
query
.
timeStamp
=
this
.
getQueryVariableNotNull
(
link
,
"timeStamp"
);
}
}
if
(
type
)
{
if
(
type
)
{
query
.
sharingMethods
=
type
;
query
.
sharingMethods
=
type
;
}
}
console
.
log
(
"saveSpokesmanShareGoodsLog"
,
query
)
console
.
log
(
"saveSpokesmanShareGoodsLog"
,
query
)
goods
.
saveSpokesmanShareGoodsLog
(
query
);
goods
.
saveSpokesmanShareGoodsLog
(
query
);
},
getQueryVariableNotNull
(
link
,
key
)
{
let
val
=
getQueryVariable
(
link
,
key
);
if
(
val
&&
val
!=
'undefined'
)
{
return
val
;
}
return
''
;
}
}
},
},
onUnload
()
{
onUnload
()
{
...
...
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