diff --git a/lib/home/home_view/quick_order.dart b/lib/home/home_view/quick_order.dart index ade976ee..629af313 100644 --- a/lib/home/home_view/quick_order.dart +++ b/lib/home/home_view/quick_order.dart @@ -212,11 +212,13 @@ class _QuickOrder extends State { left: 0, right: 0, child: ClipRRect( - child: Image.asset( - "assets/image/share_image_bg.png", + child: MImage( + store.facade, width: double.infinity, height: 95, fit: BoxFit.cover, + errorSrc: "assets/image/default_1.png", + fadeSrc: "assets/image/default_1.png", ), borderRadius: BorderRadius.vertical( top: Radius.circular(4), diff --git a/lib/retrofit/data/store.dart b/lib/retrofit/data/store.dart index 289fc9ef..1dd45b68 100644 --- a/lib/retrofit/data/store.dart +++ b/lib/retrofit/data/store.dart @@ -19,6 +19,7 @@ class Store { String storeName; double distance; String logo; + String facade; String shipAddress; dynamic remark; String mobile; @@ -53,6 +54,7 @@ class Store { ..storeName = json['storeName'] as String ..distance = (json['distance'] as num)?.toDouble() ..logo = json['logo'] as String + ..facade = json['facade'] as String ..shipAddress = json['shipAddress'] as String ..remark = json['remark'] ..mobile = json['mobile'] as String @@ -89,6 +91,7 @@ class Store { 'storeName': this.storeName, 'distance': this.distance, 'logo': this.logo, + 'facade': this.facade, 'shipAddress': this.shipAddress, 'remark': this.remark, 'mobile': this.mobile,