当前位置:网站首页>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>
边栏推荐
- Static file display problem
- 成功改变splunk 默认URL root path
- pytorch训练CPU占用持续增长(bug)
- 力扣刷题(2022-6-28)
- Innovation strength is recognized again! Tencent security MSS was the pioneer of cloud native security guard in 2022
- 最小生成树 Minimum Spanning Tree
- SQL advanced syntax
- 地平线2022年4月最新方案介绍
- 情感对话识别与生成简述
- Jerry's fast touch does not respond [chapter]
猜你喜欢
Odoo13 build a hospital HRP environment (detailed steps)
Splunk audit setting
Qt QProgressBar详解
Methods to solve the tampering of Chrome browser and edeg browser homepage
[adjustment] postgraduate enrollment of Northeast Petroleum University in 2022 (including adjustment)
Qt QScrollArea
Detailed explanation and application of merging and sorting
[Solved] Splunk: Cannot get username when all users are selected“
Start from the bottom structure to learn the customization and testing of FPGA --- Xilinx ROM IP
golang入门:for...range修改切片中元素的值的另类方法
随机推荐
LC173. 二叉搜索树迭代器
Jerry's fast touch does not respond [chapter]
golang入门:for...range修改切片中元素的值的另类方法
中国信通院、清华大学、腾讯安全,云原生安全产学研用强强联合!
程序员版本的八荣八耻~
Li Kou brush questions (2022-6-28)
Learning records of data analysis (II) -- simple use of response surface method and design expert
MySQL queries nearby data And sort by distance
用matlab调用vs2015来编译vs工程
easyclick,ec权朗网络验证源码
Lambda expression: an article takes you through
海思3559万能平台搭建:在截获的YUV图像上旋转操作
ServletContext learning diary 1
Go multithreaded data search
mysql重置密码,忘记密码,重置root密码,重置mysql密码
Minimum spanning tree
SQL advanced syntax
【硬件】标准阻值的由来
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:
Introduction to the latest plan of horizon in April 2022