当前位置:网站首页>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>
边栏推荐
- 从底层结构开始学习FPGA----Xilinx ROM IP的定制与测试
- Use of recyclerview with viewbinding
- SQL进阶语法
- LeetCode 968. Monitor binary tree
- Application of containerization technology in embedded field
- Qt QProgressBar详解
- [favorite poems] OK, song
- Static file display problem
- pytorch训练CPU占用持续增长(bug)
- Set right click to select vs code to open the file
猜你喜欢

创新实力再获认可!腾讯安全MSS获2022年度云原生安全守护先锋

深度剖析数据在内存中的存储----C语言篇

4 special cases! Schools in area a adopt the re examination score line in area B!

設置單擊右鍵可以選擇用VS Code打開文件

容器化技术在嵌入式领域的应用

数据标注典型案例,景联文科技如何助力企业搭建数据方案

Configuration clic droit pour choisir d'ouvrir le fichier avec vs Code

Analyse des données dossiers d'apprentissage - - analyse simple de la variance à facteur unique avec Excel

从2022年Q1财报看携程的韧性和远景

AES高级加密协议的动机阐述
随机推荐
Go语言sqlx库操作SQLite3数据库增删改查
Jerry's built-in short press and long press, no matter how long it is, it is a short press [chapter]
为什么RTOS系统要使用MPU?
Qt QProgressBar详解
Mask R-CNN
【Redis笔记】压缩列表(ziplist)
ping域名报错unknown host,nslookup/systemd-resolve可以正常解析,ping公网地址通怎么解决?
Pytorch training CPU usage continues to grow (Bug)
Li Kou brush questions (2022-6-28)
[羊城杯2020]easyphp
4 special cases! Schools in area a adopt the re examination score line in area B!
數據分析學習記錄--用EXCEL完成簡單的單因素方差分析
Introduction to the latest plan of horizon in April 2022
[adjustment] postgraduate enrollment of Northeast Petroleum University in 2022 (including adjustment)
最小生成树 Minimum Spanning Tree
Cryptography -- the mode of block cipher
潘多拉 IOT 开发板学习(HAL 库)—— 实验4 串口通讯实验(学习笔记)
ServletContext learning diary 1
Troubleshooting the cause of the crash when STM32 serial port dam receives 253 bytes
pytorch训练CPU占用持续增长(bug)