Commit 9e170811 by 赵雅纹

触点bug

parent c4e1c6e7
...@@ -3,7 +3,9 @@ ...@@ -3,7 +3,9 @@
<view class="pro-nav-wrap"> <view class="pro-nav-wrap">
<view class="nav-list"> <view class="nav-list">
<block wx:for="{{navTab}}" wx:key="{{index}}"> <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> </block>
</view> </view>
<view class="pro-style" bindtap="switchProStyle"> <view class="pro-style" bindtap="switchProStyle">
......
...@@ -109,7 +109,8 @@ class Http { ...@@ -109,7 +109,8 @@ class Http {
post (url, parmas, channel) { post (url, parmas, channel) {
let baseUserInfo = wx.getStorageSync('_baseUserInfo') let baseUserInfo = wx.getStorageSync('_baseUserInfo')
console.log('has base info ----',baseUserInfo)
console.log('header tentacle info ----', this.getTentacle())
if(baseUserInfo){ if(baseUserInfo){
return this.request({ return this.request({
url, url,
...@@ -213,8 +214,10 @@ class Http { ...@@ -213,8 +214,10 @@ class Http {
tentacle = storage.obj; tentacle = storage.obj;
} }
console.log(tentacle)
if (tentacle && TIME_EXPIRATION > time){ if (tentacle && TIME_EXPIRATION > time){
wx.setStorageSync('TIME_EXPIRATION', time) wx.setStorageSync('TIME_EXPIRATION', time + 30*60*1000);
return JSON.stringify(tentacle); return JSON.stringify(tentacle);
}else{ }else{
wx.removeStorageSync('TENTACLE_CONTENT') wx.removeStorageSync('TENTACLE_CONTENT')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment