【fix】优化代码
This commit is contained in:
@ -60,7 +60,7 @@ function leverSelect(value) {
|
||||
leverTabs.value[4].time = []
|
||||
leverCurrent.value = value
|
||||
otherParams.value.createTime = leverTabs.value[leverCurrent.value].time
|
||||
if(!otherParams.value.createTime || otherParams.value.createTime.length<=0){
|
||||
if (!otherParams.value.createTime || otherParams.value.createTime.length <= 0) {
|
||||
delete otherParams.value.createTime
|
||||
}
|
||||
refreshPage()
|
||||
@ -86,7 +86,7 @@ function timeChange(e) {
|
||||
// ===================== data ==============================
|
||||
const {otherParams, list, loading, refreshPage} = usePaging({
|
||||
request: pageDistributionOrder,
|
||||
load:false
|
||||
load: false
|
||||
});
|
||||
|
||||
const distributionDetail = ref({
|
||||
@ -101,7 +101,7 @@ const distributionDetail = ref({
|
||||
*/
|
||||
async function doGetDistributionDetail() {
|
||||
const data = {}
|
||||
if(otherParams.value.createTime&&otherParams.value.createTime.length>0){
|
||||
if (otherParams.value.createTime && otherParams.value.createTime.length > 0) {
|
||||
data.createTime = otherParams.value.createTime
|
||||
}
|
||||
distributionDetail.value = await getDistributionDetail(data);
|
||||
@ -109,7 +109,7 @@ async function doGetDistributionDetail() {
|
||||
|
||||
onLoad(() => {
|
||||
otherParams.value.createTime = leverTabs.value[leverCurrent.value].time
|
||||
if(!otherParams.value.createTime || otherParams.value.createTime.length<=0){
|
||||
if (!otherParams.value.createTime || otherParams.value.createTime.length <= 0) {
|
||||
delete otherParams.value.createTime
|
||||
}
|
||||
refreshPage()
|
||||
@ -161,7 +161,9 @@ onLoad(() => {
|
||||
v-for="item in list"
|
||||
:data="item" />
|
||||
</template>
|
||||
<Empty :icon-src="emptyOrderIcon" />
|
||||
<Empty
|
||||
v-else
|
||||
:icon-src="emptyOrderIcon" />
|
||||
</view>
|
||||
</view>
|
||||
<!-- 时间选择器 -->
|
||||
@ -256,9 +258,10 @@ onLoad(() => {
|
||||
|
||||
<style>
|
||||
// #ifdef MP-WEIXIN
|
||||
.uni-date{
|
||||
.uni-date {
|
||||
position: absolute;
|
||||
top: -500px!important;
|
||||
top: -500px !important;
|
||||
}
|
||||
|
||||
// #endif
|
||||
</style>
|
||||
|
Reference in New Issue
Block a user