From eafebed867bc3af214523537f090e8d65ff46f7d Mon Sep 17 00:00:00 2001 From: eric Date: Sun, 13 Nov 2022 22:29:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20ios=E5=AE=89=E5=85=A8=E5=8C=BA=E5=9F=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/pages/activityList/components/details/index.js | 2 +- dist/pages/activityList/components/details/index.wxss | 1 - src/pages/activityList/components/details/index.scss | 2 +- src/pages/activityList/components/details/index.tsx | 11 ++++++++++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/dist/pages/activityList/components/details/index.js b/dist/pages/activityList/components/details/index.js index 9e4184e..1171d86 100644 --- a/dist/pages/activityList/components/details/index.js +++ b/dist/pages/activityList/components/details/index.js @@ -1,2 +1,2 @@ /*! For license information please see index.js.LICENSE.txt */ -"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["pages/activityList/components/details/index"],{"./node_modules/@antmjs/vantui/es/button/index.js":function(e,n,t){var o=t("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),s=t("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),i=t("webpack/container/remote/@tarojs/taro"),a=t("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),r=t("./node_modules/@antmjs/vantui/es/wxs/utils.js"),l=t("./node_modules/@antmjs/vantui/es/icon/index.js"),c=t("./node_modules/@antmjs/vantui/es/loading/index.js"),d=t("./node_modules/@antmjs/vantui/es/button/wxs.js"),u=t("webpack/container/remote/react/jsx-runtime"),p=["type","size","block","round","plain","square","loading","disabled","hairline","color","loadingSize","loadingType","loadingText","icon","classPrefix","onClick","children","style","className"];function ownKeys(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var n=1;n { const [dataSource, setdataSource] = useState([]); + const [bottomheight,setbottomheight]=useState(0) useEffect(() => { // 设置标题 @@ -15,6 +17,11 @@ const details = () => { }, []); useEffect(() => { + const {screenHeight,safeArea={}}=Taro.getSystemInfoSync() + // @ts-ignore + let newBottom=screenHeight -safeArea?.bottom??0 + setbottomheight(newBottom) + let objParams = { tableName: "cityNew", id: "80516fb66370bcf300b8f43c5f4dd52b", @@ -27,6 +34,8 @@ const details = () => { getTable(objParams); }, []); + // console.log('SafeAreaResult',Taro.getSystemInfoSync()) + return ( {/* 富文本 */} @@ -35,7 +44,7 @@ const details = () => { - + {/* style={{width:'375px'}} */}