Commit 490bc313 by wangshuo

合并

parents e7c0c8e4 06a850cb
...@@ -105,7 +105,7 @@ class Invite extends Component { ...@@ -105,7 +105,7 @@ class Invite extends Component {
isWeiXin: true, isWeiXin: true,
}); });
}else{ }else{
history.push(`invite?shareuid=${jsCookie.get('uid')}&new=1&inviteCode=${inviteCode}`) history.push(`/invite?shareuid=${jsCookie.get('uid')}&new=1&inviteCode=${inviteCode}`)
this.setState({ this.setState({
showTip: true, showTip: true,
}); });
......
...@@ -76,7 +76,7 @@ class Live extends Component { ...@@ -76,7 +76,7 @@ class Live extends Component {
http.get(`${API['base-api']}/sys/createLiveQrcode/${id}`) http.get(`${API['base-api']}/sys/createLiveQrcode/${id}`)
.then(res => { .then(res => {
const {data} = res const {data} = res
if (data.code == 200) { if (data.errno == 200) {
QRCode.toDataURL(data.data.url, (err, url) => { QRCode.toDataURL(data.data.url, (err, url) => {
Popup({ Popup({
title: '扫码关注“七月在线”服务号即可预约', title: '扫码关注“七月在线”服务号即可预约',
......
...@@ -145,8 +145,7 @@ class Order extends Component { ...@@ -145,8 +145,7 @@ class Order extends Component {
ischeck: this.state.useBalance, ischeck: this.state.useBalance,
} }
http.post(`${API['base-api']}/pdd/m`, params).then(res => { http.post(`${API['base-api']}/pdd/m`, params).then(res => {
console.log(res); if(Number(res.data.errno) === 200) {
if(res.data.errno === 200) {
sessionStorage.removeItem('orderUseCacheObj'); sessionStorage.removeItem('orderUseCacheObj');
if (res.data.data.pay_jump === 1) { if (res.data.data.pay_jump === 1) {
this.props.history.push(`/togroup?id=${res.data.data.oid}`); this.props.history.push(`/togroup?id=${res.data.data.oid}`);
......
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