|
@@ -46,11 +46,15 @@ class PushItems extends Component {
|
|
|
const checkedAssay = assay.filter(item => item.checked);
|
|
|
const checkedCheck = check.filter(item => item.checked);
|
|
|
this.props.billing(checkedAssay, checkedCheck);
|
|
|
- const Height = $(".src-components-BodyContainer-2SgEx").height();
|
|
|
- const adviceHeight = $(".src-common-components-ItemBox-1Bpz3").height();
|
|
|
- const winHeight = window.innerHeight;
|
|
|
- const scrollTop = Height;
|
|
|
- document.documentElement.scrollTop = 10000;
|
|
|
+ if(checkedAssay.length > 0 || checkedCheck.length > 0) {
|
|
|
+ console.log('checkedCheck',checkedAssay, checkedCheck)
|
|
|
+ const Height = $(".src-components-BodyContainer-2SgEx").height();
|
|
|
+ const adviceHeight = $(".src-common-components-ItemBox-1Bpz3").height();
|
|
|
+ const winHeight = window.innerHeight;
|
|
|
+ const scrollTop = Height;
|
|
|
+ document.documentElement.scrollTop = 10000;
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
changeAssay(item) {
|