Why does working in Android fail in IOS?
appId: process.env.APPID, //
timestamp: timestamp, //
nonceStr: nonceStr, // nonceStr
signature: createSignature(timestamp, nonceStr), //
jsApiList: ["getLocation", "scanQRCode", "closeWindow"] // JS
scanQRCodeView() {
var _this = this;
//
weChatReady().then(() => {
scanQRCode()
.then(res => {
console.log(res, "&&&&&&&&&");
if (res.data.projectId && res.data.spaceId) {
console.log("");
let samaoMatch = {
projectId: res.data.projectId,
spaceId: res.data.spaceId
};
console.log(res.data.projectId, "res.data.projectId");
console.log(this, "UUUUUUUUUUUUUUUUUUUU");
console.log(_this, "PPPPPPPPPPPPPPPPPPP");
_this.$emit("scanMathc", samaoMatch);
} else {
Toast("");
return; //
}
})
.catch(err => {
Toast("");
console.error(err);
});
});