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
b3a518d3
You need to sign in or sign up before continuing.
Commit
b3a518d3
authored
Oct 31, 2019
by
谢中龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化代码
parent
25d801ee
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
7 deletions
+11
-7
tabBar.wxml
src/shoppingGuid/component/tabBar/tabBar.wxml
+5
-1
welfare.js
src/shoppingGuid/page/pages/welfare/welfare.js
+1
-1
Http.js
src/utils/Http.js
+2
-1
wxService.js
src/utils/wxService.js
+3
-4
No files found.
src/shoppingGuid/component/tabBar/tabBar.wxml
View file @
b3a518d3
<!--subPackage/component/tabBar/tabBar.wxml-->
<!-- <cover-view class='bottom-container'>
</cover-view> -->
<view class='bottom-tab-bar'>
<view class='tab-bar-item'
bindtap='onTapToPage'
...
...
@@ -10,4 +13,4 @@
wx:for-item="item">
<image src='{{item.isActive ? item.activeUrl : item.defaultUrl}}' mode='widthFix'></image>
</view>
</view>
</view>
\ No newline at end of file
src/shoppingGuid/page/pages/welfare/welfare.js
View file @
b3a518d3
...
...
@@ -159,7 +159,7 @@ wxService.page({
let
inner_tentacleId
=
Integer
.
digit
(
tentacleId
,
10
,
64
);
var
path
=
'pages/productDetail/productDetail'
+
'?i='
+
inner_id
+
'&t='
+
inner_tentacleId
;
// let path = 'pages/productDetail/productDetail';
console
.
log
(
'推荐商品path-----'
,
path
)
//
console.log('推荐商品path-----', path)
//打开企业微信通讯录选择会员
wx
.
qy
.
shareToExternalContact
({
appid
:
app
.
globalData
.
appId
,
//小程序的appid
...
...
src/utils/Http.js
View file @
b3a518d3
...
...
@@ -82,7 +82,7 @@ class Http {
get
(
url
,
parmas
)
{
let
baseUserInfo
=
wx
.
getStorageSync
(
'_baseUserInfo'
)
console
.
log
(
this
.
getTentacle
())
if
(
baseUserInfo
){
return
this
.
request
({
url
,
...
...
@@ -116,6 +116,7 @@ class Http {
post
(
url
,
parmas
,
channel
)
{
let
baseUserInfo
=
wx
.
getStorageSync
(
'_baseUserInfo'
)
let
guideUserInfo
=
wx
.
getStorageSync
(
'guidBaseInfo'
);
console
.
log
(
'getTentacle------'
,
this
.
getTentacle
())
// console.log('--------------header-----------------', this.getTentacle())
// console.log('--------------token-----------------', this.getToken())
...
...
src/utils/wxService.js
View file @
b3a518d3
...
...
@@ -590,21 +590,20 @@ class WXService extends Http {
if
(
item
[
'i'
])
{
item
[
'id'
]
=
Integer
.
digit
(
item
[
'i'
],
64
,
10
);
}
// id = item['memberId'];
}
if
(
item
[
'scene'
])
{
pageIsFromShare
=
true
;
let
idParam
=
decodeURIComponent
(
item
[
'scene'
]).
split
(
'&'
)[
0
]
console
.
log
(
'idParam---'
,
idParam
)
let
idParam
=
decodeURIComponent
(
item
[
'scene'
]).
split
(
'&'
)[
0
];
let
shareId
=
idParam
&&
idParam
.
split
(
'='
)[
1
]
||
0
item
[
'id'
]
=
Integer
.
digit
(
shareId
,
64
,
10
)
id
=
Integer
.
digit
(
shareId
,
64
,
10
)
;
id
=
item
[
'id'
]
;
}
});
//如果打开的是分享界面则进行触点对象信息请求并存储到本地 放到后续的header中
if
(
pageIsFromShare
)
{
//调用接口
console
.
log
(
id
)
_self
.
getTentacleContentByTentacleId
(
id
);
}
...
...
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