tianyi 21 hours ago
parent
commit
3b5aff3359
  1. 8
      package1/buyFood/buyFood.vue
  2. 2
      package1/group/groupBuySingle.vue
  3. 42
      package1/order/orderConfirm.vue
  4. 71
      package1/order/returnOrder.vue

8
package1/buyFood/buyFood.vue

@ -788,7 +788,7 @@
},
fail: function(err) {
uni.redirectTo({
url: '/package1/order/orderDetail?id=' + that.currentOrderId
url: '/package1/order/orderConfirm?id=' + that.currentOrderId + '&amount=' + this.backendTotalAmount
});
}
});
@ -818,7 +818,7 @@
handlePaymentSuccess() {
if (!this.isGroupBuy) {
uni.redirectTo({
url: '/package1/order/orderDetail?id=' + this.currentOrderId
url: '/package1/order/orderConfirm?id=' + that.currentOrderId + '&amount=' + this.backendTotalAmount
});
} else {
let isInitiating = !this.groupItem.groupId;
@ -829,7 +829,7 @@
return;
} else if (isJoining) {
uni.redirectTo({
url: '/package1/order/orderDetail?id=' + this.currentOrderId
url: '/package1/order/orderConfirm?id=' + that.currentOrderId + '&amount=' + this.backendTotalAmount
});
}
}
@ -837,7 +837,7 @@
onPintuanPopupChange(e) {
if(!e.show){
uni.redirectTo({
url: '/package1/order/orderDetail?id=' + this.currentOrderId
url: '/package1/order/orderConfirm?id=' + that.currentOrderId + '&amount=' + this.backendTotalAmount
});
}
},

2
package1/group/groupBuySingle.vue

@ -1459,7 +1459,7 @@
}, false, false).then((res3) => {
if(res3.code == 200){
uni.redirectTo({
url: '/package1/order/orderDetail?id=' + that.currentOrderId + '&groupId=' + that.groupId
url: '/package1/order/orderConfirm?id=' + that.currentOrderId + '&groupId=' + that.groupId + '&amount=' + this.backendTotalAmount
});
}else{
that.tui.toast("订单创建失败,请联系客服处理");

42
package1/order/orderConfirm.vue

@ -1,5 +1,5 @@
<template>
<!-- 支付确认 -->
<!-- 订单详情中间 -->
<view class="page1">
<view class="title">
<view class="title-sreach">
@ -7,38 +7,24 @@
<uni-icons type="left" size="28"></uni-icons>
</view>
<view class="title-name" :style="{'padding-top': menuButtonInfo.top +'px'}">
支付订单
订单状态
</view>
</view>
</view>
<view class="content">
<view class="box1">
<view style="height: 70rpx;line-height: 70rpx;text-align: center;">
支付剩余时间 59:19
支付完成
</view>
<view style="height: 90rpx;line-height: 90rpx;text-align: center;font-weight: 700;font-size: 30rpx;">
<text style="font-size: 60rpx;">449.96</text>
<text style="font-size: 60rpx;">{{amount == null?0:amount}}</text>
</view>
<view style="height: 40rpx;text-align: center;color: red;">
若拼团失败将会为您自动退款
点击可查看订单详情
</view>
</view>
<view class="box1" style="display: flex;padding: 40rpx;">
<view style="flex: 1;">
<view style="height: 42rpx;line-height: 42rpx;display: flex;">
<img src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/4c8e0cc311db4d38ab43e019673c4b8c.png" alt="" style="width: 42rpx;height: 42rpx;margin-right: 20rpx;" />
<text style="font-size: 30rpx;font-weight: 700;">微信支付</text>
</view>
<view style="text-align: right;margin-left: 60rpx;color: #777;width: 146rpx;">
使用微信支付
</view>
</view>
<view style="width: 36rpx;padding-top: 20rpx;">
<img src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/02bff7edc4e04caaa1868955ff684f1f.png" alt="" style="width: 36rpx;height: 36rpx;" />
</view>
</view>
<view class="btn">
确认付款
<view class="btn" @tap="getorder">
查看订单详情
</view>
</view>
</view>
@ -48,16 +34,26 @@
export default {
data() {
return {
menuButtonInfo: {}
menuButtonInfo: {},
id:'',
groupId:'',
amount:0,
}
},
onLoad(option) {
this.id = option.id
this.groupId = option.groupId
this.amount = option.amount
},
onShow() {
this.menuButtonInfo = uni.getMenuButtonBoundingClientRect()
},
methods: {
getorder(){
uni.redirectTo({
url: '/package1/order/orderDetail?id=' + that.id + '&groupId=' + that.groupId
});
},
back() {
uni.navigateBack()
}

71
package1/order/returnOrder.vue

@ -8,6 +8,9 @@
<view class="back-btn" @tap="back" :style="{'top': menuButtonInfo.top +'px'}">
<uni-icons type="left" size="28"></uni-icons>
</view>
<view class="title-name" :style="{'padding-top': menuButtonInfo.top +'px'}">
申请售后
</view>
</view>
</view>
<view class="content">
@ -20,7 +23,7 @@
<img :src="item1.productPicture" alt="">
</view>
<view class="goods-content">
<view class="goods-name">
<view class="goods-name" style="display: flex;">
{{item1.productName}}
<view class="goods-num" v-if="sellTime == 0">
<view class="num-plus" style="background: #999;color: #fff;"
@ -171,26 +174,32 @@
{{orderDetail.deliveryInfo.finishTime ? orderDetail.deliveryInfo.finishTime : '尽快送达' | formatTime}}
</view>
</view>
<uni-forms-item label="上传图片" name="pictures">
<view class="upload-img" @tap="pictureAdd"
style="background: #eee;text-align: center;line-height: 160rpx;">
<uni-icons type="camera" size="28" color="#777"></uni-icons>
</view>
<view style="overflow-x: scroll;display: flex;width: 350rpx;">
<view v-if="returnData.pictures !=''" style="width: 160rpx;height: 160rpx;margin-left: 20rpx;">
<img :src="returnData.pictures" alt="" class="upload-img">
<view style="height: 160rpx;line-height: 160rpx;display: flex;" v-if="orderDetail.deliveryType == 1">
<view style="flex: 1;color: #777;font-weight: 700;">
上传图片
</view>
<view style="color: #000;font-weight: 700;width: 160rpx;">
<view class="upload-img" @tap="pictureAdd"
style="background: #eee;text-align: center;line-height: 160rpx;">
<uni-icons type="camera" size="28" color="#777"></uni-icons>
</view>
<view style="overflow-x: scroll;display: flex;width: 350rpx;">
<view v-if="returnData.pictures !=''" style="width: 160rpx;height: 160rpx;margin-left: 20rpx;">
<img :src="returnData.pictures" alt="" class="upload-img">
</view>
</view>
</view>
</uni-forms-item>
<view class="content-box" style="line-height: 200rpx;">
<view class="content-title">
订单备注<text>*</text>
</view>
<view style="height: 170rpx;line-height: 170rpx;display: flex;margin-top: 20px;" v-if="orderDetail.deliveryType == 1">
<view style="flex: 1;color: #777;font-weight: 700;">
订单备注
</view>
<view style="height: 200rpx;background: #eee;border-radius: 40rpx;padding: 20rpx;width: 70%;">
<textarea name="" id="" cols="30" rows="10" placeholder="请填写备注" v-model="returnData.reason"
style="height: 160rpx;width: 100%;"></textarea>
</view>
</view>
<view class="btn"
@tap.stop="$refs.carPopup.open()">
售后原因
@ -210,29 +219,34 @@
<view class="car-close">
<uni-icons type="close" size="30" color="#fff"></uni-icons>
</view>
<view class="car-title">
<view class="car-title" style="padding: 0 10px;">
选择退款原因
</view>
<view class="">
<view class="">
只退商品
<view style="padding: 0 10px;">
<view style="height:80rpx;">
<radio :checked="sellTime==0" name="sellTime" @click="checkSellTime(0)" />
只退商品
</view>
<view class="">
退配送费
<view style="height:80rpx;">
<radio :checked="sellTime==1" name="sellTime" @click="checkSellTime(1)" />
退配送费
</view>
<view class="">
全额退款商家原因
<view style="height:80rpx;">
<radio :checked="sellTime==2" name="sellTime" @click="checkSellTime(2)" />
全额退款商家原因
</view>
<view class="">
全额退款配送员原因
<view style="height:80rpx;">
<radio :checked="sellTime==3" name="sellTime" @click="checkSellTime(3)" />
全额退款配送员原因
</view>
<view class="">
全额退款商家+配送员原因
<view style="height:80rpx;">
<radio :checked="sellTime==4" name="sellTime" @click="checkSellTime(4)" />
全额退款商家+配送员原因
</view>
</view>
<view class="btn" @tap="chooseReturnType()">确认</view>
@ -577,6 +591,13 @@
bottom: 0;
left: 0;
}
.title-name{
padding-top: 110rpx;
font-size: 36rpx;
font-weight: 700;
flex: 1;
text-align: center;
}
.box1{
width: 95%;
margin: 0 auto 20rpx;

Loading…
Cancel
Save