修改物品出门状态显示

hmxc
张萌 4 years ago
parent 0ebddab6a0
commit 4da01c9601

@ -34,13 +34,10 @@ class _GoodsDetoPageState extends State<GoodsDetoPage> {
bool _canSkew(int? state) {
switch (state) {
case 1:
return false;
case 2:
case 3:
return false;
case 4:
case 5:
case 6:
case 7:
return true;
default:
return true;

@ -37,13 +37,10 @@ class GoodsInfoCard extends StatelessWidget {
Color _getColor(int? state) {
switch (state) {
case 1:
case 2:
case 3:
return kDarkPrimaryColor;
case 4:
case 5:
case 6:
case 7:
case 2:
return ktextSubColor;
default:
return kDangerColor;
@ -98,7 +95,7 @@ class GoodsInfoCard extends StatelessWidget {
fontSize: 32.sp,
color: Color(0xff333333)),
),
Text(BeeMap.fixState[model!.status!]!,
Text(BeeMap.goodsOutStatus[model!.status!]!,
style: TextStyle(
fontWeight: FontWeight.w600,
fontSize: 28.sp,

@ -54,13 +54,13 @@ class _BorrowGoodsDetailPageState extends State<BorrowGoodsDetailPage> {
body: EasyRefresh(
firstRefresh: true,
header: MaterialHeader(),
// onRefresh: () async {
// List<dynamic> models = await (getModels());
// _models =
// models.map((e) => ArticleBorrowDetailModel.fromJson(e)).toList();
// _onload = false;
// setState(() {});
// },
onRefresh: () async {
List<dynamic> models = await (getModels());
_models =
models.map((e) => ArticleBorrowDetailModel.fromJson(e)).toList();
_onload = false;
setState(() {});
},
child: _onload
? _empty()
: ListView(

@ -131,20 +131,24 @@ class _AdviceDetailPageState extends State<AdviceDetailPage> {
_model.appAdviceDetailVo!.appAdviceVo!.date,
format: 'yyyy年MM月dd日 HH:mm',
).text.size(24.sp).color(Color(0xFF999999)).make(),
Divider(
height: 50.w,
thickness: 1.w,
color: Color(0xFFD8D8D8),
),
BeeGridImageView(
urls: widget.model!.imgUrls!.map((e) => e.url).toList(),
padding: EdgeInsets.only(right: 100.w),
),
Divider(
height: 50.w,
thickness: 1.w,
color: Color(0xFFD8D8D8),
),
...widget.model!.imgUrls!.isEmpty
? []
: [
Divider(
height: 50.w,
thickness: 1.w,
color: Color(0xFFD8D8D8),
),
BeeGridImageView(
urls: widget.model!.imgUrls!.map((e) => e.url).toList(),
padding: EdgeInsets.only(right: 100.w),
),
Divider(
height: 50.w,
thickness: 1.w,
color: Color(0xFFD8D8D8),
)
],
..._model.appAdviceDetailVo!.appAdviceContentVos!
.map((e) => _buildAdviceContent(e))
.toList(),

@ -37,6 +37,11 @@ class BeeMap {
1: '自己搬运',
2: '搬家公司',
};
static Map<int, String> goodsOutStatus = {
1:'审核中',
2:'审核通过',
3:'审核失败'
};
static Map<int, String> borrowStatus = {1: '出借中', 2: '已归还'};

Loading…
Cancel
Save