diff --git a/pages/order/detail-group/index.js b/pages/order/detail-group/index.js index 141e15b..b8c980f 100644 --- a/pages/order/detail-group/index.js +++ b/pages/order/detail-group/index.js @@ -13,7 +13,7 @@ Page({ qrcodeUrl:'', lng:0, lat:0, - merchantOrderStatus:shopApi.merchantOrderStatus, + orderStatus:shopApi.merchantOrderStatus, merchantOrderStatusKV:shopApi.merchantOrderStatusKV, genderKV:userApi.genderKV, @@ -46,24 +46,17 @@ Page({ onLoad(options) { this.data.orderId = options.id; this.setScrollViewHieght(); - app.getLocation().then((data)=>{ - this.setData({ - lng:data.longitude, - lat:data.latitude, - }); - this.getOrderDetail(); - }).catch(()=>{ - this.getOrderDetail(); - }); + + this.getOrderDetail(); }, setScrollViewHieght(){ const windowInfo = wx.getWindowInfo(); let height = windowInfo.windowHeight; - console.log(this.data.orderDetail.status==this.data.merchantOrderStatus.created, - this.data.orderDetail.status==this.data.merchantOrderStatus.unverified); + console.log(this.data.orderDetail.status==this.data.orderStatus.created, + this.data.orderDetail.status==this.data.orderStatus.unverified); if(this.data.orderDetail&&this.data.orderDetail.id){ - if(this.data.orderDetail.status==this.data.merchantOrderStatus.created|| - this.data.orderDetail.status==this.data.merchantOrderStatus.unverified){ + if(this.data.orderDetail.status==this.data.orderStatus.created|| + this.data.orderDetail.status==this.data.orderStatus.unverified){ height = height - 94; } } @@ -96,7 +89,7 @@ Page({ orderDetail:data, refresherTriggered:false }); - if(data.status==this.data.merchantOrderStatus.unverified){ + if(data.status==this.data.orderStatus.unverified){ this.getQRCode(); }else{ this.setData({ diff --git a/pages/order/detail-group/index.wxml b/pages/order/detail-group/index.wxml index 1b16d3f..65f4110 100644 --- a/pages/order/detail-group/index.wxml +++ b/pages/order/detail-group/index.wxml @@ -87,11 +87,12 @@ - - + - + \ No newline at end of file diff --git a/pages/order/detail-group/index.wxss b/pages/order/detail-group/index.wxss index b6927e2..b237cab 100644 --- a/pages/order/detail-group/index.wxss +++ b/pages/order/detail-group/index.wxss @@ -161,20 +161,23 @@ .bottom-bar-v2{ - text-align: right; + display: flex; + justify-content:flex-end; } .bottom-bar-v2 .button{ line-height: 72rpx; padding:0 36rpx; font-weight: normal; border-radius: 18rpx; + margin:0!important; + gap: 30rpx; } -.bottom-bar-v2 .button1{ +.bottom-bar-v2 .btn-cancel,.bottom-bar-v2 .btn-re-order{ color: #555555; border: 1rpx solid rgba(153, 153, 153, 0.5); font-size: 32rpx; } -.bottom-bar-v2 .button2{ +.bottom-bar-v2 .btn-pay{ font-size: 32rpx; - margin-left:30rpx; + flex:1; } \ No newline at end of file