Browse Source

更改

master
w-R 3 years ago
parent
commit
96df9bb426
  1. 6
      lib/home/home_view/quick_order.dart
  2. 3
      lib/retrofit/data/store.dart

6
lib/home/home_view/quick_order.dart

@ -212,11 +212,13 @@ class _QuickOrder extends State<QuickOrder> {
left: 0, left: 0,
right: 0, right: 0,
child: ClipRRect( child: ClipRRect(
child: Image.asset( child: MImage(
"assets/image/share_image_bg.png", store.facade,
width: double.infinity, width: double.infinity,
height: 95, height: 95,
fit: BoxFit.cover, fit: BoxFit.cover,
errorSrc: "assets/image/default_1.png",
fadeSrc: "assets/image/default_1.png",
), ),
borderRadius: BorderRadius.vertical( borderRadius: BorderRadius.vertical(
top: Radius.circular(4), top: Radius.circular(4),

3
lib/retrofit/data/store.dart

@ -19,6 +19,7 @@ class Store {
String storeName; String storeName;
double distance; double distance;
String logo; String logo;
String facade;
String shipAddress; String shipAddress;
dynamic remark; dynamic remark;
String mobile; String mobile;
@ -53,6 +54,7 @@ class Store {
..storeName = json['storeName'] as String ..storeName = json['storeName'] as String
..distance = (json['distance'] as num)?.toDouble() ..distance = (json['distance'] as num)?.toDouble()
..logo = json['logo'] as String ..logo = json['logo'] as String
..facade = json['facade'] as String
..shipAddress = json['shipAddress'] as String ..shipAddress = json['shipAddress'] as String
..remark = json['remark'] ..remark = json['remark']
..mobile = json['mobile'] as String ..mobile = json['mobile'] as String
@ -89,6 +91,7 @@ class Store {
'storeName': this.storeName, 'storeName': this.storeName,
'distance': this.distance, 'distance': this.distance,
'logo': this.logo, 'logo': this.logo,
'facade': this.facade,
'shipAddress': this.shipAddress, 'shipAddress': this.shipAddress,
'remark': this.remark, 'remark': this.remark,
'mobile': this.mobile, 'mobile': this.mobile,

Loading…
Cancel
Save