当前位置:网站首页>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>
边栏推荐
猜你喜欢
P7072 [csp-j2020] live broadcast Award
Learning records of data analysis (II) -- simple use of response surface method and design expert
QT qpprogressbar details
Application of containerization technology in embedded field
【喜欢的诗词】好了歌
聊聊内存模型与内存序
Go language sqlx library operation SQLite3 database addition, deletion, modification and query
Explain promise usage in detail
Construction of Hisilicon 3559 universal platform: rotation operation on the captured YUV image
mysql重置密码,忘记密码,重置root密码,重置mysql密码
随机推荐
Typical case of data annotation: how does jinglianwen technology help enterprises build data solutions
在SOUI里使用真窗口时使用SOUI的滚动条
Use the scroll bar of souI when using the real window in souI
潘多拉 IOT 开发板学习(HAL 库)—— 实验4 串口通讯实验(学习笔记)
Redis 过期策略+conf 记录
WebRTC音视频采集和播放示例及MediaStream媒体流解析
20220524_数据库过程_语句留档
數據分析學習記錄--用EXCEL完成簡單的單因素方差分析
[chestnut sugar GIS] ArcScene - how to make elevation map with height
潘多拉 IOT 开发板学习(HAL 库)—— 实验3 按键输入实验(学习笔记)
Tronapi wave field interface - source code without encryption - can be opened twice - interface document attached - packaging based on thinkphp5 - detailed guidance of the author - July 1, 2022 08:43:
Successfully changed Splunk default URL root path
Distributed monitoring system ZABBIX
Pytorch training CPU usage continues to grow (Bug)
【硬件】标准阻值的由来
海思3559万能平台搭建:在截获的YUV图像上画框
分布式监控系统zabbix
ServletContext learning diary 1
Webrtc audio and video capture and playback examples and mediastream media stream analysis
Learning records of data analysis (II) -- simple use of response surface method and design expert