|
@@ -27,7 +27,7 @@ Page({ |
|
|
searchCard(e) { |
|
|
searchCard(e) { |
|
|
let code = e.detail.value.code; |
|
|
let code = e.detail.value.code; |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
code: e.detail.value.code |
|
|
|
|
|
|
|
|
code: code |
|
|
}) |
|
|
}) |
|
|
this.getCardDetail(code) |
|
|
this.getCardDetail(code) |
|
|
}, |
|
|
}, |
|
@@ -93,6 +93,13 @@ Page({ |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
codeInput(e) { |
|
|
|
|
|
console.log(e); |
|
|
|
|
|
this.setData({ |
|
|
|
|
|
code: e.detail.value |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
// 扫描二维码 |
|
|
// 扫描二维码 |
|
|
goScanCode() { |
|
|
goScanCode() { |
|
|
console.log('scan!!!'); |
|
|
console.log('scan!!!'); |
|
@@ -124,13 +131,14 @@ Page({ |
|
|
}) |
|
|
}) |
|
|
.then(res => { |
|
|
.then(res => { |
|
|
console.log(res, 'res'); |
|
|
console.log(res, 'res'); |
|
|
|
|
|
// 取不到时清空参数 |
|
|
that.setData({ |
|
|
that.setData({ |
|
|
title: res.data.title, |
|
|
|
|
|
phone: res.data.ownerPhone, |
|
|
|
|
|
ownerUserId: res.data.ownerUserId, |
|
|
|
|
|
eCardId: res.data.eCardId, |
|
|
|
|
|
owned: res.data.owned, |
|
|
|
|
|
remainAmount: res.data.remainAmount / 100, |
|
|
|
|
|
|
|
|
title: res.data.title || "", |
|
|
|
|
|
phone: res.data.ownerPhone || "", |
|
|
|
|
|
ownerUserId: res.data.ownerUserId || "", |
|
|
|
|
|
eCardId: res.data.eCardId || "", |
|
|
|
|
|
owned: res.data.owned || "", |
|
|
|
|
|
remainAmount: res.data.remainAmount / 100 || "", |
|
|
isSHowInfoCard: true // 显示卡详情 |
|
|
isSHowInfoCard: true // 显示卡详情 |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
@@ -187,6 +195,10 @@ Page({ |
|
|
|
|
|
|
|
|
submit() { |
|
|
submit() { |
|
|
const data = this.data |
|
|
const data = this.data |
|
|
|
|
|
const e = { |
|
|
|
|
|
detail: { value: { code: this.data.code } } |
|
|
|
|
|
} |
|
|
|
|
|
this.searchCard(e) |
|
|
this.getCouponOrderByPassword(data.code) |
|
|
this.getCouponOrderByPassword(data.code) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|