当前位置:网站首页>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>
边栏推荐
- [chestnut sugar GIS] how does global mapper batch produce ground contour lines through DSM
- 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:
- 【硬件】标准阻值的由来
- SQL进阶语法
- The motivation of AES Advanced Encryption Protocol
- 【Redis笔记】压缩列表(ziplist)
- PMP project integration management
- Set right click to select vs code to open the file
- P7072 [csp-j2020] live broadcast Award
- Odoo13 build a hospital HRP environment (detailed steps)
猜你喜欢

Typical case of data annotation: how does jinglianwen technology help enterprises build data solutions

抖音实战~点赞数量弹框

Qt QScrollArea
![P7072 [csp-j2020] live broadcast Award](/img/bc/fcbc2b1b9595a3bd31d8577aba9b8b.png)
P7072 [csp-j2020] live broadcast Award

LeetCode 968. Monitor binary tree

Learning records of data analysis (II) -- simple use of response surface method and design expert
![[NPUCTF2020]ezlogin xPATH注入](/img/6e/dac4dfa0970829775084bada740542.png)
[NPUCTF2020]ezlogin xPATH注入

Niuke network: maximum submatrix

Lambda expression: an article takes you through

Analyse des données dossiers d'apprentissage - - analyse simple de la variance à facteur unique avec Excel
随机推荐
Numerical solution of partial differential equations with MATLAB
Redis 过期策略+conf 记录
pytorch训练CPU占用持续增长(bug)
2016. maximum difference between incremental elements
为什么RTOS系统要使用MPU?
[npuctf2020]ezlogin XPath injection
QT qpprogressbar details
程序员版本的八荣八耻~
Stop slave is stuck -- the event of the transaction is not copied completely
mysql重置密码,忘记密码,重置root密码,重置mysql密码
How does Jerry test the wrong touch rate of keys [chapter]
Qt QProgressBar详解
编辑卡顿
Successfully changed Splunk default URL root path
C#中Linq用法汇集
实现BottomNavigationView和Navigation联动
Lambda表达式:一篇文章带你通透
Learning Websites commonly used by circuit designers
Jerry's prototype has no touch, and the reinstallation becomes normal after dismantling [chapter]
Freshman learning sharing