You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
92 lines
1.5 KiB
92 lines
1.5 KiB
<template>
|
|
<uni-popup ref="verifyPopup" :isMaskClick="false">
|
|
<view class="custom-modal">
|
|
<view class="modal-title">温馨提示</view>
|
|
|
|
<view class="modal-content">
|
|
<image src="@/trace/static/warning.png" mode="aspectFill" class="modal-img"></image>
|
|
<text class="modal-text">{{msg}}</text>
|
|
</view>
|
|
|
|
<button class="modal-btn" @click="close">确定</button>
|
|
</view>
|
|
</uni-popup>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
|
|
}
|
|
},
|
|
props:{
|
|
msg:{
|
|
type: String,
|
|
default:'防伪码验证失败,谨防假冒!'
|
|
}
|
|
},
|
|
methods: {
|
|
open(){
|
|
this.$refs.verifyPopup.open()
|
|
},
|
|
close() {
|
|
this.$refs.verifyPopup.close()
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
.custom-modal {
|
|
width: 500rpx;
|
|
/* 弹窗宽度 */
|
|
background: #fff;
|
|
border-radius: 28rpx;
|
|
padding: 40rpx 0 0;
|
|
text-align: center;
|
|
}
|
|
|
|
.modal-title {
|
|
font-size: 34rpx;
|
|
font-weight: bold;
|
|
color: #333;
|
|
margin-bottom: 60rpx;
|
|
}
|
|
|
|
.modal-content {
|
|
width: 100%;
|
|
margin-bottom: 60rpx;
|
|
@include flexBox(center,center);
|
|
box-sizing: border-box;
|
|
padding: 0 46rpx;
|
|
}
|
|
|
|
.modal-img {
|
|
width: 36rpx;
|
|
height: 36rpx;
|
|
margin-right: 10rpx;
|
|
}
|
|
|
|
.modal-text {
|
|
flex: 1;
|
|
font-size: 28rpx;
|
|
color: #666;
|
|
word-break: break-all;
|
|
line-height: 40rpx;
|
|
text-align: left;
|
|
}
|
|
|
|
.modal-btn {
|
|
width: 100%;
|
|
height: 100rpx;
|
|
color: #007aff;
|
|
font-size: 34rpx;
|
|
box-shadow: none;
|
|
background-color: #fff;
|
|
@include flexBox();
|
|
border-radius: 0 0 28rpx 28rpx;
|
|
}
|
|
</style> |