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
b397f8dd
Commit
b397f8dd
authored
Sep 19, 2019
by
赵雅纹
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixbug-ZYW' into 'dev_7.1.0'
Fixbug zyw See merge request
!135
parents
9bb73bf4
7d9e37e2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
+14
-14
selectRelatedGoods.wxml
src/component/selectRelatedGoods/selectRelatedGoods.wxml
+1
-1
orderBenefit.wxml
src/subPackage/page/pages/orderBenefit/orderBenefit.wxml
+1
-1
Http.js
src/utils/Http.js
+12
-12
No files found.
src/component/selectRelatedGoods/selectRelatedGoods.wxml
View file @
b397f8dd
...
...
@@ -23,7 +23,7 @@
</view>
<view class="empty-coupon" wx:if="{{!proList || proList.length < 1}}">
暂无订单
暂无订单
商品哦~
</view>
</view>
...
...
src/subPackage/page/pages/orderBenefit/orderBenefit.wxml
View file @
b397f8dd
...
...
@@ -20,7 +20,7 @@
</view>
<view class="empty" wx:if="{{!orderBenefitList || orderBenefitList.length < 1}}">暂无订单收益~</view>
<view class="benefit-tips">
<text>
邀请好友只显示前50名
</text>
<text>
促成订单默认显示前50笔
</text>
</view>
<!--goHome-->
<go-home />
...
...
src/utils/Http.js
View file @
b397f8dd
...
...
@@ -89,8 +89,8 @@ class Http {
method
:
'GET'
,
header
:
{
'buyer-token'
:
this
.
getToken
(),
// 'TENTACLE_CONTENT
': this.getTentacle(),
'TENTACLE_CONTENT
'
:
'{"id":"621346354647797760","tentacleType":3,"tentacleId":"611969009872691200","contentType":1}'
'tentacle-content
'
:
this
.
getTentacle
(),
// 'tentacle-content
': '{"id":"621346354647797760","tentacleType":3,"tentacleId":"611969009872691200","contentType":1}'
},
data
:
parmas
})
...
...
@@ -100,8 +100,8 @@ class Http {
method
:
'GET'
,
header
:
{
'tunnel-token'
:
'aa8a1bfb7f6c5031d172d94b6574293ef954a6f2d4e16657da008e0cc15588feD'
,
// 'TENTACLE_CONTENT
': this.getTentacle(),
'TENTACLE_CONTENT
'
:
'{"id":"621346354647797760","tentacleType":3,"tentacleId":"611969009872691200","contentType":1}'
'tentacle-content
'
:
this
.
getTentacle
(),
// 'tentacle-content
': '{"id":"621346354647797760","tentacleType":3,"tentacleId":"611969009872691200","contentType":1}'
},
data
:
parmas
...
...
@@ -120,8 +120,8 @@ class Http {
method
:
'POST'
,
header
:
{
'buyer-token'
:
this
.
getToken
(),
// 'TENTACLE_CONTENT
': this.getTentacle()
'TENTACLE_CONTENT
'
:
'{"id":"621346354647797760","tentacleType":3,"tentacleId":"611969009872691200","contentType":1}'
'tentacle-content
'
:
this
.
getTentacle
()
// 'tentacle-content
': '{"id":"621346354647797760","tentacleType":3,"tentacleId":"611969009872691200","contentType":1}'
},
data
:
parmas
,
channel
:
channel
...
...
@@ -132,8 +132,8 @@ class Http {
method
:
'POST'
,
header
:
{
'tunnel-token'
:
'aa8a1bfb7f6c5031d172d94b6574293ef954a6f2d4e16657da008e0cc15588feD'
,
// 'TENTACLE_CONTENT
': this.getTentacle()
'TENTACLE_CONTENT
'
:
'{"id":"621346354647797760","tentacleType":3,"tentacleId":"611969009872691200","contentType":1}'
'tentacle-content
'
:
this
.
getTentacle
()
// 'tentacle-content
': '{"id":"621346354647797760","tentacleType":3,"tentacleId":"611969009872691200","contentType":1}'
},
data
:
parmas
,
channel
:
channel
...
...
@@ -214,13 +214,11 @@ class Http {
getTentacle
(){
let
time
=
Date
.
parse
(
new
Date
())
let
TIME_EXPIRATION
=
wx
.
getStorageSync
(
'TIME_EXPIRATION'
)
let
storage
=
wx
.
getStorageSync
(
'TENTACLE_CONTENT'
)
,
tentacle
=
null
;
let
storage
=
wx
.
getStorageSync
(
'TENTACLE_CONTENT'
)
,
tentacle
=
''
;
if
(
storage
){
tentacle
=
storage
.
obj
;
}
console
.
log
(
tentacle
)
if
(
tentacle
&&
TIME_EXPIRATION
>
time
){
wx
.
setStorageSync
(
'TIME_EXPIRATION'
,
time
+
30
*
60
*
1000
);
return
JSON
.
stringify
(
tentacle
);
...
...
@@ -228,6 +226,8 @@ class Http {
wx
.
removeStorageSync
(
'TENTACLE_CONTENT'
)
wx
.
removeStorageSync
(
'TIME_EXPIRATION'
)
}
return
JSON
.
stringify
({});
}
}
...
...
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