Showing
1 changed file
with
68 additions
and
11 deletions
@@ -819,26 +819,83 @@ | @@ -819,26 +819,83 @@ | ||
819 | name: '', | 819 | name: '', |
820 | price: '', | 820 | price: '', |
821 | salePrice: '', | 821 | salePrice: '', |
822 | - colors: [ | 822 | + /**colors: [ |
823 | { | 823 | { |
824 | id: 1, | 824 | id: 1, |
825 | chosed: true, | 825 | chosed: true, |
826 | name: '黄色', | 826 | name: '黄色', |
827 | colorNum:10, | 827 | colorNum:10, |
828 | shortUrl:'', | 828 | shortUrl:'', |
829 | - sizes: [ | ||
830 | - { | 829 | + }, |
830 | + ... | ||
831 | + ],**/ | ||
832 | + | ||
833 | + colors: [ | ||
834 | + { | ||
835 | + color:[//说明:第一行,其colorNum的值为其下所有尺码数量之和,不需要sizeNumStr的值. | ||
836 | + { | ||
837 | + id: 1, | ||
838 | + name: '黄色', | ||
839 | + colorNum:10, | ||
840 | + shortUrl:'', | ||
841 | + }, | ||
842 | + { | ||
843 | + id: 2, | ||
844 | + name: '红色', | ||
845 | + colorNum:20, | ||
846 | + shortUrl:'', | ||
847 | + } | ||
848 | + ] | ||
849 | + }, | ||
850 | + { | ||
851 | + color:[//说明:第二行至最后一行,其colorNum的值为其对应尺码的数量,不需要sizeNumStr的值. | ||
852 | + { | ||
853 | + id: 1, | ||
854 | + name: '黄色', | ||
855 | + colorNum:10, | ||
856 | + shortUrl:'', | ||
857 | + }, | ||
858 | + { | ||
859 | + id: 2, | ||
860 | + name: '红色', | ||
861 | + colorNum:20, | ||
862 | + shortUrl:'', | ||
863 | + } | ||
864 | + ] | ||
865 | + } | ||
866 | + ], | ||
867 | + | ||
868 | + sizes: [ | ||
869 | + { | ||
870 | + size:[//说明:第一行,显示所有的尺寸,即为下面的defaultSizes,不需要numStr的值 | ||
871 | + { | ||
872 | + id: 1, | ||
873 | + name: 'M', | ||
874 | + sizeNum: 2 | ||
875 | + }, | ||
876 | + { | ||
831 | id: 2, | 877 | id: 2, |
832 | - chosed: true, | ||
833 | name: 'X', | 878 | name: 'X', |
834 | sizeNum: 2 | 879 | sizeNum: 2 |
835 | - }, | ||
836 | - ... | ||
837 | - ] | 880 | + } |
881 | + ] | ||
838 | }, | 882 | }, |
839 | - ... | ||
840 | - ], | ||
841 | - defaultSizes: [ | 883 | + { |
884 | + size:[//说明:第一行至最后一行,不需要numStr的值 | ||
885 | + { | ||
886 | + id: 3, | ||
887 | + name: 'M', | ||
888 | + sizeNum: 2 | ||
889 | + }, | ||
890 | + { | ||
891 | + id: 4, | ||
892 | + name: 'X', | ||
893 | + sizeNum: 2 | ||
894 | + } | ||
895 | + ] | ||
896 | + } | ||
897 | + ] | ||
898 | + /**defaultSizes: [ | ||
842 | { | 899 | { |
843 | numZero: true, | 900 | numZero: true, |
844 | name: 'X', | 901 | name: 'X', |
@@ -847,7 +904,7 @@ | @@ -847,7 +904,7 @@ | ||
847 | ... | 904 | ... |
848 | ] | 905 | ] |
849 | 906 | ||
850 | - totalNum: 20 | 907 | + totalNum: 20**/ |
851 | } | 908 | } |
852 | 909 | ||
853 | ### 购物车商品 | 910 | ### 购物车商品 |
-
Please register or login to post a comment