| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <template>
- <view>
- <view v-show="showPop" class="confirmation-bar" :style="'width: '+width+';'">
- <view class="" style="height: 100%;">
- <slot></slot>
- </view>
- <view class="pop-btn" v-if="showBtn">
- <view class="pop-btn-cancal" @tap="closePop"><slot name="leftbtnname">取消</slot></view>
- <view class="pop-btn-submit" :style="'background-color:'+btnColor+';border:1rpx solid '+btnColor+';'" @tap="popSubmit"><slot name="rightbtnname">确认</slot></view>
- </view>
- </view>
- <!-- 遮罩层 -->
- <view v-show="showPop" @tap="closePop" class="mask"></view>
- </view>
- </template>
- <script>
- const app = getApp();
- const req = require("../../utils/request.js");
- export default {
- data() {
- return {
- bottomBlankHeignt: app.globalData.isIPhoneX ? 68 : 0
- };
- },
- components: {
-
- },
- props: {
- showPop: {
- type: Boolean,
- default: true
- },
- showBtn: {
- type: Boolean,
- default: true
- },
- title:{
- type: String,
- default:''
- },
- btnColor:{
- type: String,
- default:'#009AFF'
- },
- width:{
- type: String,
- default:'60%'
- }
- },
- watch: {
-
- },
- mounted() {
-
- },
- methods: {
- closePop(){
- this.$emit('closePop',false)
- },
- popSubmit(){
- this.$emit('popSubmit')
- }
- }
- };
- </script>
- <style>
- @import "./index.css";
- </style>
|