diff --git a/lib/retrofit/data/miNiDetail.dart b/lib/retrofit/data/miNiDetail.dart new file mode 100644 index 00000000..adcf5c44 --- /dev/null +++ b/lib/retrofit/data/miNiDetail.dart @@ -0,0 +1,472 @@ +/// id : "1433994980233314304" +/// createTime : "2021-09-04 11:27:00" +/// createUser : "1333246101196636160" +/// updateTime : "2021-10-08 15:51:01" +/// updateUser : "1333246101196636160" +/// supplierName : "����" +/// storeId : "1333246101343436800" +/// categoryId : "1300688133322440704" +/// groupId : "1426086173217914880" +/// shortName : "����" +/// productName : "�������̲�" +/// sellDesc : "" +/// productCode : "PRO202109041127000000000000001" +/// weight : "0" +/// applyPrice : "0.00" +/// price : "5.00" +/// stock : -52 +/// sellCount : 25 +/// needLogistics : 1 +/// oversold : 1 +/// status : 1 +/// posShow : true +/// productType : 0 +/// productNumber : 0 +/// setMeal : 1 +/// attrStyle : 1 +/// isDelete : 0 +/// printerFlag : "DEFAULT" +/// materialId : null +/// imgs : ["https://pos.upload.gznl.top/1175/2021/09/b87e91a4-fe36-4268-803a-94e5bfaea3eb.png"] +/// storeDTO : {"id":"1333246101343436800","storeName":"��Ͽ���ò��(���ֵ�)","nickName":"","logo":"https://pos.upload.gznl.top/1175/2021/07/ae873881-b3ab-4332-b863-f3055b200e07.png","productCount":31,"soldNum":1518} +/// attrList : [{"productId":"1433994980233314304","attrName":"�¶�","sortOrder":null,"needImg":false,"isDelete":0,"attrCode":null,"id":"1433994980644356096","attrValueList":[{"id":"1434076666832879616","attrId":"1433994980644356096","attrValue":"ȥ��","attrValueImg":"","sortOrder":null,"isDelete":0,"attrValueCode":null},{"id":"1433994980849876992","attrId":"1433994980644356096","attrValue":"�ٱ�","attrValueImg":"","sortOrder":null,"isDelete":0,"attrValueCode":null},{"id":"1434076667034206208","attrId":"1433994980644356096","attrValue":"������","attrValueImg":"","sortOrder":null,"isDelete":0,"attrValueCode":null}]},{"productId":"1433994980233314304","attrName":"����","sortOrder":0,"needImg":false,"isDelete":0,"attrCode":null,"id":"1434076668170862592","attrValueList":[{"id":"1434076668615458816","attrId":"1434076668170862592","attrValue":"�б�","attrValueImg":"","sortOrder":null,"isDelete":0,"attrValueCode":null},{"id":"1434076668376383488","attrId":"1434076668170862592","attrValue":"��","attrValueImg":"","sortOrder":0,"isDelete":0,"attrValueCode":null}]},{"productId":"1433994980233314304","attrName":"���","sortOrder":0,"needImg":false,"isDelete":0,"attrCode":null,"id":"1434076667252310016","attrValueList":[{"id":"1434076667919204352","attrId":"1434076667252310016","attrValue":"����","attrValueImg":"","sortOrder":null,"isDelete":0,"attrValueCode":null},{"id":"1434076667696906240","attrId":"1434076667252310016","attrValue":"�����","attrValueImg":"","sortOrder":null,"isDelete":0,"attrValueCode":null},{"id":"1434076667478802432","attrId":"1434076667252310016","attrValue":"������","attrValueImg":"","sortOrder":0,"isDelete":0,"attrValueCode":null}]}] +/// productSkuVOList : [{"id":"1446382612795883520","createTime":"2021-09-04 16:51:38","createUser":"1333246101196636160","updateTime":"2021-09-04 16:51:38","updateUser":"1333246101196636160","storeId":"1333246101343436800","skuCode":"P202109041651376","skuNameStr":"ȥ�� �б� ����","productId":"1433994980233314304","skuPrice":"5.00","applyPrice":"0.00","vipPrice":null,"skuImg":null,"skuStock":-3,"sort":null,"setMeal":null,"weight":0.0,"volume":0.0,"isDelete":0,"material":null,"version":null,"skuAttrCodeDTOList":null,"skuAttrList":[{"id":"1446382613043347456","createTime":"2021-10-08 15:51:02","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:02","updateUser":"1333246101196636160","skuId":"1446382612795883520","attrId":"1433994980644356096","attrValueId":"1434076666832879616","sortOrder":null,"isDelete":0},{"id":"1446382613278228480","createTime":"2021-10-08 15:51:02","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:02","updateUser":"1333246101196636160","skuId":"1446382612795883520","attrId":"1434076668170862592","attrValueId":"1434076668615458816","sortOrder":null,"isDelete":0},{"id":"1446382613479555072","createTime":"2021-10-08 15:51:02","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:02","updateUser":"1333246101196636160","skuId":"1446382612795883520","attrId":"1434076667252310016","attrValueId":"1434076667919204352","sortOrder":null,"isDelete":0}],"setMealDTOList":null},{"id":"1446382613697658880","createTime":"2021-09-04 16:51:37","createUser":"1333246101196636160","updateTime":"2021-09-04 16:51:37","updateUser":"1333246101196636160","storeId":"1333246101343436800","skuCode":"P202109041651374","skuNameStr":"ȥ�� �б� �����","productId":"1433994980233314304","skuPrice":"5.00","applyPrice":"0.00","vipPrice":null,"skuImg":null,"skuStock":-3,"sort":null,"setMeal":null,"weight":0.0,"volume":0.0,"isDelete":0,"material":null,"version":null,"skuAttrCodeDTOList":null,"skuAttrList":[{"id":"1446382613911568384","createTime":"2021-10-08 15:51:02","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:02","updateUser":"1333246101196636160","skuId":"1446382613697658880","attrId":"1433994980644356096","attrValueId":"1434076666832879616","sortOrder":null,"isDelete":0},{"id":"1446382614112894976","createTime":"2021-10-08 15:51:02","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:02","updateUser":"1333246101196636160","skuId":"1446382613697658880","attrId":"1434076668170862592","attrValueId":"1434076668615458816","sortOrder":null,"isDelete":0},{"id":"1446382614330998784","createTime":"2021-10-08 15:51:02","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:02","updateUser":"1333246101196636160","skuId":"1446382613697658880","attrId":"1434076667252310016","attrValueId":"1434076667696906240","sortOrder":null,"isDelete":0}],"setMealDTOList":null},{"id":"1446382614553296896","createTime":"2021-09-04 16:51:37","createUser":"1333246101196636160","updateTime":"2021-09-04 16:51:37","updateUser":"1333246101196636160","storeId":"1333246101343436800","skuCode":"P202109041651362","skuNameStr":"ȥ�� �б� ������","productId":"1433994980233314304","skuPrice":"5.00","applyPrice":"0.00","vipPrice":null,"skuImg":null,"skuStock":-3,"sort":null,"setMeal":null,"weight":0.0,"volume":0.0,"isDelete":0,"material":null,"version":null,"skuAttrCodeDTOList":null,"skuAttrList":[{"id":"1446382614788177920","createTime":"2021-10-08 15:51:03","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:03","updateUser":"1333246101196636160","skuId":"1446382614553296896","attrId":"1433994980644356096","attrValueId":"1434076666832879616","sortOrder":null,"isDelete":0},{"id":"1446382615002087424","createTime":"2021-10-08 15:51:03","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:03","updateUser":"1333246101196636160","skuId":"1446382614553296896","attrId":"1434076668170862592","attrValueId":"1434076668615458816","sortOrder":null,"isDelete":0},{"id":"1446382615199219712","createTime":"2021-10-08 15:51:03","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:03","updateUser":"1333246101196636160","skuId":"1446382614553296896","attrId":"1434076667252310016","attrValueId":"1434076667478802432","sortOrder":null,"isDelete":0}],"setMealDTOList":null},{"id":"1446382615413129216","createTime":"2021-09-04 16:51:38","createUser":"1333246101196636160","updateTime":"2021-09-04 16:51:38","updateUser":"1333246101196636160","storeId":"1333246101343436800","skuCode":"P202109041651375","skuNameStr":"ȥ�� �� ����","productId":"1433994980233314304","skuPrice":"10.00","applyPrice":"0.00","vipPrice":null,"skuImg":null,"skuStock":-4,"sort":null,"setMeal":null,"weight":0.0,"volume":0.0,"isDelete":0,"material":null,"version":null,"skuAttrCodeDTOList":null,"skuAttrList":[{"id":"1446382615639621632","createTime":"2021-10-08 15:51:03","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:03","updateUser":"1333246101196636160","skuId":"1446382615413129216","attrId":"1433994980644356096","attrValueId":"1434076666832879616","sortOrder":null,"isDelete":0},{"id":"1446382615845142528","createTime":"2021-10-08 15:51:03","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:03","updateUser":"1333246101196636160","skuId":"1446382615413129216","attrId":"1434076668170862592","attrValueId":"1434076668376383488","sortOrder":null,"isDelete":0},{"id":"1446382616050663424","createTime":"2021-10-08 15:51:03","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:03","updateUser":"1333246101196636160","skuId":"1446382615413129216","attrId":"1434076667252310016","attrValueId":"1434076667919204352","sortOrder":null,"isDelete":0}],"setMealDTOList":null},{"id":"1446382616281350144","createTime":"2021-09-04 16:51:37","createUser":"1333246101196636160","updateTime":"2021-09-04 16:51:37","updateUser":"1333246101196636160","storeId":"1333246101343436800","skuCode":"P202109041651373","skuNameStr":"ȥ�� �� �����","productId":"1433994980233314304","skuPrice":"10.00","applyPrice":"0.00","vipPrice":null,"skuImg":null,"skuStock":-3,"sort":null,"setMeal":null,"weight":0.0,"volume":0.0,"isDelete":0,"material":null,"version":null,"skuAttrCodeDTOList":null,"skuAttrList":[{"id":"1446382616516231168","createTime":"2021-10-08 15:51:03","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:03","updateUser":"1333246101196636160","skuId":"1446382616281350144","attrId":"1433994980644356096","attrValueId":"1434076666832879616","sortOrder":null,"isDelete":0},{"id":"1446382616734334976","createTime":"2021-10-08 15:51:03","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:03","updateUser":"1333246101196636160","skuId":"1446382616281350144","attrId":"1434076668170862592","attrValueId":"1434076668376383488","sortOrder":null,"isDelete":0},{"id":"1446382616935661568","createTime":"2021-10-08 15:51:03","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:03","updateUser":"1333246101196636160","skuId":"1446382616281350144","attrId":"1434076667252310016","attrValueId":"1434076667696906240","sortOrder":null,"isDelete":0}],"setMealDTOList":null},{"id":"1446382617149571072","createTime":"2021-09-04 16:51:37","createUser":"1333246101196636160","updateTime":"2021-09-04 16:51:37","updateUser":"1333246101196636160","storeId":"1333246101343436800","skuCode":"P202109041651361","skuNameStr":"ȥ�� �� ������","productId":"1433994980233314304","skuPrice":"10.00","applyPrice":"0.00","vipPrice":null,"skuImg":null,"skuStock":-3,"sort":null,"setMeal":null,"weight":0.0,"volume":0.0,"isDelete":0,"material":null,"version":null,"skuAttrCodeDTOList":null,"skuAttrList":[{"id":"1446382617363480576","createTime":"2021-10-08 15:51:03","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:03","updateUser":"1333246101196636160","skuId":"1446382617149571072","attrId":"1433994980644356096","attrValueId":"1434076666832879616","sortOrder":null,"isDelete":0},{"id":"1446382617573195776","createTime":"2021-10-08 15:51:03","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:03","updateUser":"1333246101196636160","skuId":"1446382617149571072","attrId":"1434076668170862592","attrValueId":"1434076668376383488","sortOrder":null,"isDelete":0},{"id":"1446382617787105280","createTime":"2021-10-08 15:51:03","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:03","updateUser":"1333246101196636160","skuId":"1446382617149571072","attrId":"1434076667252310016","attrValueId":"1434076667478802432","sortOrder":null,"isDelete":0}],"setMealDTOList":null},{"id":"1446382618005209088","createTime":"2021-09-04 11:27:00","createUser":"1333246101196636160","updateTime":"2021-09-04 11:27:00","updateUser":"1333246101196636160","storeId":"1333246101343436800","skuCode":"P202109041127002","skuNameStr":"�ٱ� �б� ����","productId":"1433994980233314304","skuPrice":"5.00","applyPrice":"0.00","vipPrice":null,"skuImg":null,"skuStock":-3,"sort":null,"setMeal":"","weight":0.0,"volume":0.0,"isDelete":0,"material":null,"version":null,"skuAttrCodeDTOList":null,"skuAttrList":[{"id":"1446382618231701504","createTime":"2021-10-08 15:51:03","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:03","updateUser":"1333246101196636160","skuId":"1446382618005209088","attrId":"1433994980644356096","attrValueId":"1433994980849876992","sortOrder":null,"isDelete":0},{"id":"1446382618458193920","createTime":"2021-10-08 15:51:03","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:03","updateUser":"1333246101196636160","skuId":"1446382618005209088","attrId":"1434076668170862592","attrValueId":"1434076668615458816","sortOrder":null,"isDelete":0},{"id":"1446382618676297728","createTime":"2021-10-08 15:51:03","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:03","updateUser":"1333246101196636160","skuId":"1446382618005209088","attrId":"1434076667252310016","attrValueId":"1434076667919204352","sortOrder":null,"isDelete":0}],"setMealDTOList":null},{"id":"1446382618890207232","createTime":"2021-09-04 11:27:00","createUser":"1333246101196636160","updateTime":"2021-09-04 11:27:00","updateUser":"1333246101196636160","storeId":"1333246101343436800","skuCode":"P202109041127002","skuNameStr":"�ٱ� �б� �����","productId":"1433994980233314304","skuPrice":"5.00","applyPrice":"0.00","vipPrice":null,"skuImg":null,"skuStock":-3,"sort":null,"setMeal":"","weight":0.0,"volume":0.0,"isDelete":0,"material":null,"version":null,"skuAttrCodeDTOList":null,"skuAttrList":[{"id":"1446382619104116736","createTime":"2021-10-08 15:51:04","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:04","updateUser":"1333246101196636160","skuId":"1446382618890207232","attrId":"1433994980644356096","attrValueId":"1433994980849876992","sortOrder":null,"isDelete":0},{"id":"1446382619318026240","createTime":"2021-10-08 15:51:04","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:04","updateUser":"1333246101196636160","skuId":"1446382618890207232","attrId":"1434076668170862592","attrValueId":"1434076668615458816","sortOrder":null,"isDelete":0},{"id":"1446382619531935744","createTime":"2021-10-08 15:51:04","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:04","updateUser":"1333246101196636160","skuId":"1446382618890207232","attrId":"1434076667252310016","attrValueId":"1434076667696906240","sortOrder":null,"isDelete":0}],"setMealDTOList":null},{"id":"1446382619737456640","createTime":"2021-09-04 11:27:00","createUser":"1333246101196636160","updateTime":"2021-09-04 11:27:00","updateUser":"1333246101196636160","storeId":"1333246101343436800","skuCode":"P202109041127002","skuNameStr":"�ٱ� �б� ������","productId":"1433994980233314304","skuPrice":"5.00","applyPrice":"0.00","vipPrice":null,"skuImg":null,"skuStock":-3,"sort":null,"setMeal":"","weight":0.0,"volume":0.0,"isDelete":0,"material":null,"version":null,"skuAttrCodeDTOList":null,"skuAttrList":[{"id":"1446382619951366144","createTime":"2021-10-08 15:51:04","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:04","updateUser":"1333246101196636160","skuId":"1446382619737456640","attrId":"1433994980644356096","attrValueId":"1433994980849876992","sortOrder":null,"isDelete":0},{"id":"1446382620148498432","createTime":"2021-10-08 15:51:04","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:04","updateUser":"1333246101196636160","skuId":"1446382619737456640","attrId":"1434076668170862592","attrValueId":"1434076668615458816","sortOrder":null,"isDelete":0},{"id":"1446382620362407936","createTime":"2021-10-08 15:51:04","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:04","updateUser":"1333246101196636160","skuId":"1446382619737456640","attrId":"1434076667252310016","attrValueId":"1434076667478802432","sortOrder":null,"isDelete":0}],"setMealDTOList":null},{"id":"1446382620626649088","createTime":"2021-09-04 11:27:00","createUser":"1333246101196636160","updateTime":"2021-09-04 11:27:00","updateUser":"1333246101196636160","storeId":"1333246101343436800","skuCode":"P202109041127002","skuNameStr":"�ٱ� �� ����","productId":"1433994980233314304","skuPrice":"5.00","applyPrice":"0.00","vipPrice":null,"skuImg":null,"skuStock":-3,"sort":null,"setMeal":"","weight":0.0,"volume":0.0,"isDelete":0,"material":null,"version":null,"skuAttrCodeDTOList":null,"skuAttrList":[{"id":"1446382620907667456","createTime":"2021-10-08 15:51:04","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:04","updateUser":"1333246101196636160","skuId":"1446382620626649088","attrId":"1433994980644356096","attrValueId":"1433994980849876992","sortOrder":null,"isDelete":0},{"id":"1446382621121576960","createTime":"2021-10-08 15:51:04","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:04","updateUser":"1333246101196636160","skuId":"1446382620626649088","attrId":"1434076668170862592","attrValueId":"1434076668376383488","sortOrder":null,"isDelete":0},{"id":"1446382621335486464","createTime":"2021-10-08 15:51:04","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:04","updateUser":"1333246101196636160","skuId":"1446382620626649088","attrId":"1434076667252310016","attrValueId":"1434076667919204352","sortOrder":null,"isDelete":0}],"setMealDTOList":null},{"id":"1446382621549395968","createTime":"2021-09-04 11:27:00","createUser":"1333246101196636160","updateTime":"2021-09-04 11:27:00","updateUser":"1333246101196636160","storeId":"1333246101343436800","skuCode":"P202109041127002","skuNameStr":"�ٱ� �� �����","productId":"1433994980233314304","skuPrice":"5.00","applyPrice":"0.00","vipPrice":null,"skuImg":null,"skuStock":-3,"sort":null,"setMeal":"","weight":0.0,"volume":0.0,"isDelete":0,"material":null,"version":null,"skuAttrCodeDTOList":null,"skuAttrList":[{"id":"1446382621759111168","createTime":"2021-10-08 15:51:04","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:04","updateUser":"1333246101196636160","skuId":"1446382621549395968","attrId":"1433994980644356096","attrValueId":"1433994980849876992","sortOrder":null,"isDelete":0},{"id":"1446382621968826368","createTime":"2021-10-08 15:51:04","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:04","updateUser":"1333246101196636160","skuId":"1446382621549395968","attrId":"1434076668170862592","attrValueId":"1434076668376383488","sortOrder":null,"isDelete":0},{"id":"1446382622178541568","createTime":"2021-10-08 15:51:04","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:04","updateUser":"1333246101196636160","skuId":"1446382621549395968","attrId":"1434076667252310016","attrValueId":"1434076667696906240","sortOrder":null,"isDelete":0}],"setMealDTOList":null},{"id":"1446382622400839680","createTime":"2021-09-04 11:27:00","createUser":"1333246101196636160","updateTime":"2021-09-04 11:27:00","updateUser":"1333246101196636160","storeId":"1333246101343436800","skuCode":"P202109041127002","skuNameStr":"�ٱ� �� ������","productId":"1433994980233314304","skuPrice":"5.00","applyPrice":"0.00","vipPrice":null,"skuImg":null,"skuStock":-3,"sort":null,"setMeal":"","weight":0.0,"volume":0.0,"isDelete":0,"material":null,"version":null,"skuAttrCodeDTOList":null,"skuAttrList":[{"id":"1446382622610554880","createTime":"2021-10-08 15:51:04","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:04","updateUser":"1333246101196636160","skuId":"1446382622400839680","attrId":"1433994980644356096","attrValueId":"1433994980849876992","sortOrder":null,"isDelete":0},{"id":"1446382622828658688","createTime":"2021-10-08 15:51:04","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:04","updateUser":"1333246101196636160","skuId":"1446382622400839680","attrId":"1434076668170862592","attrValueId":"1434076668376383488","sortOrder":null,"isDelete":0},{"id":"1446382623038373888","createTime":"2021-10-08 15:51:04","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:04","updateUser":"1333246101196636160","skuId":"1446382622400839680","attrId":"1434076667252310016","attrValueId":"1434076667478802432","sortOrder":null,"isDelete":0}],"setMealDTOList":null},{"id":"1446382623277449216","createTime":"2021-09-04 16:51:39","createUser":"1333246101196636160","updateTime":"2021-09-04 16:51:39","updateUser":"1333246101196636160","storeId":"1333246101343436800","skuCode":"P202109041651394","skuNameStr":"������ �б� ����","productId":"1433994980233314304","skuPrice":"5.00","applyPrice":"0.00","vipPrice":null,"skuImg":null,"skuStock":-3,"sort":null,"setMeal":null,"weight":0.0,"volume":0.0,"isDelete":0,"material":null,"version":null,"skuAttrCodeDTOList":null,"skuAttrList":[{"id":"1446382623491358720","createTime":"2021-10-08 15:51:05","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:05","updateUser":"1333246101196636160","skuId":"1446382623277449216","attrId":"1433994980644356096","attrValueId":"1434076667034206208","sortOrder":null,"isDelete":0},{"id":"1446382623709462528","createTime":"2021-10-08 15:51:05","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:05","updateUser":"1333246101196636160","skuId":"1446382623277449216","attrId":"1434076668170862592","attrValueId":"1434076668615458816","sortOrder":null,"isDelete":0},{"id":"1446382623919177728","createTime":"2021-10-08 15:51:05","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:05","updateUser":"1333246101196636160","skuId":"1446382623277449216","attrId":"1434076667252310016","attrValueId":"1434076667919204352","sortOrder":null,"isDelete":0}],"setMealDTOList":null},{"id":"1446382624149864448","createTime":"2021-09-04 16:51:39","createUser":"1333246101196636160","updateTime":"2021-09-04 16:51:39","updateUser":"1333246101196636160","storeId":"1333246101343436800","skuCode":"P202109041651382","skuNameStr":"������ �б� �����","productId":"1433994980233314304","skuPrice":"5.00","applyPrice":"0.00","vipPrice":null,"skuImg":null,"skuStock":-1,"sort":null,"setMeal":null,"weight":0.0,"volume":0.0,"isDelete":0,"material":null,"version":null,"skuAttrCodeDTOList":null,"skuAttrList":[{"id":"1446382624393134080","createTime":"2021-10-08 15:51:05","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:05","updateUser":"1333246101196636160","skuId":"1446382624149864448","attrId":"1433994980644356096","attrValueId":"1434076667034206208","sortOrder":null,"isDelete":0},{"id":"1446382624607043584","createTime":"2021-10-08 15:51:05","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:05","updateUser":"1333246101196636160","skuId":"1446382624149864448","attrId":"1434076668170862592","attrValueId":"1434076668615458816","sortOrder":null,"isDelete":0},{"id":"1446382624816758784","createTime":"2021-10-08 15:51:05","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:05","updateUser":"1333246101196636160","skuId":"1446382624149864448","attrId":"1434076667252310016","attrValueId":"1434076667696906240","sortOrder":null,"isDelete":0}],"setMealDTOList":null},{"id":"1446382625043251200","createTime":"2021-09-04 16:51:38","createUser":"1333246101196636160","updateTime":"2021-09-04 16:51:38","updateUser":"1333246101196636160","storeId":"1333246101343436800","skuCode":"P202109041651388","skuNameStr":"������ �б� ������","productId":"1433994980233314304","skuPrice":"5.00","applyPrice":"0.00","vipPrice":null,"skuImg":null,"skuStock":-2,"sort":null,"setMeal":null,"weight":0.0,"volume":0.0,"isDelete":0,"material":null,"version":null,"skuAttrCodeDTOList":null,"skuAttrList":[{"id":"1446382625252966400","createTime":"2021-10-08 15:51:05","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:05","updateUser":"1333246101196636160","skuId":"1446382625043251200","attrId":"1433994980644356096","attrValueId":"1434076667034206208","sortOrder":null,"isDelete":0},{"id":"1446382625462681600","createTime":"2021-10-08 15:51:05","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:05","updateUser":"1333246101196636160","skuId":"1446382625043251200","attrId":"1434076668170862592","attrValueId":"1434076668615458816","sortOrder":null,"isDelete":0},{"id":"1446382625701756928","createTime":"2021-10-08 15:51:05","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:05","updateUser":"1333246101196636160","skuId":"1446382625043251200","attrId":"1434076667252310016","attrValueId":"1434076667478802432","sortOrder":null,"isDelete":0}],"setMealDTOList":null},{"id":"1446382625907277824","createTime":"2021-09-04 16:51:39","createUser":"1333246101196636160","updateTime":"2021-09-04 16:51:39","updateUser":"1333246101196636160","storeId":"1333246101343436800","skuCode":"P202109041651383","skuNameStr":"������ �� ����","productId":"1433994980233314304","skuPrice":"10.00","applyPrice":"0.00","vipPrice":null,"skuImg":null,"skuStock":-5,"sort":null,"setMeal":null,"weight":0.0,"volume":0.0,"isDelete":0,"material":null,"version":null,"skuAttrCodeDTOList":null,"skuAttrList":[{"id":"1446382626125381632","createTime":"2021-10-08 15:51:05","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:05","updateUser":"1333246101196636160","skuId":"1446382625907277824","attrId":"1433994980644356096","attrValueId":"1434076667034206208","sortOrder":null,"isDelete":0},{"id":"1446382626335096832","createTime":"2021-10-08 15:51:05","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:05","updateUser":"1333246101196636160","skuId":"1446382625907277824","attrId":"1434076668170862592","attrValueId":"1434076668376383488","sortOrder":null,"isDelete":0},{"id":"1446382626553200640","createTime":"2021-10-08 15:51:05","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:05","updateUser":"1333246101196636160","skuId":"1446382625907277824","attrId":"1434076667252310016","attrValueId":"1434076667919204352","sortOrder":null,"isDelete":0}],"setMealDTOList":null},{"id":"1446382626800664576","createTime":"2021-09-04 16:51:39","createUser":"1333246101196636160","updateTime":"2021-09-04 16:51:39","updateUser":"1333246101196636160","storeId":"1333246101343436800","skuCode":"P202109041651389","skuNameStr":"������ �� �����","productId":"1433994980233314304","skuPrice":"10.00","applyPrice":"0.00","vipPrice":null,"skuImg":null,"skuStock":-1,"sort":null,"setMeal":null,"weight":0.0,"volume":0.0,"isDelete":0,"material":null,"version":null,"skuAttrCodeDTOList":null,"skuAttrList":[{"id":"1446382627006185472","createTime":"2021-10-08 15:51:05","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:05","updateUser":"1333246101196636160","skuId":"1446382626800664576","attrId":"1433994980644356096","attrValueId":"1434076667034206208","sortOrder":null,"isDelete":0},{"id":"1446382627211706368","createTime":"2021-10-08 15:51:05","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:05","updateUser":"1333246101196636160","skuId":"1446382626800664576","attrId":"1434076668170862592","attrValueId":"1434076668376383488","sortOrder":null,"isDelete":0},{"id":"1446382627413032960","createTime":"2021-10-08 15:51:06","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:06","updateUser":"1333246101196636160","skuId":"1446382626800664576","attrId":"1434076667252310016","attrValueId":"1434076667696906240","sortOrder":null,"isDelete":0}],"setMealDTOList":null},{"id":"1446382627631136768","createTime":"2021-09-04 16:51:38","createUser":"1333246101196636160","updateTime":"2021-09-04 16:51:38","updateUser":"1333246101196636160","storeId":"1333246101343436800","skuCode":"P202109041651387","skuNameStr":"������ �� ������","productId":"1433994980233314304","skuPrice":"10.00","applyPrice":"0.00","vipPrice":null,"skuImg":null,"skuStock":-3,"sort":null,"setMeal":null,"weight":0.0,"volume":0.0,"isDelete":0,"material":null,"version":null,"skuAttrCodeDTOList":null,"skuAttrList":[{"id":"1446382627866017792","createTime":"2021-10-08 15:51:06","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:06","updateUser":"1333246101196636160","skuId":"1446382627631136768","attrId":"1433994980644356096","attrValueId":"1434076667034206208","sortOrder":null,"isDelete":0},{"id":"1446382628092510208","createTime":"2021-10-08 15:51:06","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:06","updateUser":"1333246101196636160","skuId":"1446382627631136768","attrId":"1434076668170862592","attrValueId":"1434076668376383488","sortOrder":null,"isDelete":0},{"id":"1446382628306419712","createTime":"2021-10-08 15:51:06","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:06","updateUser":"1333246101196636160","skuId":"1446382627631136768","attrId":"1434076667252310016","attrValueId":"1434076667478802432","sortOrder":null,"isDelete":0}],"setMealDTOList":null}] +/// shipAddress : "����·��Ͽ�����̲�" +/// buyCount : 3 +/// promotionShowVOList : [] +/// buyNum : 1 +/// productPlatterInfos : null +/// markProductNone : null +/// namePinyin : null +/// nameInitials : null + +class MiNiDetail { + String id; + String createTime; + String createUser; + String updateTime; + String updateUser; + String supplierName; + String storeId; + String categoryId; + String groupId; + String shortName; + String productName; + String sellDesc; + String productCode; + String weight; + String applyPrice; + String price; + int stock; + int sellCount; + int needLogistics; + int oversold; + int status; + bool posShow; + int productType; + int productNumber; + int setMeal; + int attrStyle; + int isDelete; + String printerFlag; + dynamic materialId; + List imgs; + StoreDTOBean storeDTO; + List attrList; + List productSkuVOList; + String shipAddress; + int buyCount; + List promotionShowVOList; + int buyNum; + dynamic productPlatterInfos; + dynamic markProductNone; + dynamic namePinyin; + dynamic nameInitials; + + static MiNiDetail fromMap(Map map) { + if (map == null) return null; + MiNiDetail miNiDetailBean = MiNiDetail(); + miNiDetailBean.id = map['id']; + miNiDetailBean.createTime = map['createTime']; + miNiDetailBean.createUser = map['createUser']; + miNiDetailBean.updateTime = map['updateTime']; + miNiDetailBean.updateUser = map['updateUser']; + miNiDetailBean.supplierName = map['supplierName']; + miNiDetailBean.storeId = map['storeId']; + miNiDetailBean.categoryId = map['categoryId']; + miNiDetailBean.groupId = map['groupId']; + miNiDetailBean.shortName = map['shortName']; + miNiDetailBean.productName = map['productName']; + miNiDetailBean.sellDesc = map['sellDesc']; + miNiDetailBean.productCode = map['productCode']; + miNiDetailBean.weight = map['weight']; + miNiDetailBean.applyPrice = map['applyPrice']; + miNiDetailBean.price = map['price']; + miNiDetailBean.stock = map['stock']; + miNiDetailBean.sellCount = map['sellCount']; + miNiDetailBean.needLogistics = map['needLogistics']; + miNiDetailBean.oversold = map['oversold']; + miNiDetailBean.status = map['status']; + miNiDetailBean.posShow = map['posShow']; + miNiDetailBean.productType = map['productType']; + miNiDetailBean.productNumber = map['productNumber']; + miNiDetailBean.setMeal = map['setMeal']; + miNiDetailBean.attrStyle = map['attrStyle']; + miNiDetailBean.isDelete = map['isDelete']; + miNiDetailBean.printerFlag = map['printerFlag']; + miNiDetailBean.materialId = map['materialId']; + miNiDetailBean.imgs = List()..addAll( + (map['imgs'] as List ?? []).map((o) => o.toString()) + ); + miNiDetailBean.storeDTO = StoreDTOBean.fromMap(map['storeDTO']); + miNiDetailBean.attrList = List()..addAll( + (map['attrList'] as List ?? []).map((o) => AttrListBean.fromMap(o)) + ); + miNiDetailBean.productSkuVOList = List()..addAll( + (map['productSkuVOList'] as List ?? []).map((o) => ProductSkuVOListBean.fromMap(o)) + ); + miNiDetailBean.shipAddress = map['shipAddress']; + miNiDetailBean.buyCount = map['buyCount']; + miNiDetailBean.promotionShowVOList = map['promotionShowVOList']; + miNiDetailBean.buyNum = map['buyNum']; + miNiDetailBean.productPlatterInfos = map['productPlatterInfos']; + miNiDetailBean.markProductNone = map['markProductNone']; + miNiDetailBean.namePinyin = map['namePinyin']; + miNiDetailBean.nameInitials = map['nameInitials']; + return miNiDetailBean; + } + + Map toJson() => { + "id": id, + "createTime": createTime, + "createUser": createUser, + "updateTime": updateTime, + "updateUser": updateUser, + "supplierName": supplierName, + "storeId": storeId, + "categoryId": categoryId, + "groupId": groupId, + "shortName": shortName, + "productName": productName, + "sellDesc": sellDesc, + "productCode": productCode, + "weight": weight, + "applyPrice": applyPrice, + "price": price, + "stock": stock, + "sellCount": sellCount, + "needLogistics": needLogistics, + "oversold": oversold, + "status": status, + "posShow": posShow, + "productType": productType, + "productNumber": productNumber, + "setMeal": setMeal, + "attrStyle": attrStyle, + "isDelete": isDelete, + "printerFlag": printerFlag, + "materialId": materialId, + "imgs": imgs, + "storeDTO": storeDTO, + "attrList": attrList, + "productSkuVOList": productSkuVOList, + "shipAddress": shipAddress, + "buyCount": buyCount, + "promotionShowVOList": promotionShowVOList, + "buyNum": buyNum, + "productPlatterInfos": productPlatterInfos, + "markProductNone": markProductNone, + "namePinyin": namePinyin, + "nameInitials": nameInitials, + }; +} + +/// id : "1446382612795883520" +/// createTime : "2021-09-04 16:51:38" +/// createUser : "1333246101196636160" +/// updateTime : "2021-09-04 16:51:38" +/// updateUser : "1333246101196636160" +/// storeId : "1333246101343436800" +/// skuCode : "P202109041651376" +/// skuNameStr : "ȥ�� �б� ����" +/// productId : "1433994980233314304" +/// skuPrice : "5.00" +/// applyPrice : "0.00" +/// vipPrice : null +/// skuImg : null +/// skuStock : -3 +/// sort : null +/// setMeal : null +/// weight : 0.0 +/// volume : 0.0 +/// isDelete : 0 +/// material : null +/// version : null +/// skuAttrCodeDTOList : null +/// skuAttrList : [{"id":"1446382613043347456","createTime":"2021-10-08 15:51:02","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:02","updateUser":"1333246101196636160","skuId":"1446382612795883520","attrId":"1433994980644356096","attrValueId":"1434076666832879616","sortOrder":null,"isDelete":0},{"id":"1446382613278228480","createTime":"2021-10-08 15:51:02","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:02","updateUser":"1333246101196636160","skuId":"1446382612795883520","attrId":"1434076668170862592","attrValueId":"1434076668615458816","sortOrder":null,"isDelete":0},{"id":"1446382613479555072","createTime":"2021-10-08 15:51:02","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:02","updateUser":"1333246101196636160","skuId":"1446382612795883520","attrId":"1434076667252310016","attrValueId":"1434076667919204352","sortOrder":null,"isDelete":0}] +/// setMealDTOList : null + +class ProductSkuVOListBean { + String id; + String createTime; + String createUser; + String updateTime; + String updateUser; + String storeId; + String skuCode; + String skuNameStr; + String productId; + String skuPrice; + String applyPrice; + dynamic vipPrice; + dynamic skuImg; + int skuStock; + dynamic sort; + dynamic setMeal; + double weight; + double volume; + int isDelete; + dynamic material; + dynamic version; + dynamic skuAttrCodeDTOList; + List skuAttrList; + dynamic setMealDTOList; + + static ProductSkuVOListBean fromMap(Map map) { + if (map == null) return null; + ProductSkuVOListBean productSkuVOListBean = ProductSkuVOListBean(); + productSkuVOListBean.id = map['id']; + productSkuVOListBean.createTime = map['createTime']; + productSkuVOListBean.createUser = map['createUser']; + productSkuVOListBean.updateTime = map['updateTime']; + productSkuVOListBean.updateUser = map['updateUser']; + productSkuVOListBean.storeId = map['storeId']; + productSkuVOListBean.skuCode = map['skuCode']; + productSkuVOListBean.skuNameStr = map['skuNameStr']; + productSkuVOListBean.productId = map['productId']; + productSkuVOListBean.skuPrice = map['skuPrice']; + productSkuVOListBean.applyPrice = map['applyPrice']; + productSkuVOListBean.vipPrice = map['vipPrice']; + productSkuVOListBean.skuImg = map['skuImg']; + productSkuVOListBean.skuStock = map['skuStock']; + productSkuVOListBean.sort = map['sort']; + productSkuVOListBean.setMeal = map['setMeal']; + productSkuVOListBean.weight = map['weight']; + productSkuVOListBean.volume = map['volume']; + productSkuVOListBean.isDelete = map['isDelete']; + productSkuVOListBean.material = map['material']; + productSkuVOListBean.version = map['version']; + productSkuVOListBean.skuAttrCodeDTOList = map['skuAttrCodeDTOList']; + productSkuVOListBean.skuAttrList = List()..addAll( + (map['skuAttrList'] as List ?? []).map((o) => SkuAttrListBean.fromMap(o)) + ); + productSkuVOListBean.setMealDTOList = map['setMealDTOList']; + return productSkuVOListBean; + } + + Map toJson() => { + "id": id, + "createTime": createTime, + "createUser": createUser, + "updateTime": updateTime, + "updateUser": updateUser, + "storeId": storeId, + "skuCode": skuCode, + "skuNameStr": skuNameStr, + "productId": productId, + "skuPrice": skuPrice, + "applyPrice": applyPrice, + "vipPrice": vipPrice, + "skuImg": skuImg, + "skuStock": skuStock, + "sort": sort, + "setMeal": setMeal, + "weight": weight, + "volume": volume, + "isDelete": isDelete, + "material": material, + "version": version, + "skuAttrCodeDTOList": skuAttrCodeDTOList, + "skuAttrList": skuAttrList, + "setMealDTOList": setMealDTOList, + }; +} + +/// id : "1446382613043347456" +/// createTime : "2021-10-08 15:51:02" +/// createUser : "1333246101196636160" +/// updateTime : "2021-10-08 15:51:02" +/// updateUser : "1333246101196636160" +/// skuId : "1446382612795883520" +/// attrId : "1433994980644356096" +/// attrValueId : "1434076666832879616" +/// sortOrder : null +/// isDelete : 0 + +class SkuAttrListBean { + String id; + String createTime; + String createUser; + String updateTime; + String updateUser; + String skuId; + String attrId; + String attrValueId; + dynamic sortOrder; + int isDelete; + + static SkuAttrListBean fromMap(Map map) { + if (map == null) return null; + SkuAttrListBean skuAttrListBean = SkuAttrListBean(); + skuAttrListBean.id = map['id']; + skuAttrListBean.createTime = map['createTime']; + skuAttrListBean.createUser = map['createUser']; + skuAttrListBean.updateTime = map['updateTime']; + skuAttrListBean.updateUser = map['updateUser']; + skuAttrListBean.skuId = map['skuId']; + skuAttrListBean.attrId = map['attrId']; + skuAttrListBean.attrValueId = map['attrValueId']; + skuAttrListBean.sortOrder = map['sortOrder']; + skuAttrListBean.isDelete = map['isDelete']; + return skuAttrListBean; + } + + Map toJson() => { + "id": id, + "createTime": createTime, + "createUser": createUser, + "updateTime": updateTime, + "updateUser": updateUser, + "skuId": skuId, + "attrId": attrId, + "attrValueId": attrValueId, + "sortOrder": sortOrder, + "isDelete": isDelete, + }; +} + +/// productId : "1433994980233314304" +/// attrName : "�¶�" +/// sortOrder : null +/// needImg : false +/// isDelete : 0 +/// attrCode : null +/// id : "1433994980644356096" +/// attrValueList : [{"id":"1434076666832879616","attrId":"1433994980644356096","attrValue":"ȥ��","attrValueImg":"","sortOrder":null,"isDelete":0,"attrValueCode":null},{"id":"1433994980849876992","attrId":"1433994980644356096","attrValue":"�ٱ�","attrValueImg":"","sortOrder":null,"isDelete":0,"attrValueCode":null},{"id":"1434076667034206208","attrId":"1433994980644356096","attrValue":"������","attrValueImg":"","sortOrder":null,"isDelete":0,"attrValueCode":null}] + +class AttrListBean { + String productId; + String attrName; + dynamic sortOrder; + bool needImg; + int isDelete; + dynamic attrCode; + String id; + List attrValueList; + + static AttrListBean fromMap(Map map) { + if (map == null) return null; + AttrListBean attrListBean = AttrListBean(); + attrListBean.productId = map['productId']; + attrListBean.attrName = map['attrName']; + attrListBean.sortOrder = map['sortOrder']; + attrListBean.needImg = map['needImg']; + attrListBean.isDelete = map['isDelete']; + attrListBean.attrCode = map['attrCode']; + attrListBean.id = map['id']; + attrListBean.attrValueList = List()..addAll( + (map['attrValueList'] as List ?? []).map((o) => AttrValueListBean.fromMap(o)) + ); + return attrListBean; + } + + Map toJson() => { + "productId": productId, + "attrName": attrName, + "sortOrder": sortOrder, + "needImg": needImg, + "isDelete": isDelete, + "attrCode": attrCode, + "id": id, + "attrValueList": attrValueList, + }; +} + +/// id : "1434076666832879616" +/// attrId : "1433994980644356096" +/// attrValue : "ȥ��" +/// attrValueImg : "" +/// sortOrder : null +/// isDelete : 0 +/// attrValueCode : null + +class AttrValueListBean { + String id; + String attrId; + String attrValue; + String attrValueImg; + dynamic sortOrder; + int isDelete; + dynamic attrValueCode; + bool isSelected; + + static AttrValueListBean fromMap(Map map) { + if (map == null) return null; + AttrValueListBean attrValueListBean = AttrValueListBean(); + attrValueListBean.id = map['id']; + attrValueListBean.attrId = map['attrId']; + attrValueListBean.attrValue = map['attrValue']; + attrValueListBean.attrValueImg = map['attrValueImg']; + attrValueListBean.sortOrder = map['sortOrder']; + attrValueListBean.isDelete = map['isDelete']; + attrValueListBean.attrValueCode = map['attrValueCode']; + return attrValueListBean; + } + + Map toJson() => { + "id": id, + "attrId": attrId, + "attrValue": attrValue, + "attrValueImg": attrValueImg, + "sortOrder": sortOrder, + "isDelete": isDelete, + "attrValueCode": attrValueCode, + }; +} + +/// id : "1333246101343436800" +/// storeName : "��Ͽ���ò��(���ֵ�)" +/// nickName : "" +/// logo : "https://pos.upload.gznl.top/1175/2021/07/ae873881-b3ab-4332-b863-f3055b200e07.png" +/// productCount : 31 +/// soldNum : 1518 + +class StoreDTOBean { + String id; + String storeName; + String nickName; + String logo; + int productCount; + int soldNum; + + static StoreDTOBean fromMap(Map map) { + if (map == null) return null; + StoreDTOBean storeDTOBean = StoreDTOBean(); + storeDTOBean.id = map['id']; + storeDTOBean.storeName = map['storeName']; + storeDTOBean.nickName = map['nickName']; + storeDTOBean.logo = map['logo']; + storeDTOBean.productCount = map['productCount']; + storeDTOBean.soldNum = map['soldNum']; + return storeDTOBean; + } + + Map toJson() => { + "id": id, + "storeName": storeName, + "nickName": nickName, + "logo": logo, + "productCount": productCount, + "soldNum": soldNum, + }; +} \ No newline at end of file diff --git a/lib/retrofit/min_api.dart b/lib/retrofit/min_api.dart index 949cc36c..25a0ec8a 100644 --- a/lib/retrofit/min_api.dart +++ b/lib/retrofit/min_api.dart @@ -1,6 +1,7 @@ import 'dart:convert'; import 'package:dio/dio.dart'; +import 'package:flare_flutter/flare_testing.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter_easyloading/flutter_easyloading.dart'; @@ -11,8 +12,7 @@ import 'package:huixiang/view_widget/login_tips_dialog.dart'; import 'package:retrofit/retrofit.dart'; import 'data/findMiNiGroupList.dart'; -import 'data/page.dart'; - +import 'data/miNiDetail.dart'; part 'min_api.g.dart'; // const base_url = "https://pos.platform.lotus-wallet.com/app/"; ///正式 @@ -118,5 +118,10 @@ abstract class MinApiService { @Body() Map param); + ///小程序查询商品详情/規格选择 + @GET("/product/queryMiNiProductDetail?id={id}") + Future> miNiDetail(@Path("id") String id); + + } \ No newline at end of file diff --git a/lib/retrofit/min_api.g.dart b/lib/retrofit/min_api.g.dart index b8dbeed5..2dcec64f 100644 --- a/lib/retrofit/min_api.g.dart +++ b/lib/retrofit/min_api.g.dart @@ -17,18 +17,22 @@ class _MinApiService implements MinApiService { String baseUrl; @override - Future>> findMiNiGroupList(param) async { + Future>> findMiNiGroupList( + param, header) async { ArgumentError.checkNotNull(param, 'param'); + ArgumentError.checkNotNull(header, 'header'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); + final _header= {}; + _header.addAll(header ?? {}); final _result = await _dio.request>( 'product/findMiNiGroupList', queryParameters: queryParameters, options: RequestOptions( method: 'POST', - headers: {}, + headers: _header, extra: _extra, baseUrl: baseUrl), data: _data); @@ -40,4 +44,26 @@ class _MinApiService implements MinApiService { .toList()); return value; } + + @override + Future> miNiDetail(id) async { + ArgumentError.checkNotNull(id, 'id'); + const _extra = {}; + final queryParameters = {}; + final _data = {}; + final _result = await _dio.request>( + '/product/queryMiNiProductDetail?id=$id', + queryParameters: queryParameters, + options: RequestOptions( + method: 'GET', + headers: {}, + extra: _extra, + baseUrl: baseUrl), + data: _data); + final value = BaseData.fromJson( + _result.data, + (json) => MiNiDetail.fromMap(json), + ); + return value; + } } diff --git a/lib/store/store_view/store_order_list.dart b/lib/store/store_view/store_order_list.dart index bd6c05e0..def2b8f3 100644 --- a/lib/store/store_view/store_order_list.dart +++ b/lib/store/store_view/store_order_list.dart @@ -4,11 +4,13 @@ import 'package:huixiang/generated/l10n.dart'; import 'package:huixiang/retrofit/data/activity.dart'; import 'package:huixiang/retrofit/data/base_data.dart'; import 'package:huixiang/retrofit/data/findMiNiGroupList.dart'; +import 'package:huixiang/retrofit/data/miNiDetail.dart'; import 'package:huixiang/retrofit/data/store_info.dart'; import 'package:huixiang/retrofit/min_api.dart'; import 'package:huixiang/retrofit/retrofit_api.dart'; import 'package:huixiang/store/store_view/product_sku.dart'; import 'package:huixiang/utils/font_weight.dart'; +import 'package:huixiang/utils/min.dart'; import 'package:huixiang/view_widget/custom_image.dart'; import 'package:huixiang/view_widget/round_button.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; @@ -33,16 +35,6 @@ class StoreOrderListPage extends StatefulWidget { } } -class testModel { - String name; - bool isSelected; - - testModel(String name) { - this.name = name; - this.isSelected = false; - } -} - class _StoreOrderListPage extends State { int isSelected = 0; @@ -89,6 +81,7 @@ class _StoreOrderListPage extends State { tenant: tenant, ); appletGoods(); + // queryMiNiDetail(widget.arguments["id"]); } }); } @@ -110,6 +103,16 @@ class _StoreOrderListPage extends State { } } + ///选规格 + queryMiNiDetail(String id) async { + BaseData baseData = await minService.miNiDetail(id); + if (baseData != null && baseData.isSuccess) { + setState(() { + showStoreSelector(baseData.data); + }); + } + } + @override Widget build(BuildContext context) { return Container( @@ -193,6 +196,8 @@ class _StoreOrderListPage extends State { color: Colors.white, padding: EdgeInsets.only(right: 16.w, bottom: 10.h, top: 10.h), child: Row( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.start, children: [ SizedBox(width: 12.w), MImage( @@ -300,7 +305,8 @@ class _StoreOrderListPage extends State { true ? GestureDetector( onTap: () { - showStoreSelector(productListBean); + // showStoreSelector(productListBean); + queryMiNiDetail(productListBean.id); }, child: RoundButton( width: 49.w, @@ -357,16 +363,13 @@ class _StoreOrderListPage extends State { } ///选规格弹窗 - showStoreSelector(ProductListBean productListBean) { + showStoreSelector(MiNiDetail miNiDetail) { showModalBottomSheet( context: context, backgroundColor: Colors.transparent, builder: (context) { return StatefulBuilder(builder: (context1, state) { return ProductSku(productListBean); - }); - }, - ); - } + } diff --git a/pubspec.lock b/pubspec.lock index b3ffae43..68fd0bd2 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -388,7 +388,7 @@ packages: name: flutter_smart_dialog url: "https://pub.flutter-io.cn" source: hosted - version: "2.3.1" + version: "2.3.6" flutter_spinkit: dependency: "direct main" description: