商品浏览页构建前最后一次更新

This commit is contained in:
2026-08-02 00:21:54 +08:00
parent d37a93ab9e
commit e423ab2d73
146 changed files with 3449 additions and 1342 deletions
+10 -10
View File
@@ -1,4 +1,4 @@
import { View, Text, Input, Picker } from '@tarojs/components'
import { View, Text, Image, Input, Picker } from '@tarojs/components'
import Taro from '@tarojs/taro'
import { useState, useEffect } from 'react'
import './index.scss'
@@ -96,7 +96,7 @@ export default function AddressPage() {
<View className='page-header dashed-card mt-20'>
<View className='star-badge' />
<View className='flex-between' style={{ width: '100%' }}>
<Text className='back-btn' onClick={() => Taro.navigateBack()}></Text>
<Text className='back-btn' onTap={() => Taro.navigateBack()}></Text>
<Text className='page-title'></Text>
<View style={{ width: '60px' }} />
</View>
@@ -119,16 +119,16 @@ export default function AddressPage() {
</Text>
</View>
<View className='address-actions'>
<Text className='address-act' onClick={() => openEdit(item)}> </Text>
<Text className='address-act' onClick={() => handleCopy(item)}>📋 </Text>
<Text className='address-act delete' onClick={() => handleDelete(item.id)}>🗑 </Text>
<Text className='address-act' onTap={() => openEdit(item)}> </Text>
<Text className='address-act' onTap={() => handleCopy(item)}>📋 </Text>
<Text className='address-act delete' onTap={() => handleDelete(item.id)}>🗑 </Text>
</View>
</View>
))}
{list.length === 0 && (
<View className='empty-state'>
<Text className='empty-icon'>📍</Text>
<Image className='empty-icon-img' src='/icon/地址.png' mode='aspectFit' />
<Text className='empty-text'></Text>
<Text className='empty-sub'></Text>
</View>
@@ -139,7 +139,7 @@ export default function AddressPage() {
{/* 底部添加按钮 */}
<View className='action-bar'>
<View className='btn-gradient' onClick={openAdd}>
<View className='btn-gradient' onTap={openAdd}>
<Text></Text>
</View>
</View>
@@ -167,16 +167,16 @@ export default function AddressPage() {
<Input className='form-input' placeholder='详细地址:街道、门牌号'
value={detail} onInput={(e: any) => setDetail(e.detail.value)} />
<View className='form-row' onClick={() => setIsDefault(!isDefault)}>
<View className='form-row' onTap={() => setIsDefault(!isDefault)}>
<Text className='form-label'></Text>
<View className={`checkbox ${isDefault ? 'checked' : ''}`} />
</View>
<View className='form-actions'>
<View className='btn-outline' onClick={() => { setShowForm(false); resetForm() }}>
<View className='btn-outline' onTap={() => { setShowForm(false); resetForm() }}>
<Text></Text>
</View>
<View className='btn-gradient' onClick={handleSave}>
<View className='btn-gradient' onTap={handleSave}>
<Text></Text>
</View>
</View>