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
3254fb8b
Commit
3254fb8b
authored
Mar 13, 2020
by
谢中龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导购群发bug
parent
a190bf61
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
home.js
src/shoppingGuid/page/pages/home/home.js
+2
-2
moreCoupons.js
src/shoppingGuid/page/pages/moreCoupons/moreCoupons.js
+2
-2
No files found.
src/shoppingGuid/page/pages/home/home.js
View file @
3254fb8b
...
@@ -300,13 +300,13 @@ wxService.page({
...
@@ -300,13 +300,13 @@ wxService.page({
wxService
.
getTentacleContent
(
tentacleInfo
).
then
(
res
=>
{
wxService
.
getTentacleContent
(
tentacleInfo
).
then
(
res
=>
{
if
(
res
&&
res
.
id
)
{
if
(
res
&&
res
.
id
)
{
let
tentacleId
=
res
.
id
;
let
tentacleId
=
res
.
id
;
let
inner_id
=
Integer
.
digit
(
item
.
couponI
d
,
10
,
64
);
let
inner_id
=
Integer
.
digit
(
item
.
i
d
,
10
,
64
);
let
inner_tentacleId
=
Integer
.
digit
(
tentacleId
,
10
,
64
);
let
inner_tentacleId
=
Integer
.
digit
(
tentacleId
,
10
,
64
);
var
path
=
'subPackage/page/pages/scanCoupon/scanCoupon'
+
'?i='
+
inner_id
+
'&t='
+
inner_tentacleId
;
var
path
=
'subPackage/page/pages/scanCoupon/scanCoupon'
+
'?i='
+
inner_id
+
'&t='
+
inner_tentacleId
;
//打开企业微信通讯录选择会员
//打开企业微信通讯录选择会员
wx
.
qy
.
shareToExternalContact
({
wx
.
qy
.
shareToExternalContact
({
appid
:
app
.
globalData
.
appId
,
//小程序的appid
appid
:
app
.
globalData
.
appId
,
//小程序的appid
title
:
item
.
couponNam
e
,
//小程序消息的title
title
:
item
.
titl
e
,
//小程序消息的title
imgUrl
:
'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/icon_get_coupon.png'
,
//小程序消息的封面图
imgUrl
:
'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/icon_get_coupon.png'
,
//小程序消息的封面图
page
:
path
,
//小程序消息打开后的路径
page
:
path
,
//小程序消息打开后的路径
success
:
function
(
r
)
{
success
:
function
(
r
)
{
...
...
src/shoppingGuid/page/pages/moreCoupons/moreCoupons.js
View file @
3254fb8b
...
@@ -128,13 +128,13 @@ wxService.page({
...
@@ -128,13 +128,13 @@ wxService.page({
wxService
.
getTentacleContent
(
tentacleInfo
).
then
(
res
=>
{
wxService
.
getTentacleContent
(
tentacleInfo
).
then
(
res
=>
{
if
(
res
&&
res
.
id
)
{
if
(
res
&&
res
.
id
)
{
let
tentacleId
=
res
.
id
;
let
tentacleId
=
res
.
id
;
let
inner_id
=
Integer
.
digit
(
item
.
couponI
d
,
10
,
64
);
let
inner_id
=
Integer
.
digit
(
item
.
i
d
,
10
,
64
);
let
inner_tentacleId
=
Integer
.
digit
(
tentacleId
,
10
,
64
);
let
inner_tentacleId
=
Integer
.
digit
(
tentacleId
,
10
,
64
);
var
path
=
'subPackage/page/pages/scanCoupon/scanCoupon'
+
'?i='
+
inner_id
+
'&t='
+
inner_tentacleId
;
var
path
=
'subPackage/page/pages/scanCoupon/scanCoupon'
+
'?i='
+
inner_id
+
'&t='
+
inner_tentacleId
;
//打开企业微信通讯录选择会员
//打开企业微信通讯录选择会员
wx
.
qy
.
shareToExternalContact
({
wx
.
qy
.
shareToExternalContact
({
appid
:
app
.
globalData
.
appId
,
//小程序的appid
appid
:
app
.
globalData
.
appId
,
//小程序的appid
title
:
item
.
couponNam
e
,
//小程序消息的title
title
:
item
.
titl
e
,
//小程序消息的title
imgUrl
:
'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/icon_get_coupon.png'
,
//小程序消息的封面图
imgUrl
:
'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/icon_get_coupon.png'
,
//小程序消息的封面图
page
:
path
,
//小程序消息打开后的路径
page
:
path
,
//小程序消息打开后的路径
success
:
function
(
r
)
{
success
:
function
(
r
)
{
...
...
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