子卷入库
This commit is contained in:
@@ -606,4 +606,7 @@ uni-button[disabled]:not([type]) {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
.down_icon {
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
@@ -3,8 +3,8 @@
|
|||||||
<!-- <nav-bar title="子卷入库"></nav-bar> -->
|
<!-- <nav-bar title="子卷入库"></nav-bar> -->
|
||||||
<nav-bar :title="title"></nav-bar>
|
<nav-bar :title="title"></nav-bar>
|
||||||
<view class="zd_content">
|
<view class="zd_content">
|
||||||
<view class="zd_wrapper">
|
<view class="zd_wrapper" style="padding: 0;">
|
||||||
<view class="filter_item">
|
<view class="filter_item" style="padding: 14rpx;">
|
||||||
<view class="filter_label_wraper">
|
<view class="filter_label_wraper">
|
||||||
<span class="filter_label">子卷号</span>
|
<span class="filter_label">子卷号</span>
|
||||||
</view>
|
</view>
|
||||||
@@ -12,14 +12,24 @@
|
|||||||
<search-box v-model="val1" @handleChange="handleChange" />
|
<search-box v-model="val1" @handleChange="handleChange" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="filter_item">
|
<transition
|
||||||
<view class="filter_label_wraper">
|
name="content"
|
||||||
<span class="filter_label filter_label_1"></span>
|
@before-enter="beforeEnter"
|
||||||
</view>
|
@enter="enter"
|
||||||
<view class="filter_input_wraper filter_input_wraper_1">
|
@leave="leave"
|
||||||
<view class="iconfont icon_unchecked" :class="{'icon_checked': isV === '1'}" @tap="isVirtual"></view>
|
>
|
||||||
<view class="filter_input_wraper_inn_text">直接入库</view>
|
<view class="filter_item" v-if="isExpanded">
|
||||||
|
<view class="filter_label_wraper">
|
||||||
|
<span class="filter_label"></span>
|
||||||
|
</view>
|
||||||
|
<view class="filter_input_wraper" style="margin-left: 44rpx;">
|
||||||
|
<view class="iconfont icon_unchecked" :class="{'icon_checked': isV === '1'}" @tap="isVirtual"></view>
|
||||||
|
<view class="filter_input_wraper_inn_text">直接入库</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
</transition>
|
||||||
|
<view class="down_icon">
|
||||||
|
<uni-icons :type="iconType" size="24" color="#4e6ef2" style="margin:0 auto;" @click="toggleContent"></uni-icons>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd_wrapper grid-wraper">
|
<view class="zd_wrapper grid-wraper">
|
||||||
@@ -82,9 +92,16 @@
|
|||||||
arr1: [],
|
arr1: [],
|
||||||
dataList: [],
|
dataList: [],
|
||||||
disabled: false,
|
disabled: false,
|
||||||
isV: '0'
|
isV: '0',
|
||||||
|
isExpanded: false,
|
||||||
|
contentHeight: 0
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
iconType() {
|
||||||
|
return this.isExpanded ? 'up' : 'down'
|
||||||
|
}
|
||||||
|
},
|
||||||
onPageScroll(e) {
|
onPageScroll(e) {
|
||||||
this.$refs.UT.topData(e.scrollTop)
|
this.$refs.UT.topData(e.scrollTop)
|
||||||
},
|
},
|
||||||
@@ -92,6 +109,44 @@
|
|||||||
this.title = options.title
|
this.title = options.title
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
toggleContent() {
|
||||||
|
this.isExpanded = !this.isExpanded
|
||||||
|
},
|
||||||
|
beforeEnter(el) {
|
||||||
|
el.style.height = '0'
|
||||||
|
this.$nextTick(() => {
|
||||||
|
el.style.height = el.scrollHeight + 'px'
|
||||||
|
})
|
||||||
|
},
|
||||||
|
enter(el, done) {
|
||||||
|
const animation = el.animate(
|
||||||
|
[
|
||||||
|
{ height: '0', opacity: 0 },
|
||||||
|
{ height: el.scrollHeight + 'px', opacity: 1 },
|
||||||
|
],
|
||||||
|
{
|
||||||
|
duration: 300,
|
||||||
|
easing: 'ease',
|
||||||
|
}
|
||||||
|
);
|
||||||
|
animation.onfinish = done
|
||||||
|
},
|
||||||
|
leave(el, done) {
|
||||||
|
const animation = el.animate(
|
||||||
|
[
|
||||||
|
{ height: el.scrollHeight + 'px', opacity: 1 },
|
||||||
|
{ height: '0', opacity: 0 },
|
||||||
|
],
|
||||||
|
{
|
||||||
|
duration: 300,
|
||||||
|
easing: 'ease',
|
||||||
|
}
|
||||||
|
)
|
||||||
|
animation.onfinish = () => {
|
||||||
|
el.style.height = '0'
|
||||||
|
done()
|
||||||
|
}
|
||||||
|
},
|
||||||
isVirtual () {
|
isVirtual () {
|
||||||
this.isV = this.isV === '0' ? '1' : '0'
|
this.isV = this.isV === '0' ? '1' : '0'
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user