1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <template>
- <view class="modal-box">
- <u-popup v-model="isShow" @close="isShow=false" mode="right" length="85%" >
- <view class="modal-con u-flex u-flex-wrap u-row-between" :style="{height:toggle? auto:'180rpx'}">
- <view class="list" v-for="(item,i) in list" :key="i">{{item}}</view>
- </view>
- <view class="showMore" :style="{color:$config('primaryColor')}" @click="toggle=!toggle">
- <text>{{toggle?'收起':'更多选项'}}</text>
- <u-icon :name="toggle?'arrow-up':'arrow-down'" :color="$config('primaryColor')" size="28"></u-icon>
- </view>
- <view class="form-footer-btn">
- <u-button class="handle-btn" shape="circle" size="medium" hover-class="none" @click="handleClean">重置</u-button>
- <u-button class="handle-btn" shape="circle" size="medium" hover-class="none" :custom-style="customBtnStyle" @click="handleSearch">查询</u-button>
- </view>
- </u-popup>
- </view>
- </template>
- <script>
- export default{
- props:{
- showModal:{
- type: Boolean,
- default: false
- }
-
- },
- data(){
- return{
- customBtnStyle: { // 自定义按钮样式
- borderColor: this.$config('primaryColor'),
- backgroundColor: this.$config('primaryColor'),
- color: '#fff'
- },
- isShow:this.showModal,
- toggle:false,
- list:['未指定','现金','月结','挂账','支付宝','微信支付','银行刷卡','银行汇款','待收','托收','农银e管家','农银e管家(代付)','市场通企业支付','市场通个人支付']
- }
- },
- methods:{
-
- },
- watch:{
- // 父页面传过来的弹框状态
- showModal (newValue, oldValue) {
- this.isShow = newValue
- },
- // 重定义的弹框状态
- isShow (newValue, oldValue) {
- if (!newValue) {
- this.$emit('close')
- }
- }
- }
- }
- </script>
- <style lang="scss">
- .modal-box{
- width: 100%;
- .modal-con{
- padding:20upx;
- overflow: hidden;
- .list{
- width: 46%;
- text-align: center;
- line-height: 70rpx;
- height: 70rpx;
- border-radius: 38rpx;
- margin-bottom: 20rpx;
- background:#f0f0f0;
- font-size: 26rpx;
- }
- }
- .showMore{
- text-align: center;
- margin-top: 30rpx;
- text{
- margin-right: 10rpx;
- }
- }
-
- .form-footer-btn {
- display: flex;
- padding: 20upx;
- margin-top: 180upx;
- .handle-btn {
- font-size: 28upx;
- margin: 0 30upx;
- width: 100%;
- flex: 1;
- }
- }
- }
- </style>
|