当前位置:网站首页>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>
边栏推荐
- 数据标注典型案例,景联文科技如何助力企业搭建数据方案
- 地平线2022年4月最新方案介绍
- Jerry's fast touch does not respond [chapter]
- Splunk audit 的设定
- Strictly abide by the construction period and ensure the quality, this AI data annotation company has done it!
- 为什么RTOS系统要使用MPU?
- [Solved] Splunk: Cannot get username when all users are selected“
- MySQL queries nearby data And sort by distance
- [hardware] origin of standard resistance value
- Configuration clic droit pour choisir d'ouvrir le fichier avec vs Code
猜你喜欢
随机推荐
Niuke network: maximum submatrix
【Redis笔记】压缩列表(ziplist)
20220524_ Database process_ Statement retention
P1007 single log bridge
[favorite poems] OK, song
[adjustment] postgraduate enrollment of Northeast Petroleum University in 2022 (including adjustment)
MySQL queries nearby data And sort by distance
Lc173. Binary search tree iterator
阿里云有奖体验:如何使用 PolarDB-X
Strictly abide by the construction period and ensure the quality, this AI data annotation company has done it!
Ping domain name error unknown host, NSLOOKUP / system d-resolve can be resolved normally, how to Ping the public network address?
Numerical solution of partial differential equations with MATLAB
STM32之ADC
Potplayer set minimized shortcut keys
Easyclick, EC Quanlang network verification source code
Jerry's fast touch does not respond [chapter]
ServletContext learning diary 1
设置单击右键可以选择用VS Code打开文件
[npuctf2020]ezlogin XPath injection
Redis expiration policy +conf record








