uni.scanCode({
success: (res) => {
let sn = this.$common.getUrlKey('sn', res.result)
if (!sn) {
this.$common.msg('二维码错误');
return
}
uni.showModal({
title: "提示",
content: '确定归还书籍吗?',
success: (r) => {
if (r.confirm) {
console.log("确定按钮");
// // 扫码归还图书接口
this.$common.request('post', '/order/returnBook', {
order_id: this.order_id,
sn: sn
}).then(res => {
if (res.code == 1) {
this.$common.on(
`/subpages/mine/leaseOrder/confirmReturn?order_id=${this.order_id}&sn=${sn}`
)
}
})
}
}
})
}
});
10-27
3万+
03-10
2133