<template>
|
<view class="">
|
<view class="footer flex a-i-c j-c-s-b">
|
<button class="footer-btn" @click="submit(2)">通过</button>
|
<button class="footer-btn" @click="open()">驳回</button>
|
</view>
|
<u-modal :show="isShowModal" title="备注" :showConfirmButton="false">
|
<view class="modal-content">
|
<u-textarea v-model="remark" placeholder="请输入驳回原因"></u-textarea>
|
<view class="modal-btn flex j-c-s-b a-i-c" slot="confirmButton">
|
<button class="modal-btn-item c-main f-30" @click="isShowModal = false">取消</button>
|
<button class="modal-btn-item bgc-main f-30 c-ff" @click="submit(3)">确定</button>
|
</view>
|
</view>
|
</u-modal>
|
</view>
|
</template>
|
|
<script>
|
export default {
|
name: "auditAction",
|
data() {
|
return {
|
isShowModal: false,
|
remark: ""
|
}
|
},
|
methods: {
|
open() {
|
this.isShowModal = true;
|
},
|
close() {
|
this.isShowModal = false;
|
},
|
|
submit(type) {
|
let data = {
|
type,
|
remark: this.remark
|
}
|
|
if (type == 3 && !this.remark) {
|
uni.showToast({
|
title: "请输入驳回原因",
|
icon: "none"
|
})
|
return
|
}
|
|
this.$emit("handle", data)
|
if (type == 3) {
|
this.close()
|
}
|
}
|
}
|
}
|
</script>
|
|
<style lang="scss" scoped>
|
.footer {
|
width: 100%;
|
padding: 20rpx 30rpx;
|
box-sizing: border-box;
|
position: fixed;
|
bottom: 0;
|
left: 0;
|
background-color: #fff;
|
z-index: 10;
|
padding-bottom: calc(env(safe-area-inset-bottom) + 20rpx);
|
z-index: 999;
|
background-color: #fff;
|
box-shadow: 0rpx 0rpx 10rpx 1rpx rgba(0, 0, 0, 0.1);
|
|
.footer-btn {
|
width: 300rpx;
|
height: 78rpx;
|
border-radius: 8rpx;
|
font-size: 32rpx;
|
color: #fff;
|
border: none;
|
background: linear-gradient(163deg, #01BDFC 0%, #017BFC 100%);
|
}
|
|
.footer-btn:after {
|
border: none;
|
}
|
|
}
|
|
.modal-content {
|
width: 100%;
|
|
.modal-btn {
|
width: 100%;
|
padding: 40rpx 0 0;
|
|
.modal-btn-item {
|
width: 240rpx;
|
height: 74rpx;
|
line-height: 74rpx;
|
border-radius: 35rpx;
|
border: none;
|
padding: 0;
|
margin: 0;
|
}
|
|
.modal-btn-item:first-child {
|
border: 1px solid currentColor;
|
background: transparent;
|
}
|
|
}
|
}
|
|
/deep/ .u-modal__content {
|
padding-bottom: 20rpx !important;
|
}
|
</style>
|