fix:小程序修复bbug

This commit is contained in:
WJB3
2021-11-18 16:41:09 +08:00
parent 36c0b483ff
commit b8f7fe057d
4 changed files with 7 additions and 25 deletions

View File

@@ -4,7 +4,7 @@ import { classNames, styleNames } from '@/utils'
import './index.scss'
const Fn = () => {}
function SpImage(props) {
const {
src,
@@ -14,8 +14,9 @@ function SpImage(props) {
onError = Fn,
onLoad = Fn,
lazyLoad = Fn
} = this.props
} = props
const imgUrl = `${process.env.APP_IMAGE_CDN}/${src}`
return (
<View
className={classNames(

View File

@@ -37,8 +37,8 @@ export default class SpImg extends Component {
color,
// 按比例
p
} = this.props
} = this.props
if (!src) return null
let url = src

View File

@@ -316,7 +316,7 @@ export default class GoodsReservate extends Component {
return (
<View className='goods-reservate'>
<View className='goods-reservate__storeinfo'>
{isHasActivityInfo ? (
{(isHasActivityInfo && formdata.header_title)? (
<Text className='goods-reservate__tip'>{formdata.header_title}</Text>
) : null}
{formdata &&

View File

@@ -839,26 +839,7 @@ export default class CartIndex extends Component {
随便逛逛
</AtButton>
</SpDefault>
{/* {(!groups.length || this.state.error) && (
<View style={{ textAlign: "center" }}>
<View style="margin-bottom: 20px">
<SpNote img="cart_empty.png">快去给我挑点宝贝吧~</SpNote>
</View>
<View className="btn-go">
<AtButton
type="primary"
onClick={this.navigateTo.bind(
this,
process.env.APP_HOME_PAGE,
true
)}
>
随便逛逛
</AtButton>
</View>
</View>
)} */}
</View>
{invalidList.length > 0 && (