Compare commits

..

2 Commits

3 changed files with 112 additions and 2 deletions

View File

@ -0,0 +1,38 @@
.base-dialog {
overflow: initial;
.dialog-img {
margin-top: -38px;
width: 100%;
}
.dialog-title {
height: 30px;
text-align: center;
font-size: 23px;
font-weight: bold;
color: rgb(23, 23, 23);
}
.dialog-text {
height: 55px;
line-height: 55px;
text-align: center;
font-size: 15px;
color: rgb(82, 77, 77);
margin: 10px 0px;
padding: 0px 10px;
}
.dialog-btn {
width: 199px;
height: 46px;
text-align: center;
background: rgb(254, 99, 68);
border-radius: 23px;
font-size: 19px;
color: rgb(255, 255, 255);
line-height: 45px;
margin: auto;
}
}

View File

@ -0,0 +1,74 @@
<template>
<van-dialog
class="base-dialog"
v-model:show="model"
:width="width"
:height="height"
:style="{ height: height }"
:showConfirmButton="false"
>
<img class="dialog-img" :src="imgUrl" />
<p class="dialog-title">{{ title }}</p>
<p class="dialog-text">{{ text }}</p>
<div class="dialog-btn">{{ confirmTxt }}</div>
</van-dialog>
</template>
<script lang="ts">
export default {
name: "base-dialog",
props: {
//
modelValue: {
type: Boolean,
default: true,
},
//
imgUrl: {
type: String,
// https://lsxdmgoss.oss-cn-chengdu.aliyuncs.com/MarketingSystem/image/front/popErr.png
default:
"https://lsxdmgoss.oss-cn-chengdu.aliyuncs.com/MarketingSystem/image/front/popNotes.png",
},
// title
title: {
type: String,
default: "温馨提示",
},
//
text: {
type: String,
default: "请重新进入",
},
//
confirmTxt: {
type: String,
default: "我知道了",
},
cancleTxt: {
type: String,
default: "",
},
//
width: {
type: String,
default: "274px",
},
//
height: {
type: String,
default: "266px",
},
},
data() {
return {
model: this.modelValue,
};
},
created() {
console.log("zgpppppp");
},
};
</script>
<style lang="scss">
@use "./index.scss";
</style>

View File

@ -381,7 +381,6 @@ export default {
.then(() => { .then(() => {
this.copyFn(url); this.copyFn(url);
}) })
.catch(() => {})
} else { } else {
// //
location.replace(url); location.replace(url);
@ -398,7 +397,6 @@ export default {
.then(() => { .then(() => {
this.copyFn(url); this.copyFn(url);
}) })
.catch(() => {})
} else { // + } else { // +
// todo // todo
location.replace('https://www.baidu.com/') location.replace('https://www.baidu.com/')