Commit c012eca3 by 高淑倩

modify: 订单详情

parent 7db73f90
......@@ -37,7 +37,8 @@ wxService.page({
* 生命周期函数--监听页面显示
*/
onShow () {
const { orderNo } = this.options
// const { orderNo } = this.options
const orderNo = '20190517100000'
console.log('orderNo',orderNo)
if(orderNo){
this.initOrderDetail(orderNo)
......@@ -45,7 +46,7 @@ wxService.page({
},
initOrderDetail(orderNo){
wxService.post(`/sale/order/findByOrderNo?orderNo=${orderNo}`).then(res => {
wxService.get(`/sale/order/findByOrderNo?orderNo=${orderNo}&brandId=1001`).then(res => {
this.setData({
orderDetail:res.data.ddat.content
})
......
......@@ -3,9 +3,9 @@
<view class="consumption-top">
<view class="top-ract"></view>
<view class="top-order">
<view>订单编号:<span>{{orderDetail.orderId}}</span></view>
<view>消费时间:<span>{{orderDetail.payTime}}</span></view>
<view>消费门店:<span>{{orderDetail.storeName}}</span><span class="top-statsu">{{orderDetail.status}}</span></view>
<view>订单编号:<span class="top-data">{{orderDetail.orderId}}</span></view>
<view>消费时间:<span class="top-data">{{orderDetail.payTime}}</span></view>
<view>消费门店:<span class="top-data">{{orderDetail.storeName}}</span><span class="top-statsu">{{orderDetail.status}}</span></view>
</view>
</view>
......
......@@ -2,7 +2,7 @@
.consumption {
margin: 46rpx;
box-shadow: 0 0 10px #888;
box-shadow: 0 0 10px #eee;
padding:40rpx;
position: relative;
/* background-color: pink; */
......@@ -72,27 +72,31 @@
padding-left: 20rpx;
}
.semi-circle3{
width: 15px;
height: 30px;
box-shadow: 5px 0px 5px -2px#eee inset;
border-radius:50px 0 0 50px; /* 左上、右上、右下、左下 */
width: 30rpx;
height: 60rpx;
box-shadow: 5rpx 0rpx 10rpx -2rpx #eee inset;
border-radius: 100rpx 0 0 100rpx; /* 左上、右上、右下、左下 */
position: absolute;
right: 0;
bottom: 32%;
bottom: 35%;
}
.semi-circle4{
width:15px;
height: 30px;
box-shadow: -5px 0px 5px -2px#eee inset;
border-radius:0 50px 50px 0;
width: 30rpx;
height: 60rpx;
box-shadow: -4rpx 0rpx 8rpx -2rpx #eee inset;
border-radius:0 100rpx 100rpx 0;
position: absolute;
left: 0;
bottom: 32%;
bottom: 35%;
}
.consumption-line {
display: flex;
justify-content: space-between;
border-bottom: 1px dashed #ccc;
margin-bottom:60rpx;
}
.top-data{
padding-left: 20rpx;
}
\ No newline at end of file
......@@ -85,7 +85,7 @@ class Http {
method: 'GET',
header: {
// 'buyer-token': this.getToken()
// 'buyer-token': '187ef4436122d1cc2f40dc2b92f0eba0'
'buyer-token': '187ef4436122d1cc2f40dc2b92f0eba0'
},
data: parmas
})
......@@ -97,7 +97,7 @@ class Http {
method: 'POST',
header: {
// 'buyer-token': wx.getStorageSync('token')
// 'buyer-token':'187ef4436122d1cc2f40dc2b92f0eba0'
'buyer-token':'187ef4436122d1cc2f40dc2b92f0eba0'
},
data: parmas,
channel: channel
......
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