会员角色隐藏品牌概念

master
zhang 5 years ago
parent eff4f39cfe
commit b6c384a543

@ -328,22 +328,26 @@ class _GoodsPageState extends BaseStoreState<GoodsPage> {
color: Colors.white,
padding: EdgeInsets.symmetric(vertical: 8, horizontal: 10),
child: _userEvaluation()),
Container(
color: Colors.white,
margin: EdgeInsets.only(top: 13, bottom: 1),
padding: const EdgeInsets.all(10.0),
child: GestureDetector(
child: _storeName(),
onTap: () {
if (widget.openbrandList != null) widget.openbrandList();
},
),
),
Container(
// padding: EdgeInsets.only(left: 10, top: 10, bottom: 5),
color: Colors.white,
child: _recommendsWidget(),
),
AppConfig.getShowCommission()
? Container(
color: Colors.white,
margin: EdgeInsets.only(top: 13, bottom: 1),
padding: const EdgeInsets.all(10.0),
child: GestureDetector(
child: _storeName(),
onTap: () {
if (widget.openbrandList != null) widget.openbrandList();
},
),
)
: SizedBox(),
AppConfig.getShowCommission()
? Container(
// padding: EdgeInsets.only(left: 10, top: 10, bottom: 5),
color: Colors.white,
child: _recommendsWidget(),
)
: SizedBox(),
// _usersLikeGrid(),
];
}

@ -207,33 +207,36 @@ class _GoodsListDialogState extends State<GoodsListDialog> {
style: AppTextStyle.generate(ScreenAdapterUtils.setSp(14),
color: Colors.black54, fontWeight: FontWeight.w300),
),
InkWell(
onTap: () {
AppRouter.push(context, RouteName.BRANDGOODS_LIST_PAGE,
arguments: BrandGoodsListPage.setArguments(
model.brandId,
model.brandName,
));
},
child: Row(
children: [
FadeInImage.assetNetwork(
placeholder: R.ASSETS_PLACEHOLDER_NEW_1X1_A_PNG,
image: Api.getImgUrl(model.brandImg),
width: rSize(13),
height: rSize(13),
),
rWBox(4),
Text(
model.brandName,
style: TextStyle(
color: Color(0xffc70404),
fontSize: ScreenAdapterUtils.setSp(12),
AppConfig.getShowCommission()
? InkWell(
onTap: () {
AppRouter.push(
context, RouteName.BRANDGOODS_LIST_PAGE,
arguments: BrandGoodsListPage.setArguments(
model.brandId,
model.brandName,
));
},
child: Row(
children: [
FadeInImage.assetNetwork(
placeholder: R.ASSETS_PLACEHOLDER_NEW_1X1_A_PNG,
image: Api.getImgUrl(model.brandImg),
width: rSize(13),
height: rSize(13),
),
rWBox(4),
Text(
model.brandName,
style: TextStyle(
color: Color(0xffc70404),
fontSize: ScreenAdapterUtils.setSp(12),
),
),
],
),
),
],
),
),
)
: SizedBox(),
Row(
children: [
SmallCouponWidget(number: num.parse(model.coupon)),

@ -288,7 +288,7 @@ class GoodsItemWidget extends StatelessWidget {
// // offstage: !(model.getPromotionStatus() == PromotionStatus.start || model.getPromotionStatus() == PromotionStatus.ready),
// child: _priceView(),
// ),
_brandWidget(),
AppConfig.getShowCommission() ? _brandWidget() : SizedBox(),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.end,

Loading…
Cancel
Save