wangfukang 3 weeks ago
parent
commit
3d9a362360
  1. 572
      components/tab-bar/delivery.vue
  2. 2
      components/tab-bar/tab-bar.vue
  3. 20
      package1/group/groupBuySingle.vue
  4. 3
      package1/order/returnOrder.vue
  5. 54
      package1/runErrand/runErrand.vue
  6. 2
      package2/shop/merchantCenter.vue
  7. 10
      package2/shop/orderDetail.vue
  8. 36
      package2/shop/shopOrderList.vue
  9. 14
      pages/index/index.vue

572
components/tab-bar/delivery.vue

File diff suppressed because it is too large

2
components/tab-bar/tab-bar.vue

@ -197,7 +197,7 @@
background: rgba(255, 255, 255, 1); background: rgba(255, 255, 255, 1);
margin: 0 auto; margin: 0 auto;
display: flex; display: flex;
z-index: 9; z-index: 998;
border-top: 1px solid #eee; border-top: 1px solid #eee;
border-top-left-radius: 60rpx; border-top-left-radius: 60rpx;
border-top-right-radius: 60rpx; border-top-right-radius: 60rpx;

20
package1/group/groupBuySingle.vue

@ -822,8 +822,7 @@
methods: { methods: {
// touchmovegoods-list // touchmovegoods-list
onPageTouchMove(e) { onPageTouchMove(e) {
// scroll-view
console.log(e)
}, },
// goods-list + // goods-list +
onGoodsListScroll(e) { onGoodsListScroll(e) {
@ -905,7 +904,7 @@
if (this.productItem[i].sellBeginTime != '' && this.productItem[i].sellEndTime != '') { if (this.productItem[i].sellBeginTime != '' && this.productItem[i].sellEndTime != '') {
let isEndTime = this.isWithinBusinessHours(this.productItem[i].sellBeginTime, this let isEndTime = this.isWithinBusinessHours(this.productItem[i].sellBeginTime, this
.productItem[i].sellEndTime) .productItem[i].sellEndTime)
console.log(isEndTime)
this.productItem[i].status = isEndTime ? 0 : 1 this.productItem[i].status = isEndTime ? 0 : 1
} }
if (that.productItem[i].isMoreBuy == 1) { if (that.productItem[i].isMoreBuy == 1) {
@ -1034,9 +1033,7 @@
}); });
} }
} }
} catch (e) { } catch (e) {}
console.log(e);
}
} }
this.isPintuan = true; this.isPintuan = true;
@ -1169,9 +1166,7 @@
}); });
} }
} }
} catch (e) { } catch (e) {}
console.log(e);
}
} }
if (index == 'pintuan') { if (index == 'pintuan') {
@ -1454,7 +1449,6 @@
const startMinutes = parseTime(begin); const startMinutes = parseTime(begin);
const endMinutes = parseTime(end); const endMinutes = parseTime(end);
console.log(currentMinutes + ',' + startMinutes + ',' + endMinutes)
// //
return currentMinutes >= startMinutes && currentMinutes <= endMinutes; return currentMinutes >= startMinutes && currentMinutes <= endMinutes;
@ -1501,9 +1495,9 @@
}, },
goDetail(type) { goDetail(type) {
if (type == 'goodsDetail') { if (type == 'goodsDetail') {
uni.navigateTo({ // uni.navigateTo({
url: '/package1/goods/goodsDetail' // url: '/package1/goods/goodsDetail'
}) // })
} else if (type == 'shopDetail') { } else if (type == 'shopDetail') {
uni.navigateTo({ uni.navigateTo({
url: '/package1/group/groupBuyDetail?item=' + JSON.stringify(this.shopItem) url: '/package1/group/groupBuyDetail?item=' + JSON.stringify(this.shopItem)

3
package1/order/returnOrder.vue

@ -890,8 +890,7 @@
background: #fff; background: #fff;
max-height: 1200rpx; max-height: 1200rpx;
width: 100%; width: 100%;
border-top-left-radius: 20rpx; border-radius: 20rpx;
border-top-right-radius: 20rpx;
padding: 20rpx; padding: 20rpx;
overflow: scroll; overflow: scroll;
} }

54
package1/runErrand/runErrand.vue

@ -207,41 +207,39 @@
<view class="content-title"> <view class="content-title">
订单备注 订单备注
</view> </view>
<view style="height: 200rpx;background: rgba(247, 248, 248, 0.6);border-radius: 40rpx;padding: 20rpx;width: 70%;margin-top: 20rpx;"> <view style="height: 200rpx;background: rgba(247, 248, 248, 0.6);border-radius: 40rpx;padding: 20rpx;margin-top: 20rpx;flex: 1;">
<textarea v-model="addFormData.remark" cols="30" rows="10" placeholder="请填写备注" style="height: 160rpx;width: 100%;"></textarea> <textarea v-model="addFormData.remark" cols="30" rows="10" placeholder="请填写备注" style="height: 160rpx;width: 100%;"></textarea>
</view> </view>
</view> </view>
</view> <view style="display: flex;height: 80rpx;line-height: 80rpx;font-weight: 700; align-items:center;padding: 0 4%;border-top: 1px solid #eee;margin-top: 10px;" @tap="openCouponPopup">
<view style="flex: 1;">
<view style="display: flex;height: 80rpx;line-height: 80rpx;font-weight: 700; align-items:center;padding: 0 4%;" @tap="openCouponPopup"> 优惠券
<view style="flex: 1;"> </view>
优惠券 <view style="color: #ff5722;" v-if="selectedCoupon">
</view> -{{selectedCoupon.discountAmount.toFixed(2)}}
<view style="color: #ff5722;" v-if="selectedCoupon"> </view>
-{{selectedCoupon.discountAmount.toFixed(2)}} <view style="color: #0b9b73;" v-else-if="availableCoupons.length > 0">
</view> {{availableCoupons.length}} 张可用
<view style="color: #0b9b73;" v-else-if="availableCoupons.length > 0"> </view>
{{availableCoupons.length}} 张可用 <view style="color: #999;" v-else>
</view> 无可用券
<view style="color: #999;" v-else> </view>
无可用券 <uni-icons type="right" size="14" color="#999" style="margin-left:10rpx;"></uni-icons>
</view> </view>
<uni-icons type="right" size="14" color="#999" style="margin-left:10rpx;"></uni-icons> <view style="height: 80rpx;line-height: 80rpx;display: flex;padding: 0 4%;">
</view> <view style="flex: 1;font-weight: 700;">
<view style="height: 80rpx;line-height: 80rpx;display: flex;padding: 0 4%;"> {{isKuaidi?'代取配送费':'跑腿费'}}
<view style="flex: 1;font-weight: 700;"> </view>
{{isKuaidi?'代取配送费':'跑腿费'}} <view style="color: #000;font-weight:700;">
{{deliveryFeeCalc.toFixed(2)}}
</view>
</view> </view>
<view style="color: #000;font-weight:700;">
{{deliveryFeeCalc.toFixed(2)}} <view style="display: flex;height: 80rpx;line-height: 100rpx;font-weight: 700;padding: 0 4%;">
<view style="flex: 1;">合计</view>
<view>{{totalAmountCalc.toFixed(2)}}</view>
</view> </view>
</view> </view>
<view style="display: flex;height: 80rpx;line-height: 100rpx;font-weight: 700;padding: 0 4%;">
<view style="flex: 1;">合计</view>
<view>{{totalAmountCalc.toFixed(2)}}</view>
</view>
<view style="width: 100%;height: 520rpx;"></view> <view style="width: 100%;height: 520rpx;"></view>
</view> </view>

2
package2/shop/merchantCenter.vue

@ -17,7 +17,7 @@
</view> </view>
<view class="title2"> <view class="title2">
<view class="title22"> <view class="title22">
{{shop.shopName}} {{shop.shopName == undefined ?"":shop.shopName}}
</view> </view>
<view class="title33" @tap="updateStatus"> <view class="title33" @tap="updateStatus">
{{businessStatus == '1'?'暂停营业':'正常营业'}} {{businessStatus == '1'?'暂停营业':'正常营业'}}

10
package2/shop/orderDetail.vue

@ -13,8 +13,8 @@
</view> </view>
<view class="content"> <view class="content">
<view class="box1" style="display: flex;font-size: 28rpx;font-weight: 700;"> <view class="box1" style="display: flex;font-size: 28rpx;font-weight: 700;">
<text>{{'#'+data.numberCode}}</text> <text v-if="item.numberCode" style="margin-left: 20rpx;">{{'#'+data.numberCode}}</text>
<text style="margin: 0 20rpx;">期望送达</text> <text style="margin-right: 20rpx;">期望送达</text>
<text>明天 06:30</text> <text>明天 06:30</text>
<text style="flex: 1;text-align: right;color: red;"> <text style="flex: 1;text-align: right;color: red;">
{{data.status == 0?'待支付':data.status == 2?'待配送员接单':(data.status == 3 && data.deliveryType == 1 && data.shopMakeTime == null) || (data.status == 3 && data.deliveryType == 2 && data.userRequireMake == 1)?'待出餐':(data.status == 3 && data.deliveryType == 1 && data.shopMakeTime != null)?'待取货':(data.status == 3 && data.deliveryType == 2)?'待消费':data.status == 4?'待送达':data.status == 5?'已完成':data.status == 7?'待同意退款':data.status == 8?'已退款':data.status == 6?'已取消':data.status == 11?'售后中':data.status == 12?'已售后':""}} {{data.status == 0?'待支付':data.status == 2?'待配送员接单':(data.status == 3 && data.deliveryType == 1 && data.shopMakeTime == null) || (data.status == 3 && data.deliveryType == 2 && data.userRequireMake == 1)?'待出餐':(data.status == 3 && data.deliveryType == 1 && data.shopMakeTime != null)?'待取货':(data.status == 3 && data.deliveryType == 2)?'待消费':data.status == 4?'待送达':data.status == 5?'已完成':data.status == 7?'待同意退款':data.status == 8?'已退款':data.status == 6?'已取消':data.status == 11?'售后中':data.status == 12?'已售后':""}}
@ -25,8 +25,8 @@
{{data.deliveryType == 2?'自取订单':'配送订单'}} {{data.deliveryType == 2?'自取订单':'配送订单'}}
</view> </view>
<view v-if="data.deliveryType == 1" style="display: flex;flex: 1;padding-left: 20rpx;"> <view v-if="data.deliveryType == 1" style="display: flex;flex: 1;padding-left: 20rpx;">
<text style="flex: 1;">配送员{{data.deliveryInfo.workerName}}</text> <text style="flex: 1;">配送员{{(data.deliveryInfo.workerName == 'null' || !data.deliveryInfo.workerName) ?"":data.deliveryInfo.workerName}}</text>
<view class=""> <view class="" v-if="!data.deliveryInfo">
<img @tap="makeCall(data.deliveryInfo.workerPhone)" src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/869a7af6a1c24bf3a0d523c4a18b55c6.png" alt="" style="width: 60rpx;height: 60rpx;margin-top: 20rpx;" /> <img @tap="makeCall(data.deliveryInfo.workerPhone)" src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/869a7af6a1c24bf3a0d523c4a18b55c6.png" alt="" style="width: 60rpx;height: 60rpx;margin-top: 20rpx;" />
</view> </view>
</view> </view>
@ -122,7 +122,7 @@
{{data.receiverPhone}} {{data.receiverPhone}}
</view> </view>
</view> </view>
<view v-if="data.orderType != 1" style="display: flex;height: 60rpx;line-height: 60rpx;"> <view v-if="data.orderType != 1 && data.groupInfo != null" style="display: flex;height: 60rpx;line-height: 60rpx;">
<view style="width: 140rpx;"> <view style="width: 140rpx;">
团购信息 团购信息
</view> </view>

36
package2/shop/shopOrderList.vue

@ -17,23 +17,24 @@
<view class="status-list"> <view class="status-list">
<view v-for="(item, index) in statusList" :key="index" class="status-item" <view v-for="(item, index) in statusList" :key="index" class="status-item"
:class="{ 'active': currentIndex == item.value }" :class="{ 'active': currentIndex == item.value }"
:style="{'width':item.name == '全部'?'14vw':'20vw'}"
@click="handleStatusClick(item.value)"> @click="handleStatusClick(item.value)">
<text class="status-text">{{ item.name }}</text> <text class="status-text">{{ item.name }}</text>
</view> </view>
</view> </view>
</scroll-view> </scroll-view>
</view> </view>
<view class="box1" @tap="goDetail(item.id)" v-for="(item,index) in orderList" :key="index"> <view class="box1" @tap="goDetail(item)" v-for="(item,index) in orderList" :key="index">
<view style="display: flex;height: 50rpx;border-bottom: 1px solid #eee;"> <view style="display: flex;height: 50rpx;border-bottom: 1px solid #eee;">
<view style="display: flex;"> <view style="display: flex;padding-right: 20rpx;" v-if="item.numberCode">
{{'#' + item.numberCode}} {{'#' + item.numberCode}}
</view> </view>
<view style="flex: 1;display: flex;padding-left: 20rpx;"> <view style="flex: 1;display: flex;">
{{item.createTime | formatISOTime}} {{item.createTime | formatISOTime}}
<!-- <text>已退款</text> --> <!-- <text>已退款</text> -->
</view> </view>
<view> <view>
{{item.status == 0?'待支付':item.status == 2?'待配送员接单':(item.status == 3 && item.deliveryType == 1 && item.shopMakeTime == null) || (item.status == 3 && item.deliveryType == 2 && item.userRequireMake == 1)?'待出餐':(item.status == 3 && item.deliveryType == 1 && item.shopMakeTime != null)?'待取货':(item.status == 3 && item.deliveryType == 2)?'待消费':item.status == 4?'待送达':item.status == 5?'已完成':item.status == 7?'待同意退款':item.status == 8?'已退款':item.status == 6?'已取消':item.status == 11?'售后中':item.status == 12?'已售后':""}} {{item.status == 0?'待支付':item.status == 2?'待配送员接单':(item.status == 3 && item.deliveryType == 1 && item.shopMakeTime == null) || (item.status == 3 && item.deliveryType == 2 && item.userRequireMake == 1)?'待出餐':(item.status == 3 && item.deliveryType == 1 && item.shopMakeTime != null)?'待取货':(item.status == 3 && item.deliveryType == 1 && item.shopMakeTime != null) || (item.status == 3 && item.deliveryType == 2 && item.userRequireMake != 1)?'待消费':item.status == 4?'待送达':item.status == 5?'已完成':item.status == 7?'待同意退款':item.status == 8?'已退款':item.status == 6?'已取消':item.status == 11?'售后中':item.status == 12?'已售后':""}}
</view> </view>
</view> </view>
<view style="height: 120rpx;padding-top: 20rpx;"> <view style="height: 120rpx;padding-top: 20rpx;">
@ -56,7 +57,7 @@
<view class="pinzi" @tap.stop="tanchuang(item.deliveryType)" style="width:80rpx;font-weight:700;margin-right: 20rpx;color:#00231C;background:linear-gradient(90deg, rgba(227, 255, 150, 1), rgba(166, 255, 234, 1))"> <view class="pinzi" @tap.stop="tanchuang(item.deliveryType)" style="width:80rpx;font-weight:700;margin-right: 20rpx;color:#00231C;background:linear-gradient(90deg, rgba(227, 255, 150, 1), rgba(166, 255, 234, 1))">
{{item.deliveryType == 1?'配送':'自取'}} {{item.deliveryType == 1?'配送':'自取'}}
</view> </view>
<view v-if="item.orderType != 1" @tap.stop="getGroupOrders(item.id)" class="pinzi"> <view v-if="item.orderType != 1 && item.groupInfo != null" @tap.stop="getGroupOrders(item.id)" class="pinzi">
</view> </view>
<view style="flex: 1;"></view> <view style="flex: 1;"></view>
@ -155,13 +156,13 @@
checked: true checked: true
}, },
{ {
name: '待消费', name: '待出餐',
value: 2, value: 13,
checked: false checked: false
}, },
{ {
name: '待出餐', name: '待退/售后',
value: 13, value: 7,
checked: false checked: false
}, },
{ {
@ -180,8 +181,8 @@
checked: false checked: false
}, },
{ {
name: '待退款', name: '待消费',
value: 7, value: 2,
checked: false checked: false
}, },
{ {
@ -253,7 +254,12 @@
} else { } else {
that.orderList = [...that.orderList, ...res.result.records] that.orderList = [...that.orderList, ...res.result.records]
} }
for (let i = 0; i < that.orderList.length; i++) { for (let i = 0; i < that.orderList.length; i++) {
if (that.currentIndex == 7) {
that.orderList[i].goodsList = that.orderList[i].items
}
console.log('哈哈哈哈哈1',that.orderList)
that.orderList[i].goodsNum = 0 that.orderList[i].goodsNum = 0
for (let m = 0; m < that.orderList[i].goodsList.length; m++) { for (let m = 0; m < that.orderList[i].goodsList.length; m++) {
that.orderList[i].goodsNum += that.orderList[i].goodsList[m].quantity that.orderList[i].goodsNum += that.orderList[i].goodsList[m].quantity
@ -315,7 +321,13 @@
} }
}); });
}, },
goDetail(id) { goDetail(item) {
let id = ""
if(this.currentIndex == 7){
id = item.mallOrder.id
}else{
id = item.id
}
uni.navigateTo({ uni.navigateTo({
url: '/package2/shop/orderDetail?id=' + id url: '/package2/shop/orderDetail?id=' + id
}) })

14
pages/index/index.vue

@ -1044,7 +1044,6 @@
} }
} }
} }
console.log('50000',that.adList)
that.deliveryItem = res.result.records; that.deliveryItem = res.result.records;
if (res.result.orderCount != null) { if (res.result.orderCount != null) {
for (let i = 0; i < res.result.orderCount.length; i++) { for (let i = 0; i < res.result.orderCount.length; i++) {
@ -2107,7 +2106,7 @@
.order-page { .order-page {
width: 95%; width: 95%;
position: relative; position: relative;
height: 200rpx; height: auto;
border-radius: 32rpx; border-radius: 32rpx;
border: 1px solid rgba(166, 255, 234, 0.78); border: 1px solid rgba(166, 255, 234, 0.78);
background: rgba(255, 255, 255, 0.74); background: rgba(255, 255, 255, 0.74);
@ -2192,17 +2191,18 @@
.qu-text { .qu-text {
display: flex; display: flex;
flex: 1; flex: 1;
height: 50rpx; height: auto;
line-height: 50rpx; line-height: 50rpx;
color: #40534d; color: #40534d;
width: 90%;
} }
.qu-left { .qu-left {
width: 80%; width: 80%;
padding-left: 10rpx; padding-left: 10rpx;
overflow: hidden; word-wrap: break-word;
white-space: nowrap; word-break: break-all;
text-overflow: ellipsis; white-space: normal;
} }
.qu-right { .qu-right {
@ -2481,7 +2481,7 @@
text-align: center; text-align: center;
background: rgba(166, 255, 234, 0.62); background: rgba(166, 255, 234, 0.62);
padding: 0 20rpx; padding: 0 20rpx;
margin-left: -10rpx; margin-left: -14rpx;
font-weight: 700; font-weight: 700;
border-top-right-radius: 40rpx; border-top-right-radius: 40rpx;
border-bottom-right-radius: 40rpx; border-bottom-right-radius: 40rpx;

Loading…
Cancel
Save