全局样式

This commit is contained in:
2023-05-10 15:32:25 +08:00
parent a52efffb8a
commit afb5c0be4c
6 changed files with 42 additions and 34 deletions

View File

@@ -13,6 +13,10 @@ uni-button:after {
border: none; border: none;
} }
uni-button{
font-size: 16px;
}
.content{ .content{
width: 100%; width: 100%;
height: 100%; height: 100%;

View File

@@ -17,11 +17,11 @@
/> />
</view> </view>
</view> </view>
</view> <view class="search-item flexend">
<view class="confirm-button-wrap"> <button class="confirm-button" @tap="toDelect">清空</button>
<button class="confirm-button" @tap="toDelect">清空</button> <button class="confirm-button" @tap="toSelect">选择订单</button>
<button class="confirm-button" @tap="toSelect">选择订单</button> <button class="confirm-button" :class="{'confirm-button_disabled': !index1 || !val1 || dataList.length === 0}" :disabled="disabled" @tap="toSure">入库确认</button>
<button class="confirm-button" :class="{'confirm-button_disabled': !index1 || !val1 || dataList.length === 0}" :disabled="disabled" @tap="toSure">入库确认</button> </view>
</view> </view>
</view> </view>
<view class="grid-wrap"> <view class="grid-wrap">
@@ -143,3 +143,12 @@
} }
} }
</script> </script>
<style lang="stylus" scoped>
@import '../../common/style/mixin.styl';
.search-item
&:nth-child(1),&:nth-child(2)
width 30%
&:nth-child(3)
width 36%
</style>

View File

@@ -29,10 +29,10 @@
/> />
</view> </view>
</view> </view>
</view> <view class="search-item_2 flexend">
<view class="confirm-button-wrap"> <button class="confirm-button" @tap="toSearch()">查询</button>
<button class="confirm-button" @tap="toSearch()">查询</button> <button class="confirm-button" :disabled="disabled" @tap="toSure()">确认</button>
<button class="confirm-button" :disabled="disabled" @tap="toSure()">确认</button> </view>
</view> </view>
</view> </view>
<view class="grid-wrap"> <view class="grid-wrap">
@@ -149,5 +149,5 @@
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '../../common/style/mixin.styl'; @import '../../common/style/mixin.styl';
.grid-wrap .grid-wrap
height: calc(100% - 237px); /** 42+ 15*6+ 35*3 */ height: calc(100% - 187px); /** 42+ 15*5+ 35*2 */
</style> </style>

View File

@@ -66,12 +66,12 @@
<input type="text" class="search-input-l" v-model="endDate" @click="open2"> <input type="text" class="search-input-l" v-model="endDate" @click="open2">
</view> </view>
</view> </view>
</view> <view class="search-item_2 flexend">
<view class="confirm-button-wrap"> <button class="confirm-button" @tap="toSearch()">查询</button>
<button class="confirm-button" @tap="toSearch()">查询</button> <button class="confirm-button" :disabled="disabled" @tap="toSure('8')">取消</button>
<button class="confirm-button" :disabled="disabled" @tap="toSure('8')">取消</button> <button class="confirm-button" :disabled="disabled" @tap="toSure('7')">完成</button>
<button class="confirm-button" :disabled="disabled" @tap="toSure('7')">完成</button> <button class="confirm-button" :disabled="disabled" @tap="toSure('5')">重发</button>
<button class="confirm-button" :disabled="disabled" @tap="toSure('5')">重发</button> </view>
</view> </view>
</view> </view>
<view class="grid-wrap"> <view class="grid-wrap">
@@ -293,7 +293,9 @@
.grid-wrap .grid-wrap
height: auto height: auto
overflow: auto overflow: auto
height: calc(100% - 387px); /** 42+ 15*9+ 35*6 */ height: calc(100% - 337px); /** 42+ 15*8+ 35*5 */
/deep/ .uni-calendar-item__weeks-box-item /deep/ .uni-calendar-item__weeks-box-item
height: 40px !important height: 40px !important
>>>.search_input
padding-right 60px
</style> </style>

View File

@@ -15,7 +15,7 @@
<uni-data-select v-model="index2" :localdata="options2" @change="selectChange2"></uni-data-select> <uni-data-select v-model="index2" :localdata="options2" @change="selectChange2"></uni-data-select>
</view> </view>
</view> </view>
<view class="search-item search-item1"> <view class="search-item flexend">
<button class="confirm-button" @tap="toSearch()">&nbsp;&nbsp;</button> <button class="confirm-button" @tap="toSearch()">&nbsp;&nbsp;</button>
</view> </view>
</view> </view>
@@ -336,15 +336,12 @@
z-index 99 z-index 99
.addHeight .addHeight
transition height .2s linear transition height .2s linear
height 315px height 215px /** 35*4+ 15*5 */
.delHeight .delHeight
transition height .2s linear transition height .2s linear
height 0 height 0
.search-item // .search-item
width 42% // width 42%
&:nth-child(1) // &:nth-child(1)
margin-right 10px // margin-right 10px
.search-item1
width calc(16% - 10px)
justify-content flex-end
</style> </style>

View File

@@ -29,14 +29,10 @@
/> />
</view> </view>
</view> </view>
<!-- <view class="search-item search-item-btns"> <view class="search-item_2">
<button class="confirm-button" @tap="toSearch">查询</button> <button class="confirm-button" @tap="toSearch">查询</button>
<button class="confirm-button" :class="{'confirm-button_disabled': !pkId || !index2 || !val1}" :disabled="disabled" @tap="toSure">确认</button> <button class="confirm-button" :class="{'confirm-button_disabled': !pkId || !index2 || !val1 || !index3}" :disabled="disabled" @tap="toSure">确认</button>
</view> --> </view>
</view>
<view class="confirm-button-wrap">
<button class="confirm-button" @tap="toSearch">查询</button>
<button class="confirm-button" :class="{'confirm-button_disabled': !pkId || !index2 || !val1 || !index3}" :disabled="disabled" @tap="toSure">确认</button>
</view> </view>
</view> </view>
<view class="grid-wrap"> <view class="grid-wrap">
@@ -175,5 +171,5 @@
<style lang="stylus" scoped> <style lang="stylus" scoped>
.grid-wrap .grid-wrap
height: calc(100% - 237px); /** 42+ 15*6+ 35*3 */ height: calc(100% - 187px); /** 42+ 15*5+ 35*2 */
</style> </style>