|
|
@ -74,8 +74,9 @@ class _GoodDetailPageState extends State<GoodDetailPage> {
|
|
|
|
if (appProvider.defaultAddressModel == null) {
|
|
|
|
if (appProvider.defaultAddressModel == null) {
|
|
|
|
return '选择收货地址';
|
|
|
|
return '选择收货地址';
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
return (appProvider.defaultAddressModel!.locationName ?? '') +
|
|
|
|
return (_goodDetail!.stockStatus == 1) ? '有货' : '无货';
|
|
|
|
(appProvider.defaultAddressModel!.addressDetail ?? '');
|
|
|
|
// (appProvider.defaultAddressModel!.locationName ?? '') +
|
|
|
|
|
|
|
|
// (appProvider.defaultAddressModel!.addressDetail ?? '');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
return (_addressModel!.locationName ?? '') +
|
|
|
|
return (_addressModel!.locationName ?? '') +
|
|
|
@ -393,6 +394,7 @@ class _GoodDetailPageState extends State<GoodDetailPage> {
|
|
|
|
var result = await Get.to(() => AddressListPage(
|
|
|
|
var result = await Get.to(() => AddressListPage(
|
|
|
|
canBack: true,
|
|
|
|
canBack: true,
|
|
|
|
));
|
|
|
|
));
|
|
|
|
|
|
|
|
_addressModel = null;
|
|
|
|
if (result != null) {
|
|
|
|
if (result != null) {
|
|
|
|
_addressModel = result;
|
|
|
|
_addressModel = result;
|
|
|
|
_refreshController.callRefresh();
|
|
|
|
_refreshController.callRefresh();
|
|
|
@ -418,8 +420,9 @@ class _GoodDetailPageState extends State<GoodDetailPage> {
|
|
|
|
width: 430.w,
|
|
|
|
width: 430.w,
|
|
|
|
child: Text(
|
|
|
|
child: Text(
|
|
|
|
receiveAddress,
|
|
|
|
receiveAddress,
|
|
|
|
style:
|
|
|
|
style: receiveAddress == '无货'
|
|
|
|
TextStyle(fontSize: 24.sp, color: ktextPrimary),
|
|
|
|
? TextStyle(fontSize: 24.sp, color: kDangerColor)
|
|
|
|
|
|
|
|
: TextStyle(fontSize: 24.sp, color: ktextPrimary),
|
|
|
|
maxLines: 1,
|
|
|
|
maxLines: 1,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -433,27 +436,27 @@ class _GoodDetailPageState extends State<GoodDetailPage> {
|
|
|
|
16.wb,
|
|
|
|
16.wb,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Row(
|
|
|
|
// Row(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
// children: [
|
|
|
|
120.wb,
|
|
|
|
// 120.wb,
|
|
|
|
20.hb,
|
|
|
|
// 20.hb,
|
|
|
|
Offstage(
|
|
|
|
// Offstage(
|
|
|
|
offstage: receiveAddress == '选择收货地址',
|
|
|
|
// offstage: receiveAddress == '选择收货地址',
|
|
|
|
child: (_goodDetail!.stockStatus == 1)
|
|
|
|
// child: (_goodDetail!.stockStatus == 1)
|
|
|
|
? '有货'
|
|
|
|
// ? '有货'
|
|
|
|
.text
|
|
|
|
// .text
|
|
|
|
.color(Color(0xFFE52E2E))
|
|
|
|
// .color(Color(0xFFE52E2E))
|
|
|
|
.size(28.sp)
|
|
|
|
// .size(28.sp)
|
|
|
|
.make()
|
|
|
|
// .make()
|
|
|
|
: '无货'
|
|
|
|
// : '无货'
|
|
|
|
.text
|
|
|
|
// .text
|
|
|
|
.color(Color(0xFFE52E2E))
|
|
|
|
// .color(Color(0xFFE52E2E))
|
|
|
|
.size(28.sp)
|
|
|
|
// .size(28.sp)
|
|
|
|
.make(),
|
|
|
|
// .make(),
|
|
|
|
)
|
|
|
|
// )
|
|
|
|
],
|
|
|
|
// ],
|
|
|
|
),
|
|
|
|
// ),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -779,5 +782,4 @@ class _GoodDetailPageState extends State<GoodDetailPage> {
|
|
|
|
|
|
|
|
|
|
|
|
return count + '折';
|
|
|
|
return count + '折';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|