双11添加标语

瑞币兑换跟随后台显示接口
master
laiiihz 5 years ago
parent 59345a21d0
commit d3324f89c7

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

@ -596,6 +596,7 @@ class _HomePageState extends BaseStoreState<HomePage>
padding: EdgeInsets.only(bottom: 5),
color: AppColor.frenchColor,
child: GoodsItemWidget.rowGoods(
isSingleDayGoods: index < 5,
onBrandClick: () {
AppRouter.push(context, RouteName.BRANDGOODS_LIST_PAGE,
arguments: BrandGoodsListPage.setArguments(

@ -60,7 +60,9 @@ class _RuiCoinPageState extends BaseStoreState<RuiCoinPage> {
Widget buildContext(BuildContext context, {store}) {
return Scaffold(
appBar: CustomAppBar(
actions: <Widget>[_listModel == null ? Container() : _goToBalance()],
actions: AppConfig.getShowCommission()
? <Widget>[_listModel == null ? Container() : _goToBalance()]
: [],
appBackground: Colors.white,
elevation: 0,
title: "我的瑞币",

@ -23,6 +23,8 @@ enum GoodsItemType {
}
class GoodsItemWidget extends StatelessWidget {
final bool isSingleDayGoods;
final String goodsName;
final String description;
final String mainPhotoUrl;
@ -44,6 +46,7 @@ class GoodsItemWidget extends StatelessWidget {
final Function onBrandClick;
const GoodsItemWidget(
{Key key,
this.isSingleDayGoods = false,
this.goodsName,
this.description,
this.mainPhotoUrl,
@ -68,6 +71,7 @@ class GoodsItemWidget extends StatelessWidget {
/// Normal Goods Item
GoodsItemWidget.normalGoodsItem({
Key key,
this.isSingleDayGoods = false,
this.buildCtx,
this.shareClick,
this.buyClick,
@ -97,6 +101,7 @@ class GoodsItemWidget extends StatelessWidget {
this.shareClick,
this.buyClick,
this.onBrandClick,
this.isSingleDayGoods = false,
GoodsHotSellListModel.Data data,
}) : goodsName = data.goodsName,
brandName = data.brandName,
@ -123,6 +128,7 @@ class GoodsItemWidget extends StatelessWidget {
this.buildCtx,
this.shareClick,
this.onBrandClick,
this.isSingleDayGoods = false,
@required this.buyClick,
PromotionGoodsModel model,
}) : goodsName = model.goodsName,
@ -352,7 +358,17 @@ class GoodsItemWidget extends StatelessWidget {
),
),
),
)
),
isSingleDayGoods
? Positioned(
left: 0,
top: 0,
child: Image.asset(
R.ASSETS_HOME_SINGLE_DAY_PNG,
height: rSize(20),
),
)
: SizedBox(),
]),
),
);

Loading…
Cancel
Save