Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
book-app
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
book-app
Commits
513231a2
提交
513231a2
authored
2月 27, 2024
作者:
yueweilu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复bug
上级
0c4781fc
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
11 行增加
和
7 行删除
+11
-7
controller.dart
lib/pages/book_pay/controller.dart
+1
-1
view.dart
lib/pages/book_pay/view.dart
+4
-2
controller.dart
lib/pages/login/controller.dart
+3
-1
controller.dart
lib/pages/user_order_cancel_detail/controller.dart
+1
-1
view.dart
lib/pages/user_security/view.dart
+1
-1
view.dart
lib/pages/user_set/view.dart
+1
-1
没有找到文件。
lib/pages/book_pay/controller.dart
浏览文件 @
513231a2
...
@@ -55,7 +55,6 @@ class BookPayController extends GetxController {
...
@@ -55,7 +55,6 @@ class BookPayController extends GetxController {
void
setUseCoupon
(
CouponModel
model
){
void
setUseCoupon
(
CouponModel
model
){
useCouponModel
=
model
;
useCouponModel
=
model
;
print
(
'使用优惠券。。。。。。。。。。。。。。。。
${model.couponRecId}
'
);
print
(
'使用优惠券。。。。。。。。。。。。。。。。
${model.couponRecId}
'
);
computeFinalPrice
();
// 使用优惠券后重新获取积分
// 使用优惠券后重新获取积分
_getCreditPoints
(
price:
originalPrice
.
toString
(),
couponRecId:
useCouponModel
.
couponRecId
.
toString
());
_getCreditPoints
(
price:
originalPrice
.
toString
(),
couponRecId:
useCouponModel
.
couponRecId
.
toString
());
}
}
...
@@ -102,6 +101,7 @@ class BookPayController extends GetxController {
...
@@ -102,6 +101,7 @@ class BookPayController extends GetxController {
required
String
couponRecId
required
String
couponRecId
})
async
{
})
async
{
creditPointModel
=
await
ShopAPI
.
creditPoints
(
price:
price
,
couponRecId:
useCouponModel
.
couponRecId
.
toString
());
creditPointModel
=
await
ShopAPI
.
creditPoints
(
price:
price
,
couponRecId:
useCouponModel
.
couponRecId
.
toString
());
computeFinalPrice
();
update
();
update
();
}
}
/// 是否展示优惠券 和积分使用 模型
/// 是否展示优惠券 和积分使用 模型
...
...
lib/pages/book_pay/view.dart
浏览文件 @
513231a2
...
@@ -67,7 +67,9 @@ class _BookPayPageState extends State<BookPayPage> {
...
@@ -67,7 +67,9 @@ class _BookPayPageState extends State<BookPayPage> {
controller
.
showModel
.
integralSwitch
==
'0'
?
const
SizedBox
():
GestureDetector
(
controller
.
showModel
.
integralSwitch
==
'0'
?
const
SizedBox
():
GestureDetector
(
child:
_buildPointWidget
(
controller
,
title:
'积分抵扣'
,
icon:
'assets/images/pay_point.png'
,),
child:
_buildPointWidget
(
controller
,
title:
'积分抵扣'
,
icon:
'assets/images/pay_point.png'
,),
onTap:
(){
onTap:
(){
context
.
pushNamed
(
Routes
.
creditPoints
);
if
(
controller
.
creditPointModel
.
deductibleIntegral
!=
0
){
context
.
pushNamed
(
Routes
.
creditPoints
);
}
},
},
),
),
],
],
...
@@ -296,7 +298,7 @@ class _BookPayPageState extends State<BookPayPage> {
...
@@ -296,7 +298,7 @@ class _BookPayPageState extends State<BookPayPage> {
mainAxisAlignment:
MainAxisAlignment
.
center
,
mainAxisAlignment:
MainAxisAlignment
.
center
,
children:
[
children:
[
controller
.
useCreditPoint
?
Text
(
'-¥
${controller.creditPointModel.deductibleAmount}
'
,
style:
TextStyle
(
fontSize:
13
.
w
,
color:
AppTheme
.
primary
,
height:
1.4
),)
controller
.
useCreditPoint
?
Text
(
'-¥
${controller.creditPointModel.deductibleAmount}
'
,
style:
TextStyle
(
fontSize:
13
.
w
,
color:
AppTheme
.
primary
,
height:
1.4
),)
:
Text
(
'去选择'
,
style:
TextStyle
(
fontSize:
13
.
w
,
color:
Colours
.
c9
,
height:
1.4
)),
:
Text
(
controller
.
creditPointModel
.
deductibleIntegral
==
0
?
'不可用'
:
'去选择'
,
style:
TextStyle
(
fontSize:
13
.
w
,
color:
Colours
.
c9
,
height:
1.4
)),
Gaps
.
hGaps10
,
Gaps
.
hGaps10
,
SizedBox
(
SizedBox
(
// color: Colors.cyan,
// color: Colors.cyan,
...
...
lib/pages/login/controller.dart
浏览文件 @
513231a2
...
@@ -89,7 +89,9 @@ class LoginController extends GetxController {
...
@@ -89,7 +89,9 @@ class LoginController extends GetxController {
/// 测试账号
/// 测试账号
if
(
kDebugMode
)
{
if
(
kDebugMode
)
{
phoneInput
.
text
=
'13521054068'
;
phoneInput
.
text
=
'13521054068'
;
passwordInput
.
text
=
'zj123456'
;
passwordInput
.
text
=
'zj123456'
;
// phoneInput.text = '17311837355';
// passwordInput.text = '12345678';
}
}
super
.
onInit
();
super
.
onInit
();
}
}
...
...
lib/pages/user_order_cancel_detail/controller.dart
浏览文件 @
513231a2
...
@@ -40,7 +40,7 @@ class UserOrderCancelDetailController extends GetxController {
...
@@ -40,7 +40,7 @@ class UserOrderCancelDetailController extends GetxController {
OrderCompletedModel
(
name:
'支付方式'
,
value:
payWay
),
OrderCompletedModel
(
name:
'支付方式'
,
value:
payWay
),
OrderCompletedModel
(
name:
'支付时间'
,
value:
model
.
payTime
.
toString
()),
OrderCompletedModel
(
name:
'支付时间'
,
value:
model
.
payTime
.
toString
()),
OrderCompletedModel
(
name:
'下单时间'
,
value:
model
.
createTime
.
toString
()),
OrderCompletedModel
(
name:
'下单时间'
,
value:
model
.
createTime
.
toString
()),
OrderCompletedModel
(
name:
'退款时间'
,
value:
model
.
refundTime
.
toString
()),
//
OrderCompletedModel(name: '退款时间',value: model.refundTime.toString()),
];
];
update
();
update
();
...
...
lib/pages/user_security/view.dart
浏览文件 @
513231a2
...
@@ -162,7 +162,7 @@ class _UserSecurityPageState extends State<UserSecurityPage> {
...
@@ -162,7 +162,7 @@ class _UserSecurityPageState extends State<UserSecurityPage> {
'确定'
,
'确定'
,
style:
TextStyle
(
style:
TextStyle
(
fontSize:
15
,
fontSize:
15
,
fontWeight:
Fonts
.
medium
,
fontWeight:
Fonts
.
boldSemi
,
color:
Colours
.
cAB1941
,
color:
Colours
.
cAB1941
,
),
),
),
),
...
...
lib/pages/user_set/view.dart
浏览文件 @
513231a2
...
@@ -174,7 +174,7 @@ class _UserSetPageState extends State<UserSetPage> {
...
@@ -174,7 +174,7 @@ class _UserSetPageState extends State<UserSetPage> {
'确定'
,
'确定'
,
style:
TextStyle
(
style:
TextStyle
(
fontSize:
15
,
fontSize:
15
,
fontWeight:
Fonts
.
medium
,
fontWeight:
Fonts
.
boldSemi
,
color:
Colours
.
cAB1941
,
color:
Colours
.
cAB1941
,
),
),
),
),
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论