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
c012eca3
Commit
c012eca3
authored
May 24, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: 订单详情
parent
7db73f90
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
18 deletions
+24
-18
consumptionDetails.js
src/pages/consumptionDetails/consumptionDetails.js
+3
-2
consumptionDetails.wxml
src/pages/consumptionDetails/consumptionDetails.wxml
+3
-3
consumptionDetails.wxss
src/pages/consumptionDetails/consumptionDetails.wxss
+16
-11
Http.js
src/utils/Http.js
+2
-2
No files found.
src/pages/consumptionDetails/consumptionDetails.js
View file @
c012eca3
...
@@ -37,7 +37,8 @@ wxService.page({
...
@@ -37,7 +37,8 @@ wxService.page({
* 生命周期函数--监听页面显示
* 生命周期函数--监听页面显示
*/
*/
onShow
()
{
onShow
()
{
const
{
orderNo
}
=
this
.
options
// const { orderNo } = this.options
const
orderNo
=
'20190517100000'
console
.
log
(
'orderNo'
,
orderNo
)
console
.
log
(
'orderNo'
,
orderNo
)
if
(
orderNo
){
if
(
orderNo
){
this
.
initOrderDetail
(
orderNo
)
this
.
initOrderDetail
(
orderNo
)
...
@@ -45,7 +46,7 @@ wxService.page({
...
@@ -45,7 +46,7 @@ wxService.page({
},
},
initOrderDetail
(
orderNo
){
initOrderDetail
(
orderNo
){
wxService
.
post
(
`/sale/order/findByOrderNo?orderNo=
${
orderNo
}
`
).
then
(
res
=>
{
wxService
.
get
(
`/sale/order/findByOrderNo?orderNo=
${
orderNo
}
&brandId=1001
`
).
then
(
res
=>
{
this
.
setData
({
this
.
setData
({
orderDetail
:
res
.
data
.
ddat
.
content
orderDetail
:
res
.
data
.
ddat
.
content
})
})
...
...
src/pages/consumptionDetails/consumptionDetails.wxml
View file @
c012eca3
...
@@ -3,9 +3,9 @@
...
@@ -3,9 +3,9 @@
<view class="consumption-top">
<view class="consumption-top">
<view class="top-ract"></view>
<view class="top-ract"></view>
<view class="top-order">
<view class="top-order">
<view>订单编号:<span>{{orderDetail.orderId}}</span></view>
<view>订单编号:<span
class="top-data"
>{{orderDetail.orderId}}</span></view>
<view>消费时间:<span>{{orderDetail.payTime}}</span></view>
<view>消费时间:<span
class="top-data"
>{{orderDetail.payTime}}</span></view>
<view>消费门店:<span>{{orderDetail.storeName}}</span><span class="top-statsu">{{orderDetail.status}}</span></view>
<view>消费门店:<span
class="top-data"
>{{orderDetail.storeName}}</span><span class="top-statsu">{{orderDetail.status}}</span></view>
</view>
</view>
</view>
</view>
...
...
src/pages/consumptionDetails/consumptionDetails.wxss
View file @
c012eca3
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
.consumption {
.consumption {
margin: 46rpx;
margin: 46rpx;
box-shadow: 0 0 10px #
888
;
box-shadow: 0 0 10px #
eee
;
padding:40rpx;
padding:40rpx;
position: relative;
position: relative;
/* background-color: pink; */
/* background-color: pink; */
...
@@ -72,27 +72,31 @@
...
@@ -72,27 +72,31 @@
padding-left: 20rpx;
padding-left: 20rpx;
}
}
.semi-circle3{
.semi-circle3{
width:
15
px;
width:
30r
px;
height:
30
px;
height:
60r
px;
box-shadow: 5
px 0px 5px -2px
#eee inset;
box-shadow: 5
rpx 0rpx 10rpx -2rpx
#eee inset;
border-radius:
50px 0 0 50
px; /* 左上、右上、右下、左下 */
border-radius:
100rpx 0 0 100r
px; /* 左上、右上、右下、左下 */
position: absolute;
position: absolute;
right: 0;
right: 0;
bottom: 3
2
%;
bottom: 3
5
%;
}
}
.semi-circle4{
.semi-circle4{
width:
15
px;
width:
30r
px;
height:
30
px;
height:
60r
px;
box-shadow: -
5px 0px 5px -2px
#eee inset;
box-shadow: -
4rpx 0rpx 8rpx -2rpx
#eee inset;
border-radius:0
50px 50
px 0;
border-radius:0
100rpx 100r
px 0;
position: absolute;
position: absolute;
left: 0;
left: 0;
bottom: 3
2
%;
bottom: 3
5
%;
}
}
.consumption-line {
.consumption-line {
display: flex;
display: flex;
justify-content: space-between;
justify-content: space-between;
border-bottom: 1px dashed #ccc;
border-bottom: 1px dashed #ccc;
margin-bottom:60rpx;
}
.top-data{
padding-left: 20rpx;
}
}
\ No newline at end of file
src/utils/Http.js
View file @
c012eca3
...
@@ -85,7 +85,7 @@ class Http {
...
@@ -85,7 +85,7 @@ class Http {
method
:
'GET'
,
method
:
'GET'
,
header
:
{
header
:
{
// 'buyer-token': this.getToken()
// 'buyer-token': this.getToken()
//
'buyer-token': '187ef4436122d1cc2f40dc2b92f0eba0'
'buyer-token'
:
'187ef4436122d1cc2f40dc2b92f0eba0'
},
},
data
:
parmas
data
:
parmas
})
})
...
@@ -97,7 +97,7 @@ class Http {
...
@@ -97,7 +97,7 @@ class Http {
method
:
'POST'
,
method
:
'POST'
,
header
:
{
header
:
{
// 'buyer-token': wx.getStorageSync('token')
// 'buyer-token': wx.getStorageSync('token')
//
'buyer-token':'187ef4436122d1cc2f40dc2b92f0eba0'
'buyer-token'
:
'187ef4436122d1cc2f40dc2b92f0eba0'
},
},
data
:
parmas
,
data
:
parmas
,
channel
:
channel
channel
:
channel
...
...
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