Commit 9e170811 by 赵雅纹

触点bug

parent c4e1c6e7
......@@ -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">
......
......@@ -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')
......
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