当前位置:网站首页>Call interface event API common event methods
Call interface event API common event methods
2022-06-28 06:28:00 【Infatuated Arvin】
Sort out the interface events of point debugging API Common event methods
Catalog
Countdown event
setTimeout(function(){
this.loadingShow = false
}, 1000);Pop up prompt event
// Encapsulated tips
showToast(title) {
uni.showToast({
title: title,
icon: "none",
duration: 2000,
});
},Pop up modification
<u-modal
title=" Modify name "
v-model="RenameShow"
show-confirm-button
confirm-color="#495AFF"
confirm-text=" determine "
show-cancel-button
cancel-color="#808080"
@confirm="RenameConfirm"
>
<view class="modal-con">
<input placeholder=" Please enter a new name " v-model="newName" />
</view>
</u-modal>//data
RenameShow: false, // Voluntary rename Popup
// Method
editName() {
this.RenameShow = true;
},
// rename
RenameConfirm() {
if (!this.newName) {
this.showToast(" Please enter a new name ");
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(" Rename successful ");
this.volunteer_info.idealName = this.newName
// this.newName = ""; // empty
}
})
},
边栏推荐
- Xcode13.3.1 error reported after pod install
- Freeswitch uses Mod_ Shot module plays mp3
- Online facing such an online world, the only limitation is our imagination
- How to open UMD, KMD log and dump diagrams in CAMX architecture
- Uni app wechat applet sharing function
- Linked list (III) - reverse linked list
- Boost the rising point | yolov5 combined with alpha IOU
- 代码没写错,渲染页面不显示原因
- ROS rviz_satellite功能包可视化GNSS轨迹,卫星地图的使用
- FPGA - 7 Series FPGA selectio -08- oserdese2 of advanced logic resources
猜你喜欢

Slow content advertising: the long-term principle of brand growth

Alert pop-up processing in Web Automation

Sharing tips for efficient scripting

freeswitch设置最大呼叫时长

Tryout title code

Freeswitch使用originate转dialplan

FPGA - 7系列 FPGA SelectIO -08- 高级逻辑资源之OSERDESE2

socke.io長連接實現推送、版本控制、實時活躍用戶量統計

语音增强-频谱映射

Working principle of es9023 audio decoding chip
随机推荐
Exception handling (I) -- null pointer and array index out of bounds
Configure redis from 0
Yygh-7-user management
API learning of OpenGL (2006) glclientactivetexture
Caused by: com. fasterxml. jackson. databind. exc.InvalidDefinitionException: Cannot construct instance
Caused by: com. fasterxml. jackson. databind. Exc.invalidformatexception: exception resolution
Select trigger event from easyUI drop-down box
Singleton singleton mode
API learning of OpenGL (2007) gltexcoordpointer
easyui 重置多条件查询
Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance
5-minute NLP: summary of time chronology from bag of words to transformer
Linked list (I) - remove linked list elements
Difficulty calculation of Ethereum classic
自定义 cube-ui 弹出框dialog支持多个且多种类型的input框
ROS rviz_ Satellite function package visualizes GNSS track and uses satellite map
High quality domestic stereo codec cjc8988, pin to pin replaces wm8988
AttributeError: 'callable_ iterator' object has no attribute 'next'
Integer promotion and size side byte order
异常处理(一)——空指针和数组索引越界