This commit is contained in:
DESKTOP-GMUNQ1B\k 2024-03-15 14:40:48 +08:00
parent ba7056e3be
commit 1299140eee
3 changed files with 44 additions and 38 deletions

View File

@ -271,20 +271,21 @@
// console.log(this.OrderList);
})
},
//
toFixed2(num){
let str = num;
if(typeof num =='string'){
str = +str;
str = str.toFixed(2);
}else str = str.toFixed(2);
return str || '0.00';
},
navToOrder(item, type=2){
uni.navigateTo({
url: `/pages/admin/orderList/index?merId=${this.mer_id}&types=${type}&pay_time=${item.pay_time.split(' ')[0]}`
})
}
//
toFixed2(num) {
if (!num) return "0.00";
let str = num;
if (typeof num == 'string') {
str = +str;
str = str.toFixed(2);
} else str = str.toFixed(2);
return str || '0.00';
},
navToOrder(item, type = 2) {
uni.navigateTo({
url: `/pages/admin/orderList/index?merId=${this.mer_id}&types=${type}&pay_time=${item.pay_time.split(' ')[0]}`
})
}
},
onReachBottom() {
this.getList(this.mer_id)

View File

@ -49,6 +49,7 @@
</view>
<view class="content-middlea-one" style="font-size: 22rpx;color: #7f7f7f;">
<text v-if="index==1">(次日18点后可提现)</text>
<text v-if="index == 3">(点击查看进度详情)</text>
</view>
</view>
</view>
@ -875,32 +876,36 @@
}
},
beforeDestroy() {
//
this.$bus.$off('value-updated')
},
methods: {
//
handleToWithDraw(item, index) {
if(index==3||index==4) return;
let url;
if(index<2) url = "/pages/users/embody/embody?mer_id=" + this.userInfoData.service.mer_id;
else url = `/pages/admin/orderList/index?merId=${this.userInfoData.service.mer_id}&types=2`;
uni.navigateTo({
url: url
})
},
beforeDestroy() {
//
this.$bus.$off('value-updated')
},
methods: {
//
handleToWithDraw(item, index) {
if (index == 4) return;
let url;
if (index == 0) url = "/pages/users/embody/embody?mer_id=" + this.userInfoData.service.mer_id;
if (index == 2) url = `/pages/admin/orderList/index?merId=${this.userInfoData.service.mer_id}&types=2`;
if (index == 3) url = "/pages/activeCode/subsidy";
uni.navigateTo({
url: url
})
},
//
initTypeLiseMenu() {
},
//
close() {
this.isFshow = false;
this.$refs.popup.close()
this.num = 15
},
//
codelist() {

View File

@ -64,8 +64,8 @@
searchParams: {
page: 1,
limit: 15,
section_startTime: '',
section_endTime: '',
section_startTime: new Date().format("yyyy-MM-dd"),
section_endTime: new Date().format("yyyy-MM-dd"),
mer_id: ''
},
loadend: false,
@ -81,16 +81,16 @@
computed: {
startTimeTxt() {
if (this.searchParams.section_startTime) {
return new Date(this.searchParams.section_startTime).format("yyyy年MM月dd");
return new Date(this.searchParams.section_startTime).format("yyyy年MM月dd");
} else {
return "开始时间";
return new Date().format("yyyy年MM月dd日");
}
},
endTimeTxt() {
if (this.searchParams.section_endTime) {
return new Date(this.searchParams.section_endTime).format("yyyy年MM月dd");
return new Date(this.searchParams.section_endTime).format("yyyy年MM月dd");
} else {
return "结束时间";
return new Date().format("yyyy年MM月dd日");
}
}
},
@ -116,8 +116,8 @@
handleReset() {
this.loadend = false;
this.searchParams.page = 1;
this.searchParams.section_startTime = '';
this.searchParams.section_endTime = '';
this.searchParams.section_startTime = new Date().format("yyyy-MM-dd");
this.searchParams.section_endTime = new Date().format("yyyy-MM-dd");
this.paymentData = [];
this.getData();
},
@ -200,7 +200,7 @@
left: 0;
width: 100%;
background-color: #EFEFEF;
padding: 30rpx 40rpx;
padding: 30rpx;
.payment-detail-head-wrap {
display: flex;