当前位置:网站首页>Tiktok actual combat ~ number of likes pop-up box
Tiktok actual combat ~ number of likes pop-up box
2022-07-02 23:12:00 【gblfy】
Components
stay components Next new ge-popup.vue
<template>
<view>
<view class="mask"></view>
<!-- Bind wechat -->
<view class="wxbox">
<view class="weixin">
<image src="../static/dz.jpg"></image>
</view>
<view class="tips">"{
{nickName}}" Get... Together {
{
likeNum}} A great </view>
<view class="tips" @click="close"> determine </view>
</view>
</view>
</template>
<script>
export default {
props: {
nickName: {
type: String,
default: ' The source of Xinze '
},
likeNum: {
type: Number,
default: 1
}
},
data() {
return {
};
},
methods: {
close() {
this.$emit('close');
}
}
}
</script>
<style lang="scss">
.mask {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 888;
background-color: rgba(0, 0, 0, 0.6);
}
// Wechat pop up
.wxbox {
position: absolute;
top: 20%;
z-index: 998;
width: 80%;
left: 10%;
background-color: #fff;
.weixin {
text-align: center;
image {
width: 100%;
height: 120px;
}
}
.tips {
padding: 10rpx 20rpx;
text-align: center;
font-size: 35rpx;
color: #333;
}
}
</style>
Use
<template>
<view>
<popup v-show="isMask" :nickName="nickName" :likeNum="likeNum" @close="closeMask()"></popup>
</view>
</template>
<script>
import popup from "@/components/ge-popup.vue";
export default {
components: {
popup
},
data() {
return {
nickName: " The source of Xinze 2",
isMask: true,
likeNum: 10
}
},
onLoad() {
},
methods: {
closeMask() {
// Close the pop-up window
console.log("isMask")
this.isMask = false;
},
update() {
console.log(' update operation ');
}
}
}
</script>
<style>
</style>
边栏推荐
猜你喜欢
Introduction to the latest plan of horizon in April 2022
设置单击右键可以选择用VS Code打开文件
Odoo13 build a hospital HRP environment (detailed steps)
力扣刷题(2022-6-28)
Successfully changed Splunk default URL root path
[NPUCTF2020]ezlogin xPATH注入
泛型与反射,看这篇就够了
China Academy of information technology, Tsinghua University, Tencent security, cloud native security, industry university research and use strong alliance!
[chestnut sugar GIS] how does global mapper batch produce ground contour lines through DSM
Niuke network: maximum submatrix
随机推荐
STM32串口DAM接收253字节就死机原因排查
Strictly abide by the construction period and ensure the quality, this AI data annotation company has done it!
mysql重置密码,忘记密码,重置root密码,重置mysql密码
Loss function~
Splunk audit 的设定
容器化技术在嵌入式领域的应用
【硬件】标准阻值的由来
为什么RTOS系统要使用MPU?
RecyclerView结合ViewBinding的使用
Freshman learning sharing
电路设计者常用的学习网站
Go language sqlx library operation SQLite3 database addition, deletion, modification and query
Redis 过期策略+conf 记录
解决Chrome浏览器和Edeg浏览器主页被篡改的方法
20220524_ Database process_ Statement retention
[hardware] origin of standard resistance value
海思 VI接入视频流程
Go语言sqlx库操作SQLite3数据库增删改查
Use of recyclerview with viewbinding
[chestnut sugar GIS] how does global mapper batch produce ground contour lines through DSM