Commit 7b67b3fb by FE

note console and split btn no click

parent 6e4be8ad
......@@ -17,7 +17,7 @@ class HeaderBar extends Component {
toLink = () => {
const { toHref } = this.props;
console.log(toHref);
// console.log(toHref);
location.replace(toHref)
}
......
......@@ -19,7 +19,7 @@ class Group extends Component {
countdown: props.countdown,
now_groupon_list: [],
}
console.log(props);
// console.log(props);
}
// 查看更多
......
......@@ -47,7 +47,7 @@ class ToGroup extends Component {
componentDidMount() {
Promise.all([http.get(`${API['base-api']}/pdd/goupon_pay_page/${getParam('id')}`), http.get(`${API.home}/m/user_info`)]).then(resultList => {
console.log(resultList);
// console.log(resultList);
let res = resultList[0],
userInfo = resultList[1];
if(res.data.errno !== 0) {
......@@ -112,7 +112,7 @@ class ToGroup extends Component {
modal: true
})
}
console.log(this.state);
// console.log(this.state);
}
render() {
......
......@@ -50,7 +50,7 @@ class RedPacket extends PureComponent {
}
componentDidMount() {
console.log(this.props);
// console.log(this.props);
const share_code = getParam('share_code');
const { country } = this.props;
if(country.code) {
......
......@@ -278,6 +278,7 @@
background-color: transparent;
cursor: pointer;
outline: none;
z-index: 999;
}
.popup-packet__button--bundle {
......
......@@ -190,7 +190,7 @@ class Single extends Component {
}, 1000)
}
const { singleType } = this.props;
console.log(this.props);
// console.log(this.props);
const videoID = this.props.data.video_id || this.props.data.id;
return (
<div className='popup-box'>
......
......@@ -349,7 +349,6 @@ class Order extends Component {
// this.publicLocalStorage();
// })
// }else{
console.log(8);
http.get(`${API['base-api']}/m/order/preorder`).then((res) => {
console.log('为了验证什么条件下会走这段代码');
if (res.data.errno !== 200) {
......
......@@ -95,7 +95,7 @@ const MyForm = withFormik({
if(FormBag.props.userInfo.id) {
pathName = pathName + '?id=' + FormBag.props.userInfo.id;
}
console.log(values);
// console.log(values);
if(same === 3) {
FormBag.props.history.replace(
pathName,
......@@ -106,7 +106,7 @@ const MyForm = withFormik({
return;
}
http.post(`${API['base-api']}/m/order/saveUserInfo`, {real_name: values.real_name, cellphone: (`${values.cellphone}`).replace(/\s+/g, ''), qq: values.qq}).then(res=>{
console.log(res);
// console.log(res);
if(res.data.errno !== 200) {
Toast.info(res.data.msg, undefined, undefined, false);
return;
......
......@@ -83,7 +83,7 @@ export default class PayOrder extends Component {
}
};
checkStaging = (item) => {
console.log(item);
// console.log(item);
this.setState({
huabei: false,
stageNumber: item.value,
......@@ -115,7 +115,7 @@ export default class PayOrder extends Component {
} else {
// 微信外部-支付
http.get(`${API['base-api']}/pay/wxpay/wap_charge/oid/${orderId}`).then((res) => {
console.log(res);
// console.log(res);
if (res.data.errno === 0) {
window.location.href = res.data.data.url + "&redirect_url=" + encodeURIComponent(window.location.href + "&weixinpay=1").toLowerCase();
} else {
......@@ -253,9 +253,9 @@ export default class PayOrder extends Component {
huabeiPay = (orderId) => {
const {singleMoney, periodNumber} = this.state;
console.log('花呗分期支付');
// console.log('花呗分期支付');
http.get(`/pay/alipay/wap_charge/oid/${orderId}/plat/{plat} /hb_num/${periodNumber}`).then(res => {
console.log(res);
// console.log(res);
if (res.data.errno === 0) {
window.location = res.data.data.url;
} else {
......@@ -307,7 +307,7 @@ export default class PayOrder extends Component {
obj.everyTotal = (parseFloat(obj.periodic) + parseFloat(obj.serviceFee)).toFixed(2);// 每期总费用 = 每期本金 + 每期手续费
fenqiList.push(obj);
});
console.log(fenqiList);
// console.log(fenqiList);
// { value: 'zhifubao', qishu: '3', lilv: '2.30%', everyMoney: 300, feiyong: 2.3 },
// { value: 'weixin', qishu: '6', lilv: '4.50%', everyMoney: 150, feiyong: 4.5 },
// { value: 'huabei', qishu: '9', lilv: '7.50%', everyMoney: 100, feiyong: 7.5 },
......
......@@ -68,7 +68,7 @@ class Passport extends Component {
let {history} = this.props
let {data} = this.props.user
if (data && Object.values(data).filter(item => !!item).length) {
history.action === 'POP' && history.length <= 3 ? history.push('/') : history.go(-1)
(history.action === 'POP' && history.length <= 3) ? history.push('/') : history.go(-1)
}
}
......
......@@ -17,7 +17,7 @@ import { connect } from "react-redux";
class SetPassword extends Component {
componentDidMount() {
console.log(this.props.location);
// console.log(this.props.location);
}
......
......@@ -38,7 +38,7 @@ class SearchHead extends PureComponent {
render() {
const { isFocus } = this.state;
const cls = classnames('submit-btn', {'submit-btn--active': isFocus})
console.log(isFocus);
// console.log(isFocus);
return (
<div className="search-head">
......
......@@ -23,7 +23,7 @@ class SharePoster extends Component {
componentDidMount() {
this.getCodeWe();
http.get(`${API.home}/m/dist/posters/${getParam('courseId')}/${getParam('uid')}`).then((res) => {
console.log(res);
// console.log(res);
if (res.data.code === 200) {
this.setState({
imgUrl: res.data.data.avatar,
......@@ -59,7 +59,7 @@ class SharePoster extends Component {
var canvas = document.getElementById("canvas"),
context = canvas.getContext("2d");
console.log(_this);
// console.log(_this);
_this.getBase64(imgSrc1)
// 背景图片合成
.then((img) => {
......
......@@ -129,7 +129,7 @@ class Cart extends Component {
// 去结算
tobuy = () => {
console.log(this.state.courseIdarr);
// console.log(this.state.courseIdarr);
http.get(`${API['base-api']}/m/cart/addtopreorder/[${this.state.courseIdarr}]`).then((res) => {
if (res.data.errno == 0) {
this.props.history.push(`/order?id=[${this.state.courseIdarr}]`,{simple: 1})
......@@ -170,7 +170,7 @@ class Cart extends Component {
}
toCourseDetail = (id) => {
console.log(id);
// console.log(id);
const { dispatch, history } = this.props;
// dispatch(getCourses(id, () => {
history.push(`/detail?id=${id}`)
......
......@@ -12,7 +12,7 @@ const PAGE_INTERVAL = 1
export const NUM_INTERVAL = 10
export const fetchCoursesListIfNeeded = () => (dispatch, getState) => {
const myCourses = getState().myCourses
console.log(myCourses);
// console.log(myCourses);
const {switchTab, page, noMore} = myCourses
if (!switchTab && !noMore) {
dispatch(getMyCourses({
......
......@@ -43,7 +43,7 @@ class CampResolve extends Component {
if(state.from && state.from.indexOf('detail') !== -1) {
to='classify'
}
console.log(this.props);
// console.log(this.props);
history.push(
`${state.from}`,
{
......@@ -58,7 +58,7 @@ class CampResolve extends Component {
let _this = this;
// 获取问题列表
http.get(`${API.home}/m/aist/analysis/${this.keshi_id}/${this.qidP}`).then(res => {
console.log(res);
// console.log(res);
if(res.data.code === 4040) {
Toast.info(res.data.msg, 2, () => {
this.props.history.push('/passport');
......
......@@ -79,7 +79,7 @@ class CampTest extends Component {
if(state.from && state.from.indexOf('detail') !== -1) {
to='classify'
}
console.log(this.props);
// console.log(this.props);
history.push(
`${state.from}`,
{
......
......@@ -147,7 +147,7 @@ class Video extends Component {
}
// 购买单集
toSingleset = (item) => {
console.log(item);
// console.log(item);
this.setState({
singleBox: true,
singleType: 1,
......
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