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
42033a6b
Commit
42033a6b
authored
Sep 27, 2019
by
赵雅纹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
触点参数
parent
c1a75a4b
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
65 additions
and
23 deletions
+65
-23
cardModal.js
src/component/cardModal/cardModal.js
+7
-1
sharePoster.js
src/component/sharePoster/sharePoster.js
+3
-0
extendProduct.js
src/pages/extendProduct/extendProduct.js
+8
-5
extendProduct.wxml
src/pages/extendProduct/extendProduct.wxml
+1
-0
myShare.js
src/pages/myShare/myShare.js
+6
-3
myShare.wxml
src/pages/myShare/myShare.wxml
+1
-0
productDetail.js
src/pages/productDetail/productDetail.js
+5
-2
productDetail.wxml
src/pages/productDetail/productDetail.wxml
+1
-0
wantToBuyDetail.js
src/pages/wantToBuyDetail/wantToBuyDetail.js
+6
-4
wantToBuyDetail.wxml
src/pages/wantToBuyDetail/wantToBuyDetail.wxml
+1
-0
myRelease.js
src/subPackage/page/pages/myRelease/myRelease.js
+6
-3
myRelease.wxml
src/subPackage/page/pages/myRelease/myRelease.wxml
+1
-0
myReleaseDetail.js
src/subPackage/page/pages/myReleaseDetail/myReleaseDetail.js
+6
-3
myReleaseDetail.wxml
...ubPackage/page/pages/myReleaseDetail/myReleaseDetail.wxml
+1
-0
share.js
src/subPackage/page/pages/share/share.js
+2
-2
wxService.js
src/utils/wxService.js
+10
-0
No files found.
src/component/cardModal/cardModal.js
View file @
42033a6b
...
@@ -25,6 +25,10 @@ Component({
...
@@ -25,6 +25,10 @@ Component({
type
:
String
,
type
:
String
,
value
:
''
value
:
''
},
},
scene
:
{
type
:
String
,
value
:
''
}
},
},
/**
/**
...
@@ -53,9 +57,10 @@ Component({
...
@@ -53,9 +57,10 @@ Component({
let
data
=
{
let
data
=
{
"autoColor"
:
true
,
"autoColor"
:
true
,
"page"
:
this
.
data
.
pagePath
,
"page"
:
this
.
data
.
pagePath
,
"scene"
:
'123'
,
"scene"
:
this
.
data
.
scene
,
"width"
:
100
"width"
:
100
}
}
console
.
log
(
this
.
data
.
pagePath
)
wxService
.
post
(
`/marketing/quickMark/getAppQrCodePicture`
,
data
).
then
(
res
=>
{
wxService
.
post
(
`/marketing/quickMark/getAppQrCodePicture`
,
data
).
then
(
res
=>
{
const
{
result
,
data
}
=
res
.
data
const
{
result
,
data
}
=
res
.
data
if
(
result
==
0
)
{
if
(
result
==
0
)
{
...
@@ -63,6 +68,7 @@ Component({
...
@@ -63,6 +68,7 @@ Component({
codeImg
:
app
.
globalData
.
imageUrl
+
data
codeImg
:
app
.
globalData
.
imageUrl
+
data
// codeImg: "https://hwimagecdn.ihotwind.cn/usr/201908/miniQrCode-f00c5051fef7479395efb193431762c4.jpg"
// codeImg: "https://hwimagecdn.ihotwind.cn/usr/201908/miniQrCode-f00c5051fef7479395efb193431762c4.jpg"
})
})
console
.
log
(
this
.
data
.
codeImg
)
if
(
this
.
data
.
codeImg
)
{
if
(
this
.
data
.
codeImg
)
{
this
.
selectComponent
(
'#getPoster'
).
getAvaterInfo
()
this
.
selectComponent
(
'#getPoster'
).
getAvaterInfo
()
}
}
...
...
src/component/sharePoster/sharePoster.js
View file @
42033a6b
...
@@ -104,6 +104,7 @@ Component({
...
@@ -104,6 +104,7 @@ Component({
success
:
function
(
res
)
{
success
:
function
(
res
)
{
wx
.
hideLoading
();
wx
.
hideLoading
();
if
(
res
.
statusCode
===
200
)
{
if
(
res
.
statusCode
===
200
)
{
console
.
log
(
'000'
,
res
.
tempFilePath
)
var
codeSrc
=
res
.
tempFilePath
;
var
codeSrc
=
res
.
tempFilePath
;
that
.
sharePosteCanvas
(
productSrc
,
codeSrc
,
imgInfo
);
that
.
sharePosteCanvas
(
productSrc
,
codeSrc
,
imgInfo
);
}
else
{
}
else
{
...
@@ -128,6 +129,7 @@ Component({
...
@@ -128,6 +129,7 @@ Component({
//canvas绘制分享海报
//canvas绘制分享海报
sharePosteCanvas
:
function
(
avaterSrc
,
codeSrc
,
imgInfo
)
{
sharePosteCanvas
:
function
(
avaterSrc
,
codeSrc
,
imgInfo
)
{
console
.
log
(
'----'
,
this
.
data
.
productDesc
)
wx
.
showLoading
({
wx
.
showLoading
({
title
:
'生成中...'
,
title
:
'生成中...'
,
...
@@ -168,6 +170,7 @@ Component({
...
@@ -168,6 +170,7 @@ Component({
// ctx.fillText(that.data.userAvatar, left - 15, imgheght + 110); //电话
// ctx.fillText(that.data.userAvatar, left - 15, imgheght + 110); //电话
}
}
// title
// title
console
.
log
(
'productDesc'
,
that
.
data
.
productDesc
)
if
(
that
.
data
.
productDesc
){
if
(
that
.
data
.
productDesc
){
ctx
.
setFontSize
(
12
);
ctx
.
setFontSize
(
12
);
ctx
.
setFillStyle
(
'#333333'
);
ctx
.
setFillStyle
(
'#333333'
);
...
...
src/pages/extendProduct/extendProduct.js
View file @
42033a6b
...
@@ -26,6 +26,7 @@ wxService.page({
...
@@ -26,6 +26,7 @@ wxService.page({
myExtendList
:[],
myExtendList
:[],
myShareCount
:
''
,
myShareCount
:
''
,
extendProBanner
:
''
,
extendProBanner
:
''
,
scene
:
''
,
//触点参数
proData
:
[]
proData
:
[]
},
},
...
@@ -176,23 +177,25 @@ wxService.page({
...
@@ -176,23 +177,25 @@ wxService.page({
wxService
.
getTentacleContent
(
tentacleInfo
).
then
(
res
=>
{
wxService
.
getTentacleContent
(
tentacleInfo
).
then
(
res
=>
{
if
(
res
&&
res
.
id
)
{
if
(
res
&&
res
.
id
)
{
this
.
data
.
currentShareContent
.
tentacleId
=
res
.
id
;
this
.
data
.
currentShareContent
.
tentacleId
=
res
.
id
;
let
id
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
id
,
10
,
64
);
let
id
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
id
,
10
,
64
);
let
tentacleId
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
tentacleId
,
10
,
64
);
let
tentacleId
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
tentacleId
,
10
,
64
);
var
path
=
'subPackage/page/pages/friendShareList/friendShareList?i='
+
id
+
'&t='
+
tentacleId
;
var
path
=
'subPackage/page/pages/friendShareList/friendShareList'
;
var
scene
=
'i='
+
id
+
'&t='
+
tentacleId
if
(
type
==
1
){
if
(
type
==
1
){
this
.
setData
({
this
.
setData
({
showCardModal
:
true
,
showCardModal
:
true
,
cardTitle
:
this
.
data
.
proData
[
0
].
productName
,
cardTitle
:
this
.
data
.
proData
[
0
].
productName
,
cardUrl
:
this
.
data
.
proData
[
0
].
productImgUrl
,
cardUrl
:
this
.
data
.
proData
[
0
].
productImgUrl
,
pagePath
:
path
pagePath
:
path
,
scene
:
scene
});
});
}
else
{
}
else
{
this
.
setData
({
this
.
setData
({
cardTitle
:
this
.
data
.
proData
[
0
].
productName
,
cardTitle
:
this
.
data
.
proData
[
0
].
productName
,
cardUrl
:
this
.
data
.
proData
[
0
].
productImgUrl
,
cardUrl
:
this
.
data
.
proData
[
0
].
productImgUrl
,
pagePath
:
path
pagePath
:
path
,
scene
:
scene
});
});
this
.
getMiniCode
()
this
.
getMiniCode
()
}
}
...
@@ -211,7 +214,7 @@ wxService.page({
...
@@ -211,7 +214,7 @@ wxService.page({
let
data
=
{
let
data
=
{
"autoColor"
:
true
,
"autoColor"
:
true
,
"page"
:
this
.
data
.
pagePath
,
"page"
:
this
.
data
.
pagePath
,
"scene"
:
'123'
,
"scene"
:
this
.
data
.
scene
,
"width"
:
100
"width"
:
100
}
}
wxService
.
post
(
`/marketing/quickMark/getAppQrCodePicture`
,
data
).
then
(
res
=>
{
wxService
.
post
(
`/marketing/quickMark/getAppQrCodePicture`
,
data
).
then
(
res
=>
{
...
...
src/pages/extendProduct/extendProduct.wxml
View file @
42033a6b
...
@@ -157,6 +157,7 @@
...
@@ -157,6 +157,7 @@
card-title="{{cardTitle}}"
card-title="{{cardTitle}}"
card-url="{{cardUrl}}"
card-url="{{cardUrl}}"
page-path="{{pagePath}}"
page-path="{{pagePath}}"
scene="{{scene}}"
/>
/>
<share-poster id="getPoster" bindmyevent="myEventListener" avater="{{cardUrl}}" productDesc="{{cardTitle}}" userAvatar="http://t2.hddhhn.com/uploads/tu/201806/9999/91480c0c87.jpg" bind:showMiniCard="_showMiniCard" pagePath="{{pagePath}}" code-img="{{codeImg}}"></share-poster>
<share-poster id="getPoster" bindmyevent="myEventListener" avater="{{cardUrl}}" productDesc="{{cardTitle}}" userAvatar="http://t2.hddhhn.com/uploads/tu/201806/9999/91480c0c87.jpg" bind:showMiniCard="_showMiniCard" pagePath="{{pagePath}}" code-img="{{codeImg}}"></share-poster>
<!--goHome-->
<!--goHome-->
...
...
src/pages/myShare/myShare.js
View file @
42033a6b
...
@@ -24,7 +24,8 @@ wxService.page({
...
@@ -24,7 +24,8 @@ wxService.page({
pagePath
:
''
,
pagePath
:
''
,
contentList
:[],
contentList
:[],
currentShareContent
:
null
,
currentShareContent
:
null
,
contentPermission
:
false
contentPermission
:
false
,
scene
:
''
},
},
// 点击切换
// 点击切换
...
@@ -226,12 +227,14 @@ wxService.page({
...
@@ -226,12 +227,14 @@ wxService.page({
this
.
data
.
currentShareContent
.
tentacleId
=
res
.
id
;
this
.
data
.
currentShareContent
.
tentacleId
=
res
.
id
;
let
id
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
id
,
10
,
64
);
let
id
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
id
,
10
,
64
);
let
tentacleId
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
tentacleId
,
10
,
64
);
let
tentacleId
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
tentacleId
,
10
,
64
);
var
path
=
'pages/wantToBuyDetail/wantToBuyDetail?i='
+
id
+
'&t='
+
tentacleId
;
var
path
=
'pages/wantToBuyDetail/wantToBuyDetail'
;
let
scene
=
'i='
+
id
+
'&t='
+
tentacleId
this
.
setData
({
this
.
setData
({
showCardModal
:
true
,
showCardModal
:
true
,
cardTitle
:
e
.
detail
.
title
,
cardTitle
:
e
.
detail
.
title
,
cardUrl
:
e
.
detail
.
url
,
cardUrl
:
e
.
detail
.
url
,
pagePath
:
path
pagePath
:
path
,
scene
:
scene
});
});
let
params
=
{
let
params
=
{
contentId
:
e
.
detail
.
id
,
contentId
:
e
.
detail
.
id
,
...
...
src/pages/myShare/myShare.wxml
View file @
42033a6b
...
@@ -49,6 +49,7 @@
...
@@ -49,6 +49,7 @@
card-title="{{cardTitle}}"
card-title="{{cardTitle}}"
card-url="{{cardUrl}}"
card-url="{{cardUrl}}"
page-path="{{pagePath}}"
page-path="{{pagePath}}"
scene="{{scene}}"
/>
/>
<!--goHome-->
<!--goHome-->
...
...
src/pages/productDetail/productDetail.js
View file @
42033a6b
...
@@ -24,6 +24,7 @@ wxService.page({
...
@@ -24,6 +24,7 @@ wxService.page({
showCardModal
:
false
,
showCardModal
:
false
,
currentShareContent
:
null
,
currentShareContent
:
null
,
fromZc
:
false
,
fromZc
:
false
,
scene
:
''
,
//触点参数
},
},
/**
/**
...
@@ -130,12 +131,14 @@ wxService.page({
...
@@ -130,12 +131,14 @@ wxService.page({
this
.
data
.
currentShareContent
.
tentacleId
=
res
.
id
;
this
.
data
.
currentShareContent
.
tentacleId
=
res
.
id
;
let
id
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
id
,
10
,
64
);
let
id
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
id
,
10
,
64
);
let
tentacleId
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
tentacleId
,
10
,
64
);
let
tentacleId
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
tentacleId
,
10
,
64
);
var
path
=
'pages/productDetail/productDetail?i='
+
id
+
'&t='
+
tentacleId
;
var
path
=
'pages/productDetail/productDetail'
;
var
scene
=
'i='
+
id
+
'&t='
+
tentacleId
this
.
setData
({
this
.
setData
({
showCardModal
:
true
,
showCardModal
:
true
,
cardTitle
:
this
.
data
.
productInfo
.
productName
,
cardTitle
:
this
.
data
.
productInfo
.
productName
,
cardUrl
:
this
.
data
.
productInfo
.
indexUrl
,
cardUrl
:
this
.
data
.
productInfo
.
indexUrl
,
pagePath
:
path
pagePath
:
path
,
scene
:
scene
});
});
}
}
})
})
...
...
src/pages/productDetail/productDetail.wxml
View file @
42033a6b
...
@@ -176,6 +176,7 @@
...
@@ -176,6 +176,7 @@
card-title="{{cardTitle}}"
card-title="{{cardTitle}}"
card-url="{{cardUrl}}"
card-url="{{cardUrl}}"
page-path="{{pagePath}}"
page-path="{{pagePath}}"
scene="{{scene}}"
/>
/>
<!-- <sku-popup
<!-- <sku-popup
...
...
src/pages/wantToBuyDetail/wantToBuyDetail.js
View file @
42033a6b
...
@@ -19,8 +19,8 @@ wxService.page({
...
@@ -19,8 +19,8 @@ wxService.page({
showCardModal
:
false
,
showCardModal
:
false
,
currentShareContent
:
null
,
currentShareContent
:
null
,
pagePath
:
''
,
pagePath
:
''
,
loadingTime
:
''
loadingTime
:
''
,
scene
:
''
},
},
/**
/**
...
@@ -153,12 +153,14 @@ wxService.page({
...
@@ -153,12 +153,14 @@ wxService.page({
this
.
data
.
currentShareContent
.
tentacleId
=
res
.
id
;
this
.
data
.
currentShareContent
.
tentacleId
=
res
.
id
;
let
id
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
id
,
10
,
64
);
let
id
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
id
,
10
,
64
);
let
tentacleId
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
tentacleId
,
10
,
64
);
let
tentacleId
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
tentacleId
,
10
,
64
);
var
path
=
'pages/wantToBuyDetail/wantToBuyDetail?i='
+
id
+
'&t='
+
tentacleId
;
var
path
=
'pages/wantToBuyDetail/wantToBuyDetail'
;
let
scene
=
'i='
+
id
+
'&t='
+
tentacleId
this
.
setData
({
this
.
setData
({
showCardModal
:
true
,
showCardModal
:
true
,
cardTitle
:
this
.
data
.
contentInfo
.
headline
,
cardTitle
:
this
.
data
.
contentInfo
.
headline
,
cardUrl
:
this
.
data
.
contentInfo
.
shareShowPictureRESDTOList
[
0
].
url
,
cardUrl
:
this
.
data
.
contentInfo
.
shareShowPictureRESDTOList
[
0
].
url
,
pagePath
:
path
pagePath
:
path
,
scene
:
scene
});
});
let
params
=
{
let
params
=
{
contentId
:
this
.
data
.
contentInfo
.
id
,
contentId
:
this
.
data
.
contentInfo
.
id
,
...
...
src/pages/wantToBuyDetail/wantToBuyDetail.wxml
View file @
42033a6b
...
@@ -44,6 +44,7 @@
...
@@ -44,6 +44,7 @@
card-title="{{cardTitle}}"
card-title="{{cardTitle}}"
card-url="{{cardUrl}}"
card-url="{{cardUrl}}"
page-path="{{pagePath}}"
page-path="{{pagePath}}"
scene="{{scene}}"
/>
/>
<!--goHome-->
<!--goHome-->
...
...
src/subPackage/page/pages/myRelease/myRelease.js
View file @
42033a6b
...
@@ -25,7 +25,8 @@ wxService.page({
...
@@ -25,7 +25,8 @@ wxService.page({
pagePath
:
''
,
pagePath
:
''
,
contentList
:
[],
contentList
:
[],
contentPermission
:
false
,
contentPermission
:
false
,
currentShareContent
:
null
currentShareContent
:
null
,
scene
:
''
},
},
/**
/**
...
@@ -230,12 +231,14 @@ wxService.page({
...
@@ -230,12 +231,14 @@ wxService.page({
this
.
data
.
currentShareContent
.
tentacleId
=
res
.
id
;
this
.
data
.
currentShareContent
.
tentacleId
=
res
.
id
;
let
id
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
id
,
10
,
64
);
let
id
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
id
,
10
,
64
);
let
tentacleId
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
tentacleId
,
10
,
64
);
let
tentacleId
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
tentacleId
,
10
,
64
);
var
path
=
'pages/wantToBuyDetail/wantToBuyDetail?i='
+
id
+
'&t='
+
tentacleId
;
var
path
=
'pages/wantToBuyDetail/wantToBuyDetail'
;
let
scene
=
'i='
+
id
+
'&t='
+
tentacleId
this
.
setData
({
this
.
setData
({
showCardModal
:
true
,
showCardModal
:
true
,
cardTitle
:
e
.
detail
.
title
,
cardTitle
:
e
.
detail
.
title
,
cardUrl
:
e
.
detail
.
url
,
cardUrl
:
e
.
detail
.
url
,
pagePath
:
path
pagePath
:
path
,
scene
:
scene
});
});
let
params
=
{
let
params
=
{
...
...
src/subPackage/page/pages/myRelease/myRelease.wxml
View file @
42033a6b
...
@@ -41,5 +41,6 @@
...
@@ -41,5 +41,6 @@
card-title="{{cardTitle}}"
card-title="{{cardTitle}}"
card-url="{{cardUrl}}"
card-url="{{cardUrl}}"
page-path="{{pagePath}}"
page-path="{{pagePath}}"
scene="{{scene}}"
/>
/>
src/subPackage/page/pages/myReleaseDetail/myReleaseDetail.js
View file @
42033a6b
...
@@ -20,7 +20,8 @@ wxService.page({
...
@@ -20,7 +20,8 @@ wxService.page({
loadingTime
:
''
,
loadingTime
:
''
,
proList
:[],
proList
:[],
pageNo
:
1
,
pageNo
:
1
,
pageSize
:
10
pageSize
:
10
,
scene
:
''
},
},
/**
/**
...
@@ -86,12 +87,14 @@ wxService.page({
...
@@ -86,12 +87,14 @@ wxService.page({
this
.
data
.
currentShareContent
.
tentacleId
=
res
.
id
;
this
.
data
.
currentShareContent
.
tentacleId
=
res
.
id
;
let
id
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
id
,
10
,
64
);
let
id
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
id
,
10
,
64
);
let
tentacleId
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
tentacleId
,
10
,
64
);
let
tentacleId
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
tentacleId
,
10
,
64
);
var
path
=
'pages/wantToBuyDetail/wantToBuyDetail?i='
+
id
+
'&t='
+
tentacleId
;
var
path
=
'pages/wantToBuyDetail/wantToBuyDetail'
;
let
scene
=
'i='
+
id
+
'&t='
+
tentacleId
this
.
setData
({
this
.
setData
({
showCardModal
:
true
,
showCardModal
:
true
,
cardTitle
:
this
.
data
.
contentInfo
.
headline
,
cardTitle
:
this
.
data
.
contentInfo
.
headline
,
cardUrl
:
this
.
data
.
contentInfo
.
sspList
[
0
].
url
,
cardUrl
:
this
.
data
.
contentInfo
.
sspList
[
0
].
url
,
pagePath
:
path
pagePath
:
path
,
scene
:
scene
});
});
let
params
=
{
let
params
=
{
contentId
:
this
.
data
.
contentInfo
.
id
,
contentId
:
this
.
data
.
contentInfo
.
id
,
...
...
src/subPackage/page/pages/myReleaseDetail/myReleaseDetail.wxml
View file @
42033a6b
...
@@ -78,5 +78,6 @@
...
@@ -78,5 +78,6 @@
card-title="{{cardTitle}}"
card-title="{{cardTitle}}"
card-url="{{cardUrl}}"
card-url="{{cardUrl}}"
page-path="{{pagePath}}"
page-path="{{pagePath}}"
scene="{{scene}}"
/>
/>
src/subPackage/page/pages/share/share.js
View file @
42033a6b
...
@@ -93,8 +93,8 @@ wxService.page({
...
@@ -93,8 +93,8 @@ wxService.page({
let
data
=
{
let
data
=
{
"autoColor"
:
true
,
"autoColor"
:
true
,
"page"
:
'pages/userCenter/userCenter
?type={{app.globalData.contants.SHARE_TYPE.INVITE_FRIENDS}}
'
,
"page"
:
'pages/userCenter/userCenter'
,
"scene"
:
'
123'
,
"scene"
:
'
type='
+
app
.
globalData
.
contants
.
SHARE_TYPE
.
INVITE_FRIENDS
,
"width"
:
100
"width"
:
100
}
}
wxService
.
post
(
`/marketing/quickMark/getAppQrCodePicture`
,
data
).
then
(
res
=>
{
wxService
.
post
(
`/marketing/quickMark/getAppQrCodePicture`
,
data
).
then
(
res
=>
{
...
...
src/utils/wxService.js
View file @
42033a6b
...
@@ -552,6 +552,7 @@ class WXService extends Http {
...
@@ -552,6 +552,7 @@ class WXService extends Http {
watch
.
setWatcher
(
page
);
watch
.
setWatcher
(
page
);
//修改参数
//修改参数
let
pageIsFromShare
=
false
,
id
=
null
;
let
pageIsFromShare
=
false
,
id
=
null
;
console
.
log
(
'args'
,
args
)
args
.
forEach
(
item
=>
{
args
.
forEach
(
item
=>
{
if
(
item
[
't'
])
{
if
(
item
[
't'
])
{
pageIsFromShare
=
true
;
pageIsFromShare
=
true
;
...
@@ -566,6 +567,15 @@ class WXService extends Http {
...
@@ -566,6 +567,15 @@ class WXService extends Http {
item
[
'id'
]
=
Integer
.
digit
(
item
[
'i'
],
64
,
10
);
item
[
'id'
]
=
Integer
.
digit
(
item
[
'i'
],
64
,
10
);
}
}
}
}
if
(
item
[
'scene'
]){
let
idParam
=
decodeURIComponent
(
item
[
'scene'
]).
split
(
'&'
)[
0
]
let
shareId
=
idParam
&&
idParam
.
split
(
'='
)[
1
]
||
0
item
[
'id'
]
=
Integer
.
digit
(
shareId
,
64
,
10
)
console
.
log
(
'idParam'
,
idParam
)
console
.
log
(
'shareId'
,
shareId
)
console
.
log
(
'id'
,
item
[
'id'
])
}
});
});
//如果打开的是分享界面则进行触点对象信息请求并存储到本地 放到后续的header中
//如果打开的是分享界面则进行触点对象信息请求并存储到本地 放到后续的header中
if
(
pageIsFromShare
)
{
if
(
pageIsFromShare
)
{
...
...
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