修改物品出门状态显示

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

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

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

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

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

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

Loading…
Cancel
Save