1) 优化计划优惠券模版h5显示问题

This commit is contained in:
zhangds 2022-09-23 10:57:49 +08:00
parent 0b2b8647b4
commit 2ca4c395d2
2 changed files with 4 additions and 3 deletions

View File

@ -293,7 +293,8 @@ export default class acclist extends React.Component {
onCheckChange = ({ target }) => { onCheckChange = ({ target }) => {
this.props.changeKeyType(target.value); this.props.changeKeyType(target.value);
// this.setState({ checkedList: target.value }); console.log("keyType => ", target.value);
sessionStorage.setItem("keyType", target.value);
}; };
onStyleChange(e) { onStyleChange(e) {

View File

@ -16,6 +16,7 @@ import {
Notify, Notify,
} from "zent"; } from "zent";
import Bus from "../../../assets/eventBus.js"; import Bus from "../../../assets/eventBus.js";
import { subNum } from "@/tools/number";
import { import {
getProductInfoSelect, getProductInfoSelect,
handelResponse, handelResponse,
@ -482,13 +483,12 @@ export default class adduserinfo extends React.Component {
if (num !== "" && num) { if (num !== "" && num) {
num = Number(num); num = Number(num);
} }
if (Number(this.state.model.official_price) >= num) { if (Number(this.state.model.official_price) >= num) {
return ( return (
<div> <div>
<p className="mobile-money foot-money"> <p className="mobile-money foot-money">
<span style={{ fontSize: "14px" }}>¥</span>{" "} <span style={{ fontSize: "14px" }}>¥</span>{" "}
{this.state.model.official_price} {subNum(this.state.model.official_price, this.props.reduce)}
</p> </p>
<p className="foot-mobile-infos">共省¥ {this.props.reduce}</p> <p className="foot-mobile-infos">共省¥ {this.props.reduce}</p>
</div> </div>