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
c4f669e6
Commit
c4f669e6
authored
May 28, 2019
by
daqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: 消费列表
parent
c5f44c4a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
14 deletions
+15
-14
consumptionDetails.js
src/pages/consumptionDetails/consumptionDetails.js
+2
-4
mySpend.js
src/pages/mySpend/mySpend.js
+7
-1
mySpend.wxml
src/pages/mySpend/mySpend.wxml
+6
-9
No files found.
src/pages/consumptionDetails/consumptionDetails.js
View file @
c4f669e6
...
...
@@ -33,9 +33,7 @@ wxService.page({
* 生命周期函数--监听页面显示
*/
onShow
()
{
// const { orderNo } = this.options
const
orderNo
=
'20190517100000'
console
.
log
(
'orderNo'
,
orderNo
)
const
{
orderNo
}
=
this
.
options
if
(
orderNo
){
this
.
initOrderDetail
(
orderNo
)
}
...
...
@@ -45,7 +43,7 @@ wxService.page({
wx
.
showLoading
({
title
:
'加载中'
})
wxService
.
get
(
`/sale/order/findByOrderNo?orderNo=
${
orderNo
}
&brandId=100
1
`
).
then
(
res
=>
{
wxService
.
get
(
`/sale/order/findByOrderNo?orderNo=
${
orderNo
}
&brandId=100
2
`
).
then
(
res
=>
{
const
{
result
,
data
}
=
res
.
data
if
(
result
==
0
){
wx
.
hideLoading
()
...
...
src/pages/mySpend/mySpend.js
View file @
c4f669e6
...
...
@@ -26,13 +26,19 @@ wxService.page({
*/
onShow
:
function
()
{
// const { orderNo } = this.options
const
orderNo
=
'700000000013
498
'
const
orderNo
=
'700000000013
545
'
if
(
orderNo
){
this
.
initOrderList
(
this
.
data
.
pageNo
,
this
.
data
.
pageSize
,
orderNo
)
}
},
goDetail
(
e
)
{
console
.
log
(
'e'
,
e
.
currentTarget
.
dataset
)
const
{
orderNo
}
=
e
.
currentTarget
.
dataset
// pages/consumptionDetails/consumptionDetails
wxService
.
router
(
`/pages/consumptionDetails/consumptionDetails?orderNo=
${
orderNo
}
`
)
},
//获取消费列表
initOrderList
(
pageNo
,
pageSize
,
orderNo
){
wx
.
showLoading
({
...
...
src/pages/mySpend/mySpend.wxml
View file @
c4f669e6
<!--pages/userCenter.wxml-->
<view class='page-mySpend'>
<scroll-view scroll-y bindscrolltolower="bindDownLoad">
<!-- <view class='spend-wrap' wx:for='{{orderList}}' wx:for-item="item" wx:for-index="k" wx:key="{{k}}"> -->
<navigator url='/pages/consumptionDetails/consumptionDetails' hover-class='none'>
<view class='spend-list'>
<view class='spend-id fs-22'>订单编号:{{item.orderId}}</view>
<view class='spend-time fs-25'>消费时间:{{item.createTime}}</view>
<view class='spend-wrap' wx:for='{{orderList}}' wx:for-item="item" wx:for-index="k" wx:key="{{k}}">
<view class='spend-list' data-order-no="{{item.orderNo}}" bindtap="goDetail">
<view class='spend-id fs-22'>订单编号:{{item.orderNo}}</view>
<view class='spend-time fs-25'>消费时间:{{item.payTime}}</view>
<view class='spend-shop fs-25'>消费门店:{{item.storeName}}</view>
<view class="spend-status fs-22
{{true ? 'fail-status' : ''}}
">交易成功</view>
<view class="spend-status fs-22">交易成功</view>
</view>
</navigator>
<!-- </view> -->
</view>
</scroll-view>
<no-more wx:if="{{noMore}}"/>
</view>
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