🐞 fix(面料详情): 修复预览图片模糊的问题

This commit is contained in:
xuan 2023-03-20 18:30:00 +08:00
parent 8f065076aa
commit 817929897a
3 changed files with 13 additions and 3 deletions

View File

@ -3,5 +3,6 @@ export default {
navigationBarTextStyle: 'white', navigationBarTextStyle: 'white',
enableShareAppMessage: true, enableShareAppMessage: true,
navigationBarBackgroundColor: '#4A7FFF', navigationBarBackgroundColor: '#4A7FFF',
enablePullDownRefresh: true,
backgroundColorTop: '#4A7FFF', backgroundColorTop: '#4A7FFF',
} }

View File

@ -1,6 +1,6 @@
import { Icon, Text, View } from '@tarojs/components' import { Icon, Text, View } from '@tarojs/components'
import Taro, { useReady } from '@tarojs/taro' import Taro, { usePullDownRefresh, useReady } from '@tarojs/taro'
import classNames from 'classnames' import classNames from 'classnames'
import { useState } from 'react' import { useState } from 'react'
import styles from './index.module.scss' import styles from './index.module.scss'
@ -27,8 +27,17 @@ export default () => {
const { fetchData, state } = GetRebateDetail() const { fetchData, state } = GetRebateDetail()
const getData = async() => {
await fetchData()
Taro.stopPullDownRefresh()
}
usePullDownRefresh(() => {
getData()
})
useReady(() => { useReady(() => {
fetchData() getData()
}) })
return ( return (

View File

@ -632,7 +632,7 @@ const OrderCount = ({ show = false, onClose, title = '', productId = 0, is_first
showGuidePopup && showPopup && <GuidePopup closePopup={() => setshowGuidePopup(false)}></GuidePopup> showGuidePopup && showPopup && <GuidePopup closePopup={() => setshowGuidePopup(false)}></GuidePopup>
} }
<View> <View>
<LabAndImgShow value={labImageValue} show={showLabImage} onClose={closeLabImgShow} /> <LabAndImgShow suffix="!w400" value={labImageValue} show={showLabImage} onClose={closeLabImgShow} />
</View> </View>
<OrganizationNameModal zIndex={99999} showModal={showModal} onClose={handleClose} onShowModalChange={handleShowChange} onConfirm={handleOrganizationNameModalConfirm} /> <OrganizationNameModal zIndex={99999} showModal={showModal} onClose={handleClose} onShowModalChange={handleShowChange} onConfirm={handleOrganizationNameModalConfirm} />