Commit c4885407 by 修福龙

支付宝刷脸支付使用余额抵扣

parent 1f738fc1
...@@ -522,7 +522,7 @@ const CounterMixins = ComposeComponent => { ...@@ -522,7 +522,7 @@ const CounterMixins = ComposeComponent => {
}; };
// 付款码支付 // 付款码支付
barcodepay = async (code, facepay, openid, fToken) => { barcodepay = async (code, facepay, openid, fToken, uid) => {
if (this.barcodeBusy) { if (this.barcodeBusy) {
return true; return true;
} }
...@@ -544,6 +544,7 @@ const CounterMixins = ComposeComponent => { ...@@ -544,6 +544,7 @@ const CounterMixins = ComposeComponent => {
noBarcode, noBarcode,
openid, openid,
fToken, fToken,
uid,
}); });
if (res.code !== 1) { if (res.code !== 1) {
await this.setState({voiceModal: true, voiceTitle: res.msg}); await this.setState({voiceModal: true, voiceTitle: res.msg});
......
...@@ -240,7 +240,7 @@ class VerticalPage extends Component { ...@@ -240,7 +240,7 @@ class VerticalPage extends Component {
Toast.show(res.msg); Toast.show(res.msg);
return; return;
} }
await this.props.barcodepay(res.fToken, true, null, res.fToken); await this.props.barcodepay(res.fToken, true, null, res.fToken, res.uid);
} }
}; };
......
...@@ -9,10 +9,18 @@ export function getBags() { ...@@ -9,10 +9,18 @@ export function getBags() {
return axios.get('/store/goods/bags'); return axios.get('/store/goods/bags');
} }
export function barcodepay({ids, code, facepay, noBarcode, openid, fToken}) { export function barcodepay({
ids,
code,
facepay,
noBarcode,
openid,
fToken,
uid,
}) {
return axios.post( return axios.post(
'/store/goods/barcodepay', '/store/goods/barcodepay',
qs.stringify({ids, code, facepay, noBarcode, openid, fToken}), qs.stringify({ids, code, facepay, noBarcode, openid, fToken, uid}),
); );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment