Commit b6fed7c7 by xuzhenghua

bug

parent 8f6703b5
...@@ -70,6 +70,9 @@ class Detail extends Component { ...@@ -70,6 +70,9 @@ class Detail extends Component {
if(!getParam('oid')) { if(!getParam('oid')) {
return; return;
}else{ }else{
this.setState({
singMess: JSON.parse(window.localStorage.getItem('singMess'))
})
_this.intervalPayStatus = setInterval(function () { _this.intervalPayStatus = setInterval(function () {
http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => { http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {
if (res.data.errno === 401) { if (res.data.errno === 401) {
...@@ -117,6 +120,9 @@ class Detail extends Component { ...@@ -117,6 +120,9 @@ class Detail extends Component {
return return
} else { } else {
// this.props.weixinPay(weixin_code) // this.props.weixinPay(weixin_code)
this.setState({
singMess: JSON.parse(window.localStorage.getItem('singMess'))
});
http.get(`${API['base-api']}/pay/wxpay/pub_charge/oid/${getParam('oid')}/code/${weixin_code}`).then((res) => { http.get(`${API['base-api']}/pay/wxpay/pub_charge/oid/${getParam('oid')}/code/${weixin_code}`).then((res) => {
if (res.data.errno === 0) { if (res.data.errno === 0) {
const data = res.data.data; const data = res.data.data;
......
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