cv弹窗,退款确认弹窗

效果

复制代码
<!-- 退款 -->
		<uni-popup ref="popup2" type="center" border-radius="24rpx">
			<view class="modalDialog">
                <view class="miniTitle">退款申请</view>
                <view class="miniWhether">
					<view class="miniWhether-box">
						
						<view class="miniWhether-box-lss">
							<view class="content-inp-text">备注</view>
							<input class="content-inp-input" type="text"
							 v-model="refundInfo.refundReason" placeholder="请填写退款原因" />
						</view>
					</view>
				</view>
                <!-- 取消确定按钮 -->
                <view class="miniBtn">
                    <button class="cancel" @tap="close">取消</button>
                    <button class="confirm" @tap="approveRefund">提交</button>
                </view>
            </view>
		 </uni-popup>

css

复制代码
.modalDialog {
    width: 80%;
    position: fixed;
    top: 22%;
    left: 50%;
    z-index: 9;
    margin-left: -40%;
    background: #f9f9f9;
    border-radius: 20rpx;
	// transform: translateY(-48rpx);
}
 
.miniTitle {
    font-size: 32rpx;
    font-weight: 600;
    color: #252525;
    padding: 24rpx 0rpx;
    border-bottom: 2rpx solid #EEEEEE;
    display: flex;
    justify-content: center;
}
 
.miniBtn {
    display: flex;
    justify-content: center;
    padding: 10px 0rpx 30rpx 0rpx;
}
.miniWhether {
		// height: 260rpx;
		height: 160rpx;
		font-size: 28rpx;
		color: #252525;
		// background-color: #096;
		 padding: 24rpx;
		.miniWhether-box {
			// margin-top: 30rpx;
			height: 92rpx;
			// line-height: 80rpx;
			border: 1rpx solid #ffffff;

			.miniWhether-box-l {
				box-sizing: border-box;
				// background-color: #555;
				line-height: 80rpx;
				padding-top: 12rpx;
				// border-bottom: 1rpx solid #ffffff;
				margin-left: 12rpx;
			}
		}

	}
	.miniWhether-box-lss{
		height: 92rpx;
		line-height: 92rpx;
		padding-top: 8rpx;
		padding-left: 10rpx;
		// line-height: 80rpx;
		border-radius: 24rpx;
		// background-color: #096;
		border: 1rpx solid #ffffff;
	}
	.content-inp-text {
		display: inline-block;
		width: 120rpx;
		height: 34rpx;
		vertical-align: 8rpx;
		margin-right: -20rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: bold;
		font-size: 30rpx;
		color: #333333;
		line-height: 33rpx;
		text-align: left;
		font-style: normal;
		text-transform: none;
		// background-color: #0000FF;
	}
	.content-inp-input {
		display: inline-block;
		font-family: PingFang SC, PingFang SC;
		font-weight: 500;
		font-size: 28rpx;
		color: #ADB1BB;
		line-height: 34rpx;
		text-align: left;
		font-style: normal;
		text-transform: none;

	}
.miniBtn button {
    padding: 0rpx 100rpx;
    border-radius: 36rpx;
    font-size: 28rpx;
}
 
.miniBtn button:first-child {
    border: 2rpx solid #979797;
    color: #5e5e5e;
}
 
.miniBtn button:last-child {
    background: #FED10A;
}

打开弹窗

this.$refs.popup2.open("center");

关闭弹窗

this.$refs.popup.close()

绑定事件,监听关闭打开

@change="fun"

相关推荐
JustHappy5 小时前
古法编程秘籍(七):互联网到底是什么?把两台电脑怎么说话搞懂就够了
前端·后端·网络协议
snow@li6 小时前
SEO-文章标题:写文章时候,分类+主标题+大纲+解释 作为标题 / 不点进去也知道全文覆盖什么 / 标题即架构
前端
yaoxin5211236 小时前
434. Java 日期时间 API - Period 基于日期的时间段
java·开发语言·python
鹤落晴春6 小时前
RH124问答3:从命令行管理文件
linux·运维·服务器
kyriewen7 小时前
Git Commit 前自动修复代码风格?配置 Husky + lint-staged,从此 CR 只聊逻辑
前端·git·面试
何极光7 小时前
IDEA集成Maven
java·maven·intellij-idea
小和尚同志7 小时前
AI 自动化测试探索(一):Playwright MCP
前端·人工智能·aigc
火山上的企鹅7 小时前
Codex实战:APP远程升级服务搭建(三)后台管理页面(APK 上传、版本管理、多应用页签)
服务器·网络·数据库·oracle·qgc
程序员二叉7 小时前
【JUC】ThreadLocal底层原理|内存泄漏|弱引用|跨线程传递方案
java·开发语言·面试·职场和发展·juc
程序员二叉7 小时前
【JUC】线程池全套深度详解|参数|流程|拒绝策略|调优|异常处理
java·开发语言·jvm·算法·面试·juc