Commit 7b67b3fb by FE

note console and split btn no click

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