Showing
1 changed file
with
107 additions
and
0 deletions
@@ -767,4 +767,111 @@ | @@ -767,4 +767,111 @@ | ||
767 | price: '', | 767 | price: '', |
768 | discount: '' | 768 | discount: '' |
769 | } | 769 | } |
770 | + } | ||
771 | + | ||
772 | + | ||
773 | +## 购物车 | ||
774 | + | ||
775 | + { | ||
776 | + shoppingCart: { | ||
777 | + cartNav: true, //显示预售和普通switch导航 | ||
778 | + commonGoodsCount: 2, | ||
779 | + presellGoodsCount: 2, //普通商品和预售商品数目,显示在导航中 | ||
780 | + showLoginInfo: true, //是否显示登录提示 | ||
781 | + commonCart: { | ||
782 | + goods: [ | ||
783 | + //购物车商品(见下), | ||
784 | + ... | ||
785 | + ], | ||
786 | + freebieOrAdvanceBuy: true, //是否显示赠品和加价购 | ||
787 | + freebie: { | ||
788 | + url: '', | ||
789 | + count: 2 | ||
790 | + }, | ||
791 | + advanceBuy: { | ||
792 | + url: '', | ||
793 | + count: 1 | ||
794 | + }, | ||
795 | + price: 322, | ||
796 | + activityPrice: 223, //活动价 | ||
797 | + count: 8, | ||
798 | + sumPrice: 400 | ||
799 | + }, | ||
800 | + preSellCart: { | ||
801 | + //同普通购物车 | ||
802 | + ... | ||
803 | + } | ||
804 | + } | ||
805 | + } | ||
806 | + | ||
807 | +### 选择尺码、数目、颜色面板 | ||
808 | + | ||
809 | + { | ||
810 | + thumb: '', | ||
811 | + name: '', | ||
812 | + price: '', | ||
813 | + salePrice: '', | ||
814 | + colors: [ | ||
815 | + { | ||
816 | + id: 1, | ||
817 | + chosed: true, | ||
818 | + name: '黄色' | ||
819 | + }, | ||
820 | + ... | ||
821 | + ], | ||
822 | + sizes: [ | ||
823 | + { | ||
824 | + id: 2, | ||
825 | + chosed: true, | ||
826 | + name: 'X' | ||
827 | + }, | ||
828 | + ... | ||
829 | + ], | ||
830 | + num: 2 | ||
831 | + } | ||
832 | + | ||
833 | +### 购物车商品 | ||
834 | + | ||
835 | + { | ||
836 | + id: 1, | ||
837 | + thumb: '', | ||
838 | + name: '', | ||
839 | + color: '黄色', | ||
840 | + size: 'L', | ||
841 | + appearDate: '12月', //上市期 | ||
842 | + price: 200, | ||
843 | + count: 2, | ||
844 | + soldOut: true, //售罄 | ||
845 | + lowStocks: true, //库存不足 | ||
846 | + } | ||
847 | + | ||
848 | +### 赠品和加价购 | ||
849 | + | ||
850 | + { | ||
851 | + shoppingCart: { | ||
852 | + gift: [ | ||
853 | + //赠品(见下) | ||
854 | + ], | ||
855 | + //or | ||
856 | + advance: [ | ||
857 | + { | ||
858 | + title: '', | ||
859 | + goods: [ | ||
860 | + //加价购商品(见下) | ||
861 | + ] | ||
862 | + } | ||
863 | + ] | ||
864 | + } | ||
865 | + } | ||
866 | + | ||
867 | +### 赠品和加价购商品 | ||
868 | + | ||
869 | + { | ||
870 | + id: 1, | ||
871 | + thumb: '', | ||
872 | + name: '', | ||
873 | + color: '黄色', | ||
874 | + size: 'L', //颜色和尺寸需要显示就传,不显示不传 | ||
875 | + price: 562, | ||
876 | + count: 3 | ||
770 | } | 877 | } |
-
Please register or login to post a comment