z8.3
This commit is contained in:
@@ -123,6 +123,9 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
this.sendLaundryOrderList();
|
||||
},
|
||||
onShow() {
|
||||
this.current = 0;
|
||||
this.swiperCurrent = 0;
|
||||
@@ -137,6 +140,7 @@ export default {
|
||||
type: type,
|
||||
page: this.page,
|
||||
})
|
||||
uni.stopPullDownRefresh();
|
||||
this.timer = false;
|
||||
if(res.errCode == 0) {
|
||||
// this.orderList = res.data.list;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="wash-order">
|
||||
<view>
|
||||
<u-tabs-swiper ref="tabs" :list="list" :is-scroll="false" active-color="#FF780F" :current="current" font-size="32" :show-bar="false" @change="tabsChange" height="88" ></u-tabs-swiper>
|
||||
<u-tabs-swiper ref="tabs" :list="list" :is-scroll="false" active-color="#FF780F" :current="current" font-size="32" :show-bar="false" @change="tabsChange" height="88"></u-tabs-swiper>
|
||||
</view>
|
||||
<swiper :current="swiperCurrent" @animationfinish="animationfinish" :style="{ height: swiperHeight }">
|
||||
<swiper-item class="swiper-item">
|
||||
@@ -144,7 +144,7 @@
|
||||
<view class="wash-btn" @click="submitImage">确认送洗</view>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
<u-select v-model="showClothesType" :list="typeList" value-name="id" label-name="name" @confirm="confirmType" :safe-area-inset-bottom="true" mode="single-column"></u-select>
|
||||
<u-select v-model="showClothesType" :list="typeList" value-name="id" label-name="name" @confirm="confirmType" mode="single-column"></u-select>
|
||||
<u-select v-model="showAddress"
|
||||
mode="mutil-column-auto"
|
||||
:list="areaList"
|
||||
@@ -243,9 +243,11 @@ export default {
|
||||
uformData: {
|
||||
name: 'common', // 其他图片
|
||||
},
|
||||
debounce: true,
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.debounce = true;
|
||||
this.current = 0;
|
||||
this.swiperCurrent = 0;
|
||||
this.showPopup = false;
|
||||
@@ -269,7 +271,7 @@ export default {
|
||||
})
|
||||
},
|
||||
confirmType(e) {
|
||||
// console.log(e[0]);
|
||||
console.log(e);
|
||||
this.type = e[0];
|
||||
},
|
||||
async getOrderList({ load = 'reload' } = {}) {
|
||||
@@ -285,22 +287,22 @@ export default {
|
||||
return res;
|
||||
},
|
||||
submitImage() {
|
||||
// this.$refs.uUpload.upload();
|
||||
if(!this.debounce) return;
|
||||
this.debounce = false;
|
||||
this.current == 0 ? this.$refs.platform.upload() : this.$refs.physical.upload();
|
||||
// this.confirmSend();
|
||||
},
|
||||
tabsChange(index) {
|
||||
this.swiperCurrent = index;
|
||||
},
|
||||
setImageList(lists) {
|
||||
console.log(lists);
|
||||
// console.log(lists);
|
||||
let imageList = [];
|
||||
lists.forEach(res => {
|
||||
if(res.response.errCode == 0) imageList.push(res.response.data.file_name);
|
||||
})
|
||||
// console.log(imageList);
|
||||
this.filesArr = imageList;
|
||||
console.log(this.filesArr);
|
||||
// console.log(this.filesArr);
|
||||
this.confirmSend();
|
||||
},
|
||||
validationParams() {
|
||||
@@ -372,6 +374,11 @@ export default {
|
||||
// console.log(params);
|
||||
this.$u.api.sendLaundrySave(params).then(res => {
|
||||
this.$u.toast(res.message);
|
||||
if(res.errCode == 0) {
|
||||
|
||||
} else {
|
||||
this.debounce = true;
|
||||
}
|
||||
})
|
||||
},
|
||||
radioChange(e){
|
||||
@@ -412,6 +419,8 @@ export default {
|
||||
})
|
||||
},
|
||||
animationfinish(e) {
|
||||
// 可重新提交订单
|
||||
this.debounce = true;
|
||||
let current = e.detail.current;
|
||||
this.swiperCurrent = current;
|
||||
this.current = current;
|
||||
|
||||
Reference in New Issue
Block a user