Commit b0b84735 by lirandong

fix bug

parent 940b1464
......@@ -5,12 +5,10 @@ import DetailTop from './conpoments/detail_top'
import { ITempItem } from '@/reducers/counter'
import { ComponentClass } from 'react'
import Taro, { Component, Config } from '@tarojs/taro'
import { getWindiwHeight, showMyToast } from '@/common/utils'
import { View, Text, ScrollView, Button, Input } from '@tarojs/components'
import { Header } from 'react-navigation'
import './scss/detail.scss'
import { getWindiwHeight, showMyToast } from '@/common/utils'
type PageOwnProps = {}
export interface IDetailData {
......@@ -129,7 +127,10 @@ class TempDetail extends Component {
const { detailData, filmDataList, showModal, windowHeight } = this.state
return (
<View className="temp-detail" style={{ height: windowHeight }}>
<View
className="temp-detail"
style={{ height: process.env.TARO_ENV === 'rn' ? windowHeight : '100%' }}
>
<View className="temp-detail-scroll">
<ScrollView scrollY className="temp-detail-scroll-view">
<DetailTop {...detailData} />
......
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 sign in to comment