Commit c012eca3 by 高淑倩

modify: 订单详情

parent 7db73f90
...@@ -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
}) })
......
...@@ -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>
......
...@@ -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: 15px; width: 30rpx;
height: 30px; height: 60rpx;
box-shadow: 5px 0px 5px -2px#eee inset; box-shadow: 5rpx 0rpx 10rpx -2rpx #eee inset;
border-radius:50px 0 0 50px; /* 左上、右上、右下、左下 */ border-radius: 100rpx 0 0 100rpx; /* 左上、右上、右下、左下 */
position: absolute; position: absolute;
right: 0; right: 0;
bottom: 32%; bottom: 35%;
} }
.semi-circle4{ .semi-circle4{
width:15px; width: 30rpx;
height: 30px; height: 60rpx;
box-shadow: -5px 0px 5px -2px#eee inset; box-shadow: -4rpx 0rpx 8rpx -2rpx #eee inset;
border-radius:0 50px 50px 0; border-radius:0 100rpx 100rpx 0;
position: absolute; position: absolute;
left: 0; left: 0;
bottom: 32%; bottom: 35%;
} }
.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
...@@ -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
......
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