commit
This commit is contained in:
@@ -51,7 +51,6 @@ module.exports = {
|
|||||||
this.$emit("input", this.signatureContent)
|
this.$emit("input", this.signatureContent)
|
||||||
}
|
}
|
||||||
this.signatureAddress = origin + "/platform/signature/scanPcCode?id=" + this.id
|
this.signatureAddress = origin + "/platform/signature/scanPcCode?id=" + this.id
|
||||||
console.log(this.signatureAddress)
|
|
||||||
},
|
},
|
||||||
signatureAgain() {
|
signatureAgain() {
|
||||||
const val = sessionStorage.getItem("h5-scan-code-signature-" + this.id)
|
const val = sessionStorage.getItem("h5-scan-code-signature-" + this.id)
|
||||||
@@ -59,8 +58,8 @@ module.exports = {
|
|||||||
this.$emit("input", val)
|
this.$emit("input", val)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
async mounted() {
|
||||||
this.init()
|
await this.init()
|
||||||
webSocketPubSub.subscribe("h5-scan-code-signature", (data) => {
|
webSocketPubSub.subscribe("h5-scan-code-signature", (data) => {
|
||||||
console.info("ws:收到签字成功消息:", data)
|
console.info("ws:收到签字成功消息:", data)
|
||||||
this.signatureContent = data.value
|
this.signatureContent = data.value
|
||||||
@@ -72,6 +71,7 @@ module.exports = {
|
|||||||
if (webSocketPubSub.ws && webSocketPubSub.ws.readyState === WebSocket.OPEN) {
|
if (webSocketPubSub.ws && webSocketPubSub.ws.readyState === WebSocket.OPEN) {
|
||||||
console.info("ws.readyState is open");
|
console.info("ws.readyState is open");
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
console.log(this.signatureAddress)
|
||||||
} else {
|
} else {
|
||||||
setTimeout(checkReady, 100);
|
setTimeout(checkReady, 100);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user