前端工作总结293-uni-增加添加成功提示

this.$u.api.getPartyAdd(this.form).then(res => {
                    console.log(res)
                    if(res.data.code==200){
                        /* uni.showLoading({
                            title: '添加中'
                        }); */
                        this.$refs.uToast.show({
                            title: res.data.message,
                            type: 'success',
                        })
                        setTimeout(function () {
                            uni.navigateTo({
                                url: "../notice_notice_list/notice_notice_list"
                            })
                        }, 2000);
                    }else{
                        this.$refs.uToast.show({
                            title: res.data.message,
                            type: 'error',
                        })
                    }
                

posted @ 2022-09-16 22:44  前端导师歌谣  阅读(9)  评论(0)    收藏  举报