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
9f20b381
Commit
9f20b381
authored
Feb 02, 2021
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口传参数
parent
15e8b806
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
src/pages/home/index.vue
+2
-1
static/nativeComponents/SharePopup/index.js
+2
-2
No files found.
src/pages/home/index.vue
View file @
9f20b381
...
...
@@ -85,11 +85,12 @@ export default {
},
onShareAppMessage
(
res
)
{
let
shareVal
=
{};
let
{
shopCode
}
=
app
.
globalData
.
shopInfo
;
if
(
res
.
from
===
"button"
)
{
console
.
log
(
res
.
target
,
'-----------78'
);
return
new
Promise
((
resolve
,
reject
)
=>
{
shop
.
getShopInfo
({
shopMixId
:
"antgood"
}).
then
(
res
=>
{
shop
.
getShopInfo
({
shopMixId
:
shopCode
}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
){
let
{
shopName
}
=
res
.
data
.
data
;
let
logoUrl
=
app
.
DFSImg
(
res
.
data
.
data
.
logoUrl
,
500
,
400
,
0
);
...
...
static/nativeComponents/SharePopup/index.js
View file @
9f20b381
...
...
@@ -36,7 +36,7 @@ const componentOptions = {
miniProgram
:
0
,
flag
:
false
,
productId
:
""
,
copyLink
:
"
32132132
"
copyLink
:
""
},
// 数据监听器
observers
:
{},
...
...
@@ -72,7 +72,7 @@ const componentOptions = {
copyText
(
e
)
{
let
{
text
}
=
e
.
currentTarget
.
dataset
;
let
pagePath
=
getCurrentPages
()[
0
].
route
;
//
let copyVal = pagePath + text;
let
copyVal
=
pagePath
+
text
;
wx
.
setClipboardData
({
data
:
copyVal
,
success
:
function
(
res
)
{
...
...
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