|
|
|
@ -80,7 +80,6 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
int tempHour = 0; |
|
|
|
|
int tempM = 0; |
|
|
|
|
int tempS = 0; |
|
|
|
|
LaunchJoinAct launchJoinAct; |
|
|
|
|
BargainType bargainType = BargainType.BargainZBug; |
|
|
|
|
String indexP; |
|
|
|
|
JoinActivity joinA = JoinActivity.GoJoin; |
|
|
|
@ -251,51 +250,6 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// ///发起活动 |
|
|
|
|
// queryLaunchAct() async { |
|
|
|
|
// if (minService == null) |
|
|
|
|
// minService = MinApiService( |
|
|
|
|
// Dio(), |
|
|
|
|
// context: context, |
|
|
|
|
// token: minToken, |
|
|
|
|
// tenant: tenant, |
|
|
|
|
// storeId: storeId, |
|
|
|
|
// showLoading: false, |
|
|
|
|
// ); |
|
|
|
|
// BaseData baseData = await minService.launchAct({ |
|
|
|
|
// "actProductId": pageType == null |
|
|
|
|
// ? miNiDetail.productSkuVOList[0].id |
|
|
|
|
// : activityDetails.actProduct.id, |
|
|
|
|
// "actRecordId": 0, |
|
|
|
|
// "actTemplateId": activityDetails.actProduct.templateId, |
|
|
|
|
// "actTimeId": activityDetails.actProduct.timeId, |
|
|
|
|
// "addressId": "", |
|
|
|
|
// "isDirectBuy": (bargainType == BargainType.BargainBug || |
|
|
|
|
// bargainType == BargainType.CollageBug) |
|
|
|
|
// ? false |
|
|
|
|
// : true, |
|
|
|
|
// "getType": 3, |
|
|
|
|
// "productId": |
|
|
|
|
// pageType == null ? productId : activityDetails.actProduct.productId, |
|
|
|
|
// "skuId": skuId1, |
|
|
|
|
// "skuPrice": skuPrice1, |
|
|
|
|
// "templateType": pageType |
|
|
|
|
// }).catchError((error) { |
|
|
|
|
// refreshController.refreshFailed(); |
|
|
|
|
// }); |
|
|
|
|
// if (baseData != null && baseData.isSuccess) { |
|
|
|
|
// setState(() { |
|
|
|
|
// launchJoinAct = baseData.data; |
|
|
|
|
// toBargain(); |
|
|
|
|
// refreshController.refreshCompleted(); |
|
|
|
|
// }); |
|
|
|
|
// } else { |
|
|
|
|
// if ((activityDetails?.actProduct?.productStock ?? 0) == 0) |
|
|
|
|
// SmartDialog.showToast("活动商品售罄", alignment: Alignment.center); |
|
|
|
|
// refreshController.refreshFailed(); |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
///选规格弹窗 |
|
|
|
|
showStoreSelector(MiNiDetail miNiDetail, String id, int count) async { |
|
|
|
|
if (miNiDetail.attrList != null && |
|
|
|
@ -538,16 +492,6 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// ///去砍价详情页面 |
|
|
|
|
// toBargain() async { |
|
|
|
|
// await Navigator.of(context) |
|
|
|
|
// .pushNamed('/router/bargain_details', arguments: { |
|
|
|
|
// "actRecordId": launchJoinAct.actRecordId, |
|
|
|
|
// "limitNumber": limitNumber, |
|
|
|
|
// "storeInfo": storeInfo, |
|
|
|
|
// }); |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
Widget build(BuildContext context) { |
|
|
|
|
return Stack( |
|
|
|
@ -1229,13 +1173,6 @@ class _ShoppingGoodsDetails extends State<ShoppingGoodsDetails> {
|
|
|
|
|
alignment: Alignment.center, |
|
|
|
|
height: 50.h, |
|
|
|
|
padding: EdgeInsets.only(left: 16.w), |
|
|
|
|
// decoration: BoxDecoration( |
|
|
|
|
// // image: DecorationImage( |
|
|
|
|
// // fit: BoxFit.fill, |
|
|
|
|
// // image: NetworkImage(bannerImg), |
|
|
|
|
// // ), |
|
|
|
|
// color: Colors.green, |
|
|
|
|
// ), |
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
gradient: LinearGradient( |
|
|
|
|
begin: Alignment.centerLeft, |
|
|
|
|