当前位置:网站首页>调接口事件API常用事件方法
调接口事件API常用事件方法
2022-06-28 06:26:00 【痴心阿文】
整理点调接口事件API常用事件方法
目录
倒计时事件
setTimeout(function(){
this.loadingShow = false
}, 1000);
弹窗提示事件
// 封装好的提示
showToast(title) {
uni.showToast({
title: title,
icon: "none",
duration: 2000,
});
},
弹窗修改
<u-modal
title="修改名称"
v-model="RenameShow"
show-confirm-button
confirm-color="#495AFF"
confirm-text="确定"
show-cancel-button
cancel-color="#808080"
@confirm="RenameConfirm"
>
<view class="modal-con">
<input placeholder="请输入新的名称" v-model="newName" />
</view>
</u-modal>
//data
RenameShow: false, //志愿重命名弹窗
//方法
editName() {
this.RenameShow = true;
},
// 重命名
RenameConfirm() {
if (!this.newName) {
this.showToast("请输入新的名称");
return;
}
let json = {
recordId:this.volunteer_info.recordId,
idealId:this.volunteer_info.idealId,
type:3,
idealName:this.newName
};
console.log('json',json)
const URL = getApp().globalData.appApi + '/gk/uptIdeal'
this.$http.post_request(json,URL,res=>{
console.log(res)
if(res.rc == '0'){
this.showToast("重命名成功");
this.volunteer_info.idealName = this.newName
// this.newName = ""; //置空
}
})
},
边栏推荐
- AutoCAD C# 多段線小銳角檢測
- JSP
- Working principle of es9023 audio decoding chip
- MySQL(二)——基本操作
- D3D11_ Chili_ Tutorial (3): design a bindable/drawable system
- Difficulty calculation of Ethereum classic
- Alibaba cloud SMS service (Complete Guide), SMS sending function implementation.
- 【Paper Reading-3D Detection】Fully Convolutional One-Stage 3D Object Detection on LiDAR Range Images
- MySQL (II) - basic operation
- eyebeam高级设置
猜你喜欢
AutoCAD C polyline small acute angle detection
FPGA - 7 Series FPGA selectio -09- io of advanced logic resources_ FIFO
RN7302三相电量检测(基于STM32单片机)
Yygh-7-user management
AutoCAD C # Polyline Small Sharp angle Detection
MySQL(一)——安装
socke. IO long connection enables push, version control, and real-time active user statistics
Install and manage multiple versions of PHP under mac
CAD二次开发+NetTopologySuite+PGIS 引用多版本DLL问题
Freeswitch sets the maximum call duration
随机推荐
Linked list (II) - Design linked list
语音增强-频谱映射
death_satan/hyperf-validate
FPGA - 7系列 FPGA SelectIO -08- 高级逻辑资源之OSERDESE2
Sharing tips for efficient scripting
选拔赛题目代码
freeswitch使用mod_shout模块播放mp3
JDBC学习(一)——实现简单的CRUD操作
Paper recommendation: efficientnetv2 - get smaller models and faster training speed through NAS, scaling and fused mbconv
Freeswitch sets the maximum call duration
Students who do not understand the code can also send their own token. The current universal dividend model can be divided into BSC and any generation B
链表(一)——移除链表元素
整型提昇和大小端字節序
No one can only use foreach to traverse arrays, right?
Example of MVVM framework based on kotlin+jetpack
AutoCAD C polyline small acute angle detection
AttributeError: 'callable_iterator' object has no attribute 'next'
MySQL(二)——基本操作
AutoCAD C# 多段線小銳角檢測
Yolact++ pytoch environment