当前位置:网站首页>调接口事件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 = ""; //置空
}
})
},
边栏推荐
- YYGH-BUG-03
- API learning of OpenGL (2006) glclientactivetexture
- AutoCAD C polyline small acute angle detection
- FPGA - 7 Series FPGA selectio -07- iserdese2 of advanced logic resources
- 链表(二)——设计链表
- Freeswitch uses origin to dialplan
- JQ picture amplifier
- Example of MVVM framework based on kotlin+jetpack
- D3D11_ Chili_ Tutorial (3): design a bindable/drawable system
- mysql常用函数
猜你喜欢

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
![[staff] arpeggio mark](/img/45/0ee0089b947b467344b247839893d7.jpg)
[staff] arpeggio mark

death_satan/hyperf-validate

图片按日期批量导入WPS表格

death_ satan/hyperf-validate

Drop down list processing in Web Automation

Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance

YYGH-BUG-03

Iframe switching in Web Automation

移动广告发展动向:撬动存量,精细营销
随机推荐
【Paper Reading-3D Detection】Fully Convolutional One-Stage 3D Object Detection on LiDAR Range Images
Development trend of mobile advertising: Leveraging stock and fine marketing
Introduction to openscap
No one can only use foreach to traverse arrays, right?
Linked list (III) - reverse linked list
Xcode13.3.1 error reported after pod install
Note that JPA uses a custom VO to receive jpql query results
ImportError: cannot import name 'ensure_ dir_ Possible solutions for exists'
Object object to list collection
Openharmony gnawing paper growth plan -- json-rpc
MySQL (I) - Installation
助力涨点 | YOLOv5结合Alpha-IoU
FPGA - 7系列 FPGA SelectIO -08- 高级逻辑资源之OSERDESE2
整型提升和大小端字节序
Freeswitch uses Mod_ Shot module plays mp3
MySQL (II) - basic operation
Is it safe to open a stock account? How to open a stock account?
Tryout title code
Caused by: com. fasterxml. jackson. databind. Exc.invalidformatexception: exception resolution
基本类型和包装类的区别