fix(routes): 修复提现页面路由问题
- 取消注释 app.config.ts 中提现页面路由注册 - 解决 navigateTo 提现页面找不到的问题 - 删除钱包页中跳转提现按钮相关代码 - 确保构建编译通过无错误
This commit is contained in:
@@ -82,3 +82,13 @@
|
|||||||
4. **底部按钮** — 确认按钮 + "提交即表示同意"声明
|
4. **底部按钮** — 确认按钮 + "提交即表示同意"声明
|
||||||
|
|
||||||
构建编译通过 ✓
|
构建编译通过 ✓
|
||||||
|
|
||||||
|
## 提现页面路由修复(pages/user/withdraw/index not found)
|
||||||
|
|
||||||
|
### 问题
|
||||||
|
`navigateTo:fail page "pages/user/withdraw/index" is not found` — app.config.ts 第45行提现页面路由被注释掉了
|
||||||
|
|
||||||
|
### 修复
|
||||||
|
- **`src/app.config.ts`** — 取消注释 `pages/user/withdraw/index` 路由注册
|
||||||
|
|
||||||
|
构建编译通过 ✓
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ export default {
|
|||||||
'pages/user/wallet',
|
'pages/user/wallet',
|
||||||
'pages/user/recharge',
|
'pages/user/recharge',
|
||||||
'pages/user/recharge-record/index',
|
'pages/user/recharge-record/index',
|
||||||
// 'pages/user/withdraw/index',
|
'pages/user/withdraw/index',
|
||||||
'pages/user/balance-log/index',
|
'pages/user/balance-log/index',
|
||||||
'pages/user/coupon-list',
|
'pages/user/coupon-list',
|
||||||
'pages/user/points-record',
|
'pages/user/points-record',
|
||||||
|
|||||||
@@ -49,13 +49,6 @@ const WalletPage: React.FC = () => {
|
|||||||
>
|
>
|
||||||
<Text className='text-white text-sm font-medium'>充值</Text>
|
<Text className='text-white text-sm font-medium'>充值</Text>
|
||||||
</View>
|
</View>
|
||||||
<View
|
|
||||||
className='flex-1 py-2 rounded-full text-center'
|
|
||||||
style={{ backgroundColor: 'rgba(255,255,255,0.2)' }}
|
|
||||||
onClick={() => Taro.navigateTo({ url: '/pages/user/withdraw/index' })}
|
|
||||||
>
|
|
||||||
<Text className='text-white text-sm font-medium'>提现</Text>
|
|
||||||
</View>
|
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
@@ -83,13 +76,6 @@ const WalletPage: React.FC = () => {
|
|||||||
<Text className='text-lg mb-1'>🎫</Text>
|
<Text className='text-lg mb-1'>🎫</Text>
|
||||||
<Text className='text-xs text-gray-600'>兑换码</Text>
|
<Text className='text-xs text-gray-600'>兑换码</Text>
|
||||||
</View>
|
</View>
|
||||||
<View
|
|
||||||
className='flex-1 flex flex-col items-center py-2'
|
|
||||||
onClick={() => Taro.navigateTo({ url: '/pages/user/withdraw/index' })}
|
|
||||||
>
|
|
||||||
<Text className='text-lg mb-1'>💰</Text>
|
|
||||||
<Text className='text-xs text-gray-600'>提现记录</Text>
|
|
||||||
</View>
|
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user