feat: fix

This commit is contained in:
2025-11-30 22:59:30 +08:00
parent 15d5b05587
commit 8396b5b02a
13 changed files with 157 additions and 106 deletions

View File

@@ -37,6 +37,10 @@ function isFull(counts) {
return false;
}
function RmbIcon() {
return <Text className={styles.rmbSymbol}>¥</Text>;
}
function matchNtrpRequestment(
target?: string,
min?: string,
@@ -100,24 +104,29 @@ export default function StickyButton(props) {
return () => {
if (!userInfo?.phone) {
Taro.showModal({
title: '提示',
content: '该功能需要绑定手机号',
confirmText: '去绑定',
cancelText: '取消',
title: "提示",
content: "该功能需要绑定手机号",
confirmText: "去绑定",
cancelText: "取消",
success: (res) => {
if (res.confirm) {
const currentPath = Taro.getCurrentInstance().router?.path || '';
const currentParams = Taro.getCurrentInstance().router?.params || {};
const currentPath = Taro.getCurrentInstance().router?.path || "";
const currentParams =
Taro.getCurrentInstance().router?.params || {};
const queryString = Object.keys(currentParams)
.map(key => `${key}=${currentParams[key]}`)
.join('&');
const fullPath = queryString ? `${currentPath}?${queryString}` : currentPath;
.map((key) => `${key}=${currentParams[key]}`)
.join("&");
const fullPath = queryString
? `${currentPath}?${queryString}`
: currentPath;
Taro.navigateTo({
url: `/login_pages/index/index?redirect=${encodeURIComponent(fullPath)}`,
url: `/login_pages/index/index?redirect=${encodeURIComponent(
fullPath
)}`,
});
}
}
},
});
return;
}
@@ -229,7 +238,8 @@ export default function StickyButton(props) {
return {
text: () => (
<>
<Image className={styles.crrrencySymbol} src={RMB_ICON} />
{/* <Image className={styles.crrrencySymbol} src={RMB_ICON} /> */}
<RmbIcon />
{displayPrice}
<Text className={styles.btnText}></Text>
</>
@@ -240,7 +250,7 @@ export default function StickyButton(props) {
return {
text: () => (
<>
<Image className={styles.crrrencySymbol} src={RMB_ICON} />
<RmbIcon />
{displayPrice}
<Text className={styles.btnText}></Text>
</>
@@ -251,7 +261,7 @@ export default function StickyButton(props) {
return {
text: () => (
<>
<Image className={styles.crrrencySymbol} src={RMB_ICON} />
<RmbIcon />
{displayPrice}
<Text className={styles.btnText}></Text>
</>
@@ -269,7 +279,7 @@ export default function StickyButton(props) {
return {
text: () => (
<>
<Image className={styles.crrrencySymbol} src={RMB_ICON} />
<RmbIcon />
{displayPrice}
<Text className={styles.btnText}></Text>
</>
@@ -282,7 +292,7 @@ export default function StickyButton(props) {
return {
text: () => (
<>
<Image className={styles.crrrencySymbol} src={RMB_ICON} />
<RmbIcon />
{displayPrice}
<Text className={styles.btnText}></Text>
</>
@@ -294,7 +304,7 @@ export default function StickyButton(props) {
text: () => {
return (
<>
<Image className={styles.crrrencySymbol} src={RMB_ICON} />
<RmbIcon />
{displayPrice}
<Text className={styles.btnText}></Text>
</>
@@ -306,7 +316,7 @@ export default function StickyButton(props) {
return {
text: () => (
<>
<Image className={styles.crrrencySymbol} src={RMB_ICON} />
<RmbIcon />
{displayPrice}
<Text className={styles.btnText}></Text>
</>