|
|
|
@ -18,6 +18,7 @@ import 'package:huixiang/retrofit/data/shoppingCart.dart';
|
|
|
|
|
import 'package:huixiang/retrofit/data/store_info.dart'; |
|
|
|
|
import 'package:huixiang/retrofit/min_api.dart'; |
|
|
|
|
import 'package:huixiang/retrofit/retrofit_api.dart'; |
|
|
|
|
import 'package:huixiang/settlement/settlement_model.dart'; |
|
|
|
|
import 'package:huixiang/store/store_view/product_sku.dart'; |
|
|
|
|
import 'package:huixiang/utils/font_weight.dart'; |
|
|
|
|
import 'package:huixiang/view_widget/classic_header.dart'; |
|
|
|
@ -80,9 +81,9 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
int tempM = 0; |
|
|
|
|
int tempS = 0; |
|
|
|
|
LaunchJoinAct launchJoinAct; |
|
|
|
|
int bargainType = 0; |
|
|
|
|
BargainType bargainType = BargainType.BargainZBug; |
|
|
|
|
String indexP; |
|
|
|
|
int joinA = 0; |
|
|
|
|
JoinActivity joinA = JoinActivity.GoJoin; |
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
void dispose() { |
|
|
|
@ -105,8 +106,7 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
limitTime = widget.arguments["limitTime"]; |
|
|
|
|
bannerImg = widget.arguments["bannerImg"]; |
|
|
|
|
productId = widget.arguments["productId"]; |
|
|
|
|
|
|
|
|
|
startCountdownTimer(); |
|
|
|
|
if (pageType == "1") startCountdownTimer(); |
|
|
|
|
debugPrint("store_param tenant:$tenant storeId:$storeId"); |
|
|
|
|
|
|
|
|
|
SharedPreferences.getInstance().then((value) { |
|
|
|
@ -251,7 +251,7 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
///发起活动 |
|
|
|
|
// ///发起活动 |
|
|
|
|
// queryLaunchAct() async { |
|
|
|
|
// if (minService == null) |
|
|
|
|
// minService = MinApiService( |
|
|
|
@ -270,7 +270,10 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
// "actTemplateId": activityDetails.actProduct.templateId, |
|
|
|
|
// "actTimeId": activityDetails.actProduct.timeId, |
|
|
|
|
// "addressId": "", |
|
|
|
|
// "isDirectBuy": (bargainType == 1 || bargainType == 2) ? false : true, |
|
|
|
|
// "isDirectBuy": (bargainType == BargainType.BargainBug || |
|
|
|
|
// bargainType == BargainType.CollageBug) |
|
|
|
|
// ? false |
|
|
|
|
// : true, |
|
|
|
|
// "getType": 3, |
|
|
|
|
// "productId": |
|
|
|
|
// pageType == null ? productId : activityDetails.actProduct.productId, |
|
|
|
@ -287,38 +290,8 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
// refreshController.refreshCompleted(); |
|
|
|
|
// }); |
|
|
|
|
// } else { |
|
|
|
|
// if((activityDetails?.actProduct?.productStock ?? 0) == 0) |
|
|
|
|
// SmartDialog.showToast("活动商品售罄",alignment: Alignment.center); |
|
|
|
|
// refreshController.refreshFailed(); |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
// |
|
|
|
|
// ///参与活动 |
|
|
|
|
// queryJoinAct() async { |
|
|
|
|
// BaseData baseData = await minService.joinAct({ |
|
|
|
|
// "actProductId": pageType == null |
|
|
|
|
// ? miNiDetail.productSkuVOList[0].id |
|
|
|
|
// : activityDetails.actProduct.id, |
|
|
|
|
// "actRecordId": indexP, |
|
|
|
|
// "actTemplateId": activityDetails.actProduct.templateId, |
|
|
|
|
// "actTimeId": activityDetails.actProduct.timeId, |
|
|
|
|
// "addressId": "", |
|
|
|
|
// "isDirectBuy": pageType == "3" ? false : true, |
|
|
|
|
// "getType": 1, |
|
|
|
|
// "productId": |
|
|
|
|
// pageType == null ? productId : activityDetails.actProduct.productId, |
|
|
|
|
// "skuId": skuId1, |
|
|
|
|
// "skuPrice": skuPrice1, |
|
|
|
|
// "templateType": pageType, |
|
|
|
|
// }).catchError((error) { |
|
|
|
|
// refreshController.refreshFailed(); |
|
|
|
|
// }); |
|
|
|
|
// if (baseData != null && baseData.isSuccess) { |
|
|
|
|
// launchJoinAct = baseData.data; |
|
|
|
|
// toOrder(); |
|
|
|
|
// refreshController.refreshCompleted(); |
|
|
|
|
// } else { |
|
|
|
|
// SmartDialog.showToast(baseData.msg,alignment: Alignment.center); |
|
|
|
|
// if ((activityDetails?.actProduct?.productStock ?? 0) == 0) |
|
|
|
|
// SmartDialog.showToast("活动商品售罄", alignment: Alignment.center); |
|
|
|
|
// refreshController.refreshFailed(); |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
@ -520,6 +493,23 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
///普通商品直接购买去下单结算页面 |
|
|
|
|
toGoods() async { |
|
|
|
|
if (count1 == 0) { |
|
|
|
|
SmartDialog.showToast("请先选择您要购买的商品!~"); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
await Navigator.of(context).pushNamed( |
|
|
|
|
'/router/settlement', |
|
|
|
|
arguments: { |
|
|
|
|
"storeInfo": storeInfo, |
|
|
|
|
"productId": miNiDetail.id, |
|
|
|
|
"productSkuId": skuId1, |
|
|
|
|
"buyNum": count1, |
|
|
|
|
}, |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
///直接购买去下单结算页面 |
|
|
|
|
toOrder() async { |
|
|
|
|
await Navigator.of(context).pushNamed( |
|
|
|
@ -534,14 +524,13 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
"skuId": skuId1, |
|
|
|
|
"buyNum": count1, |
|
|
|
|
"skuValue1": skuValue1, |
|
|
|
|
// "orderId": launchJoinAct.orderId, |
|
|
|
|
"actProductId": actProductId, |
|
|
|
|
"actProductSkuId": skuId1, |
|
|
|
|
"activityDetails":activityDetails, |
|
|
|
|
"bargainType":bargainType, |
|
|
|
|
"skuPrice1":skuPrice1, |
|
|
|
|
"joinA":joinA, |
|
|
|
|
"indexP":indexP |
|
|
|
|
"activityDetails": activityDetails, |
|
|
|
|
"bargainType": bargainType, |
|
|
|
|
"skuPrice1": skuPrice1, |
|
|
|
|
"joinA": joinA, |
|
|
|
|
"indexP": indexP |
|
|
|
|
}, |
|
|
|
|
).then((value) { |
|
|
|
|
_onRefresh(); |
|
|
|
@ -549,15 +538,15 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
///去砍价详情页面 |
|
|
|
|
toBargain() async { |
|
|
|
|
await Navigator.of(context) |
|
|
|
|
.pushNamed('/router/bargain_details', arguments: { |
|
|
|
|
"actRecordId": launchJoinAct.actRecordId, |
|
|
|
|
"limitNumber": limitNumber, |
|
|
|
|
"storeInfo": storeInfo, |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
// ///去砍价详情页面 |
|
|
|
|
// toBargain() async { |
|
|
|
|
// await Navigator.of(context) |
|
|
|
|
// .pushNamed('/router/bargain_details', arguments: { |
|
|
|
|
// "actRecordId": launchJoinAct.actRecordId, |
|
|
|
|
// "limitNumber": limitNumber, |
|
|
|
|
// "storeInfo": storeInfo, |
|
|
|
|
// }); |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
Widget build(BuildContext context) { |
|
|
|
@ -631,7 +620,9 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
color: Colors.white, |
|
|
|
|
margin: EdgeInsets.only(bottom: 72.h), |
|
|
|
|
child: Html( |
|
|
|
|
data: pageType != null ? (activityDetails?.actProduct?.detail ?? "") : (miNiDetail?.detail ?? ""), |
|
|
|
|
data: pageType != null |
|
|
|
|
? (activityDetails?.actProduct?.detail ?? "") |
|
|
|
|
: (miNiDetail?.detail ?? ""), |
|
|
|
|
customImageRenders: { |
|
|
|
|
networkSourceMatcher(): networkImageRender( |
|
|
|
|
loadingWidget: () { |
|
|
|
@ -777,11 +768,7 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
), |
|
|
|
|
GestureDetector( |
|
|
|
|
onTap: () { |
|
|
|
|
if (count1 == 0) { |
|
|
|
|
SmartDialog.showToast("请先选择您要购买的商品!~"); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
// queryLaunchAct(); |
|
|
|
|
toGoods(); |
|
|
|
|
}, |
|
|
|
|
child: Container( |
|
|
|
|
alignment: Alignment.center, |
|
|
|
@ -818,7 +805,7 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
children: [ |
|
|
|
|
GestureDetector( |
|
|
|
|
onTap: () { |
|
|
|
|
joinA=4; |
|
|
|
|
joinA = JoinActivity.MZBug; |
|
|
|
|
if (count1 == 0) { |
|
|
|
|
SmartDialog.showToast("请先选择您要购买的商品!~"); |
|
|
|
|
return; |
|
|
|
@ -879,7 +866,7 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
), |
|
|
|
|
GestureDetector( |
|
|
|
|
onTap: () { |
|
|
|
|
joinA=5; |
|
|
|
|
joinA = JoinActivity.MBug; |
|
|
|
|
if (count1 == 0) { |
|
|
|
|
SmartDialog.showToast("请先选择您要购买的商品!~"); |
|
|
|
|
return; |
|
|
|
@ -951,8 +938,8 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
children: [ |
|
|
|
|
GestureDetector( |
|
|
|
|
onTap: () { |
|
|
|
|
bargainType = 0; |
|
|
|
|
joinA=3; |
|
|
|
|
bargainType = BargainType.BargainZBug; |
|
|
|
|
joinA = JoinActivity.BargainZBug; |
|
|
|
|
if (count1 == 0) { |
|
|
|
|
SmartDialog.showToast("请先选择您要购买的商品!~"); |
|
|
|
|
return; |
|
|
|
@ -1013,7 +1000,8 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
), |
|
|
|
|
GestureDetector( |
|
|
|
|
onTap: () { |
|
|
|
|
bargainType = 1; |
|
|
|
|
bargainType = BargainType.BargainBug; |
|
|
|
|
joinA = JoinActivity.BargainBug; |
|
|
|
|
if (count1 == 0) { |
|
|
|
|
SmartDialog.showToast("请先选择您要购买的商品!~"); |
|
|
|
|
return; |
|
|
|
@ -1085,7 +1073,7 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
children: [ |
|
|
|
|
GestureDetector( |
|
|
|
|
onTap: () { |
|
|
|
|
joinA = 2; |
|
|
|
|
joinA = JoinActivity.CollageZBug; |
|
|
|
|
if (count1 == 0) { |
|
|
|
|
SmartDialog.showToast("请先选择您要购买的商品!~"); |
|
|
|
|
return; |
|
|
|
@ -1146,8 +1134,8 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
), |
|
|
|
|
GestureDetector( |
|
|
|
|
onTap: () { |
|
|
|
|
bargainType = 2; |
|
|
|
|
joinA = 1; |
|
|
|
|
bargainType = BargainType.CollageBug; |
|
|
|
|
joinA = JoinActivity.CollageBug; |
|
|
|
|
if (count1 == 0) { |
|
|
|
|
SmartDialog.showToast("请先选择您要购买的商品!~"); |
|
|
|
|
return; |
|
|
|
@ -1252,12 +1240,8 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
gradient: LinearGradient( |
|
|
|
|
begin: Alignment.centerLeft, |
|
|
|
|
end: Alignment.centerRight, |
|
|
|
|
colors: [ |
|
|
|
|
Color(0xFF32A057), |
|
|
|
|
Color(0xFF61CE6B) |
|
|
|
|
])), |
|
|
|
|
child: |
|
|
|
|
Row( |
|
|
|
|
colors: [Color(0xFF32A057), Color(0xFF61CE6B)])), |
|
|
|
|
child: Row( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
children: [ |
|
|
|
@ -1287,8 +1271,8 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
SizedBox(width: 4.w), |
|
|
|
|
Expanded(child: |
|
|
|
|
Column( |
|
|
|
|
Expanded( |
|
|
|
|
child: Column( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
children: [ |
|
|
|
@ -1359,7 +1343,7 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
color: Color(0xFFFFFFFF), |
|
|
|
|
), |
|
|
|
|
child: Text( |
|
|
|
|
"最高可砍${double.parse(activityDetails?.actProduct?.productPrice ?? "0") - double.parse(activityDetails?.actProduct?.promotionPrice ?? "0")}元", |
|
|
|
|
"最高可砍${(double.parse(activityDetails?.actProduct?.productPrice ?? "0") - double.parse(activityDetails?.actProduct?.promotionPrice ?? "0")).toStringAsFixed(2)}元", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 9.sp, |
|
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
@ -1387,21 +1371,21 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
))) |
|
|
|
|
], |
|
|
|
|
)), |
|
|
|
|
pageType != null ? |
|
|
|
|
(pageType == "2" ? |
|
|
|
|
Row( |
|
|
|
|
pageType != null |
|
|
|
|
? (pageType == "2" |
|
|
|
|
? Row( |
|
|
|
|
children: [ |
|
|
|
|
MImage( |
|
|
|
|
activityDetails?.actProduct?.rightImg ?? "", |
|
|
|
|
width:72, |
|
|
|
|
height:30.h, |
|
|
|
|
width: 72, |
|
|
|
|
height: 30.h, |
|
|
|
|
fit: BoxFit.cover, |
|
|
|
|
errorSrc: "assets/image/default_1.png", |
|
|
|
|
fadeSrc: "assets/image/default_1.png", |
|
|
|
|
), |
|
|
|
|
Container( |
|
|
|
|
width:91, |
|
|
|
|
height:50, |
|
|
|
|
width: 91, |
|
|
|
|
height: 50, |
|
|
|
|
color: Color(0xFFB1F6CD), |
|
|
|
|
margin: EdgeInsets.only(left: 15), |
|
|
|
|
child: Column( |
|
|
|
@ -1418,8 +1402,10 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
), |
|
|
|
|
SizedBox(height: 3), |
|
|
|
|
Row( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
mainAxisAlignment: |
|
|
|
|
MainAxisAlignment.center, |
|
|
|
|
crossAxisAlignment: |
|
|
|
|
CrossAxisAlignment.center, |
|
|
|
|
children: [ |
|
|
|
|
InkWell( |
|
|
|
|
onTap: () { |
|
|
|
@ -1431,7 +1417,8 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
alignment: Alignment.center, |
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
color: Color(0xFF32A060), |
|
|
|
|
borderRadius: BorderRadius.circular(1)), |
|
|
|
|
borderRadius: |
|
|
|
|
BorderRadius.circular(1)), |
|
|
|
|
child: Text( |
|
|
|
|
tempDay.toString(), |
|
|
|
|
style: TextStyle( |
|
|
|
@ -1443,7 +1430,8 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
Padding( |
|
|
|
|
padding: EdgeInsets.only(left: 2.w, right: 2.w), |
|
|
|
|
padding: EdgeInsets.only( |
|
|
|
|
left: 2.w, right: 2.w), |
|
|
|
|
child: Text( |
|
|
|
|
":", |
|
|
|
|
style: TextStyle( |
|
|
|
@ -1463,7 +1451,8 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
alignment: Alignment.center, |
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
color: Color(0xFF32A060), |
|
|
|
|
borderRadius: BorderRadius.circular(1)), |
|
|
|
|
borderRadius: |
|
|
|
|
BorderRadius.circular(1)), |
|
|
|
|
child: Text( |
|
|
|
|
tempHour.toString(), |
|
|
|
|
style: TextStyle( |
|
|
|
@ -1475,7 +1464,8 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
Padding( |
|
|
|
|
padding: EdgeInsets.only(left: 2.w, right: 2.w), |
|
|
|
|
padding: EdgeInsets.only( |
|
|
|
|
left: 2.w, right: 2.w), |
|
|
|
|
child: Text( |
|
|
|
|
":", |
|
|
|
|
style: TextStyle( |
|
|
|
@ -1484,7 +1474,8 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
color: Color(0xFF32A060), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
),InkWell( |
|
|
|
|
), |
|
|
|
|
InkWell( |
|
|
|
|
onTap: () { |
|
|
|
|
setState(() {}); |
|
|
|
|
}, |
|
|
|
@ -1494,7 +1485,8 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
alignment: Alignment.center, |
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
color: Color(0xFF32A060), |
|
|
|
|
borderRadius: BorderRadius.circular(1)), |
|
|
|
|
borderRadius: |
|
|
|
|
BorderRadius.circular(1)), |
|
|
|
|
child: Text( |
|
|
|
|
tempM.toString(), |
|
|
|
|
style: TextStyle( |
|
|
|
@ -1506,7 +1498,8 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
Padding( |
|
|
|
|
padding: EdgeInsets.only(left: 2.w, right: 2.w), |
|
|
|
|
padding: EdgeInsets.only( |
|
|
|
|
left: 2.w, right: 2.w), |
|
|
|
|
child: Text( |
|
|
|
|
":", |
|
|
|
|
style: TextStyle( |
|
|
|
@ -1526,7 +1519,8 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
alignment: Alignment.center, |
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
color: Color(0xFF32A060), |
|
|
|
|
borderRadius: BorderRadius.circular(1)), |
|
|
|
|
borderRadius: |
|
|
|
|
BorderRadius.circular(1)), |
|
|
|
|
child: Text( |
|
|
|
|
tempS.toString(), |
|
|
|
|
style: TextStyle( |
|
|
|
@ -1537,19 +1531,25 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
],) |
|
|
|
|
],), |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
],):Padding(padding:EdgeInsets.only(right:16), |
|
|
|
|
child: |
|
|
|
|
MImage( |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
) |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
: Padding( |
|
|
|
|
padding: EdgeInsets.only(right: 16), |
|
|
|
|
child: MImage( |
|
|
|
|
activityDetails?.actProduct?.rightImg ?? "", |
|
|
|
|
width:72, |
|
|
|
|
height:30.h, |
|
|
|
|
width: 72, |
|
|
|
|
height: 30.h, |
|
|
|
|
fit: BoxFit.cover, |
|
|
|
|
errorSrc: "assets/image/default_1.png", |
|
|
|
|
fadeSrc: "assets/image/default_1.png", |
|
|
|
|
),)) : Container(), |
|
|
|
|
), |
|
|
|
|
)) |
|
|
|
|
: Container(), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
@ -1577,7 +1577,7 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
), |
|
|
|
|
Container( |
|
|
|
|
margin: EdgeInsets.only(right: 8), |
|
|
|
|
padding: EdgeInsets.only(left:3, right:3), |
|
|
|
|
padding: EdgeInsets.only(left: 3, right: 3), |
|
|
|
|
height: 17.h, |
|
|
|
|
alignment: Alignment.center, |
|
|
|
|
decoration: BoxDecoration( |
|
|
|
@ -1601,7 +1601,9 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
height: 8.h, |
|
|
|
|
), |
|
|
|
|
Text( |
|
|
|
|
pageType == null ? (miNiDetail?.shortName ?? "") : (activityDetails?.actProduct?.shortName ?? ""), |
|
|
|
|
pageType == null |
|
|
|
|
? (miNiDetail?.shortName ?? "") |
|
|
|
|
: (activityDetails?.actProduct?.shortName ?? ""), |
|
|
|
|
maxLines: 2, |
|
|
|
|
overflow: TextOverflow.ellipsis, |
|
|
|
|
style: TextStyle( |
|
|
|
@ -1763,7 +1765,8 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
), |
|
|
|
|
Expanded( |
|
|
|
|
child: Text( |
|
|
|
|
(skuValue1 ?? "请选择規格") + (count1 > 0 ? "x${count1}" : ""), |
|
|
|
|
(skuValue1 ?? "请选择規格") + |
|
|
|
|
(count1 > 0 ? "x${count1.toInt()}" : ""), |
|
|
|
|
overflow: TextOverflow.ellipsis, |
|
|
|
|
maxLines: 2, |
|
|
|
|
style: TextStyle( |
|
|
|
@ -1981,7 +1984,7 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
), |
|
|
|
|
GestureDetector( |
|
|
|
|
onTap: () { |
|
|
|
|
joinA = 0; |
|
|
|
|
joinA = JoinActivity.GoJoin; |
|
|
|
|
indexP = actRecordAndJoinlDTOList.actRecord.id; |
|
|
|
|
if (count1 == 0) { |
|
|
|
|
SmartDialog.showToast("请先选择您要购买的商品!~"); |
|
|
|
|