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 190ce653..fe4aa672 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/"; ///正式 @@ -114,5 +114,10 @@ abstract class MinApiService { @Body() Map param,Map header); + ///小程序查询商品详情/規格选择 + @GET("/product/queryMiNiProductDetail?id={id}") + Future> miNiDetail(@Path("id") String id); + + } \ No newline at end of file diff --git a/lib/store/store_order.dart b/lib/store/store_order.dart index e5f35cb0..bbb34b35 100644 --- a/lib/store/store_order.dart +++ b/lib/store/store_order.dart @@ -3,9 +3,11 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; +import 'package:flutter_swiper/flutter_swiper.dart'; 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/order_info.dart'; import 'package:huixiang/retrofit/data/store_info.dart'; import 'package:huixiang/retrofit/min_api.dart'; @@ -17,6 +19,7 @@ import 'package:huixiang/union/union_view/union_coupon.dart'; import 'package:huixiang/union/union_view/vip.dart'; import 'package:huixiang/utils/font_weight.dart'; import 'package:huixiang/view_widget/classic_header.dart'; +import 'package:huixiang/view_widget/custom_image.dart'; import 'package:huixiang/view_widget/my_tab.dart'; import 'package:huixiang/view_widget/round_button.dart'; import 'package:pull_to_refresh/pull_to_refresh.dart'; @@ -24,12 +27,8 @@ import 'package:shared_preferences/shared_preferences.dart'; class StoreOrderPage extends StatefulWidget { final Map arguments; - final List activitys; - final StoreInfo storeInfo; - final List productList; - - StoreOrderPage({this.arguments, this.activitys, this.storeInfo,this.productList}); + StoreOrderPage({this.arguments}); @override State createState() { @@ -38,11 +37,12 @@ class StoreOrderPage extends StatefulWidget { } class _StoreOrderPage extends State - with TickerProviderStateMixin /*, AutomaticKeepAliveClientMixin */ { + with TickerProviderStateMixin, AutomaticKeepAliveClientMixin { TabController tabcontroller; ApiService apiService; MinApiService minService; StoreInfo storeInfo; + List activitys; RefreshController refreshController; List _widgetOptions; @@ -60,13 +60,17 @@ class _StoreOrderPage extends State _widgetOptions = [ StoreOrderListPage( - widget.arguments, widget.activitys, storeInfo, controller), + widget.arguments, + activitys, + storeInfo, + controller, + ), ///星店活动, StoreActivity( widget.arguments, - widget.activitys, + activitys, ), ]; @@ -81,7 +85,6 @@ class _StoreOrderPage extends State context: context, token: value.getString('token'), ); - BaseData baseData = await apiService .queryStoreInfo(widget.arguments["id"]) .catchError((error) { @@ -90,6 +93,9 @@ class _StoreOrderPage extends State if (baseData != null && baseData.isSuccess) { refreshController.refreshCompleted(); storeInfo = StoreInfo.fromJson(baseData.data); + activitys = storeInfo.informationVOPageVO.list + .map((e) => Activity.fromJson(e)) + .toList(); if (mounted) { setState(() {}); } @@ -126,7 +132,8 @@ class _StoreOrderPage extends State (BuildContext context, bool innerBoxIsScrolled) { return [ SliverOverlapAbsorber( - handle: NestedScrollView.sliverOverlapAbsorberHandleFor(context), + handle: NestedScrollView.sliverOverlapAbsorberHandleFor( + context), sliver: SliverAppBar( expandedHeight: (storeInfo != null && storeInfo.couponVOList != null) @@ -167,12 +174,13 @@ class _StoreOrderPage extends State Positioned( child: Column( children: [ - Image.asset( - "assets/image/share_image_bg.png", - fit: BoxFit.cover, - width: MediaQuery.of(context).size.width, - height: 180.h, - ), + // Image.asset( + // "assets/image/share_image_bg.png", + // fit: BoxFit.cover, + // width: MediaQuery.of(context).size.width, + // height: 180.h, + // ), + buildSwiper(), Expanded( child: Container( color: Colors.transparent, @@ -211,7 +219,7 @@ class _StoreOrderPage extends State ], ), ), - top: 110.h, + top: 90.h, bottom: 0, left: 0, right: 0, @@ -359,6 +367,45 @@ class _StoreOrderPage extends State ); } + Widget buildSwiper() { + return Container( + width: double.infinity, + height: 180.h, + child: Swiper( + pagination: SwiperPagination( + alignment: Alignment.bottomCenter, + builder: DotSwiperPaginationBuilder( + size: 8.w, + activeSize: 8.w, + space: 5.w, + activeColor: Colors.white, + color: Colors.white.withAlpha(76), + ), + ), + itemBuilder: (context, position) { + return Container( + margin: EdgeInsets.only(left: 10.w, right: 10.w), + child: MImage( + (storeInfo != null && + storeInfo.bannerList != null && + position < storeInfo.bannerList.length) + ? storeInfo.bannerList[position].imgUrl + : "", + fit: BoxFit.cover, + radius: BorderRadius.circular(4), + errorSrc: "assets/image/default_2_1.png", + fadeSrc: "assets/image/default_2_1.png", + ), + ); + }, + itemCount: (storeInfo != null && storeInfo.bannerList != null) + ? storeInfo.bannerList.length + : 1), + ); + } + + List productLists = []; + ///购物车弹窗 showShoppingCart() { showModalBottomSheet( @@ -419,14 +466,13 @@ class _StoreOrderPage extends State right: 16, ), child: ListView.builder( - itemCount: widget.productList == null ? 0 : widget.productList.length, + itemCount: productLists == null ? 0 : productLists.length, physics: BouncingScrollPhysics(), itemBuilder: (context, position) { // return shoppGoodsItem(); return GestureDetector( - onTap: () { - }, - child: shoppGoodsItem(widget.productList[position], position), + onTap: () {}, + child: shoppGoodsItem(productLists[position], position), ); }, ), @@ -637,8 +683,8 @@ class _StoreOrderPage extends State ); } -// @override -// bool get wantKeepAlive => true; + @override + bool get wantKeepAlive => true; } class Title extends StatefulWidget { @@ -668,7 +714,8 @@ class _Title extends State { if (alphaProgress <= 1) { alphatemp = 1; } else if (alphaProgress <= alphaHeight) { - alphatemp = (((alphaHeight - alphaProgress) / alphaHeight) > 0.5) ? 1 : 0; + alphatemp = + (((alphaHeight - alphaProgress) / alphaHeight) > 0.5) ? 1 : 0; } else { alphatemp = 0; } diff --git a/lib/store/store_view/store_order_list.dart b/lib/store/store_view/store_order_list.dart index af929898..4bab9413 100644 --- a/lib/store/store_view/store_order_list.dart +++ b/lib/store/store_view/store_order_list.dart @@ -8,11 +8,13 @@ import 'package:huixiang/retrofit/data/findMiNiGroupList.dart'; import 'package:huixiang/retrofit/data/findMiNiGroupList.dart'; import 'package:huixiang/retrofit/data/findMiNiGroupList.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/data/user_entity.dart'; import 'package:huixiang/retrofit/min_api.dart'; import 'package:huixiang/retrofit/retrofit_api.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'; @@ -25,7 +27,11 @@ class StoreOrderListPage extends StatefulWidget { final ScrollController controller; StoreOrderListPage( - this.arguments, this.activitys, this.storeInfo, this.controller); + this.arguments, + this.activitys, + this.storeInfo, + this.controller, + ); @override State<StatefulWidget> createState() { @@ -33,24 +39,7 @@ class StoreOrderListPage extends StatefulWidget { } } -class testModel { - String name; - bool isSelected; - - testModel(String name) { - this.name = name; - this.isSelected = false; - } -} - class _StoreOrderListPage extends State<StoreOrderListPage> { - List<testModel> temperatureStoreList = [ - testModel("正常冰"), - testModel("少冰"), - testModel("多冰"), - testModel("去冰") - ]; - List<testModel> sweetnessStoreList = [testModel("正常糖"), testModel("5分糖")]; int isSelected = 0; int isChoice = 0; int tempClickIndex = 0; @@ -76,16 +65,18 @@ class _StoreOrderListPage extends State<StoreOrderListPage> { context: context, token: value.getString('token'), ); - apiService.minLogin(widget.arguments["id"]) - .catchError((onError){}).then((baseData) { + apiService + .minLogin(widget.arguments["id"]) + .catchError((onError) {}) + .then((baseData) { if (baseData != null && baseData.isSuccess) { Map<String, dynamic> minStoreInfo = baseData.data; String minToken = minStoreInfo["token"]; String tenant = widget.arguments["tenant"]; SharedPreferences.getInstance().then((value) => { - value.setString('minToken', minToken), - value.setString('tenant', tenant), - }); + value.setString('minToken', minToken), + value.setString('tenant', tenant), + }); minService = MinApiService( Dio(), context: context, @@ -93,33 +84,42 @@ class _StoreOrderListPage extends State<StoreOrderListPage> { // tenant: tenant, ); appletGoods(); + // queryMiNiDetail(widget.arguments["id"]); } }); } ///小程序查询分组及商品列表 - appletGoods() async{ - BaseData<List<FindMiNiGroupList>> baseData = await minService.findMiNiGroupList({ - "id":widget.arguments["id"] - },{ - "store_id":widget.arguments["id"], - "tenant":"1175" - }); + appletGoods() async { + BaseData<List<FindMiNiGroupList>> baseData = await minService + .findMiNiGroupList({"id": widget.arguments["id"]}, + {"store_id": widget.arguments["id"], "tenant": "1175"}); if (baseData != null && baseData.isSuccess) { setState(() { appletProducts = baseData.data; - if(appletProducts.length > 0) + if (appletProducts.length > 0) productListBeans = appletProducts[0].productList; }); } } + ///选规格 + queryMiNiDetail(String id) async { + BaseData<MiNiDetail> baseData = await minService.miNiDetail(id); + if (baseData != null && baseData.isSuccess) { + setState(() { + showStoreSelector(baseData.data); + }); + } + } + @override Widget build(BuildContext context) { return Container( width: MediaQuery.of(context).size.width, height: MediaQuery.of(context).size.height - (kToolbarHeight + 38 + 54.h), - margin: EdgeInsets.only(top: (MediaQuery.of(context).padding.top + 38 + kToolbarHeight)), + margin: EdgeInsets.only( + top: (MediaQuery.of(context).padding.top + 38 + kToolbarHeight)), child: Row( mainAxisAlignment: MainAxisAlignment.start, mainAxisSize: MainAxisSize.max, @@ -131,7 +131,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> { controller: controller1, padding: EdgeInsets.zero, itemBuilder: (context, position) { - return orderItem(appletProducts[position],position); + return orderItem(appletProducts[position], position); }, ), ), @@ -154,14 +154,14 @@ class _StoreOrderListPage extends State<StoreOrderListPage> { ScrollController controller1 = ScrollController(); ScrollController controller2 = ScrollController(); - Widget orderItem(FindMiNiGroupList findMiNiGroupList,int index) { + Widget orderItem(FindMiNiGroupList findMiNiGroupList, int index) { return Container( child: Column( mainAxisAlignment: MainAxisAlignment.spaceAround, crossAxisAlignment: CrossAxisAlignment.center, children: [ GestureDetector( - onTap:() { + onTap: () { setState(() { isSelected = index; productListBeans = findMiNiGroupList.productList; @@ -189,17 +189,19 @@ class _StoreOrderListPage extends State<StoreOrderListPage> { ); } - Widget goodsItem(ProductListBean productListBean,position) { + Widget goodsItem(ProductListBean productListBean, position) { return Container( color: Colors.white, - padding: EdgeInsets.only(right: 16.w, bottom: 10.h,top:10.h), + 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( + MImage( productListBean != null ? productListBean.imgPath : "", width: 70, - height:70, + height: 70, fit: BoxFit.cover, errorSrc: "assets/image/default_1.png", fadeSrc: "assets/image/default_1.png", @@ -207,7 +209,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> { SizedBox(width: 10), Expanded( child: Column( - // crossAxisAlignment: CrossAxisAlignment.start, + crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( productListBean.productName, @@ -220,17 +222,18 @@ class _StoreOrderListPage extends State<StoreOrderListPage> { SizedBox(height: 2), Row( children: [ - Expanded(child: Text( - productListBean.shortName, - overflow: TextOverflow.ellipsis, - maxLines: 2, - style: TextStyle( - color: Color(0xFF4C4C4C), - fontSize: 10.sp, - fontWeight: MyFontWeight.regular, + Expanded( + child: Text( + productListBean.shortName, + overflow: TextOverflow.ellipsis, + maxLines: 2, + style: TextStyle( + color: Color(0xFF4C4C4C), + fontSize: 10.sp, + fontWeight: MyFontWeight.regular, + ), ), - ), ), - + ), SizedBox(width: 10), ], ), @@ -287,7 +290,8 @@ class _StoreOrderListPage extends State<StoreOrderListPage> { true ? GestureDetector( onTap: () { - showStoreSelector(productListBean); + // showStoreSelector(productListBean); + queryMiNiDetail(productListBean.id); }, child: RoundButton( width: 49.w, @@ -339,8 +343,12 @@ class _StoreOrderListPage extends State<StoreOrderListPage> { ); } + List<ProductListBean> shopCarList() { + return productListBeans; + } + ///选规格弹窗 - showStoreSelector(ProductListBean productListBean) { + showStoreSelector(MiNiDetail miNiDetail) { showModalBottomSheet( context: context, backgroundColor: Colors.transparent, @@ -366,7 +374,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> { crossAxisAlignment: CrossAxisAlignment.start, children: [ MImage( - productListBean.imgPath, + miNiDetail.imgs[0], width: 70, height: 70, fit: BoxFit.cover, @@ -378,7 +386,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> { crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( - productListBean.productName, + miNiDetail.productName, style: TextStyle( color: Colors.black, fontSize: 16.sp, @@ -407,7 +415,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> { ), ), Text( - productListBean.applyPrice, + miNiDetail.price, style: TextStyle( color: Color(0xFFFF7A1A), fontSize: 14.sp, @@ -434,51 +442,23 @@ class _StoreOrderListPage extends State<StoreOrderListPage> { SizedBox( height: 23, ), - Text( - "温度", - style: TextStyle( - color: Colors.black, - fontSize: 14.sp, - fontWeight: MyFontWeight.regular, - ), - ), - SizedBox( - height: 15, - ), - sweetnessStore(() { - state(() { - for (var i = 0; i < temperatureStoreList.length; i++) { - if (tempClickIndex == i) - temperatureStoreList[i].isSelected = true; - else - temperatureStoreList[i].isSelected = false; - } - }); - }, temperatureStoreList), - SizedBox( - height: 24, - ), - Text( - "甜度", - style: TextStyle( - color: Colors.black, - fontSize: 14.sp, - fontWeight: MyFontWeight.regular, - ), - ), - SizedBox( - height: 15, - ), - sweetnessStore(() { - state(() { - for (var i = 0; i < sweetnessStoreList.length; i++) { - if (tempClickIndex == i) - sweetnessStoreList[i].isSelected = true; - else - sweetnessStoreList[i].isSelected = false; - } - }); - }, sweetnessStoreList), + Expanded(child: ListView.builder( + itemCount: miNiDetail.attrList.length, + scrollDirection: Axis.vertical, + physics: BouncingScrollPhysics(), + itemBuilder: (context, position) { + return attrItem(() { + state(() { + for (var i = 0; i < miNiDetail.attrList[position].attrValueList.length; i++) { + if (tempClickIndex == i) + miNiDetail.attrList[position].attrValueList[i].isSelected = true; + else + miNiDetail.attrList[position].attrValueList[i].isSelected = false; + } + }); + }, miNiDetail.attrList[position]); + }, + )), SizedBox( height: 24, ), @@ -505,7 +485,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> { Padding( padding: EdgeInsets.only(left: 8, right: 8), child: Text( - productListBean.buyNum.toString(), + "1", style: TextStyle( color: Colors.black, fontSize: 14.sp, @@ -548,7 +528,27 @@ class _StoreOrderListPage extends State<StoreOrderListPage> { ); } - Widget sweetnessStore(Function fc, List<testModel> arrays) { + Widget attrItem(Function fc,AttrListBean attrListBean){ + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + attrListBean.attrName, + style: TextStyle( + color: Colors.black, + fontSize: 14.sp, + fontWeight: MyFontWeight.regular, + ), + ), + SizedBox( + height: 15, + ), + sweetnessStore(fc, attrListBean.attrValueList), + ], + ); + } + + Widget sweetnessStore(Function fc, List<AttrValueListBean> arrays) { return GridView.builder( itemCount: arrays.length, shrinkWrap: true, @@ -568,7 +568,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> { tempClickIndex = index; fc(); }, - child: sweetnessItem(arrays[index].name, arrays[index].isSelected), + child: sweetnessItem(arrays[index].attrValue, arrays[index].isSelected??false), ); }, ); diff --git a/lib/union/union_view/store_info.dart b/lib/union/union_view/store_info.dart index 9b222f7c..b193b4ba 100644 --- a/lib/union/union_view/store_info.dart +++ b/lib/union/union_view/store_info.dart @@ -177,175 +177,175 @@ class _StoreInfos extends State<StoreInfos> { ], ), ); - return AspectRatio( - aspectRatio: 1, - child: Container( - margin: EdgeInsets.fromLTRB(16, 20, 16, 8), - padding: EdgeInsets.fromLTRB(10, 20, 10, 14), - decoration: BoxDecoration( - color: Colors.white, - borderRadius: BorderRadius.circular(8), - boxShadow: [ - BoxShadow( - color: Colors.black.withAlpha(25), - offset: Offset(0, 1), - blurRadius: 12, - spreadRadius: 0, - ), - ], - ), - child: Column( - mainAxisAlignment: MainAxisAlignment.spaceAround, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - AspectRatio( - aspectRatio: 1.8, - child: buildSwiper(), - ), - Expanded( - child: Container( - margin: EdgeInsets.only( - left: 10.w, - right: 10.w, - top: 16.h, - ), - child: Column( - mainAxisAlignment: - MainAxisAlignment.spaceBetween, - crossAxisAlignment: - CrossAxisAlignment.start, - children: [ - Row( - children: [ - Expanded( - child: Container( - alignment: - Alignment.centerLeft, - child: Text( - widget.storeInfo != null - ? widget.storeInfo.storeName - : "", - overflow: TextOverflow.ellipsis, - style: TextStyle( - fontSize: 16.sp, - color: Colors.black, - fontWeight: MyFontWeight.medium, - ), - ), - ), - ), - Text( - S.of(context).ren( - widget.storeInfo != null - ? widget.storeInfo - .perCapitaConsumption - : "", - ), - overflow: TextOverflow.ellipsis, - style: TextStyle( - fontSize: 14.sp, - fontWeight: MyFontWeight.regular, - color: Color(0xFF353535), - ), - ), - ], - ), - Text( - widget.storeInfo != null - ? widget.storeInfo.address - : "", - maxLines: 2, - textAlign: TextAlign.justify, - style: TextStyle( - color: Color(0xFF353535), - fontWeight: MyFontWeight.regular, - fontSize: 12.sp, - ), - ), - Row( - children: itemServer( - widget.storeInfo != null - ? widget.storeInfo.businessService - : "", - ), - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - crossAxisAlignment: CrossAxisAlignment.end, - children: [ - Expanded( - child: Text( - S.of(context).yingyeshijian(widget.storeInfo == - null - ? "" - : (widget.storeInfo.openStartTime == - null && - widget.storeInfo - .openEndTime == - null) - ? S.of(context).quantian - : "${widget.storeInfo.openStartTime.substring(0, widget.storeInfo.openStartTime.lastIndexOf(":"))} " - "- ${widget.storeInfo.openEndTime.substring(0, widget.storeInfo.openEndTime.lastIndexOf(":"))}"), - style: TextStyle( - color: Color(0xFF353535), - fontWeight: MyFontWeight.regular, - fontSize: 12.sp, - ), - ), - ), - SizedBox( - width: 16.w, - ), - InkWell( - onTap: () { - if (widget.storeInfo == null || - widget.storeInfo.latitude == - null || - widget.storeInfo.longitude == - null || - widget.storeInfo.latitude == "" || - widget.storeInfo.longitude == "") - return; - Navigator.of(context).pushNamed( - '/router/location_map', - arguments: { - "lat": widget.storeInfo.latitude, - "lng": - widget.storeInfo.longitude, - "storeName": - widget.storeInfo.storeName, - }); - }, - child: Image.asset( - "assets/image/icon_union_location.png", - width: 24.w, - height: 24.h, - ), - ), - SizedBox( - width: 16.w, - ), - InkWell( - onTap: () { - showCallMobile(); - }, - child: Image.asset( - "assets/image/icon_union_call.png", - width: 24, - height: 24, - ), - ), - ], - ), - ], - ), - ), - flex: 1, - ), - ], - ), - ), - ); + // return AspectRatio( + // aspectRatio: 1, + // child: Container( + // margin: EdgeInsets.fromLTRB(16, 20, 16, 8), + // padding: EdgeInsets.fromLTRB(10, 20, 10, 14), + // decoration: BoxDecoration( + // color: Colors.white, + // borderRadius: BorderRadius.circular(8), + // boxShadow: [ + // BoxShadow( + // color: Colors.black.withAlpha(25), + // offset: Offset(0, 1), + // blurRadius: 12, + // spreadRadius: 0, + // ), + // ], + // ), + // child: Column( + // mainAxisAlignment: MainAxisAlignment.spaceAround, + // crossAxisAlignment: CrossAxisAlignment.start, + // children: [ + // AspectRatio( + // aspectRatio: 1.8, + // child: buildSwiper(), + // ), + // Expanded( + // child: Container( + // margin: EdgeInsets.only( + // left: 10.w, + // right: 10.w, + // top: 16.h, + // ), + // child: Column( + // mainAxisAlignment: + // MainAxisAlignment.spaceBetween, + // crossAxisAlignment: + // CrossAxisAlignment.start, + // children: [ + // Row( + // children: [ + // Expanded( + // child: Container( + // alignment: + // Alignment.centerLeft, + // child: Text( + // widget.storeInfo != null + // ? widget.storeInfo.storeName + // : "", + // overflow: TextOverflow.ellipsis, + // style: TextStyle( + // fontSize: 16.sp, + // color: Colors.black, + // fontWeight: MyFontWeight.medium, + // ), + // ), + // ), + // ), + // Text( + // S.of(context).ren( + // widget.storeInfo != null + // ? widget.storeInfo + // .perCapitaConsumption + // : "", + // ), + // overflow: TextOverflow.ellipsis, + // style: TextStyle( + // fontSize: 14.sp, + // fontWeight: MyFontWeight.regular, + // color: Color(0xFF353535), + // ), + // ), + // ], + // ), + // Text( + // widget.storeInfo != null + // ? widget.storeInfo.address + // : "", + // maxLines: 2, + // textAlign: TextAlign.justify, + // style: TextStyle( + // color: Color(0xFF353535), + // fontWeight: MyFontWeight.regular, + // fontSize: 12.sp, + // ), + // ), + // Row( + // children: itemServer( + // widget.storeInfo != null + // ? widget.storeInfo.businessService + // : "", + // ), + // ), + // Row( + // mainAxisAlignment: MainAxisAlignment.spaceBetween, + // crossAxisAlignment: CrossAxisAlignment.end, + // children: [ + // Expanded( + // child: Text( + // S.of(context).yingyeshijian(widget.storeInfo == + // null + // ? "" + // : (widget.storeInfo.openStartTime == + // null && + // widget.storeInfo + // .openEndTime == + // null) + // ? S.of(context).quantian + // : "${widget.storeInfo.openStartTime.substring(0, widget.storeInfo.openStartTime.lastIndexOf(":"))} " + // "- ${widget.storeInfo.openEndTime.substring(0, widget.storeInfo.openEndTime.lastIndexOf(":"))}"), + // style: TextStyle( + // color: Color(0xFF353535), + // fontWeight: MyFontWeight.regular, + // fontSize: 12.sp, + // ), + // ), + // ), + // SizedBox( + // width: 16.w, + // ), + // InkWell( + // onTap: () { + // if (widget.storeInfo == null || + // widget.storeInfo.latitude == + // null || + // widget.storeInfo.longitude == + // null || + // widget.storeInfo.latitude == "" || + // widget.storeInfo.longitude == "") + // return; + // Navigator.of(context).pushNamed( + // '/router/location_map', + // arguments: { + // "lat": widget.storeInfo.latitude, + // "lng": + // widget.storeInfo.longitude, + // "storeName": + // widget.storeInfo.storeName, + // }); + // }, + // child: Image.asset( + // "assets/image/icon_union_location.png", + // width: 24.w, + // height: 24.h, + // ), + // ), + // SizedBox( + // width: 16.w, + // ), + // InkWell( + // onTap: () { + // showCallMobile(); + // }, + // child: Image.asset( + // "assets/image/icon_union_call.png", + // width: 24, + // height: 24, + // ), + // ), + // ], + // ), + // ], + // ), + // ), + // flex: 1, + // ), + // ], + // ), + // ), + // ); } Widget buildSwiper() { 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: