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
b7021a81
Commit
b7021a81
authored
Oct 28, 2019
by
谢中龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交配置
parent
5e4bc91e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
16 deletions
+16
-16
app.js
src/app.js
+3
-3
index.js
src/config/index.js
+1
-1
project.config.json
src/project.config.json
+1
-1
couponQrcode.js
src/shoppingGuid/page/pages/couponQrcode/couponQrcode.js
+7
-7
welfare.js
src/shoppingGuid/page/pages/welfare/welfare.js
+4
-4
No files found.
src/app.js
View file @
b7021a81
...
...
@@ -112,7 +112,7 @@ App({
systemInfo
:
wx
.
getSystemInfoSync
(),
ctx
:
envInfo
.
ctx
,
openCard
:
false
,
appId
:
'wx
c3b64b09b1d3dfc2
'
,
appId
:
'wx
ac09792264c49b5c
'
,
userNo
:
null
,
storeId
:
''
,
storeName
:
''
,
...
...
@@ -125,8 +125,8 @@ App({
cityJson
:
cityJson
,
// brandId: 2711,
// brandId: 2005,
brandId
:
1001
,
//
brandId: 1002,
//
brandId: 1001,
brandId
:
1002
,
// brandId: 3001,
// brandId: 3002,
}
...
...
src/config/index.js
View file @
b7021a81
...
...
@@ -5,7 +5,7 @@
// 组件plus 中数据请求 token 修改
// app.js 中brandId 修改为对应
const
PROJECT_ENV
=
'
dev
'
// 生产 prod, 开发 dev, 测试 test, 预生产 pre
const
PROJECT_ENV
=
'
test
'
// 生产 prod, 开发 dev, 测试 test, 预生产 pre
const
needMock
=
''
//
// appid_dev_wx wxc3b64b09b1d3dfc2
...
...
src/project.config.json
View file @
b7021a81
...
...
@@ -13,7 +13,7 @@
},
"compileType"
:
"miniprogram"
,
"libVersion"
:
"2.8.2"
,
"appid"
:
"wx
c3b64b09b1d3dfc2
"
,
"appid"
:
"wx
ac09792264c49b5c
"
,
"projectname"
:
"%E5%BE%AE%E5%95%86%E5%9F%8E"
,
"debugOptions"
:
{
"hidedInDevtools"
:
[]
...
...
src/shoppingGuid/page/pages/couponQrcode/couponQrcode.js
View file @
b7021a81
...
...
@@ -44,25 +44,25 @@ wxService.page({
//获取小程序码
getMiniQrcode
(
id
){
// subPackage / page / pages / scanCoupon / scanCoupon
let
currentUserInfo
=
wx
.
getStorageSync
(
'
guidBase
Info'
);
let
currentUserInfo
=
wx
.
getStorageSync
(
'
_guidCoupon
Info'
);
let
memberId
=
currentUserInfo
.
memberId
;
let
content
=
{
title
:
this
.
data
.
couponInfo
.
couponNam
e
,
id
:
this
.
data
.
couponInfo
.
couponI
d
,
url
:
this
.
data
.
coupon
Info
.
imageBg
title
:
currentUserInfo
.
titl
e
,
id
:
currentUserInfo
.
i
d
,
url
:
currentUser
Info
.
imageBg
}
let
tentacleInfo
=
{
content
:
JSON
.
stringify
(
content
),
contentId
:
this
.
data
.
couponInfo
.
couponI
d
,
contentId
:
currentUserInfo
.
i
d
,
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
PRODUCT_DETAIL
,
//内容类型 STAFF_RECOMMAND
title
:
this
.
data
.
couponInfo
.
couponNam
e
,
//标题
title
:
currentUserInfo
.
titl
e
,
//标题
type
:
3
// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
}
wxService
.
getTentacleContent
(
tentacleInfo
).
then
(
res
=>
{
if
(
res
&&
res
.
id
)
{
let
tentacleId
=
res
.
id
;
let
inner_id
=
Integer
.
digit
(
this
.
data
.
couponInfo
.
couponI
d
,
10
,
64
);
let
inner_id
=
Integer
.
digit
(
currentUserInfo
.
i
d
,
10
,
64
);
let
inner_tentacleId
=
Integer
.
digit
(
tentacleId
,
10
,
64
);
//生成二维码
...
...
src/shoppingGuid/page/pages/welfare/welfare.js
View file @
b7021a81
...
...
@@ -97,16 +97,16 @@ wxService.page({
let
item
=
e
.
currentTarget
.
dataset
.
item
;
let
id
=
item
.
id
;
let
content
=
{
title
:
item
.
couponNam
e
,
id
:
item
.
couponI
d
,
title
:
item
.
titl
e
,
id
:
item
.
i
d
,
url
:
item
.
imageBg
}
let
tentacleInfo
=
{
content
:
JSON
.
stringify
(
content
),
contentId
:
item
.
couponI
d
,
contentId
:
item
.
i
d
,
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
PRODUCT_DETAIL
,
//内容类型 STAFF_RECOMMAND
title
:
item
.
couponNam
e
,
//标题
title
:
item
.
titl
e
,
//标题
type
:
3
// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
}
...
...
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