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
9e170811
Commit
9e170811
authored
Sep 18, 2019
by
赵雅纹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
触点bug
parent
c4e1c6e7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
categoryPro.wxml
src/subPackage/page/pages/categoryPro/categoryPro.wxml
+3
-1
Http.js
src/utils/Http.js
+5
-2
No files found.
src/subPackage/page/pages/categoryPro/categoryPro.wxml
View file @
9e170811
...
...
@@ -3,7 +3,9 @@
<view class="pro-nav-wrap">
<view class="nav-list">
<block wx:for="{{navTab}}" wx:key="{{index}}">
<view class="nav-item {{currentTab == item.type ? 'nav-active' : ''}}" bindtap="switchTab" data-type="{{item.type}}">{{item.name}}</view>
<view class="nav-item {{currentTab == item.type ? 'nav-active' : ''}}" bindtap="switchTab" data-type="{{item.type}}">{{item.name}}
<!-- <image mode="widthFix" src="{{}}"></image> -->
</view>
</block>
</view>
<view class="pro-style" bindtap="switchProStyle">
...
...
src/utils/Http.js
View file @
9e170811
...
...
@@ -109,7 +109,8 @@ class Http {
post
(
url
,
parmas
,
channel
)
{
let
baseUserInfo
=
wx
.
getStorageSync
(
'_baseUserInfo'
)
console
.
log
(
'has base info ----'
,
baseUserInfo
)
console
.
log
(
'header tentacle info ----'
,
this
.
getTentacle
())
if
(
baseUserInfo
){
return
this
.
request
({
url
,
...
...
@@ -213,8 +214,10 @@ class Http {
tentacle
=
storage
.
obj
;
}
console
.
log
(
tentacle
)
if
(
tentacle
&&
TIME_EXPIRATION
>
time
){
wx
.
setStorageSync
(
'TIME_EXPIRATION'
,
time
)
wx
.
setStorageSync
(
'TIME_EXPIRATION'
,
time
+
30
*
60
*
1000
);
return
JSON
.
stringify
(
tentacle
);
}
else
{
wx
.
removeStorageSync
(
'TENTACLE_CONTENT'
)
...
...
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