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
aa3b1153
Commit
aa3b1153
authored
Aug 31, 2019
by
赵雅纹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分享
parent
8cb518a1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
10 deletions
+47
-10
category.js
src/pages/category/category.js
+4
-3
pointDetail.js
src/pages/pointDetail/pointDetail.js
+20
-3
pointList.js
src/pages/pointList/pointList.js
+19
-1
categoryPro.js
src/subPackage/page/pages/categoryPro/categoryPro.js
+4
-3
No files found.
src/pages/category/category.js
View file @
aa3b1153
// pages/category/category.js
// pages/category/category.js
const
app
=
getApp
()
const
wxService
=
require
(
'../../utils/wxService'
)
const
wxService
=
require
(
'../../utils/wxService'
)
import
{
Integer
}
from
'../../utils/integerDigitalConvertion'
import
{
Integer
}
from
'../../utils/integerDigitalConvertion'
...
@@ -116,9 +117,9 @@ wxService.page({
...
@@ -116,9 +117,9 @@ wxService.page({
*/
*/
onShareAppMessage
:
function
(
res
)
{
onShareAppMessage
:
function
(
res
)
{
let
tentacleInfo
=
{
let
tentacleInfo
=
{
content
:
this
.
route
,
content
:
'分类'
,
title
:
this
.
route
,
title
:
'分类'
,
contentType
:
3
,
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
PAGE
,
type
:
3
// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
type
:
3
// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
};
};
wxService
.
getTentacleContent
(
tentacleInfo
).
then
(
res
=>
{
wxService
.
getTentacleContent
(
tentacleInfo
).
then
(
res
=>
{
...
...
src/pages/pointDetail/pointDetail.js
View file @
aa3b1153
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
const
app
=
getApp
()
const
app
=
getApp
()
const
wxService
=
require
(
'../../utils/wxService'
)
const
wxService
=
require
(
'../../utils/wxService'
)
const
utils
=
require
(
'../../utils/util'
)
const
utils
=
require
(
'../../utils/util'
)
import
{
Integer
}
from
'../../utils/integerDigitalConvertion'
wxService
.
page
({
wxService
.
page
({
/**
/**
...
@@ -306,9 +307,24 @@ wxService.page({
...
@@ -306,9 +307,24 @@ wxService.page({
},
},
/**
/**
* 用户点击右上角分享
* 用户点击右上角分享
*/
*/
onShareAppMessage
:
function
()
{
onShareAppMessage
:
function
()
{
console
.
log
(
'00000'
,
app
.
globalData
.
contants
)
let
tentacleInfo
=
{
content
:
'集点详情'
,
title
:
'集点详情'
,
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
PAGE
,
type
:
3
// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
};
wxService
.
getTentacleContent
(
tentacleInfo
).
then
(
res
=>
{
if
(
res
&&
res
.
tentacleId
)
{
let
tentacleId
=
Integer
.
digit
(
res
.
tentacleId
,
10
,
64
);
var
path
=
`pages/pointList/pointList?t=
${
tentacleId
}
`
;
return
{
path
:
path
}
}
});
}
}
})
})
\ No newline at end of file
src/pages/pointList/pointList.js
View file @
aa3b1153
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
const
app
=
getApp
()
const
app
=
getApp
()
const
wxService
=
require
(
'../../utils/wxService'
)
const
wxService
=
require
(
'../../utils/wxService'
)
const
utils
=
require
(
'../../utils/util'
)
const
utils
=
require
(
'../../utils/util'
)
import
{
Integer
}
from
'../../utils/integerDigitalConvertion'
wxService
.
page
({
wxService
.
page
({
/**
/**
...
@@ -155,6 +157,21 @@ wxService.page({
...
@@ -155,6 +157,21 @@ wxService.page({
* 用户点击右上角分享
* 用户点击右上角分享
*/
*/
onShareAppMessage
:
function
()
{
onShareAppMessage
:
function
()
{
console
.
log
(
'00000'
,
app
.
globalData
.
contants
)
let
tentacleInfo
=
{
content
:
'集点列表'
,
title
:
'集点列表'
,
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
PAGE
,
type
:
3
// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
};
wxService
.
getTentacleContent
(
tentacleInfo
).
then
(
res
=>
{
if
(
res
&&
res
.
tentacleId
)
{
let
tentacleId
=
Integer
.
digit
(
res
.
tentacleId
,
10
,
64
);
var
path
=
`pages/pointList/pointList?t=
${
tentacleId
}
`
;
return
{
path
:
path
}
}
});
}
}
})
})
\ No newline at end of file
src/subPackage/page/pages/categoryPro/categoryPro.js
View file @
aa3b1153
// subPackage/page/pages/fun/fun.js
// subPackage/page/pages/fun/fun.js
var
app
=
getApp
()
const
wxService
=
require
(
'../../../../utils/wxService'
)
const
wxService
=
require
(
'../../../../utils/wxService'
)
import
{
Integer
}
from
'../../../../utils/integerDigitalConvertion'
import
{
Integer
}
from
'../../../../utils/integerDigitalConvertion'
...
@@ -114,9 +115,9 @@ wxService.page({
...
@@ -114,9 +115,9 @@ wxService.page({
*/
*/
onShareAppMessage
:
function
(
res
)
{
onShareAppMessage
:
function
(
res
)
{
let
tentacleInfo
=
{
let
tentacleInfo
=
{
content
:
this
.
route
,
content
:
'商品列表'
,
title
:
this
.
route
,
title
:
'商品列表'
,
contentType
:
3
,
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
PAGE
,
type
:
3
// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
type
:
3
// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
};
};
wxService
.
getTentacleContent
(
tentacleInfo
).
then
(
res
=>
{
wxService
.
getTentacleContent
(
tentacleInfo
).
then
(
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