diff --git a/src/components/sp-page/index.js b/src/components/sp-page/index.js
index ff6625235..010f6e09b 100644
--- a/src/components/sp-page/index.js
+++ b/src/components/sp-page/index.js
@@ -8,7 +8,7 @@ import Taro, {
getCurrentInstance,
useReady
} from '@tarojs/taro'
-import { View, Text, ScrollView } from '@tarojs/components'
+import { View, Text, ScrollView, Button } from '@tarojs/components'
import { useImmer } from 'use-immer'
import { SpNavBar, SpFloatMenuItem, SpNote, SpLoading, SpImage, SpModalDivided } from '@/components'
import { useSyncCallback, useWhiteShop, useThemsColor } from '@/hooks'
@@ -402,51 +402,69 @@ const SpPage = memo(
}}
>
{/* {(state.btnReturn || state.btnHome) && ( */}
-
- {state.btnReturn && (
+
+ {state.btnReturn && (
+ Taro.navigateBack()}
+ />
+ )}
+ {state.btnHome && (
+ {
+ Taro.reLaunch({
+ url: isGoodsShelves()
+ ? '/subpages/guide/index'
+ : VERSION_IN_PURCHASE
+ ? '/pages/purchase/index'
+ : '/pages/index'
+ })
+ }}
+ />
+ )}
+ {props.pageConfig?.pTitleHotSetting?.imgUrl && (
+
Taro.navigateBack()}
- />
- )}
- {state.btnHome && (
- {
- Taro.reLaunch({
- url: isGoodsShelves()
- ? '/subpages/guide/index'
- : VERSION_IN_PURCHASE
- ? '/pages/purchase/index'
- : '/pages/index'
- })
- }}
- />
- )}
- {props.pageConfig?.pTitleHotSetting?.imgUrl && (
-
-
-
- {props.pageConfig?.pTitleHotSetting?.data?.map(citem => (
+ src={props.pageConfig?.pTitleHotSetting?.imgUrl}
+ mode='aspectFit'
+ >
+ {props.pageConfig?.pTitleHotSetting?.data?.map((citem) => {
+ console.log(citem)
+ if (citem.id == 'customerService') {
+ return (
+
+ )
+ }
+ return (
linkPage(citem)}
/>
- ))}
-
- )}
-
+ )
+ })}
+
+ )}
+
{/* )} */}
-
+
{props.renderNavigation ? (
-
- {props.renderNavigation}
-
+ {props.renderNavigation}
) : (
{renderTitle || props.title || navigationBarTitleText}
diff --git a/src/components/sp-page/index.scss b/src/components/sp-page/index.scss
index b7a5a483a..d500d70c1 100644
--- a/src/components/sp-page/index.scss
+++ b/src/components/sp-page/index.scss
@@ -216,5 +216,8 @@
.img-hotzone_zone {
position: absolute;
}
+ .opacity-0 {
+ opacity: 0;
+ }
}
}