Commit b397f8dd by 赵雅纹

Merge branch 'fixbug-ZYW' into 'dev_7.1.0'

Fixbug zyw

See merge request !135
parents 9bb73bf4 7d9e37e2
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
</view> </view>
<view class="empty-coupon" wx:if="{{!proList || proList.length < 1}}"> <view class="empty-coupon" wx:if="{{!proList || proList.length < 1}}">
暂无订单 暂无订单商品哦~
</view> </view>
</view> </view>
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
</view> </view>
<view class="empty" wx:if="{{!orderBenefitList || orderBenefitList.length < 1}}">暂无订单收益~</view> <view class="empty" wx:if="{{!orderBenefitList || orderBenefitList.length < 1}}">暂无订单收益~</view>
<view class="benefit-tips"> <view class="benefit-tips">
<text>邀请好友只显示前50名</text> <text>促成订单默认显示前50笔</text>
</view> </view>
<!--goHome--> <!--goHome-->
<go-home /> <go-home />
......
...@@ -89,8 +89,8 @@ class Http { ...@@ -89,8 +89,8 @@ class Http {
method: 'GET', method: 'GET',
header: { header: {
'buyer-token': this.getToken(), 'buyer-token': this.getToken(),
// 'TENTACLE_CONTENT': this.getTentacle(), 'tentacle-content': this.getTentacle(),
'TENTACLE_CONTENT': '{"id":"621346354647797760","tentacleType":3,"tentacleId":"611969009872691200","contentType":1}' // 'tentacle-content': '{"id":"621346354647797760","tentacleType":3,"tentacleId":"611969009872691200","contentType":1}'
}, },
data: parmas data: parmas
}) })
...@@ -100,8 +100,8 @@ class Http { ...@@ -100,8 +100,8 @@ class Http {
method: 'GET', method: 'GET',
header: { header: {
'tunnel-token': 'aa8a1bfb7f6c5031d172d94b6574293ef954a6f2d4e16657da008e0cc15588feD', 'tunnel-token': 'aa8a1bfb7f6c5031d172d94b6574293ef954a6f2d4e16657da008e0cc15588feD',
// 'TENTACLE_CONTENT': this.getTentacle(), 'tentacle-content': this.getTentacle(),
'TENTACLE_CONTENT': '{"id":"621346354647797760","tentacleType":3,"tentacleId":"611969009872691200","contentType":1}' // 'tentacle-content': '{"id":"621346354647797760","tentacleType":3,"tentacleId":"611969009872691200","contentType":1}'
}, },
data: parmas data: parmas
...@@ -120,8 +120,8 @@ class Http { ...@@ -120,8 +120,8 @@ class Http {
method: 'POST', method: 'POST',
header: { header: {
'buyer-token': this.getToken(), 'buyer-token': this.getToken(),
// 'TENTACLE_CONTENT': this.getTentacle() 'tentacle-content': this.getTentacle()
'TENTACLE_CONTENT': '{"id":"621346354647797760","tentacleType":3,"tentacleId":"611969009872691200","contentType":1}' // 'tentacle-content': '{"id":"621346354647797760","tentacleType":3,"tentacleId":"611969009872691200","contentType":1}'
}, },
data: parmas, data: parmas,
channel: channel channel: channel
...@@ -132,8 +132,8 @@ class Http { ...@@ -132,8 +132,8 @@ class Http {
method: 'POST', method: 'POST',
header: { header: {
'tunnel-token': 'aa8a1bfb7f6c5031d172d94b6574293ef954a6f2d4e16657da008e0cc15588feD', 'tunnel-token': 'aa8a1bfb7f6c5031d172d94b6574293ef954a6f2d4e16657da008e0cc15588feD',
// 'TENTACLE_CONTENT': this.getTentacle() 'tentacle-content': this.getTentacle()
'TENTACLE_CONTENT': '{"id":"621346354647797760","tentacleType":3,"tentacleId":"611969009872691200","contentType":1}' // 'tentacle-content': '{"id":"621346354647797760","tentacleType":3,"tentacleId":"611969009872691200","contentType":1}'
}, },
data: parmas, data: parmas,
channel: channel channel: channel
...@@ -214,13 +214,11 @@ class Http { ...@@ -214,13 +214,11 @@ class Http {
getTentacle(){ getTentacle(){
let time = Date.parse(new Date()) let time = Date.parse(new Date())
let TIME_EXPIRATION = wx.getStorageSync('TIME_EXPIRATION') let TIME_EXPIRATION = wx.getStorageSync('TIME_EXPIRATION')
let storage = wx.getStorageSync('TENTACLE_CONTENT') , tentacle = null; let storage = wx.getStorageSync('TENTACLE_CONTENT') , tentacle = '';
if (storage){ if (storage){
tentacle = storage.obj; tentacle = storage.obj;
} }
console.log(tentacle)
if (tentacle && TIME_EXPIRATION > time){ if (tentacle && TIME_EXPIRATION > time){
wx.setStorageSync('TIME_EXPIRATION', time + 30*60*1000); wx.setStorageSync('TIME_EXPIRATION', time + 30*60*1000);
return JSON.stringify(tentacle); return JSON.stringify(tentacle);
...@@ -228,6 +226,8 @@ class Http { ...@@ -228,6 +226,8 @@ class Http {
wx.removeStorageSync('TENTACLE_CONTENT') wx.removeStorageSync('TENTACLE_CONTENT')
wx.removeStorageSync('TIME_EXPIRATION') wx.removeStorageSync('TIME_EXPIRATION')
} }
return JSON.stringify({});
} }
} }
......
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