feat: fix
This commit is contained in:
@@ -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>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user