feat:提示框新增动态按钮文字、区分关闭按钮

This commit is contained in:
wangsongsole 2022-09-30 11:22:40 +08:00
parent a6caf65c50
commit 053c5c3483
1 changed files with 10 additions and 5 deletions

View File

@ -8,12 +8,12 @@ const modelPop = {
<p style='width: 1.99rem;height: 0.46rem;
background: #FE6344;border-radius: 0.23rem;
font-size: 0.19rem;color:#fff;line-height: 0.45rem;margin:auto'
@click='colesFunction'
>我知道了</p>
@click='colesFunction(1)'
>{{bottom_text}}</p>
</div>
<img v-if="status!==1" style="margin-top:0.6rem;width:0.26rem;"
src="http://lsxd-customcard-h5.oss-cn-hangzhou.aliyuncs.com/cardpwd/img/commimgs/close.png" alt=""
@click="colesFunction()">
@click="colesFunction(0)">
</div>
`,
props: {
@ -33,14 +33,19 @@ const modelPop = {
status: {
type: Number,
default: 1
},
bottom_text: {
type: String,
default: "我知道了"
}
},
methods: {
/* 关闭 */
colesFunction() {
colesFunction(type) {
/* type 关闭方式 */
this.$emit("update:show", false)
this.$emit("back_function")
this.$emit("back_function", type)
}
}
}