Commit a54abba0 by LJM

bug

parent 5302d109
Showing with 34 additions and 12 deletions
<template>
<view class="page-userOrder">
<!-- <drag-button-follow follow="left,right" className="drag-button" class="drag-button" :url="kfurl"></drag-button-follow> -->
<drag-button-follow follow="left,right" className="drag-button" class="drag-button" :url="kfurl"></drag-button-follow>
<view class="top">
<view class="head row bothSide verCenter">
<view class="left row verCenter">
......@@ -76,15 +76,15 @@
<view class="h2">下单时间</view>
<view class="time-filter row bothSide verCenter">
<view class="time row bothSide verCenter">
<picker mode="date" :value="date" @change="bindDateChange">
<view class="uni-input">{{ date }}</view>
<picker mode="date" :value="searchParams.stime" @change="bindDateChange($event, 1)">
<view class="uni-input">{{ searchParams.stime || time }}</view>
</picker>
<text class="iconfont icon-juxing2"></text>
</view>
<text class="line">-</text>
<view class="time row bothSide verCenter">
<picker mode="date" :value="date" @change="bindDateChange">
<view class="uni-input">{{ date }}</view>
<picker mode="date" :value="searchParams.etime" @change="bindDateChange($event, 2)">
<view class="uni-input">{{ searchParams.etime || time }}</view>
</picker>
<text class="iconfont icon-juxing2"></text>
</view>
......@@ -95,7 +95,7 @@
</view>
</view>
<view class="btn row bothSide verCenter">
<view class="btn0 row rowCenter verCenter">重置</view>
<view class="btn0 row rowCenter verCenter" @click="reset()">重置</view>
<view class="btn1 row rowCenter verCenter" @click="filterChange()">筛选</view>
</view>
</view>
......@@ -113,7 +113,8 @@ export default {
format: true
});
return {
date: currentDate,
time: currentDate,
kfurl: 'https://url.cn/uia2no5Z?_type=wpa&amp;qidian=true',
arr: ['全部', '待付款', '待收货', '已完结订单'],
curr: 0,
list: [],
......@@ -140,7 +141,7 @@ export default {
*/
handleInput: debounce(function(event) {
this.getData();
}, 500),
}, 800),
getDate(type) {
const date = new Date();
let year = date.getFullYear();
......@@ -175,14 +176,35 @@ export default {
close() {
this.$refs.popup.close();
},
bindDateChange: function(e) {
this.date = e.detail.value;
bindDateChange: function(e, type) {
if (type == 1) {
this.searchParams.stime = e.detail.value;
} else if (type == 2) {
this.searchParams.etime = e.detail.value;
}
},
/**
* 筛选
*币种切换
*/
filterChange(index) {
filterTab(index) {
this.currencyIndex = index;
this.searchParams.currency = index;
},
/**
* 重置
*/
reset() {
this.currencyIndex = 0;
this.searchParams.currency = 0;
this.searchParams.stime = '';
this.searchParams.etime = '';
},
/**
* 筛选应用
*/
filterChange() {
this.getData();
this.close();
},
/**
* 立即支付
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment