pull/6/head
zhangyouji 2 years ago
parent 9b40ce3fbf
commit 3b5ede2a69
  1. 56
      packageOrders/pages/orderList/orderList.vue

@ -52,7 +52,7 @@
<button class="cu-btn bg-white" @click="orderExport">订单导出</button> <button class="cu-btn bg-white" @click="orderExport">订单导出</button>
</view> </view>
</view> </view>
<view class="padding  padding-bottom-0" style="padding-top: 200upx;"> <view class="padding  padding-bottom-0" style="padding-top: 200upx;">
<!-- 0 全部 1 待支付 2 已支付 3退款 --> <!-- 0 全部 1 待支付 2 已支付 3退款 -->
<view v-show="TabCur==2" class="order-list"> <view v-show="TabCur==2" class="order-list">
@ -100,7 +100,7 @@
</view> </view>
</view> </view>
</view> </view>
<uni-popup ref="popup"> <uni-popup ref="popup">
<view class="popup_card"> <view class="popup_card">
<view class="popup_card_from"> <view class="popup_card_from">
@ -149,7 +149,7 @@
}, },
data() { data() {
return { return {
startTime:'', startTime:'',
endTime:"", endTime:"",
activeSource: '小程序', activeSource: '小程序',
@ -222,11 +222,7 @@
'1689183144276463616', '1689183144276463616',
'1689183774927818752', '1689183774927818752',
'1689184331812888576', '1689184331812888576',
'1689185023261741056', '1689185023261741056'
'100',
'1688798956131213312',
'1681929640815497216',
'1679333598941024256'
] ]
var exportFields = exportList.filter((item) => { var exportFields = exportList.filter((item) => {
return item == uni.getStorageSync('oilSitePriceId'); return item == uni.getStorageSync('oilSitePriceId');
@ -236,7 +232,7 @@
}else{ }else{
this.exportShow = false this.exportShow = false
} }
}, },
onLoad() { onLoad() {
uni.setStorageSync('orderType', 1) uni.setStorageSync('orderType', 1)
@ -246,7 +242,7 @@
this.loadMoreOrder('onReachBottom') this.loadMoreOrder('onReachBottom')
}, },
methods: { methods: {
getTime(){ getTime(){
let nowDate = new Date(); let nowDate = new Date();
let year = nowDate.getFullYear(); let year = nowDate.getFullYear();
let month = nowDate.getMonth() + 1 < 10 ? "0" + (nowDate.getMonth() + 1) : nowDate.getMonth() + 1; let month = nowDate.getMonth() + 1 < 10 ? "0" + (nowDate.getMonth() + 1) : nowDate.getMonth() + 1;
@ -360,7 +356,7 @@
break break
case -2: case -2:
this.refundOrder = this.refundOrder.concat(res.data) this.refundOrder = this.refundOrder.concat(res.data)
if (res.data.length < 10) { // if (res.data.length < 10) { //
this.load.isLoadMore4 = true this.load.isLoadMore4 = true
this.load.loadStatus4 = 'nomore' this.load.loadStatus4 = 'nomore'
@ -371,7 +367,7 @@
break break
case 0: case 0:
this.payingOrder = this.payingOrder.concat(res.data) this.payingOrder = this.payingOrder.concat(res.data)
if (res.data.length < 10) { // if (res.data.length < 10) { //
this.load.isLoadMore2 = true this.load.isLoadMore2 = true
this.load.loadStatus2 = 'nomore' this.load.loadStatus2 = 'nomore'
@ -381,7 +377,7 @@
} }
break break
case 1: case 1:
this.finishedOrder = this.finishedOrder.concat(res.data) this.finishedOrder = this.finishedOrder.concat(res.data)
if (res.data.length < 10) { // if (res.data.length < 10) { //
this.load.isLoadMore3 = true this.load.isLoadMore3 = true
this.load.loadStatus3 = 'nomore' this.load.loadStatus3 = 'nomore'
@ -396,7 +392,7 @@
}) })
} else if (this.indexSource == 1) { } else if (this.indexSource == 1) {
// 0 1 -1 23退 // 0 1 -1 23退
// //
if (data2.istate == -3) { if (data2.istate == -3) {
data2.istate = '' data2.istate = ''
@ -407,7 +403,7 @@
if (res.code === 20000) { if (res.code === 20000) {
switch (istate) { switch (istate) {
case 1: case 1:
this.allOrder = this.allOrder.concat(res.data) this.allOrder = this.allOrder.concat(res.data)
if (res.data.length < 10) { // if (res.data.length < 10) { //
this.load.isLoadMore1 = true this.load.isLoadMore1 = true
@ -417,7 +413,7 @@
this.load.isLoadMore1 = false this.load.isLoadMore1 = false
} }
break break
case -2: case -2:
this.refundOrder = this.refundOrder.concat(res.data) this.refundOrder = this.refundOrder.concat(res.data)
if (res.data.length < 10) { // if (res.data.length < 10) { //
@ -439,7 +435,7 @@
} }
break break
case -3: case -3:
this.finishedOrder = this.finishedOrder.concat(res.data) this.finishedOrder = this.finishedOrder.concat(res.data)
if (res.data.length < 10) { // if (res.data.length < 10) { //
this.load.isLoadMore3 = true this.load.isLoadMore3 = true
@ -471,7 +467,7 @@
this.endDate = e.detail.value this.endDate = e.detail.value
this.params.endTime = this.endDate this.params.endTime = this.endDate
} }
}, },
getEndDate(val){ getEndDate(val){
let nowDate = new Date(val) let nowDate = new Date(val)
@ -488,7 +484,7 @@
this.params.endTime = '' this.params.endTime = ''
this.$refs.popup.open('center') this.$refs.popup.open('center')
}, },
report() { report() {
if (this.params.email == '') { if (this.params.email == '') {
uni.showToast({ uni.showToast({
@ -521,7 +517,7 @@
return false return false
} }
uni.showModal({ uni.showModal({
content: '请确认邮箱'+this.params.email, content: '请确认邮箱 \n'+this.params.email,
success: (res)=> { success: (res)=> {
if (res.confirm) { if (res.confirm) {
oliFinanceApi.getOrderInfoExport(this.params).then(res => { oliFinanceApi.getOrderInfoExport(this.params).then(res => {
@ -570,26 +566,26 @@
width: 100%; width: 100%;
height: 30rpx; height: 30rpx;
} }
.popup_card_bottom { .popup_card_bottom {
display: flex; display: flex;
justify-content: center; justify-content: center;
margin-top: 68rpx; margin-top: 68rpx;
} }
.popup_card_bottom_submit { .popup_card_bottom_submit {
background: #FE0505; background: #FE0505;
color: #ffffff; color: #ffffff;
font-size: 25rpx; font-size: 25rpx;
width: 240rpx; width: 240rpx;
} }
.popup_card_bottom_close { .popup_card_bottom_close {
background: #FFFFFF; background: #FFFFFF;
font-size: 25rpx; font-size: 25rpx;
width: 240rpx; width: 240rpx;
} }
.popup_card_from_item_right_text { .popup_card_from_item_right_text {
font-size: 24rpx; font-size: 24rpx;
color: #000000; color: #000000;
@ -598,21 +594,21 @@
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
margin-right: 25rpx; margin-right: 25rpx;
} }
.popup_card_from_item_left_text { .popup_card_from_item_left_text {
width: 150rpx; width: 150rpx;
font-size: 24rpx; font-size: 24rpx;
color: #666666; color: #666666;
} }
.popup_card_from_item { .popup_card_from_item {
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: 40rpx; margin-bottom: 40rpx;
} }
.popup_card_title { .popup_card_title {
text-align: center; text-align: center;
font-weight: 500; font-weight: 500;
@ -620,9 +616,9 @@
font-size: 36rpx; font-size: 36rpx;
margin-bottom: 80rpx; margin-bottom: 80rpx;
} }
.popup_card { .popup_card {
width: 681rpx; width: 681rpx;
height: 528rpx; height: 528rpx;
background: #FFFFFF; background: #FFFFFF;

Loading…
Cancel
Save