forked from gxwebsoft/mp-10550
feat(gift): 将礼品卡功能重命名为水票并添加新增页面路由
- 将所有"礼品卡"文本替换为"水票",包括页面标题、组件文案、注释等 - 修改首页导航,将充值水票按钮指向我的水票页面 - 调整订水按钮链接直接跳转到商品详情页 - 移除帮助按钮相关代码 - 更新数据转换函数中的面值规格文案 - 修改核销成功提示中的商品类型文案 - 调整空状态提示文案为水票相关内容 - 在应用配置中添加新的水票添加页面路由 - 更新类型定义中的注释说明
This commit is contained in:
@@ -65,7 +65,7 @@ const UserCard = forwardRef<any, any>((_, ref) => {
|
||||
setUserInfo(data)
|
||||
setIsLogin(true);
|
||||
Taro.setStorageSync('UserId', data.userId)
|
||||
// 登录态已就绪后刷新卡片统计(余额/积分/券/礼品卡)
|
||||
// 登录态已就绪后刷新卡片统计(余额/积分/券/水票)
|
||||
refresh().then()
|
||||
|
||||
// 获取openId
|
||||
@@ -164,7 +164,7 @@ const UserCard = forwardRef<any, any>((_, ref) => {
|
||||
Taro.setStorageSync('UserId', res.data.data.user.userId)
|
||||
setUserInfo(res.data.data.user)
|
||||
setIsLogin(true)
|
||||
// 登录态已就绪后刷新卡片统计(余额/积分/券/礼品卡)
|
||||
// 登录态已就绪后刷新卡片统计(余额/积分/券/水票)
|
||||
refresh().then()
|
||||
}
|
||||
})
|
||||
@@ -228,7 +228,7 @@ const UserCard = forwardRef<any, any>((_, ref) => {
|
||||
// 核销成功,可以显示更多信息或跳转到详情页
|
||||
Taro.showModal({
|
||||
title: '核销成功',
|
||||
content: `已成功核销的品类:${result.data.goodsName || '礼品卡'},面值¥${result.data.faceValue}`
|
||||
content: `已成功核销的品类:${result.data.goodsName || '水票'},面值¥${result.data.faceValue}`
|
||||
});
|
||||
}
|
||||
}}
|
||||
@@ -256,7 +256,7 @@ const UserCard = forwardRef<any, any>((_, ref) => {
|
||||
</View>
|
||||
<View className={'item flex justify-center flex-col items-center'}
|
||||
onClick={() => navTo('/user/gift/index', true)}>
|
||||
<Text className={'text-xs text-gray-200'} style={themeStyles.textColor}>礼品卡</Text>
|
||||
<Text className={'text-xs text-gray-200'} style={themeStyles.textColor}>水票</Text>
|
||||
<Text className={'text-xl text-white'} style={themeStyles.textColor}>{data?.giftCards || 0}</Text>
|
||||
</View>
|
||||
</View>
|
||||
|
||||
Reference in New Issue
Block a user