帖子
帖子
用户
博客
课程
显示全部楼层
17
帖子
0
勋章
66
Y币

[插件使用] 大佬看下这个传值对吗

[复制链接]
发表于 2020-8-31 17:17:06
在h5页面用axios 这样传值正确,但是在app上这样传却不过接口,ajax不能这样用吗还是哪里错了?
axios.get('http://121/wx/wxpnAuth', {
                                                        params: {
                                                                code: this.code,
                                                                state: {
                                                                        invitecode: inviteCode,
                                                                        companyId: companyId,
                                                                        mdnumber: mdnumber,
                                                                        superInviteCode: superInviteCode,
                                                                        relationId: relationId,
                                                                        userId: userId,
                                                                        ai: "ai"
                                                                }

                                                        }
                                                }).then(res => {

                                                })



$api.ajax({
                                                url: 'http://121/wx/wxnAuth',
                                                method: 'get',
                                                data: {
                                                        values: {
                                                                code: ret.code,
                                                                deviceId: deviceId,
                                                                deviceModel: deviceModel,
                                                                deviceName: deviceName,
                                                                systemVersion: systemVersion,
                                                                state: {
                                                                        invitecode: "sdfsd",
                                                                        companyId: 34
                                                                }
                                                        }
                                                },
                                        }, function(ret, err) {

380
帖子
4
勋章
6
Y币
get  是获取,不用传data
您需要登录后才可以回帖 登录

本版积分规则