Compare commits

...

2 Commits

Author SHA1 Message Date
747c1645ec 切换git 2025-04-01 00:55:43 +08:00
34ad2076f0 日常提交 2025-03-28 20:18:53 +08:00
6 changed files with 32 additions and 29 deletions

View File

@ -45,6 +45,12 @@
"iconPath": "assets/icon/tabs/tab1.png",
"selectedIconPath": "assets/icon/tabs/tab1-active.png"
},
{
"pagePath": "pages/shop/index/index",
"text": "生活圈",
"iconPath": "assets/icon/tabs/tab2.png",
"selectedIconPath": "assets/icon/tabs/tab2-active.png"
},
{
"pagePath": "pages/order/index/index",
"text": "订单",

View File

@ -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({

View File

@ -87,11 +87,12 @@
<view class="bottom-bar-v2"
wx:if="{{orderDetail.status==merchantOrderStatus.created||orderDetail.status==merchantOrderStatus.unverified}}">
<!-- <button class="button button1" plain size="mini">取消订单</button> -->
<button type="primary" wx:if="{{orderDetail.status==merchantOrderStatus.created}}"
<button class="button btn-cancel" plain size="mini"
wx:if="{{orderDetail.order.status==orderStatus.created}}">取消订单</button>
<button class="button btn-pay" type="primary" wx:if="{{orderDetail.status.status==orderStatus.created}}"
bind:tap="pay">去支付</button>
<button class="button button2" plain size="mini" bind:tap="refund" loading="{{refunding}}"
wx:if="{{orderDetail.status==merchantOrderStatus.unverified}}">申请退款</button>
<button class="button btn-re-order" plain size="mini" bind:tap="refund" loading="{{refunding}}"
wx:if="{{orderDetail.order.status==orderStatus.complete}}">再来一单</button>
</view>
</view>
<merchant-order id="merchantOrderComponent" bind:paySuccess="paySuccess"/>

View File

@ -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;
}

View File

@ -75,8 +75,8 @@ Page({
onLoad(options) {
app.globalData.needRefreshOrderList = false;
if(app.globalData.accessToken){
this.pager.tab1.loading = false;
this.pager.tab3.loading = false;
this.data.pager.tab1.loading = false;
this.data.pager.tab3.loading = false;
this.loadOrderList();
this.loadMerchantOrderList();

View File

@ -1,17 +1,17 @@
<!-- <nav-bar class="nav-bar"/> -->
<view class="custom-scroll-view">
<!-- <view class="tab-bar">
<view class="tab-bar">
<view class="item-container {{tabIndex==0?'current':''}}" bind:tap="changeTab" data-index="0">
<view class="item">配送订单</view>
</view> -->
</view>
<!-- <view class="item-container {{tabIndex==1?'current':''}}" bind:tap="changeTab" data-index="1">
<view class="item">消费买单</view>
</view> -->
<!-- <view class="item-container {{tabIndex==2?'current':''}}" bind:tap="changeTab" data-index="2">
<view class="item-container {{tabIndex==2?'current':''}}" bind:tap="changeTab" data-index="2">
<view class="item">商品订单</view>
</view>
</view> -->
</view>
<!-- <swiper style="height:{{scrollViewHeight*2}}rpx"> -->
<!-- 跑腿列表 -->