美文网首页
拼团项目线上工具类

拼团项目线上工具类

作者: 追逐繁星的阿忠 | 来源:发表于2021-01-22 11:03 被阅读0次

1.ajax

async getInfo(){
                this.$http.post('getAgentInfo', {}, {token: 'token'}).then(([error, res]) => {
                    if(res.data.code == 1) {
                        let obj = res.data.data;

                    }else {
                        this.isShow = true
                    }


                })
            },

2.界面提示框:

uni.showToast({
    title: '糖果不足100',
    icon: 'none',
    duration: 2000
});



uni.showModal({
    title: '提示',
    showCancel: false,
    content: res.data.msg,
    success: function (res) {
        if (res.confirm) {
            console.log('用户点击确定');
        }
    }
});

相关文章

网友评论

      本文标题:拼团项目线上工具类

      本文链接:https://www.haomeiwen.com/subject/ycjszktx.html