Commit 39806fa0 authored by 邱旭's avatar 邱旭

feat:merge

parent b97ed1e6
...@@ -29,20 +29,20 @@ MDAuto({ ...@@ -29,20 +29,20 @@ MDAuto({
click: MDList, // 点击 click: MDList, // 点击
}); });
export function handleLogExposure(id: number | string, id2: number | string = 1) { export function handleLogExposure(id: number | string, id2: number | string = 1, id3: number | string = 0) {
logExposure({ logExposure({
dpm: `${appId}.110.${id}.${id2}`, dpm: `${appId}.110.${id}.${id2}`,
dcm, dcm: `202.${CFG.projectId}.0.${id3}`,
dom, dom,
domain, domain,
appId, appId,
}); });
} }
export function handleLogClick(id: number | string, id2: number | string = 1) { export function handleLogClick(id: number | string, id2: number | string = 1, id3: number | string = 0) {
logClick({ logClick({
dpm: `${appId}.110.${id}.${id2}`, dpm: `${appId}.110.${id}.${id2}`,
dcm, dcm: `202.${CFG.projectId}.0.${id3}`,
dom, dom,
domain, domain,
appId, appId,
...@@ -67,4 +67,4 @@ export function handleTaskLogExposure(id, id2 = 1, btnStatus) { ...@@ -67,4 +67,4 @@ export function handleTaskLogExposure(id, id2 = 1, btnStatus) {
domain, domain,
appId, appId,
}); });
} }
\ No newline at end of file
...@@ -261,12 +261,12 @@ class DetailPage extends React.Component<any, any> { ...@@ -261,12 +261,12 @@ class DetailPage extends React.Component<any, any> {
</div> </div>
<div className={styles.btnArea}> <div className={styles.btnArea}>
<Button <Button
className={classNames(styles.btn, styles.simulate, "md9")} className={classNames(styles.btn, styles.simulate, "md18")}
onClick={this.clickSimulateBuy} onClick={this.clickSimulateBuy}
>模拟买入</Button> >模拟买入</Button>
<Button <Button
className={classNames(styles.btn, styles.really, "md10")} className={classNames(styles.btn, styles.really, "md17")}
onClick={this.clickReallyBuy} onClick={this.clickReallyBuy}
>真实买入</Button> >真实买入</Button>
</div> </div>
...@@ -298,7 +298,7 @@ class DetailPage extends React.Component<any, any> { ...@@ -298,7 +298,7 @@ class DetailPage extends React.Component<any, any> {
<div className={styles.tip}>{" "}</div> <div className={styles.tip}>{" "}</div>
<div className={styles.btnArea}> <div className={styles.btnArea}>
<Button <Button
className={classNames(styles.btn, styles.simulate, "md13")} className={classNames(styles.btn, styles.simulate, 'md16')}
style={{ width: "100%" }} style={{ width: "100%" }}
onClick={this.clickSimulateSell} onClick={this.clickSimulateSell}
>模拟赎回</Button> >模拟赎回</Button>
......
...@@ -28,9 +28,9 @@ class TurnTable extends React.Component { ...@@ -28,9 +28,9 @@ class TurnTable extends React.Component {
resStore.updateInfo(); resStore.updateInfo();
if (this.drawResultInfo.prizeId == "thanks") { if (this.drawResultInfo.prizeId == "thanks") {
ModalCtrl.showModal(NoPrizePanel, this.drawResultInfo); ModalCtrl.showModal(NoPrizePanel, {...this.drawResultInfo, md: '34'});
} else { } else {
ModalCtrl.showModal(PrizePanel, this.drawResultInfo); ModalCtrl.showModal(PrizePanel, {...this.drawResultInfo, md: '33'});
} }
} }
...@@ -88,7 +88,7 @@ class TurnTable extends React.Component { ...@@ -88,7 +88,7 @@ class TurnTable extends React.Component {
didStop={this.onStop} didStop={this.onStop}
/> />
<Button className={classNames("drawBtn md17", { <Button className={classNames("drawBtn md32", {
enable: remainDrawTime > 0, enable: remainDrawTime > 0,
disable: remainDrawTime <= 0, disable: remainDrawTime <= 0,
})} onClick={this.drawHandle}/> })} onClick={this.drawHandle}/>
......
...@@ -24,8 +24,8 @@ export class BuyPanel extends Component<any, any> { ...@@ -24,8 +24,8 @@ export class BuyPanel extends Component<any, any> {
return <div className="BuyPanel modal_center"> return <div className="BuyPanel modal_center">
<div className="bg"/> <div className="bg"/>
<div className="tip">您申请模拟购买{name}产品{amount}</div> <div className="tip">您申请模拟购买{name}产品{amount}</div>
<Button className="btn md12" onClick={this.clickOk}/> <Button className="btn md20" onClick={this.clickOk}/>
<Button className="cancel md11" onClick={this.clickClose}/> <Button className="cancel md19" onClick={this.clickClose}/>
<Button className="close" onClick={this.clickClose}/> <Button className="close" onClick={this.clickClose}/>
</div> </div>
} }
......
...@@ -15,11 +15,11 @@ export class NoPrizePanel extends Component<any, any> { ...@@ -15,11 +15,11 @@ export class NoPrizePanel extends Component<any, any> {
render() { render() {
const {type} = this.props; const {type, md} = this.props;
return <div className="NoPrizePanel modal_center"> return <div className="NoPrizePanel modal_center">
<div className="bg"/> <div className="bg"/>
<Button className={`btn md${type == 'red' ? '27' : '19'}`} onClick={this.clickClose}/> <Button className={`btn md${type == 'red' ? '27' : md || '19'}`} onClick={this.clickClose}/>
<Button className="close" onClick={this.clickClose}/> <Button className="close" onClick={this.clickClose}/>
</div> </div>
} }
......
...@@ -28,14 +28,14 @@ export class PrizePanel extends Component<any, any> { ...@@ -28,14 +28,14 @@ export class PrizePanel extends Component<any, any> {
render() { render() {
const {optionImg, optionName, type} = this.props; const {optionImg, optionName, type, md} = this.props;
return <div className="PrizePanel modal_center"> return <div className="PrizePanel modal_center">
{type != 'red' && <div className="bg"/>} {type != 'red' && <div className="bg"/>}
{type == 'red' && <div className="bg2"/>} {type == 'red' && <div className="bg2"/>}
<img className="img" src={optionImg}/> <img className="img" src={optionImg}/>
<div className="prizeName">{optionName}</div> <div className="prizeName">{optionName}</div>
<Button className={`btn md${type == 'red' ? '26' : '18'}`}onClick={this.clickBtn}/> <Button className={`btn md${type == 'red' ? '26' : md || '18'}`}onClick={this.clickBtn}/>
<Button className="close" onClick={this.clickClose}/> <Button className="close" onClick={this.clickClose}/>
</div> </div>
} }
......
...@@ -24,8 +24,8 @@ export class SellPanel extends Component<any, any> { ...@@ -24,8 +24,8 @@ export class SellPanel extends Component<any, any> {
return <div className="SellPanel modal_center"> return <div className="SellPanel modal_center">
<div className="bg"/> <div className="bg"/>
<div className="tip">您申请模拟赎回{name}产品{amount}</div> <div className="tip">您申请模拟赎回{name}产品{amount}</div>
<Button className="btn md15" onClick={this.clickOk}/> <Button className="btn md22" onClick={this.clickOk}/>
<Button className="cancel md14" onClick={this.clickClose}/> <Button className="cancel md21" onClick={this.clickClose}/>
<Button className="close" onClick={this.clickClose}/> <Button className="close" onClick={this.clickClose}/>
</div> </div>
} }
......
...@@ -47,7 +47,7 @@ class FirstPop extends React.Component { ...@@ -47,7 +47,7 @@ class FirstPop extends React.Component {
<div className={`check_icon ${privacyChecked ? 'checked' : ''}`} onClick={() => this.setState({ privacyChecked: !this.state.privacyChecked })}></div> <div className={`check_icon ${privacyChecked ? 'checked' : ''}`} onClick={() => this.setState({ privacyChecked: !this.state.privacyChecked })}></div>
<div className="check_text">{notifyText}</div> <div className="check_text">{notifyText}</div>
</div>} </div>}
<Button className="happy_btn md2" onClick={this.handleSubmit}></Button> <Button className="happy_btn md3" onClick={this.handleSubmit}></Button>
<Button className="close" onClick={this.close}></Button> <Button className="close" onClick={this.close}></Button>
</div> </div>
</>); </>);
......
...@@ -20,7 +20,7 @@ class JumpConfirmPop extends React.Component { ...@@ -20,7 +20,7 @@ class JumpConfirmPop extends React.Component {
handleClose = _asyncThrottle(() => { handleClose = _asyncThrottle(() => {
ModalCtrl.closeModal() ModalCtrl.closeModal()
}) })
handleConfirm = _asyncThrottle(() => { handleConfirm = _asyncThrottle(() => {
ModalCtrl.closeModal() ModalCtrl.closeModal()
this.props.confirmCb?.() this.props.confirmCb?.()
...@@ -31,8 +31,8 @@ class JumpConfirmPop extends React.Component { ...@@ -31,8 +31,8 @@ class JumpConfirmPop extends React.Component {
<div className="jumpConfirmPop modal_center"> <div className="jumpConfirmPop modal_center">
<span className="bg"></span> <span className="bg"></span>
<div className="text">离开模拟理财功能<br />前往真实理财产品交易页面</div> <div className="text">离开模拟理财功能<br />前往真实理财产品交易页面</div>
<Button className="think_btn" onClick={this.handleClose} /> <Button className="think_btn md23" onClick={this.handleClose} />
<Button className="confirm_btn" onClick={this.handleConfirm} /> <Button className="confirm_btn md24" onClick={this.handleConfirm} />
<Button className="close" onClick={this.handleClose} /> <Button className="close" onClick={this.handleClose} />
</div> </div>
); );
......
...@@ -180,6 +180,8 @@ class Loginpop extends React.Component { ...@@ -180,6 +180,8 @@ class Loginpop extends React.Component {
const { loginPhone, loginCode, showCountDown, countDown, showSendAgain, showSend } = this.state; const { loginPhone, loginCode, showCountDown, countDown, showSendAgain, showSend } = this.state;
const { showPrivacyPop, privacyChecked } = this.state; const { showPrivacyPop, privacyChecked } = this.state;
const {md} = this.props;
const { agreementTitle, agreementText } = this.state.agreementInfo || {}; const { agreementTitle, agreementText } = this.state.agreementInfo || {};
return (<> return (<>
<div className={`loginpop modal_center ${!agreementTitle ? 'no_check' : ''}`}> <div className={`loginpop modal_center ${!agreementTitle ? 'no_check' : ''}`}>
...@@ -215,7 +217,7 @@ class Loginpop extends React.Component { ...@@ -215,7 +217,7 @@ class Loginpop extends React.Component {
<span className="content_title" onClick={() => this.setState({ showPrivacyPop: true })} dangerouslySetInnerHTML={{ __html: agreementTitle }}></span> <span className="content_title" onClick={() => this.setState({ showPrivacyPop: true })} dangerouslySetInnerHTML={{ __html: agreementTitle }}></span>
</div> </div>
</div>} </div>}
<Button className={`btn md3 ${getUrlParam("off") == 1 ? 'enter_btn' : ''}`} onClick={this.handleSubmit}></Button> <Button className={`btn md${md} ${getUrlParam("off") == 1 ? 'enter_btn' : ''}`} onClick={this.handleSubmit}></Button>
{/* <Button className="close" onClick={this.close}></Button> */} {/* <Button className="close" onClick={this.close}></Button> */}
</div> </div>
......
...@@ -28,9 +28,9 @@ export class NewbieModal extends Component<any, any> { ...@@ -28,9 +28,9 @@ export class NewbieModal extends Component<any, any> {
// resStore.updateInfo(); // resStore.updateInfo();
ModalCtrl.closeModal(); ModalCtrl.closeModal();
if (this.drawResultInfo?.prizeId == "thanks" || !this.drawResultInfo?.prizeId) { if (this.drawResultInfo?.prizeId == "thanks" || !this.drawResultInfo?.prizeId) {
ModalCtrl.showModal(NoPrizePanel, this.drawResultInfo); ModalCtrl.showModal(NoPrizePanel, {...this.drawResultInfo, md: '15'});
} else { } else {
ModalCtrl.showModal(PrizePanel, {optionImg: this.drawResultInfo?.prizeImg, optionName: this.drawResultInfo?.prizeName}); ModalCtrl.showModal(PrizePanel, {optionImg: this.drawResultInfo?.prizeImg, optionName: this.drawResultInfo?.prizeName, md: '14'});
} }
} }
......
...@@ -10,7 +10,7 @@ import { ModalCtrl } from "@/core/ctrls/ModalCtrl"; ...@@ -10,7 +10,7 @@ import { ModalCtrl } from "@/core/ctrls/ModalCtrl";
import SignCom from './signCom/signCom'; import SignCom from './signCom/signCom';
import API from '@/api'; import API from '@/api';
import taskStore from '@/store/task'; import taskStore from '@/store/task';
import { handleTaskLogClick } from '@/MD'; import { handleLogExposure, handleTaskLogClick } from '@/MD';
@observer @observer
class TaskPanel extends React.Component { class TaskPanel extends React.Component {
...@@ -20,8 +20,18 @@ class TaskPanel extends React.Component { ...@@ -20,8 +20,18 @@ class TaskPanel extends React.Component {
taskList: [] taskList: []
} }
} }
componentDidMount() { async componentDidMount() {
taskStore.queryTaskInfo(); await taskStore.queryTaskInfo();
taskStore.taskList.map((item, index) => {
if(item.taskStatus == 0) {
handleLogExposure(28, item?.id, 1)
}
if(item.taskStatus == 1) {
handleLogExposure(28, item?.id, 2)
}
})
} }
// getTaskList = _asyncThrottle(async () => { // getTaskList = _asyncThrottle(async () => {
// const { success, data } = await API.getTaskList(); // const { success, data } = await API.getTaskList();
......
...@@ -55,7 +55,7 @@ class Tipspop extends React.Component { ...@@ -55,7 +55,7 @@ class Tipspop extends React.Component {
<div className="code_bg"> <div className="code_bg">
<img className="code_img" src={this.state.qrcode} alt="" /> <img className="code_img" src={this.state.qrcode} alt="" />
</div> </div>
<Button className="btn" onClick={this.closeHandle}></Button> <Button className="btn md35" onClick={this.closeHandle}></Button>
<Button className="close" onClick={this.closeHandle}></Button> <Button className="close" onClick={this.closeHandle}></Button>
</div> </div>
); );
......
...@@ -150,9 +150,9 @@ class Store { ...@@ -150,9 +150,9 @@ class Store {
ModalCtrl.showModal(InvalidPop); ModalCtrl.showModal(InvalidPop);
} else if (code == 60002) { } else if (code == 60002) {
// 请绑定手机号 // 请绑定手机号
ModalCtrl.showModal(Loginpop) ModalCtrl.showModal(Loginpop, {md: '2'})
} else if ((isWeiXin() || CFG.channel == CHANNEL.HXLC) && (code == 100001 || code == 100007 || code == 100009)) { } else if ((isWeiXin() || CFG.channel == CHANNEL.HXLC) && (code == 100001 || code == 100007 || code == 100009)) {
ModalCtrl.showModal(Loginpop); ModalCtrl.showModal(Loginpop, {md: '36'});
} else { } else {
Toast.show(message || '网络异常,请稍后再试') Toast.show(message || '网络异常,请稍后再试')
} }
......
...@@ -25,15 +25,15 @@ const taskStore = makeAutoObservable({ ...@@ -25,15 +25,15 @@ const taskStore = makeAutoObservable({
const arr2 = data.item.filter((el) => { return Number(el.taskStatus) === 0; }); const arr2 = data.item.filter((el) => { return Number(el.taskStatus) === 0; });
const arr3 = data.item.filter((el) => { return Number(el.taskStatus) === 2; }); const arr3 = data.item.filter((el) => { return Number(el.taskStatus) === 2; });
this.taskList = arr1.concat(arr2, arr3); this.taskList = arr1.concat(arr2, arr3);
this.taskList.forEach(el => { // this.taskList.forEach(el => {
const { code } = el; // const { code } = el;
if (el.taskStatus == 0) { // if (el.taskStatus == 0) {
handleTaskLogExposure(28, code, 1); // handleTaskLogExposure(28, code, 1);
} // }
if (el.taskStatus == 1) { // if (el.taskStatus == 1) {
handleTaskLogExposure(28, code, 2); // handleTaskLogExposure(28, code, 2);
} // }
}); // });
} }
}, },
......
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