当前位置:网站首页>抖音实战~点赞数量弹框
抖音实战~点赞数量弹框
2022-07-02 22:10:00 【gblfy】
组件
在components下面新建ge-popup.vue
<template>
<view>
<view class="mask"></view>
<!--绑定微信-->
<view class="wxbox">
<view class="weixin">
<image src="../static/dz.jpg"></image>
</view>
<view class="tips">"{
{nickName}}"共获得{
{
likeNum}}个赞</view>
<view class="tips" @click="close">确定</view>
</view>
</view>
</template>
<script>
export default {
props: {
nickName: {
type: String,
default: '昕泽之源'
},
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);
}
//微信弹窗
.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>
使用
<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: "昕泽之源2",
isMask: true,
likeNum: 10
}
},
onLoad() {
},
methods: {
closeMask() {
//关闭弹窗
console.log("isMask")
this.isMask = false;
},
update() {
console.log('更新操作');
}
}
}
</script>
<style>
</style>
边栏推荐
- 深度剖析数据在内存中的存储----C语言篇
- 在SOUI里使用真窗口时使用SOUI的滚动条
- The first batch of Tencent cloud completed the first cloud native security maturity assessment in China
- [chestnut sugar GIS] how does global mapper batch produce ground contour lines through DSM
- 严守工期,确保质量,这家AI数据标注公司做到了!
- 泛型与反射,看这篇就够了
- [adjustment] postgraduate enrollment of Northeast Petroleum University in 2022 (including adjustment)
- Mask R-CNN
- Call vs2015 with MATLAB to compile vs Project
- Go language sqlx library operation SQLite3 database addition, deletion, modification and query
猜你喜欢
4 special cases! Schools in area a adopt the re examination score line in area B!
The kth largest element in the [leetcode] array [215]
xshell配置xforward转发火狐浏览器
Strictly abide by the construction period and ensure the quality, this AI data annotation company has done it!
海思 VI接入视频流程
中国信通院、清华大学、腾讯安全,云原生安全产学研用强强联合!
Webrtc audio and video capture and playback examples and mediastream media stream analysis
Lambda expression: an article takes you through
The motivation of AES Advanced Encryption Protocol
景联文科技低价策略帮助AI企业降低模型训练成本
随机推荐
设置单击右键可以选择用VS Code打开文件
PotPlayer设置最小化的快捷键
ping域名报错unknown host,nslookup/systemd-resolve可以正常解析,ping公网地址通怎么解决?
[Solved] Splunk: Cannot get username when all users are selected“
Innovation strength is recognized again! Tencent security MSS was the pioneer of cloud native security guard in 2022
首批 | 腾讯云完成国内首个云原生安全成熟度评估
[羊城杯2020]easyphp
Boot actuator - Prometheus use
MySQL queries nearby data And sort by distance
xshell配置xforward转发火狐浏览器
Use of recyclerview with viewbinding
损失函数~
Jerry's prototype will trigger shutdown after multiple touches [chapter]
20220524_数据库过程_语句留档
Minimum spanning tree
Solving ordinary differential equations with MATLAB
mysql重置密码,忘记密码,重置root密码,重置mysql密码
Qt QScrollArea
AES高級加密協議的動機闡述
20220527_数据库过程_语句留档