Android -- 购物车

Posted 猫十二懿

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Android -- 购物车相关的知识,希望对你有一定的参考价值。

简单购物车案例

购物车功能描述

        第一次进入购物车页面,购物车里面是空的,同时提示去逛手机商场, 如 首次进入的页面 图所示。接着去商场页面选购手机,随便挑了几部手机加入购物车,再返回购物车页面,即可看 到购物车的商品列表,如 购物车已选列表图 所示,有商品图片、名称、数量、单价、总价等等信息。当然购物车并 不仅仅只是展示待购买的商品,还要支持最终购买的结算操作、支持清空购物车,长按删除单项订单等功能。

        购物车的存在感很强,不仅仅在购物车页面才能看到购物车。往往在商场页面,甚至商品详情页面,都 会看到某个角落冒出购物车图标。一旦有新商品加入购物车,购物车图标上的商品数量立马加一。当然,用户也能点击购物车图标直接跳到购物车页面。商场页面除了商品列表之外,页面右上角还有一个购物车图标,用户把商品加购物车,那么图标上的数字也会加一。

功能需求

  • 购物车存放着用户准备购买的商品,一开始是空的,随着商品被加入购物车,购物车中就会显示已添加的商品列表。

  • 除了购物车页面,其它页面(如商场频道页面、商品详情页面),都可能在右上角或者右 下角找到购物车图标。购物车图标上会显示已添加的商品数量,且商品数量是实时更新的。

  • 购物车页面、商场频道页面、商品详情页面多处都会显示商品的小图或者大图

界面设计

  • 线性布局LinearLayout:购物车界面从上往下排列,垂直方向的线性布局

  • 网格布局GridLayout:商场页面的陈列橱柜,允许分行分列展示商品

  • 相对布局RelativeLayout:页面右上角的购物车图标,图标右上角又有数字标记,按照指定方位排列控件

  • 其他常见控件尚有文本视图TextView、图像视图ImageView,按钮控件Button等

存储技术

  • 数据库SQLite:最直观的是数据库,购物车里的商品列表一定放在SQLite中,增删改查

  • 全局内存:购物车图标右上角的数字表示购物车中的商品数量,该数值建议保存在全局内存中,这样不必每次都到数据库中执行count操作。

  • 存储卡文件:App把下载的商品图片保存在存储卡中,这样下次就能直接从存储卡获取商品图片,加快浏览速度。

  • 共享参数SharedPreferences:是否首次访问网络图片,这个标志位推荐放在共享参数中, 需要持久化存储,并且只有一个参数信息

效果图

首次进入的页面图

 

商品展示列表图

购物车已选列表图

 手机详情页面图

长按删除订单图

图片

主程序

ShoppingChannelActivity.java
package com.kcs.shoppingcart;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.GridView;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

import com.kcs.shoppingcart.adapter.GoodsAdapter;
import com.kcs.shoppingcart.datebase.ShoppingDBHelper;
import com.kcs.shoppingcart.entity.GoodsInfo;
import com.kcs.shoppingcart.utils.ToastUtil;

import java.util.List;

public class ShoppingChannelActivity extends AppCompatActivity implements View.OnClickListener, GoodsAdapter.AddCartListener 

    /**
     * 声明一个商品数据库的帮助器对象
     */
    private ShoppingDBHelper mDBHelper;
    private TextView tv_count;
    private GridView gv_channel;

    @Override
    protected void onCreate(Bundle savedInstanceState) 
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_shopping_channel);
        TextView tv_title = findViewById(R.id.tv_title);
        tv_title.setText("手机商场");

        tv_count = findViewById(R.id.tv_count);
        gv_channel = findViewById(R.id.gv_channel);
        findViewById(R.id.iv_back).setOnClickListener(this);
        findViewById(R.id.iv_cart).setOnClickListener(this);

        mDBHelper = ShoppingDBHelper.getInstance(this);
        mDBHelper.openReadLink();
        mDBHelper.openWriteLink();

        // 从数据库查询出商品信息,并展示
        showGoods();
    

    @Override
    protected void onResume() 
        super.onResume();
        // 查询购物车商品总数,并展示
        showCartInfoTotal();
    

    /**
     * 查询购物车商品总数,并展示
     */
    private void showCartInfoTotal() 
        int count = mDBHelper.countCartInfo();
        MyApplication.getInstance().goodsCount = count;
        tv_count.setText(String.valueOf(count));
    

    private void showGoods() 
        // 查询商品数据库中的所有商品记录
        List<GoodsInfo> list = mDBHelper.queryAllGoodsInfo();
        GoodsAdapter adapter = new GoodsAdapter(this, list,this);
        gv_channel.setAdapter(adapter);
    

    /**
     *  把指定编号的商品添加到购物车
     * @param goodsId
     * @param goodsName
     */

    @Override
    public void addToCart(int goodsId, String goodsName) 
        // 购物车商品数量+1
        int count = ++MyApplication.getInstance().goodsCount;
        tv_count.setText(String.valueOf(count));
        mDBHelper.insertCartInfo(goodsId);
        ToastUtil.show(this, "已添加一部" + goodsName + "到购物车");
    

    @Override
    protected void onDestroy() 
        super.onDestroy();
        mDBHelper.closeLink();
    

    @Override
    public void onClick(View v) 
        switch (v.getId()) 
            case R.id.iv_back:
                // 点击了返回图标,关闭当前页面
                finish();
                break;
            case R.id.iv_cart:
                // 点击了购物车图标
                // 从商场页面跳到购物车页面
                Intent intent = new Intent(this, ShoppingCartActivity.class);
                // 设置启动标志,避免多次返回同一页面的
                intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
                startActivity(intent);
                break;
            default:
                break;
        
    
ShoppingDetailActivity.java
import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.dongnaoedu.chapter06.database.ShoppingDBHelper;
import com.dongnaoedu.chapter06.enity.GoodsInfo;
import com.dongnaoedu.chapter06.util.ToastUtil;

public class ShoppingDetailActivity extends AppCompatActivity implements View.OnClickListener 

    private TextView tv_title;
    private TextView tv_count;
    private TextView tv_goods_price;
    private TextView tv_goods_desc;
    private ImageView iv_goods_pic;
    private ShoppingDBHelper mDBHelper;
    private int mGoodsId;

    @Override
    protected void onCreate(Bundle savedInstanceState) 
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_shopping_detail);
        tv_title = findViewById(R.id.tv_title);
        tv_count = findViewById(R.id.tv_count);
        tv_goods_price = findViewById(R.id.tv_goods_price);
        tv_goods_desc = findViewById(R.id.tv_goods_desc);
        iv_goods_pic = findViewById(R.id.iv_goods_pic);
        findViewById(R.id.iv_back).setOnClickListener(this);
        findViewById(R.id.iv_cart).setOnClickListener(this);
        findViewById(R.id.btn_add_cart).setOnClickListener(this);

        tv_count.setText(String.valueOf(MyApplication.getInstance().goodsCount));

        mDBHelper = ShoppingDBHelper.getInstance(this);

    

    @Override
    protected void onResume() 
        super.onResume();
        showDetail();
    

    private void showDetail() 
        // 获取上一个页面传来的商品编号
        mGoodsId = getIntent().getIntExtra("goods_id", 0);
        if (mGoodsId > 0) 
            // 根据商品编号查询商品数据库中的商品记录
            GoodsInfo info = mDBHelper.queryGoodsInfoById(mGoodsId);
            tv_title.setText(info.name);
            tv_goods_desc.setText(info.description);
            tv_goods_price.setText(String.valueOf((int) info.price));
            iv_goods_pic.setImageURI(Uri.parse(info.picPath));
        
    

    @Override
    public void onClick(View v) 
        switch (v.getId()) 
            case R.id.iv_back:
                finish();
                break;

            case R.id.iv_cart:
                Intent intent = new Intent(this, ShoppingCartActivity.class);
                startActivity(intent);
                break;

            case R.id.btn_add_cart:
                addToCart(mGoodsId);
                break;
        
    

    private void addToCart(int goodsId) 
        // 购物车商品数量+1
        int count = ++MyApplication.getInstance().goodsCount;
        tv_count.setText(String.valueOf(count));
        mDBHelper.insertCartInfo(goodsId);
        ToastUtil.show(this, "成功添加至购物车");
    
ShoppingCartActivity.java
package com.kcs.shoppingcart;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.TextView;

import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;

import com.kcs.shoppingcart.adapter.CartAdapter;
import com.kcs.shoppingcart.datebase.ShoppingDBHelper;
import com.kcs.shoppingcart.entity.CartInfo;
import com.kcs.shoppingcart.entity.GoodsInfo;
import com.kcs.shoppingcart.utils.ToastUtil;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class ShoppingCartActivity extends AppCompatActivity implements View.OnClickListener, AdapterView.OnItemClickListener, AdapterView.OnItemLongClickListener 

    private TextView tv_count;
    private ListView lv_cart;
    private ShoppingDBHelper mDBHelper;

    /**
     * 声明一个购物车中的商品信息列表
     */
    private List<CartInfo> mCartList;
    /**
     * 声明一个根据商品编号查找商品信息的映射,把商品信息缓存起来,这样不用每一次都去查询数据库
     */
    private Map<Integer, GoodsInfo> mGoodsMap = new HashMap<>();
    private TextView tv_total_price;
    private LinearLayout ll_empty;
    private LinearLayout ll_content;
    private CartAdapter mCartAdapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) 
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_shopping_cart);
        TextView tv_title = findViewById(R.id.tv_title);
        tv_title.setText("购物车");
        lv_cart = findViewById(R.id.lv_cart);
        tv_total_price = findViewById(R.id.tv_total_price);

        tv_count = findViewById(R.id.tv_count);
        tv_count.setText(String.valueOf(MyApplication.getInstance().goodsCount));

        mDBHelper = ShoppingDBHelper.getInstance(this);

        findViewById(R.id.iv_back).setOnClickListener(this);
        findViewById(R.id.btn_shopping_channel).setOnClickListener(this);
        findViewById(R.id.btn_clear).setOnClickListener(this);
        findViewById(R.id.btn_settle).setOnClickListener(this);
        ll_empty = findViewById(R.id.ll_empty);
        ll_content = findViewById(R.id.ll_content);
    

    @Override
    protected void onResume() 
        super.onResume();
        showCart();
    

    /**
     * 展示购物车中的商品列表
     */
    private void showCart() 
        // 查询购物车数据库中所有的商品记录
        mCartList = mDBHelper.queryAllCartInfo();
        if (mCartList.size() == 0) 
            return;
        
        for (CartInfo info : mCartList) 
            // 根据商品编号查询商品数据库中的商品记录
            GoodsInfo goods = mDBHelper.queryGoodsInfoById(info.goodsId);
            mGoodsMap.put(info.goodsId, goods);
            info.goods = goods;
        
        mCartAdapter = new CartAdapter(this, mCartList);
        lv_cart.setAdapter(mCartAdapter);
        // 给商品行添加点击事件。点击商品行跳到商品的详情页
        lv_cart.setOnItemClickListener(this);
        // 给商品行添加长按事件。长按商品行就删除该商品
        lv_cart.setOnItemLongClickListener(this);

        // 重新计算购物车中的商品总金额
        refreshTotalPrice();
    

    private void deleteGoods(CartInfo info) 
        MyApplication.getInstance().goodsCount -= info.count;
        // 从购物车的数据库中删除商品
        mDBHelper.deleteCartInfoByGoodsId(info.goodsId);
        // 从购物车的列表中删除商品
        CartInfo removed = null;
        for (CartInfo cartInfo : mCartList) 
            if (cartInfo.goodsId == info.goodsId) 
                removed = cartInfo;
                break;
            
        
        mCartList.remove(removed);
        // 显示最新的商品数量
        showCount();
        ToastUtil.show(this, "已从购物车删除" + mGoodsMap.get(info.goodsId).name);
        mGoodsMap.remove(info.goodsId);
        // 刷新购物车中所有商品的总金额
        refreshTotalPrice();
    

    /**
     * 显示购物车图标中的商品数量
     */
    private void showCount() 
        tv_count.setText(String.valueOf(MyApplication.getInstance().goodsCount));
        // 购物车中没有商品,显示“空空如也”
        if (MyApplication.getInstance().goodsCount == 0) 
            ll_empty.setVisibility(View.VISIBLE);
            ll_content.setVisibility(View.GONE);
            // 通知适配器发生了数据变化
            mCartAdapter.notifyDataSetChanged();
         else 
            ll_content.setVisibility(View.VISIBLE);
            ll_empty.setVisibility(View.GONE);
        
    

    /**
     * 重新计算购物车中的商品总金额
     */
    private void refreshTotalPrice() 
        int totalPrice = 0;
        for (CartInfo info : mCartList) 
            GoodsInfo goods = mGoodsMap.get(info.goodsId);
            totalPrice += goods.price * info.count;
        
        tv_total_price.setText(String.valueOf(totalPrice));
    

    @Override
    public void onClick(View v) 
        switch (v.getId()) 
            case R.id.iv_back:
                // 点击了返回图标
                // 关闭当前页面
                finish();
                break;

            case R.id.btn_shopping_channel:
                // 从购物车页面跳到商场页面
                Intent intent = new Intent(this, com.kcs.shoppingcart.ShoppingChannelActivity.class);
                intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
                startActivity(intent);
                break;

            case R.id.btn_clear:
                // 清空购物车数据库
                mDBHelper.deleteAllCartInfo();
                MyApplication.getInstance().goodsCount = 0;
                // 显示最新的商品数量
                showCount();
                ToastUtil.show(this, "购物车已清空");
                break;

            case R.id.btn_settle:
                // 点击了“结算”按钮
                AlertDialog.Builder builder = new AlertDialog.Builder(this);
                builder.setTitle("结算商品");
                builder.setMessage("客官抱歉,支付功能尚未开通");
                builder.setPositiveButton("我知道了", null);
                builder.create().show();
                break;
            default:
                break;
        
    

    /**
     * 给商品行添加点击事件。点击商品行跳到商品的详情页
     */
    @Override
    public void onItemClick(AdapterView<?> parent, View view, int position, long id) 
        Intent intent = new Intent(ShoppingCartActivity.this, com.kcs.shoppingcart.ShoppingDetailActivity.class);
        intent.putExtra("goods_id", mCartList.get(position).goodsId);
        startActivity(intent);
    

    /**
     *给商品行添加长按事件。长按商品行就删除该商品
     */
    @Override
    public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) 
        CartInfo info = mCartList.get(position);
        AlertDialog.Builder builder = new AlertDialog.Builder(ShoppingCartActivity.this);
        builder.setMessage("是否从购物车删除" + info.goods.name + "?");
        builder.setPositiveButton("是", (dialog, which) -> 
            // 从集合中移除数据
            mCartList.remove(position);
            // 通知适配器发生了数据变化
            mCartAdapter.notifyDataSetChanged();
            // 删除该商品
            deleteGoods(info);
        );
        builder.setNegativeButton("否", null);
        builder.create().show();
        return true;
    

MyApplication.java

package com.dongnaoedu.chapter06;

import android.app.Application;
import android.content.res.Configuration;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Environment;
import android.util.Log;


import androidx.annotation.NonNull;
import androidx.room.Room;

import com.dongnaoedu.chapter06.database.ShoppingDBHelper;
import com.dongnaoedu.chapter06.enity.GoodsInfo;
import com.dongnaoedu.chapter06.util.FileUtil;
import com.dongnaoedu.chapter06.util.SharedUtil;

import java.io.File;
import java.util.HashMap;
import java.util.List;

public class MyApplication extends Application 

    // 购物车中的商品总数量
    public int goodsCount;

    public static MyApplication getInstance() 
        return mApp;
    


    //在App启动时调用
    @Override
    public void onCreate() 
        super.onCreate();
        mApp = this;
        Log.d("ning", "MyApplication onCreate");

        // 初始化商品信息
        initGoodsInfo();
    

    private void initGoodsInfo() 
        // 获取共享参数保存的是否首次打开参数
        boolean isFirst = SharedUtil.getInstance(this).readBoolean("first", true);
        // 获取当前App的私有下载路径
        String directory = getExternalFilesDir(Environment.DIRECTORY_DOWNLOADS).toString() + File.separatorChar;
        if (isFirst) 
            // 模拟网络图片下载
            List<GoodsInfo> list = GoodsInfo.getDefaultList();
            for (GoodsInfo info : list) 
                Bitmap bitmap = BitmapFactory.decodeResource(getResources(), info.pic);
                String path = directory + info.id + ".jpg";
                // 往存储卡保存商品图片
                FileUtil.saveImage(path, bitmap);
                // 回收位图对象
                bitmap.recycle();
                info.picPath = path;
            
            // 打开数据库,把商品信息插入到表中
            ShoppingDBHelper dbHelper = ShoppingDBHelper.getInstance(this);
            dbHelper.openWriteLink();
            dbHelper.insertGoodsInfos(list);
            dbHelper.closeLink();
            // 把是否首次打开写入共享参数
            SharedUtil.getInstance(this).writeBoolean("first", false);
        
    


适配器

 package:adapter

CartAdapter.java
package com.kcs.shoppingcart.adapter;

import android.content.Context;
import android.net.Uri;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;


import com.kcs.shoppingcart.R;
import com.kcs.shoppingcart.entity.CartInfo;

import java.util.List;

public class CartAdapter extends BaseAdapter 

    private Context mContext;
    private List<CartInfo> mCartList;

    public CartAdapter(Context mContext, List<CartInfo> mCartList) 
        this.mContext = mContext;
        this.mCartList = mCartList;
    

    @Override
    public int getCount() 
        return mCartList.size();
    

    @Override
    public Object getItem(int position) 
        return mCartList.get(position);
    

    @Override
    public long getItemId(int position) 
        return position;
    

    @Override
    public View getView(int position, View convertView, ViewGroup parent) 
        ViewHolder holder;
        if (convertView == null) 
            holder = new ViewHolder();
            // 获取布局文件item_cart.xml的根视图
            convertView = LayoutInflater.from(mContext).inflate(R.layout.item_cart, null);
            holder.iv_thumb = convertView.findViewById(R.id.iv_thumb);
            holder.tv_name = convertView.findViewById(R.id.tv_name);
            holder.tv_desc = convertView.findViewById(R.id.tv_desc);
            holder.tv_count = convertView.findViewById(R.id.tv_count);
            holder.tv_price = convertView.findViewById(R.id.tv_price);
            holder.tv_sum = convertView.findViewById(R.id.tv_sum);
            convertView.setTag(holder);
         else 
            holder = (ViewHolder) convertView.getTag();
        

        CartInfo info = mCartList.get(position);
        holder.iv_thumb.setImageURI(Uri.parse(info.goods.picPath));
        holder.tv_name.setText(info.goods.name);
        holder.tv_desc.setText(info.goods.description);
        holder.tv_count.setText(String.valueOf(info.count));
        holder.tv_price.setText(String.valueOf((int) info.goods.price));
        // 设置商品总价
        holder.tv_sum.setText(String.valueOf((int) (info.count * info.goods.price)));
        return convertView;
    

    public final class ViewHolder 
        public ImageView iv_thumb;
        public TextView tv_name;
        public TextView tv_desc;
        public TextView tv_count;
        public TextView tv_price;
        public TextView tv_sum;

    

GoodsAdapter.java

package com.kcs.shoppingcart.adapter;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.kcs.shoppingcart.R;
import com.kcs.shoppingcart.ShoppingDetailActivity;
import com.kcs.shoppingcart.entity.GoodsInfo;

import java.util.List;

public class GoodsAdapter extends BaseAdapter 

    private Context mContext;
    private List<GoodsInfo> mGoodsInfo;

    public GoodsAdapter(Context mContext, List<GoodsInfo> mGoodsInfo, AddCartListener mAddCartListener) 
        this.mContext = mContext;
        this.mGoodsInfo = mGoodsInfo;
        this.mAddCartListener = mAddCartListener;
    

    @Override
    public int getCount() 
        return mGoodsInfo.size();
    

    @Override
    public Object getItem(int position) 
        return position;
    

    @Override
    public long getItemId(int position) 
        return position;
    

    @Override
    public View getView(int position, View convertView, ViewGroup parent) 
        GoodsInfo info = mGoodsInfo.get(position);
        ViewHolder holder;
        if (convertView == null) 
            convertView = LayoutInflater.from(mContext).inflate(R.layout.item_goods, null);
            holder = new ViewHolder();
            holder.iv_thumb = convertView.findViewById(R.id.iv_thumb);
            holder.tv_name = convertView.findViewById(R.id.tv_name);
            holder.tv_price = convertView.findViewById(R.id.tv_price);
            holder.btn_add = convertView.findViewById(R.id.btn_add);
            convertView.setTag(holder);
         else 
            holder = (ViewHolder) convertView.getTag();
        


        // 给控件设置值
        holder.iv_thumb.setImageURI(Uri.parse(info.picPath));
        holder.tv_name.setText(info.name);
        holder.tv_price.setText(String.valueOf((int) info.price));

        // 添加到购物车
        holder.btn_add.setOnClickListener(v -> 
            mAddCartListener.addToCart(info.id, info.name);
        );

        //点击商品图片,跳转到商品详情页面

        holder.iv_thumb.setOnClickListener(v -> 
            Intent intent = new Intent(mContext, ShoppingDetailActivity.class);
            intent.putExtra("goods_id", info.id);
            mContext.startActivity(intent);
        );

        return convertView;
    

    public final class ViewHolder 
        public ImageView iv_thumb;
        public TextView tv_name;
        public TextView tv_price;
        public Button btn_add;
    

    /**
     * 声明一个加入购物车的监听器对象
     */
    private AddCartListener mAddCartListener;

    /**
     * 定义一个加入购物车的监听器接口
     */
    public interface AddCartListener 
        void addToCart(int goodsId, String goodsName);
    

工具类

package util:

ToastUitl.java

package com.dongnaoedu.chapter06.util;

import android.content.Context;
import android.widget.Toast;

public class ToastUtil 

    public static void show(Context ctx, String desc) 
        Toast.makeText(ctx, desc, Toast.LENGTH_SHORT).show();
    


SharedUtil.java

import android.content.Context;
import android.content.SharedPreferences;

public class SharedUtil 

    private static SharedUtil mUtil;
    private SharedPreferences preferences;

    public static SharedUtil getInstance(Context ctx) 
        if (mUtil == null) 
            mUtil = new SharedUtil();
            mUtil.preferences = ctx.getSharedPreferences("shopping", Context.MODE_PRIVATE);
        
        return mUtil;
    

    public void writeBoolean(String key, boolean value) 
        SharedPreferences.Editor editor = preferences.edit();
        editor.putBoolean(key, value);
        editor.commit();
    

    public boolean readBoolean(String key, boolean defaultValue) 
        return preferences.getBoolean(key, defaultValue);
    


FileUtil.java

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

public class FileUtil 

    // 把位图数据保存到指定路径的图片文件
    public static void saveImage(String path, Bitmap bitmap) 
        FileOutputStream fos = null;
        try 
            fos = new FileOutputStream(path);
            // 把位图数据压缩到文件输出流中
            bitmap.compress(Bitmap.CompressFormat.JPEG, 100, fos);
         catch (Exception e) 
            e.printStackTrace();
         finally 
            if (fos != null) 
                try 
                    fos.close();
                 catch (IOException e) 
                    e.printStackTrace();
                
            
        
    

    // 从指定路径的图片文件中读取位图数据
    public static Bitmap openImage(String path) 
        Bitmap bitmap = null;
        FileInputStream fis = null;
        try 
            fis = new FileInputStream(path);
            bitmap = BitmapFactory.decodeStream(fis);
         catch (Exception e) 
            e.printStackTrace();
         finally 
            if (fis != null) 
                try 
                    fis.close();
                 catch (IOException e) 
                    e.printStackTrace();
                
            
        
        return bitmap;
    

实体类 

package pojo:

CarInfo.java

package com.kcs.shoppingcart.entity;

//购物车信息
public class CartInfo 
    public int id;
    /**
     * 商品编号
     */
    public int goodsId;
    /**
     * 商品数量
     */
    public int count;
    /**
     * 商品信息
     */
    public GoodsInfo goods;

    public CartInfo() 
    

    public CartInfo(int id, int goodsId, int count) 
        this.id = id;
        this.goodsId = goodsId;
        this.count = count;
        this.goods = new GoodsInfo();
    

GoodsInfo.java
import com.dongnaoedu.chapter06.R;

import java.util.ArrayList;

public class GoodsInfo 

    public int id;
    // 名称
    public String name;
    // 描述
    public String description;
    // 价格
    public float price;
    // 大图的保存路径
    public String picPath;
    // 大图的资源编号
    public int pic;

    // 声明一个手机商品的名称数组
    private static String[] mNameArray = 
            "iPhone11", "Mate30", "小米10", "OPPO Reno3", "vivo X30", "荣耀30S"
    ;
    // 声明一个手机商品的描述数组
    private static String[] mDescArray = 
            "Apple iPhone11 256GB 绿色 4G全网通手机",
            "华为 HUAWEI Mate30 8GB+256GB 丹霞橙 5G全网通 全面屏手机",
            "小米 MI10 8GB+128GB 钛银黑 5G手机 游戏拍照手机",
            "OPPO Reno3 8GB+128GB 蓝色星夜 双模5G 拍照游戏智能手机",
            "vivo X30 8GB+128GB 绯云 5G全网通 美颜拍照手机",
            "荣耀30S 8GB+128GB 蝶羽红 5G芯片 自拍全面屏手机"
    ;
    // 声明一个手机商品的价格数组
    private static float[] mPriceArray = 6299, 4999, 3999, 2999, 2998, 2399;
    // 声明一个手机商品的大图数组
    private static int[] mPicArray = 
            R.drawable.iphone, R.drawable.huawei, R.drawable.xiaomi,
            R.drawable.oppo, R.drawable.vivo, R.drawable.rongyao
    ;

    // 获取默认的手机信息列表
    public static ArrayList<GoodsInfo> getDefaultList() 
        ArrayList<GoodsInfo> goodsList = new ArrayList<GoodsInfo>();
        for (int i = 0; i < mNameArray.length; i++) 
            GoodsInfo info = new GoodsInfo();
            info.id = i;
            info.name = mNameArray[i];
            info.description = mDescArray[i];
            info.price = mPriceArray[i];
            info.pic = mPicArray[i];
            goodsList.add(info);
        
        return goodsList;
    

购物车数据库类

package database:

import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

import com.dongnaoedu.chapter06.enity.CartInfo;
import com.dongnaoedu.chapter06.enity.GoodsInfo;

import java.util.ArrayList;
import java.util.List;

public class ShoppingDBHelper extends SQLiteOpenHelper 

    private static final String DB_NAME = "shopping.db";
    // 商品信息表
    private static final String TABLE_GOODS_INFO = "goods_info";
    // 购物车信息表
    private static final String TABLE_CART_INFO = "cart_info";
    private static final int DB_VERSION = 1;
    private static ShoppingDBHelper mHelper = null;
    private SQLiteDatabase mRDB = null;
    private SQLiteDatabase mWDB = null;

    private ShoppingDBHelper(Context context) 
        super(context, DB_NAME, null, DB_VERSION);
    

    // 利用单例模式获取数据库帮助器的唯一实例
    public static ShoppingDBHelper getInstance(Context context) 
        if (mHelper == null) 
            mHelper = new ShoppingDBHelper(context);
        
        return mHelper;
    

    // 打开数据库的读连接
    public SQLiteDatabase openReadLink() 
        if (mRDB == null || !mRDB.isOpen()) 
            mRDB = mHelper.getReadableDatabase();
        
        return mRDB;
    

    // 打开数据库的写连接
    public SQLiteDatabase openWriteLink() 
        if (mWDB == null || !mWDB.isOpen()) 
            mWDB = mHelper.getWritableDatabase();
        
        return mWDB;
    

    // 关闭数据库连接
    public void closeLink() 
        if (mRDB != null && mRDB.isOpen()) 
            mRDB.close();
            mRDB = null;
        

        if (mWDB != null && mWDB.isOpen()) 
            mWDB.close();
            mWDB = null;
        
    

    // 创建数据库,执行建表语句
    @Override
    public void onCreate(SQLiteDatabase db) 
        // 创建商品信息表
        String sql = "CREATE TABLE IF NOT EXISTS " + TABLE_GOODS_INFO +
                "(_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL," +
                " name VARCHAR NOT NULL," +
                " description VARCHAR NOT NULL," +
                " price FLOAT NOT NULL," +
                " pic_path VARCHAR NOT NULL);";
        db.execSQL(sql);

        // 创建购物车信息表
        sql = "CREATE TABLE IF NOT EXISTS " + TABLE_CART_INFO +
                "(_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL," +
                " goods_id INTEGER NOT NULL," +
                " count INTEGER NOT NULL);";
        db.execSQL(sql);
    

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) 

    

    // 添加多条商品信息
    public void insertGoodsInfos(List<GoodsInfo> list) 
        // 插入多条记录,要么全部成功,要么全部失败
        try 
            mWDB.beginTransaction();
            for (GoodsInfo info : list) 
                ContentValues values = new ContentValues();
                values.put("name", info.name);
                values.put("description", info.description);
                values.put("price", info.price);
                values.put("pic_path", info.picPath);
                mWDB.insert(TABLE_GOODS_INFO, null, values);
            
            mWDB.setTransactionSuccessful();
         catch (Exception e) 
            e.printStackTrace();
         finally 
            mWDB.endTransaction();
        
    

    // 查询所有的商品信息
    public List<GoodsInfo> queryAllGoodsInfo() 
        String sql = "select * from " + TABLE_GOODS_INFO;
        List<GoodsInfo> list = new ArrayList<>();
        Cursor cursor = mRDB.rawQuery(sql, null);
        while (cursor.moveToNext()) 
            GoodsInfo info = new GoodsInfo();
            info.id = cursor.getInt(0);
            info.name = cursor.getString(1);
            info.description = cursor.getString(2);
            info.price = cursor.getFloat(3);
            info.picPath = cursor.getString(4);
            list.add(info);
        
        cursor.close();
        return list;
    

    // 添加商品到购物车
    public void insertCartInfo(int goodsId) 
        // 如果购物车中不存在该商品,添加一条信息
        CartInfo cartInfo = queryCartInfoByGoodsId(goodsId);
        ContentValues values = new ContentValues();
        values.put("goods_id", goodsId);
        if (cartInfo == null) 
            values.put("count", 1);
            mWDB.insert(TABLE_CART_INFO, null, values);
         else 
            // 如果购物车中已经存在该商品,更新商品数量
            values.put("_id", cartInfo.id);
            values.put("count", ++cartInfo.count);
            mWDB.update(TABLE_CART_INFO, values, "_id=?", new String[]String.valueOf(cartInfo.id));
        
    

    // 根据商品信息ID查询购物车信息
    private CartInfo queryCartInfoByGoodsId(int goodsId) 
        Cursor cursor = mRDB.query(TABLE_CART_INFO, null, "goods_id=?", new String[]String.valueOf(goodsId), null, null, null);
        CartInfo info = null;
        if (cursor.moveToNext()) 
            info = new CartInfo();
            info.id = cursor.getInt(0);
            info.goodsId = cursor.getInt(1);
            info.count = cursor.getInt(2);
        
        return info;
    

    // 统计购物车中商品的总数量
    public int countCartInfo() 
        int count = 0;
        String sql = "select sum(count) from " + TABLE_CART_INFO;
        Cursor cursor = mRDB.rawQuery(sql, null);
        if (cursor.moveToNext()) 
            count = cursor.getInt(0);
        
        return count;
    

    // 查询购物车中所有的信息列表
    public List<CartInfo> queryAllCartInfo() 
        List<CartInfo> list = new ArrayList<>();
        Cursor cursor = mRDB.query(TABLE_CART_INFO, null, null, null, null, null, null);
        while (cursor.moveToNext()) 
            CartInfo info = new CartInfo();
            info.id = cursor.getInt(0);
            info.goodsId = cursor.getInt(1);
            info.count = cursor.getInt(2);
            list.add(info);
        
        return list;
    

    // 根据商品ID查询商品信息
    public GoodsInfo queryGoodsInfoById(int goodsId) 
        GoodsInfo info = null;
        Cursor cursor = mRDB.query(TABLE_GOODS_INFO, null, "_id=?", new String[]String.valueOf(goodsId), null, null, null);
        if (cursor.moveToNext()) 
            info = new GoodsInfo();
            info.id = cursor.getInt(0);
            info.name = cursor.getString(1);
            info.description = cursor.getString(2);
            info.price = cursor.getFloat(3);
            info.picPath = cursor.getString(4);
        
        return info;
    

    // 根据商品ID删除购物车信息
    public void deleteCartInfoByGoodsId(int goodsId) 
        mWDB.delete(TABLE_CART_INFO, "goods_id=?", new String[]String.valueOf(goodsId));
    

    // 删除所有购物车信息
    public void deleteAllCartInfo() 
        mWDB.delete(TABLE_CART_INFO, "1=1", null);
    

布局文件

activity_shopping_channel.xml

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/orange"
    android:orientation="vertical" >

    <include layout="@layout/title_shopping" />

    <GridView
        android:id="@+id/gv_channel"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:numColumns="2" />

</LinearLayout>

activity_shopping_detail.xml

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/orange"
    android:orientation="vertical">

    <include layout="@layout/title_shopping" />

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <ImageView
                android:id="@+id/iv_goods_pic"
                android:layout_width="match_parent"
                android:layout_height="350dp"
                android:scaleType="fitCenter"
                tools:src="@drawable/xiaomi" />

            <TextView
                android:id="@+id/tv_goods_price"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:paddingLeft="5dp"
                android:textColor="@color/red"
                android:textSize="22sp"
                tools:text="1990" />

            <TextView
                android:id="@+id/tv_goods_desc"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:paddingLeft="5dp"
                android:textColor="@color/black"
                android:textSize="15sp"
                tools:text="小米 MI10 8GB+128GB 钛银黑 5G手机 游戏拍照手机" />

            <Button
                android:id="@+id/btn_add_cart"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="加入购物车"
                android:textColor="@color/black"
                android:textSize="17sp" />
        </LinearLayout>
    </ScrollView>

</LinearLayout>

activity_shopping_car.xml

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/orange"
    android:orientation="vertical">

    <include layout="@layout/title_shopping" />

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <LinearLayout
                android:id="@+id/ll_content"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                android:visibility="visible">

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="horizontal">

                    <TextView
                        android:layout_width="85dp"
                        android:layout_height="wrap_content"
                        android:gravity="center"
                        android:text="图片"
                        android:textColor="@color/black"
                        android:textSize="15sp" />

                    <TextView
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="3"
                        android:gravity="center"
                        android:text="名称"
                        android:textColor="@color/black"
                        android:textSize="15sp" />

                    <TextView
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:gravity="center"
                        android:text="数量"
                        android:textColor="@color/black"
                        android:textSize="15sp" />

                    <TextView
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:gravity="center"
                        android:text="单价"
                        android:textColor="@color/black"
                        android:textSize="15sp" />

                    <TextView
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:gravity="center"
                        android:text="总价"
                        android:textColor="@color/black"
                        android:textSize="15sp" />

                </LinearLayout>

                <LinearLayout
                    android:id="@+id/ll_cart"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="vertical" />

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="horizontal"
                    android:padding="0dp">

                    <Button
                        android:id="@+id/btn_clear"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:gravity="center"
                        android:text="清空"
                        android:textColor="@color/black"
                        android:textSize="17sp" />

                    <TextView
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:gravity="center|right"
                        android:text="总金额:"
                        android:textColor="@color/black"
                        android:textSize="17sp" />

                    <TextView
                        android:id="@+id/tv_total_price"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginRight="10dp"
                        android:gravity="center|left"
                        android:textColor="@color/red"
                        android:textSize="25sp" />

                    <Button
                        android:id="@+id/btn_settle"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:gravity="center"
                        android:text="结算"
                        android:textColor="@color/black"
                        android:textSize="17sp" />
                </LinearLayout>

            </LinearLayout>

            <LinearLayout
                android:id="@+id/ll_empty"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                android:visibility="gone"
                tools:visibility="visible">

                <TextView
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="100dp"
                    android:layout_marginBottom="100dp"
                    android:gravity="center"
                    android:text="哎呀,购物车空空如也,快去选购商品吧"
                    android:textColor="@color/black"
                    android:textSize="17sp" />

                <Button
                    android:id="@+id/btn_shopping_channel"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:gravity="center"
                    android:text="逛逛手机商场"
                    android:textColor="@color/black"
                    android:textSize="17sp" />
            </LinearLayout>
        </RelativeLayout>
    </ScrollView>

</LinearLayout>

购物车列表清单

item_cart.xml

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@color/white"
    android:orientation="horizontal">

    <ImageView
        android:id="@+id/iv_thumb"
        android:layout_width="85dp"
        android:layout_height="85dp"
        android:scaleType="fitCenter"
        tools:src="@drawable/xiaomi"/>

    <LinearLayout
        android:layout_width="0dp"
        android:layout_height="match_parent"
        android:layout_weight="3"
        android:orientation="vertical">

        <TextView
            android:id="@+id/tv_name"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="2"
            android:gravity="left|center"
            android:textColor="@color/black"
            android:textSize="17sp"
            tools:text="小米手机"/>

        <TextView
            android:id="@+id/tv_desc"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="3"
            android:gravity="left|center"
            android:textColor="@color/black"
            android:textSize="12sp"
            tools:text="小米 MI10 8GB+128GB 钛银黑 5G手机 游戏拍照手机"/>
    </LinearLayout>

    <TextView
        android:id="@+id/tv_count"
        android:layout_width="0dp"
        android:layout_height="match_parent"
        android:layout_weight="1"
        android:gravity="center"
        android:textColor="@color/black"
        android:textSize="17sp"
        tools:text="2"/>

    <TextView
        android:id="@+id/tv_price"
        android:layout_width="0dp"
        android:layout_height="match_parent"
        android:layout_weight="1"
        android:gravity="right|center"
        android:textColor="@color/black"
        android:textSize="15sp"
        tools:text="1000"/>

    <TextView
        android:id="@+id/tv_sum"
        android:layout_width="0dp"
        android:layout_height="match_parent"
        android:layout_weight="1.2"
        android:gravity="right|center"
        android:textColor="@color/red"
        android:textSize="17sp"
        tools:text="2000"/>

</LinearLayout>

货物清单数据布局文件

item_goods.xml

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/ll_item"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="center"
    android:background="@color/white"
    android:gravity="center"
    android:orientation="vertical">

    <TextView
        android:id="@+id/tv_name"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center"
        android:textColor="@color/black"
        android:textSize="17sp"
        tools:text="小米手机" />

    <ImageView
        android:id="@+id/iv_thumb"
        android:layout_width="180dp"
        android:layout_height="150dp"
        android:scaleType="fitCenter"
        tools:src="@drawable/xiaomi" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="45dp"
        android:orientation="horizontal">

        <TextView
            android:id="@+id/tv_price"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="2"
            android:gravity="center"
            android:textColor="@color/red"
            android:textSize="15sp"
            tools:text="20" />

        <Button
            android:id="@+id/btn_add"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="3"
            android:gravity="center"
            android:text="加入购物车"
            android:textColor="@color/black"
            android:textSize="15sp" />
    </LinearLayout>

</LinearLayout>

顶部布局文件

title_shopping.xml

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="50dp"
    android:background="#aaaaff" >
    
    <ImageView
        android:id="@+id/iv_back"
        android:layout_width="50dp"
        android:layout_height="match_parent"
        android:layout_alignParentLeft="true"
        android:padding="10dp"
        android:scaleType="fitCenter"
        android:src="@drawable/ic_back" />

    <TextView
        android:id="@+id/tv_title"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:layout_centerInParent="true"
        android:gravity="center"
        android:textColor="@color/black"
        android:textSize="20sp" />
    
    <ImageView
        android:id="@+id/iv_cart"
        android:layout_width="50dp"
        android:layout_height="match_parent"
        android:layout_alignParentRight="true"
        android:scaleType="fitCenter"
        android:src="@drawable/cart" />
    
    <TextView
        android:id="@+id/tv_count"
        android:layout_width="20dp"
        android:layout_height="20dp"
        android:layout_alignParentTop="true"
        android:layout_toRightOf="@+id/iv_cart"
        android:layout_marginLeft="-20dp"
        android:gravity="center"
        android:background="@drawable/shape_oval_red"
        android:text="0"
        android:textColor="@color/white"
        android:textSize="15sp" />
    
</RelativeLayout>

资源文件

shape_oval_red.xml

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="oval">

    <solid android:color="#ff6666" />

</shape>

colors.xml

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <color name="purple_200">#FFBB86FC</color>
    <color name="purple_500">#FF6200EE</color>
    <color name="purple_700">#FF3700B3</color>
    <color name="teal_200">#FF03DAC5</color>
    <color name="teal_700">#FF018786</color>
    <color name="black">#FF000000</color>
    <color name="white">#FFFFFFFF</color>
    <color name="grey">#cccccc</color>
    <color name="orange">#ffffdd</color>
    <color name="red">#ff0000</color>
</resources>

AndroidManifest.xml

把自己写的MyApplication配置上 

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.kcs.shoppingcart">

    <application
        android:name=".MyApplication"
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/Theme.ShoppingCart">

        <activity
            android:name=".ShoppingCartActivity"
            android:exported="true" />
        <activity
            android:name=".ShoppingDetailActivity"
            android:exported="true" />
        <activity
            android:name=".ShoppingChannelActivity"
            android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>

Mvp 购物车

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical" android:layout_width="match_parent"
    android:layout_height="match_parent">

    <android.support.v7.widget.RecyclerView
        android:id="@+id/third_recyclerview"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1"
        />

    <LinearLayout
        android:layout_weight="0"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        android:background="#FFFFFF"
        android:gravity="center_vertical"
        android:id="@+id/third_pay_linear"
        >

        <TextView
            android:id="@+id/third_allselect"
            android:layout_width="81dp"
            android:layout_height="wrap_content"
            android:layout_marginLeft="@dimen/margin_10dp"
            android:drawableLeft="@drawable/quanxuan"
            android:text="全选"
            android:drawablePadding="@dimen/padding_5dp"
            />

        <LinearLayout
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:orientation="vertical"
            >

            <TextView
                android:id="@+id/third_totalprice"
                android:layout_width="200dp"
                android:layout_height="wrap_content"
                android:paddingLeft="@dimen/padding_10dp"
                android:paddingTop="@dimen/padding_10dp"
                android:text="总价:"
                android:textColor="@color/cblack"
                android:textSize="@dimen/common_font_size_16"
                />

            <TextView
                android:textColor="@color/cblack"
                android:id="@+id/third_totalnum"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:paddingLeft="@dimen/padding_10dp"
                android:text="共0件商品"
                android:textSize="@dimen/common_font_size_14"
                android:paddingBottom="@dimen/padding_10dp"
                />

        </LinearLayout>

        <TextView
            android:id="@+id/third_submit"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="@drawable/login_btn"
            android:text="去结算"
            android:paddingLeft="@dimen/margin_30dp"
            android:paddingRight="@dimen/margin_30dp"
            android:paddingTop="@dimen/padding_10dp"
            android:paddingBottom="@dimen/padding_10dp"
            android:textColor="#ffffff"
            android:layout_marginRight="@dimen/margin_10dp"
            />

    </LinearLayout>


</LinearLayout>

 

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical" android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@color/cwhite">

    <LinearLayout
        android:id="@+id/ll_shopcart_header"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        >

        <View
            android:layout_width="match_parent"
            android:layout_height="@dimen/margin_10dp"
            android:background="@color/background_color"
            android:id="@+id/view"/>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="center_vertical"
            >

            <ImageView
                android:id="@+id/iv_item_shopcart_shopselect"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:src="@drawable/quanxuan"
                android:paddingLeft="@dimen/margin_15dp"
                android:paddingRight="@dimen/margin_15dp"
                android:paddingTop="@dimen/margin_10dp"
                android:paddingBottom="@dimen/margin_10dp"
                />

            <TextView
                android:textColor="@color/cblack"
                android:id="@+id/tv_item_shopcart_shopname"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:drawableLeft="@drawable/shopcart_shop"
                android:text="宝儿家服装"
                android:padding="@dimen/padding_10dp"
                android:drawablePadding="@dimen/padding_5dp"
                />

        </LinearLayout>

    </LinearLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center_vertical"
        >


        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            >

            <View
                android:layout_width="match_parent"
                android:layout_height="@dimen/margin_1dp"
                android:background="@color/background_color"
                />

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content">

                <ImageView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:src="@drawable/shopcart_selected"
                    android:layout_marginLeft="@dimen/margin_15dp"
                    android:layout_marginRight="@dimen/margin_15dp"
                    android:visibility="invisible"
                    />

                <TextView
                    android:textColor="@color/cblack"
                    android:id="@+id/tv_item_shopcart_clothname"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:text="穿秋装情侣字母徽章风衣"
                    android:paddingLeft="@dimen/padding_10dp"
                    android:paddingTop="@dimen/padding_10dp"
                    />
            </LinearLayout>
            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal"
                android:gravity="center_vertical"
                >

                <ImageView
                    android:id="@+id/tv_item_shopcart_clothselect"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:src="@drawable/shopcart_selected"
                    android:padding="@dimen/margin_15dp"
                    />

                <ImageView
                    android:id="@+id/iv_item_shopcart_cloth_pic"
                    android:layout_width="60dp"
                    android:layout_height="60dp"
                    android:layout_margin="@dimen/margin_10dp"
                    />

                <LinearLayout
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:orientation="vertical"
                    >

                    <TextView
                        android:id="@+id/tv_item_shopcart_cloth_price"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="¥185"
                        android:textColor="@color/main_red_text"
                        android:textSize="@dimen/common_font_size_14"
                        />

                    <LinearLayout
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="@dimen/margin_5dp"
                        android:layout_marginBottom="@dimen/margin_5dp"
                        >

                        <TextView
                            android:textColor="@color/cblack"
                            android:id="@+id/tv_item_shopcart_cloth_color"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="颜色:黑色"
                            android:textSize="@dimen/common_font_size_12"
                            />

                        <TextView
                            android:textColor="@color/cblack"
                            android:id="@+id/tv_item_shopcart_cloth_size"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="尺寸:XL"
                            android:textSize="@dimen/common_font_size_12"
                            android:layout_marginLeft="@dimen/margin_10dp"
                            />

                    </LinearLayout>

                    <LinearLayout
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:gravity="center_vertical"
                        >

                        <ImageView
                            android:id="@+id/iv_item_shopcart_cloth_minus"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:src="@drawable/shopcart_minus_grey"
                            />

                        <TextView
                            android:textColor="@color/cblack"
                            android:id="@+id/et_item_shopcart_cloth_num"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:paddingTop="@dimen/padding_2dp"
                            android:paddingBottom="@dimen/padding_2dp"
                            android:paddingLeft="@dimen/padding_20dp"
                            android:paddingRight="@dimen/padding_20dp"
                            android:background="@drawable/shopcart_add_btn"
                            android:layout_marginLeft="@dimen/margin_5dp"
                            android:text="1"
                            />

                        <ImageView
                            android:id="@+id/iv_item_shopcart_cloth_add"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:src="@drawable/shopcart_add_red"
                            android:layout_marginLeft="@dimen/margin_5dp"
                            />

                    </LinearLayout>


                </LinearLayout>

                <View
                    android:layout_width="@dimen/margin_1dp"
                    android:layout_height="match_parent"
                    android:layout_marginTop="@dimen/padding_10dp"
                    android:layout_marginBottom="@dimen/padding_10dp"
                    android:background="@color/splitline_color"
                    />

                <ImageView
                    android:id="@+id/iv_item_shopcart_cloth_delete"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:padding="@dimen/margin_20dp"
                    android:src="@drawable/shopcart_delete"
                    />

            </LinearLayout>



        </LinearLayout>

    </LinearLayout>

    <View
        android:layout_width="match_parent"
        android:layout_height="@dimen/margin_1dp"
        android:background="@color/background_color"
        />



</LinearLayout>

 

package com.example.myshopcart.Adapter; import android.app.Activity; import android.support.v7.widget.Recycl
package com.example.myshopcart.Adapter;

import android.app.Activity;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.bumptech.glide.Glide;
import com.example.myshopcart.Bean.ShopBean;
import com.example.myshopcart.MainActivity;
import com.example.myshopcart.R;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by 佘鑫海 on 2017/12/4.
 */

public class MyAdapter extends RecyclerView.Adapter<MyAdapter.IViewHolder> {

    private Activity context;

    private List<ShopBean.DataBean.DefaultGoodsListBean> list ;

    public MyAdapter(MainActivity context) {
        this.context = context;
    }

    public void setData(List<ShopBean.DataBean.DefaultGoodsListBean> list){

        if(this.list == null){
            this.list = new ArrayList<>();
        }

        this.list.addAll(list);
        notifyDataSetChanged();

    }

    @Override
    public IViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(context).inflate(R.layout.third_fragment_item, parent, false);
        IViewHolder viewHolder = new IViewHolder(view);
        return viewHolder;
    }

    @Override
    public void onBindViewHolder(IViewHolder holder, final int position) {


        if (position > 0) {
            //头
            if (list.get(position).getId() == list.get(position - 1).getId()) {
                holder.llShopcartHeader.setVisibility(View.GONE);
            } else {
                holder.llShopcartHeader.setVisibility(View.VISIBLE);
            }
        }else {
            // position = 0
            holder.llShopcartHeader.setVisibility(View.VISIBLE);
        }

        System.out.println("holder = " + list.get(position).getGoods_name());


        holder.tvItemShopcartShopname.setText(list.get(position).getGoods_name());
        holder.tvItemShopcartClothPrice.setText("¥" + list.get(position).getShop_price());
        holder.etItemShopcartClothNum.setText(list.get(position).getStock_number() + "");




        Glide.with(context).load(list.get(position).getGoods_img()).into(holder.ivItemShopcartClothPic);


        //标记 商品是否被选中
        if(list.get(position).isSelect()){
            holder.tvItemShopcartClothselect.setImageDrawable(context.getResources().getDrawable(R.drawable.shopcart_selected));
        }else {
            holder.tvItemShopcartClothselect.setImageDrawable(context.getResources().getDrawable(R.drawable.shopcart_unselected));
        }

        //标记商店是否被选中
        if(list.get(position).isShopSelect()){
            holder.ivItemShopcartShopselect.setImageDrawable(context.getResources().getDrawable(R.drawable.shopcart_selected));
        }else {
            holder.ivItemShopcartShopselect.setImageDrawable(context.getResources().getDrawable(R.drawable.shopcart_unselected));
        }


        //?
        if(onRefershListener != null){
            boolean isSelect = false;

            for(int i=0;i<list.size();i++){
                if(!list.get(i).isSelect()){
                    isSelect = false;
                    // 只要有一个商品是 未选中的状态 ,全选按钮就是未选中
                    break;
                }else {
                    isSelect = true;
                }
            }
            onRefershListener.onRefersh(isSelect,list);

        }

       //删除事件 回调
        holder.ivItemShopcartClothDelete.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                if(onDeleteClickListener != null){
                    onDeleteClickListener.onDeleteClick(v,position,list.get(position).getCount());
                }
                list.remove(position);
                //如果删除的是第一条数据(或者是 数据带有商户名称的数据) 更新数据源, 标记 那条数据 显示商户名称
                MainActivity.setFirstState(list);
                notifyDataSetChanged();
            }
        });

        //  - 商品数量事件
        holder.ivItemShopcartClothMinus.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                if(list.get(position).getCount() > 1){

                    int count = list.get(position).getCount() - 1 ;
                    list.get(position).setCount(count);
                    notifyDataSetChanged();
                    if(onEditListener != null){
                        onEditListener.onEditListener(position,list.get(position).getCount(),count);
                    }
                }
            }
        });

        // + 商品数量事件
        holder.ivItemShopcartClothAdd.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                int count = list.get(position).getCount()+ 1 ;
                list.get(position).setCount(count);
                notifyDataSetChanged();

                if(onEditListener != null){
                    onEditListener.onEditListener(position,list.get(position).getCount(),count);
                }

            }
        });

        //商品 选中和未选中 事件点击
        holder.tvItemShopcartClothselect.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                //标记 当前 item 的选中状态
                list.get(position).setSelect(!list.get(position).isSelect());

                for(int i=0;i<list.size();i++){
                    for(int j=0;j<list.size();j++){
                        //如果是同一家商铺的商品,并且其中一个商品是未选中,那么商铺的全选勾选取消
                        if(list.get(j).getId() == list.get(i).getId() && !list.get(j).isSelect()){
                            list.get(i).setShopSelect(false);
                            break;
                        } else {
                            //如果是同一家商铺的商品,并且所有商品是选中,那么商铺的选中全选勾选
                            list.get(i).setShopSelect(true);
                        }
                    }
                }
                notifyDataSetChanged();

            }
        });

        // 店铺 选中 yu 未选中
        holder.ivItemShopcartShopselect.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {


                if(list.get(position).getCount() == 1){



                    list.get(position).setShopSelect(!list.get(position).isShopSelect());

                    for(int i=0;i<list.size();i++){

                        if(list.get(i).getCount() == list.get(position).getCount()){
                            list.get(i).setSelect(list.get(position).isShopSelect());
                        }

                    }
                    notifyDataSetChanged();

                }

            }
        });

    }

    // 全选
    public void setUnSelected(int selected){
        if(list != null && list.size() > 0){

            for (int i=0;i<list.size();i++){
                if(selected == 1){

                    list.get(i).setSelect(false);
                    list.get(i).setShopSelect(false);
                } else {
                    list.get(i).setSelect(true);
                    list.get(i).setShopSelect(true);

                }
            }
            notifyDataSetChanged();

        }

    }


    @Override
    public int getItemCount() {
        return list == null ? 0 : list.size() ;
    }


    // 点击事件

    public OnItemClickListener onItemClickListener;

    public interface OnItemClickListener {
        void onItemClick(View view, int position);
    }

    public void setOnItemClickListener(OnItemClickListener listener){
        this.onItemClickListener = listener ;
    }



    //删除
    public OnDeleteClickListener onDeleteClickListener;
    public interface OnDeleteClickListener {
        void onDeleteClick(View view, int position, int cartid);
    }

    public void setOnDeleteClickListener(OnDeleteClickListener deleteClickListener){
        this.onDeleteClickListener = deleteClickListener;
    }

    public OnEditListener onEditListener;
    //添加 减少
    public interface OnEditListener {
        void onEditListener(int position, int cartid, int count);
    }

    public void setOnEditListener(OnEditListener onEditListener){
        this.onEditListener = onEditListener;
    }


    // 商品 选中状态发生变化

    public OnRefershListener onRefershListener;

    public interface OnRefershListener{
        //isSelect true 表示商品全部选中 false 未全部选中
        void onRefersh(boolean isSelect, List<ShopBean.DataBean.DefaultGoodsListBean> list);
    }

    public void setOnRefershListener(OnRefershListener listener){
        this.onRefershListener = listener ;
    }



    class IViewHolder extends RecyclerView.ViewHolder{
        @BindView(R.id.view)
        View view;
        @BindView(R.id.iv_item_shopcart_shopselect)
        ImageView ivItemShopcartShopselect;
        @BindView(R.id.tv_item_shopcart_shopname)
        TextView tvItemShopcartShopname;
        @BindView(R.id.ll_shopcart_header)
        LinearLayout llShopcartHeader;
        @BindView(R.id.tv_item_shopcart_clothname)
        TextView tvItemShopcartClothname;
        @BindView(R.id.tv_item_shopcart_clothselect)
        ImageView tvItemShopcartClothselect;
        @BindView(R.id.iv_item_shopcart_cloth_pic)
        ImageView ivItemShopcartClothPic;
        @BindView(R.id.tv_item_shopcart_cloth_price)
        TextView tvItemShopcartClothPrice;
        @BindView(R.id.tv_item_shopcart_cloth_color)
        TextView tvItemShopcartClothColor;
        @BindView(R.id.tv_item_shopcart_cloth_size)
        TextView tvItemShopcartClothSize;
        @BindView(R.id.iv_item_shopcart_cloth_minus)
        ImageView ivItemShopcartClothMinus;
        @BindView(R.id.et_item_shopcart_cloth_num)
        TextView etItemShopcartClothNum;
        @BindView(R.id.iv_item_shopcart_cloth_add)
        ImageView ivItemShopcartClothAdd;
        @BindView(R.id.iv_item_shopcart_cloth_delete)
        ImageView ivItemShopcartClothDelete;

        public IViewHolder(View view) {
            super(view);
            ButterKnife.bind(this, view);
        }
    }

}

 

erView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; import com.bumptech.glide.Glide; import com.example.myshopcart.Bean.ShopBean; import com.example.myshopcart.MainActivity; import com.example.myshopcart.R; import java.util.ArrayList; import java.util.List; import butterknife.BindView; import butterknife.ButterKnife; /** * Created by 佘鑫海 on 2017/12/4. */ public class MyAdapter extends RecyclerView.Adapter<MyAdapter.IViewHolder> { private Activity context; private List<ShopBean.DataBean.DefaultGoodsListBean> list ; public MyAdapter(MainActivity context) { this.context = context; } public void setData(List<ShopBean.DataBean.DefaultGoodsListBean> list){ if(this.list == null){ this.list = new ArrayList<>(); } this.list.addAll(list); notifyDataSetChanged(); } @Override public IViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { View view = LayoutInflater.from(context).inflate(R.layout.third_fragment_item, parent, false); IViewHolder viewHolder = new IViewHolder(view); return viewHolder; } @Override public void onBindViewHolder(IViewHolder holder, final int position) { if (position > 0) { //头 if (list.get(position).getId() == list.get(position - 1).getId()) { holder.llShopcartHeader.setVisibility(View.GONE); } else { holder.llShopcartHeader.setVisibility(View.VISIBLE); } }else { // position = 0 holder.llShopcartHeader.setVisibility(View.VISIBLE); } System.out.println("holder = " + list.get(position).getGoods_name()); holder.tvItemShopcartShopname.setText(list.get(position).getGoods_name()); holder.tvItemShopcartClothPrice.setText("¥" + list.get(position).getShop_price()); holder.etItemShopcartClothNum.setText(list.get(position).getStock_number() + ""); Glide.with(context).load(list.get(position).getGoods_img()).into(holder.ivItemShopcartClothPic); //标记 商品是否被选中 if(list.get(position).isSelect()){ holder.tvItemShopcartClothselect.setImageDrawable(context.getResources().getDrawable(R.drawable.shopcart_selected)); }else { holder.tvItemShopcartClothselect.setImageDrawable(context.getResources().getDrawable(R.drawable.shopcart_unselected)); } //标记商店是否被选中 if(list.get(position).isShopSelect()){ holder.ivItemShopcartShopselect.setImageDrawable(context.getResources().getDrawable(R.drawable.shopcart_selected)); }else { holder.ivItemShopcartShopselect.setImageDrawable(context.getResources().getDrawable(R.drawable.shopcart_unselected)); } //? if(onRefershListener != null){ boolean isSelect = false; for(int i=0;i<list.size();i++){ if(!list.get(i).isSelect()){ isSelect = false; // 只要有一个商品是 未选中的状态 ,全选按钮就是未选中 break; }else { isSelect = true; } } onRefershListener.onRefersh(isSelect,list); } //删除事件 回调 holder.ivItemShopcartClothDelete.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if(onDeleteClickListener != null){ onDeleteClickListener.onDeleteClick(v,position,list.get(position).getCount()); } list.remove(position); //如果删除的是第一条数据(或者是 数据带有商户名称的数据) 更新数据源, 标记 那条数据 显示商户名称 MainActivity.setFirstState(list); notifyDataSetChanged(); } }); // - 商品数量事件 holder.ivItemShopcartClothMinus.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if(list.get(position).getCount() > 1){ int count = list.get(position).getCount() - 1 ; list.get(position).setCount(count); notifyDataSetChanged(); if(onEditListener != null){ onEditListener.onEditListener(position,list.get(position).getCount(),count); } } } }); // + 商品数量事件 holder.ivItemShopcartClothAdd.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { int count = list.get(position).getCount()+ 1 ; list.get(position).setCount(count); notifyDataSetChanged(); if(onEditListener != null){ onEditListener.onEditListener(position,list.get(position).getCount(),count); } } }); //商品 选中和未选中 事件点击 holder.tvItemShopcartClothselect.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { //标记 当前 item 的选中状态 list.get(position).setSelect(!list.get(position).isSelect()); for(int i=0;i<list.size();i++){ for(int j=0;j<list.size();j++){ //如果是同一家商铺的商品,并且其中一个商品是未选中,那么商铺的全选勾选取消 if(list.get(j).getId() == list.get(i).getId() && !list.get(j).isSelect()){ list.get(i).setShopSelect(false); break; } else { //如果是同一家商铺的商品,并且所有商品是选中,那么商铺的选中全选勾选 list.get(i).setShopSelect(true); } } } notifyDataSetChanged(); } }); // 店铺 选中 yu 未选中 holder.ivItemShopcartShopselect.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if(list.get(position).getCount() == 1){ list.get(position).setShopSelect(!list.get(position).isShopSelect()); for(int i=0;i<list.size();i++){ if(list.get(i).getCount() == list.get(position).getCount()){ list.get(i).setSelect(list.get(position).isShopSelect()); } } notifyDataSetChanged(); } } }); } // 全选 public void setUnSelected(int selected){ if(list != null && list.size() > 0){ for (int i=0;i<list.size();i++){ if(selected == 1){ list.get(i).setSelect(false); list.get(i).setShopSelect(false); } else { list.get(i).setSelect(true); list.get(i).setShopSelect(true); } } notifyDataSetChanged(); } } @Override public int getItemCount() { return list == null ? 0 : list.size() ; } // 点击事件 public OnItemClickListener onItemClickListener; public interface OnItemClickListener { void onItemClick(View view, int position); } public void setOnItemClickListener(OnItemClickListener listener){ this.onItemClickListener = listener ; } //删除 public OnDeleteClickListener onDeleteClickListener; public interface OnDeleteClickListener { void onDeleteClick(View view, int position, int cartid); } public void setOnDeleteClickListener(OnDeleteClickListener deleteClickListener){ this.onDeleteClickListener = deleteClickListener; } public OnEditListener onEditListener; //添加 减少 public interface OnEditListener { void onEditListener(int position, int cartid, int count); } public void setOnEditListener(OnEditListener onEditListener){ this.onEditListener = onEditListener; } // 商品 选中状态发生变化 public OnRefershListener onRefershListener; public interface OnRefershListener{ //isSelect true 表示商品全部选中 false 未全部选中 void onRefersh(boolean isSelect, List<ShopBean.DataBean.DefaultGoodsListBean> list); } public void setOnRefershListener(OnRefershListener listener){ this.onRefershListener = listener ; } class IViewHolder extends RecyclerView.ViewHolder{ @BindView(R.id.view) View view; @BindView(R.id.iv_item_shopcart_shopselect) ImageView ivItemShopcartShopselect; @BindView(R.id.tv_item_shopcart_shopname) TextView tvItemShopcartShopname; @BindView(R.id.ll_shopcart_header) LinearLayout llShopcartHeader; @BindView(R.id.tv_item_shopcart_clothname) TextView tvItemShopcartClothname; @BindView(R.id.tv_item_shopcart_clothselect) ImageView tvItemShopcartClothselect; @BindView(R.id.iv_item_shopcart_cloth_pic) ImageView ivItemShopcartClothPic; @BindView(R.id.tv_item_shopcart_cloth_price) TextView tvItemShopcartClothPrice; @BindView(R.id.tv_item_shopcart_cloth_color) TextView tvItemShopcartClothColor; @BindView(R.id.tv_item_shopcart_cloth_size) TextView tvItemShopcartClothSize; @BindView(R.id.iv_item_shopcart_cloth_minus) ImageView ivItemShopcartClothMinus; @BindView(R.id.et_item_shopcart_cloth_num) TextView etItemShopcartClothNum; @BindView(R.id.iv_item_shopcart_cloth_add) ImageView ivItemShopcartClothAdd; @BindView(R.id.iv_item_shopcart_cloth_delete) ImageView ivItemShopcartClothDelete; public IViewHolder(View view) { super(view); ButterKnife.bind(this, view); } } }

 

Api



package com.example.myshopcart.API;

/**
 * Created by 佘鑫海 on 2017/12/4.
 */

public class Api {

    // http://result.eolinker.com/umIPmfS6c83237d9c70c7c9510c9b0f97171a308d13b611?uri=homepage
    public  static  final String api_data ="http://result.eolinker.com/";
}

 

Apisevice


package com.example.myshopcart.API;


import com.example.myshopcart.Bean.ShopBean;

import retrofit2.http.GET;
import rx.Observable;

/**
 * Created by 佘鑫海 on 2017/12/4.
 */

public interface ApiService {
    @GET("umIPmfS6c83237d9c70c7c9510c9b0f97171a308d13b611?uri=homepage")
    Observable<ShopBean> getData();
}

 

Bean 包


package com.example.myshopcart.Bean;

import java.util.List;

/**
 * Created by 佘鑫海 on 2017/12/16.
 */

public class ShopBean {

    /**
     * code : 200
     * msg : success
     * data : {"subjects":[{"id":"84","title":"新品上市","detail":"质本天然,探寻自然生命的非凡能量,给\u201c躁动\u201d的肌肤一场新的旅行~~","image":"https://image.yunifang.com/yunifang/images/goods/temp/171011162655217457875119759.jpg","start_time":"2017.05.16 09:26:13","end_time":"2017.10.31 00:00:00","show_number":6,"state":"1","sort":0,"descImage":"https://image.yunifang.com/yunifang/images/goods/temp/17051609265319705925918251.jpg","template":"templateDefault","goodsList":[{"id":"492","goods_name":"盈透美肌黑膜套装(插画版)","shop_price":99.9,"market_price":298,"goods_img":"https://image.yunifang.com/yunifang/images/goods/492/goods_img/171011191068814258195256706.jpg","reservable":false,"efficacy":"以黑吸黑 润透亮颜","stock_number":0,"restrict_purchase_num":0,"goodsName":"PG one热荐:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/171011192212214258195254179.jpg","description":"三重植物精粹,三重水润膜力,美时美刻,水润透亮~"},{"id":"2076","goods_name":"鲜嫩美莓面膜套装","shop_price":129.9,"market_price":299,"goods_img":"https://image.yunifang.com/yunifang/images/goods/2076/goods_img/170930212555714134276722977.jpg","reservable":false,"efficacy":"果然水润 嫩颜美莓","stock_number":0,"restrict_purchase_num":0,"goodsName":"水润指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17101119283583452898243380.jpg","description":"畅享鲜果派对,肌肤水嫩鲜活,萃取自然野草莓、黑莓、巴西莓精华,三款搭配持续水嫩鲜活~"},{"id":"1189","goods_name":"清透盈润面膜套装21片","shop_price":79.9,"market_price":297,"goods_img":"https://image.yunifang.com/yunifang/images/goods/1189/goods_img/17093019432252555150652465.jpg","reservable":false,"efficacy":"水感剔透 鲜颜嫩肌","stock_number":0,"restrict_purchase_num":0,"goodsName":"鲜嫩指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17101119312216937168845205.jpg","description":"精选玫瑰、竹萃自然精粹,清洁力、补水力、亮泽度全新升级,另肌肤水感剔透~"},{"id":"1638","goods_name":"全新升级丨嫩肌酵素黑膜礼盒21片","shop_price":139.9,"market_price":299,"goods_img":"https://image.yunifang.com/yunifang/images/goods/1638/goods_img/170905151496114997886544712.jpg","reservable":false,"efficacy":"极地酵素 \u201c酵\u201d醒美肌","stock_number":0,"restrict_purchase_num":0,"goodsName":"推荐指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170905182614314997886548523.jpg","description":"蕴含南极活性补水酵素精华,持久补水锁水,轻蔬鲜果酵素助力平衡水油~"},{"id":"1830","goods_name":"新品尝鲜|水润茶萃微囊黑面膜20片","shop_price":129.9,"market_price":297,"goods_img":"https://image.yunifang.com/yunifang/images/goods/1830/goods_img/17063017284962337647468682.jpg","reservable":false,"efficacy":"只要一片 水润一天","stock_number":0,"restrict_purchase_num":0,"goodsName":"新品推荐:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1705240026717476518778188.jpg","description":"茶萃微囊精华,开创持续保湿新体验,只要一片,水润一天,持续保湿12小时以上"},{"id":"2091","goods_name":"新品上市丨V7伪妆素颜霜20g","shop_price":79,"market_price":79,"goods_img":"https://image.yunifang.com/yunifang/images/goods/2091/goods_img/170905172822119555059792173.jpg","reservable":false,"efficacy":"即刻提亮 闪亮肤色","stock_number":0,"restrict_purchase_num":0,"goodsName":"遮瑕指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1709051825818467283561992.jpg","description":"如果你是素颜控,这款即刻提亮,闪亮肤色的懒人新品素颜霜你值得拥有~"},{"id":"2039","goods_name":"水润柔嫩黑膜21片","shop_price":89.9,"market_price":297,"goods_img":"https://image.yunifang.com/yunifang/images/goods/2039/goods_img/17093020002498271170145819.jpg","reservable":false,"efficacy":"自然纯粹 水润纯净","stock_number":0,"restrict_purchase_num":0,"goodsName":"补水指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/171011193181418890895139029.jpg","description":"精选龙头竹菁萃、牛油果精粹、黑珍珠精粹,给你自然纯粹,水润纯净体验~"},{"id":"745","goods_name":"全新升级丨晶亮红石榴面膜7片","shop_price":79,"market_price":89,"goods_img":"https://image.yunifang.com/yunifang/images/goods/745/goods_img/17081617418998795654179347.jpg","reservable":false,"efficacy":"深度排浊 一扫黯哑","stock_number":0,"restrict_purchase_num":0,"goodsName":"亮肤指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170816184151311258603701437.jpg","description":"萃取红石榴原液,滴滴蕴含鲜活能量,清洁排浊、透亮无瑕,改善粗糙黯哑小能手"},{"id":"1870","goods_name":"新品尝鲜|玉润雪肌黑白膜盒20片","shop_price":129.9,"market_price":297,"goods_img":"https://image.yunifang.com/yunifang/images/goods/1870/goods_img/17071909555120332464127704.jpg","reservable":false,"efficacy":"黑白膜力 美肌如玉","stock_number":0,"restrict_purchase_num":0,"goodsName":"新品推荐:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1707171037861467283567706.jpg","description":"白膜胶原蛋白精华,昼弹润生态库,黑膜三分子玻尿酸,夜补水先锋。黑白膜力,水肌如玉~"},{"id":"1919","goods_name":"透亮红酒酵力面膜21片","shop_price":129.9,"market_price":239,"goods_img":"https://image.yunifang.com/yunifang/images/goods/1919/goods_img/170630171021217601465422538.jpg","reservable":false,"efficacy":"红酒透亮 酵醒美肌","stock_number":0,"restrict_purchase_num":0,"goodsName":"亮肤指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170630224599017601465422520.jpg","description":"全新添加西班牙酵母发酵液,融合法国红酒多酚亮肤成分,加乘亮肤功效~"},{"id":"772","goods_name":"全新升级丨清润莹亮黑膜套装21片","shop_price":99.9,"market_price":297,"goods_img":"https://image.yunifang.com/yunifang/images/goods/772/goods_img/17090514228269026987111180.jpg","reservable":false,"efficacy":"自然莹亮 水感瓷肌","stock_number":0,"restrict_purchase_num":0,"goodsName":"水亮能量:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1709191414112467283564077.jpg","description":"自然莹亮,水感瓷肌,精选龙头竹、葡萄籽,演绎水亮二重奏~"},{"id":"487","goods_name":"海洋弹性蛋白矿物精华眼霜25g","shop_price":139,"market_price":169,"goods_img":"https://image.yunifang.com/yunifang/images/goods/487/goods_img/170626101843492134395965.jpg","reservable":false,"efficacy":"提拉紧致 润亮双眸","stock_number":0,"restrict_purchase_num":0,"goodsName":"抗皱指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1706151917130467283566572.jpg","description":"不要等到有皱纹了才想起用眼霜,不要让眼睛放大你的年龄,每一滴自然精粹,都为你打造明亮双眸~"},{"id":"1281","goods_name":"新品眼霜丨红石榴矿物眼霜25g","shop_price":129,"market_price":159,"goods_img":"https://image.yunifang.com/yunifang/images/goods/1281/goods_img/170626102555811776047044227.jpg","reservable":false,"efficacy":"淡退黑眼圈 净彻排浊","stock_number":0,"restrict_purchase_num":0,"goodsName":"抗皱指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1706151918330467283566999.jpg","description":"熊猫眼克星!多种植物精粹,天然舒活肌肤水通道,清爽不油腻,好吸收,和细纹说拜拜~"}],"goodsIdsList":["492","2076","1923","1189","1638","1830","2091","2039","745","1870","1919","772","1280","487","1281","1250"],"goodsRelationList":[{"id":"14815","subject_id":"84","goods_id":"492","goodsName":"PG one热荐:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/171011192212214258195254179.jpg","description":"三重植物精粹,三重水润膜力,美时美刻,水润透亮~"},{"id":"14816","subject_id":"84","goods_id":"2076","goodsName":"水润指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17101119283583452898243380.jpg","description":"畅享鲜果派对,肌肤水嫩鲜活,萃取自然野草莓、黑莓、巴西莓精华,三款搭配持续水嫩鲜活~"},{"id":"14817","subject_id":"84","goods_id":"1923","goodsName":"美白指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170816184068619872110797032.jpg","description":"真美白,匠心造!全新升级美白嫩肤面膜,多种美白成分助力美白,国家权威美白特证安全放心~"},{"id":"14818","subject_id":"84","goods_id":"1189","goodsName":"鲜嫩指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17101119312216937168845205.jpg","description":"精选玫瑰、竹萃自然精粹,清洁力、补水力、亮泽度全新升级,另肌肤水感剔透~"},{"id":"14819","subject_id":"84","goods_id":"1638","goodsName":"推荐指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170905182614314997886548523.jpg","description":"蕴含南极活性补水酵素精华,持久补水锁水,轻蔬鲜果酵素助力平衡水油~"},{"id":"14820","subject_id":"84","goods_id":"1830","goodsName":"新品推荐:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1705240026717476518778188.jpg","description":"茶萃微囊精华,开创持续保湿新体验,只要一片,水润一天,持续保湿12小时以上"},{"id":"14821","subject_id":"84","goods_id":"2091","goodsName":"遮瑕指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1709051825818467283561992.jpg","description":"如果你是素颜控,这款即刻提亮,闪亮肤色的懒人新品素颜霜你值得拥有~"},{"id":"14822","subject_id":"84","goods_id":"2039","goodsName":"补水指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/171011193181418890895139029.jpg","description":"精选龙头竹菁萃、牛油果精粹、黑珍珠精粹,给你自然纯粹,水润纯净体验~"},{"id":"14823","subject_id":"84","goods_id":"745","goodsName":"亮肤指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170816184151311258603701437.jpg","description":"萃取红石榴原液,滴滴蕴含鲜活能量,清洁排浊、透亮无瑕,改善粗糙黯哑小能手"},{"id":"14824","subject_id":"84","goods_id":"1870","goodsName":"新品推荐:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1707171037861467283567706.jpg","description":"白膜胶原蛋白精华,昼弹润生态库,黑膜三分子玻尿酸,夜补水先锋。黑白膜力,水肌如玉~"},{"id":"14825","subject_id":"84","goods_id":"1919","goodsName":"亮肤指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170630224599017601465422520.jpg","description":"全新添加西班牙酵母发酵液,融合法国红酒多酚亮肤成分,加乘亮肤功效~"},{"id":"14826","subject_id":"84","goods_id":"772","goodsName":"水亮能量:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1709191414112467283564077.jpg","description":"自然莹亮,水感瓷肌,精选龙头竹、葡萄籽,演绎水亮二重奏~"},{"id":"14827","subject_id":"84","goods_id":"1280","goodsName":"遮瑕指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17051609285005287026507049.jpg","description":"日本进口粉扑,云母成分强遮瑕,接触肌肤绵密柔软,粉体细腻,妆感轻薄,完美遮瑕~"},{"id":"14828","subject_id":"84","goods_id":"487","goodsName":"抗皱指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1706151917130467283566572.jpg","description":"不要等到有皱纹了才想起用眼霜,不要让眼睛放大你的年龄,每一滴自然精粹,都为你打造明亮双眸~"},{"id":"14829","subject_id":"84","goods_id":"1281","goodsName":"抗皱指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1706151918330467283566999.jpg","description":"熊猫眼克星!多种植物精粹,天然舒活肌肤水通道,清爽不油腻,好吸收,和细纹说拜拜~"},{"id":"14830","subject_id":"84","goods_id":"1250","goodsName":"抗氧化指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1706021026770467283563014.jpg","description":"你的梳妆台必不可少一瓶面霜,告别熬夜和岁月留下的黄脸,为肌肤注入鲜活能量。"}],"url":"http://h.yunifang.com/goods/subject.html?id=84","wapUrl":"http://vip.yunifang.com/goods/subject.html?id=84"},{"id":"85","title":"玫瑰系列","detail":"大马士革玫瑰 ,天然补水之选\n沙漠玫瑰 ,优质锁水之源\n打造花漾透润,奢宠水嫩肌","image":"https://image.yunifang.com/yunifang/images/goods/temp/17051609349138679665088294.jpg","start_time":"2017.05.16 09:34:46","end_time":"2017.10.31 00:00:00","show_number":6,"state":"1","sort":0,"descImage":"https://image.yunifang.com/yunifang/images/goods/temp/17051609348383766880399479.jpg","template":"templateDefault","goodsList":[{"id":"16","goods_name":"热销套装丨玫瑰滋养保湿四件套","shop_price":169.9,"market_price":259.9,"goods_img":"https://image.yunifang.com/yunifang/images/goods/16/goods_img/17062611152592656236701367.jpg","reservable":false,"efficacy":"一整套源源补水","stock_number":0,"restrict_purchase_num":0,"goodsName":"补水指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17051609358507874536438833.jpg","description":"明星同款四件套,沙漠玫瑰精萃持久保湿,配合同款睡眠面膜保湿更持久~"},{"id":"87","goods_name":"全新升级丨玫瑰滋养面膜7片","shop_price":89,"market_price":89,"goods_img":"https://image.yunifang.com/yunifang/images/goods/87/goods_img/170904211885816205585811962.jpg","reservable":false,"efficacy":"岂止补水 更能锁水","stock_number":0,"restrict_purchase_num":0,"goodsName":"补水指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1709051823381467283568718.jpg","description":"岂止补水,更能锁水,如沐玫瑰清泉,远离干渴沙肌~"},{"id":"101","goods_name":"玫瑰滋养矿物洁面乳100ml","shop_price":29.9,"market_price":59,"goods_img":"https://image.yunifang.com/yunifang/images/goods/101/goods_img/170626105885015353255525556.jpg","reservable":false,"efficacy":"温和清洁 补水保湿","stock_number":0,"restrict_purchase_num":0,"goodsName":"清洁指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170516093764320738763251731.jpg","description":"有淡淡玫瑰花香,细腻低泡质地,洗完水润清爽,补水锁水,脸部不紧绷~"},{"id":"9","goods_name":"玫瑰滋养矿物睡眠面膜180g","shop_price":59.9,"market_price":99,"goods_img":"https://image.yunifang.com/yunifang/images/goods/9/goods_img/170626112611018894167156705.jpg","reservable":false,"efficacy":"镇店之宝 彻夜补水","stock_number":0,"restrict_purchase_num":0,"goodsName":"推荐指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170516093920020890610623903.jpg","description":"晚上洁面后,用完水乳,再涂上薄薄的一层,翌日起来,皮肤弹润有光泽,上妆也完全不担心会脱妆~"},{"id":"336","goods_name":"玫瑰滋养矿物润肤乳液","shop_price":69,"market_price":129,"goods_img":"https://image.yunifang.com/yunifang/images/goods/336/goods_img/170626103574019791491356888.jpg","reservable":false,"efficacy":"长效保湿 持久滋养","stock_number":0,"restrict_purchase_num":0,"goodsName":"保湿指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170516093939713507603809610.jpg","description":"它可以说是保湿小助手,有它在,肌肤干燥、皮肤油腻,通通解决~"},{"id":"187","goods_name":"玫瑰滋养基础三件套","shop_price":149.9,"market_price":179.9,"goods_img":"https://image.yunifang.com/yunifang/images/goods/187/goods_img/17062610472505220941898288.jpg","reservable":false,"efficacy":"多倍补水 长效保湿","stock_number":0,"restrict_purchase_num":0,"goodsName":"补水指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17051609414379789618916490.jpg","description":"超能补水,柔美的粉红色,淡淡的玫瑰香,闻起来特别舒服,保湿很明显~"},{"id":"315","goods_name":"玫瑰滋养矿物润肤水","shop_price":65,"market_price":109,"goods_img":"https://image.yunifang.com/yunifang/images/goods/315/goods_img/17062610389695661847862326.jpg","reservable":false,"efficacy":"持久保湿 静享芬芳","stock_number":0,"restrict_purchase_num":0,"goodsName":"补水指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17051609422120971403077934.jpg","description":"巧妙融合\u201c双重瑰宝\u201d萃取精华,\u201c黄金\u201d补水库,可使肌肤水嫩Q弹~"}],"goodsIdsList":["16","87","101","9","336","187","315"],"goodsRelationList":[{"id":"14299","subject_id":"85","goods_id":"16","goodsName":"补水指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17051609358507874536438833.jpg","description":"明星同款四件套,沙漠玫瑰精萃持久保湿,配合同款睡眠面膜保湿更持久~"},{"id":"14300","subject_id":"85","goods_id":"87","goodsName":"补水指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1709051823381467283568718.jpg","description":"岂止补水,更能锁水,如沐玫瑰清泉,远离干渴沙肌~"},{"id":"14301","subject_id":"85","goods_id":"101","goodsName":"清洁指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170516093764320738763251731.jpg","description":"有淡淡玫瑰花香,细腻低泡质地,洗完水润清爽,补水锁水,脸部不紧绷~"},{"id":"14302","subject_id":"85","goods_id":"9","goodsName":"推荐指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170516093920020890610623903.jpg","description":"晚上洁面后,用完水乳,再涂上薄薄的一层,翌日起来,皮肤弹润有光泽,上妆也完全不担心会脱妆~"},{"id":"14303","subject_id":"85","goods_id":"336","goodsName":"保湿指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170516093939713507603809610.jpg","description":"它可以说是保湿小助手,有它在,肌肤干燥、皮肤油腻,通通解决~"},{"id":"14304","subject_id":"85","goods_id":"187","goodsName":"补水指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17051609414379789618916490.jpg","description":"超能补水,柔美的粉红色,淡淡的玫瑰香,闻起来特别舒服,保湿很明显~"},{"id":"14305","subject_id":"85","goods_id":"315","goodsName":"补水指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17051609422120971403077934.jpg","description":"巧妙融合\u201c双重瑰宝\u201d萃取精华,\u201c黄金\u201d补水库,可使肌肤水嫩Q弹~"}],"url":"http://h.yunifang.com/goods/subject.html?id=85","wapUrl":"http://vip.yunifang.com/goods/subject.html?id=85"},{"id":"86","title":"清爽系列","detail":"温度变化、空气污染、电脑辐射等易引起的肌肤出油,玉竹贡竹的清新搭配,悦享净透清爽~","image":"https://image.yunifang.com/yunifang/images/goods/temp/17101116265017851243534104.jpg","start_time":"2017.05.16 09:44:13","end_time":"2018.01.31 00:00:00","show_number":6,"state":"1","sort":0,"descImage":"https://image.yunifang.com/yunifang/images/goods/temp/170516094973114360348144160.jpg","template":"templateDefault","goodsList":[{"id":"189","goods_name":"控油必备丨清爽平衡护肤三件套","shop_price":99.9,"market_price":179.9,"goods_img":"https://image.yunifang.com/yunifang/images/goods/189/goods_img/1706261046499486999388441.jpg","reservable":false,"efficacy":"深层清洁 平衡水油","stock_number":0,"restrict_purchase_num":0,"goodsName":"控油指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170516095132819066095187324.jpg","description":"大油田的救星,水和乳的质地都很清爽,轻薄完全不油腻,味道也很好闻没有很刺鼻的香气~"},{"id":"341","goods_name":"清爽平衡矿物爽肤乳液120ml","shop_price":79,"market_price":129,"goods_img":"https://image.yunifang.com/yunifang/images/goods/341/goods_img/17062610346813637236975691.jpg","reservable":false,"efficacy":"补水保湿 清爽控油","stock_number":0,"restrict_purchase_num":0,"goodsName":"控油指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170628154348413637236979205.jpg","description":"油性肌肤的烦恼需要从根源解决问题,该乳液蕴含玉竹精粹,可通过调节油脂平衡,告别油腻烦恼~"},{"id":"141","goods_name":"清爽平衡矿物睡眠面膜180g","shop_price":69.9,"market_price":79.9,"goods_img":"https://image.yunifang.com/yunifang/images/goods/141/goods_img/170626105338416020006362606.jpg","reservable":false,"efficacy":"平衡水油 清爽净透","stock_number":0,"restrict_purchase_num":0,"goodsName":"推荐指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170628154358216020006362358.jpg","description":"油皮妹纸们必备的懒人神器,睡前一抹,整晚无忧,让肌肤在睡眠中变得清新润泽~"},{"id":"313","goods_name":"清爽平衡矿物爽肤水150ml","shop_price":65,"market_price":109,"goods_img":"https://image.yunifang.com/yunifang/images/goods/313/goods_img/17062610398875573627694321.jpg","reservable":false,"efficacy":"补水控油 收敛毛孔","stock_number":0,"restrict_purchase_num":0,"goodsName":"清爽指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17062815439285573627696368.jpg","description":"二次清洁小助手,\u201c大油田\u201d必备,精选玉竹精萃,这个夏天做个不油腻\u201c小清新\u201d~"},{"id":"11","goods_name":"清爽平衡矿物泥浆面膜260g","shop_price":99,"market_price":99,"goods_img":"https://image.yunifang.com/yunifang/images/goods/11/goods_img/170626112085420599974158029.jpg","reservable":false,"efficacy":"口碑泥浆 清爽控油","stock_number":0,"restrict_purchase_num":0,"goodsName":"口碑指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170628154316020599974151881.jpg","description":"整整一大瓶,对抗油田、草莓鼻、粗毛孔无忧虑,从此清新无油,爱上自拍,和美颜相机说拜拜~"},{"id":"559","goods_name":"竹炭净透矿物泥浆面膜110g","shop_price":59,"market_price":99,"goods_img":"https://image.yunifang.com/yunifang/images/goods/559/goods_img/170627164784010618075663103.jpg","reservable":false,"efficacy":"控油净肤 细腻毛孔","stock_number":0,"restrict_purchase_num":0,"goodsName":"控油指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170628154343010618075663627.jpg","description":"控油能力较好,竹炭味道清新,质地温和,能带走多余油脂,维持肌肤油脂平衡~"}],"goodsIdsList":["189","341","141","313","11","559"],"goodsRelationList":[{"id":"14745","subject_id":"86","goods_id":"189","goodsName":"控油指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170516095132819066095187324.jpg","description":"大油田的救星,水和乳的质地都很清爽,轻薄完全不油腻,味道也很好闻没有很刺鼻的香气~"},{"id":"14746","subject_id":"86","goods_id":"341","goodsName":"控油指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170628154348413637236979205.jpg","description":"油性肌肤的烦恼需要从根源解决问题,该乳液蕴含玉竹精粹,可通过调节油脂平衡,告别油腻烦恼~"},{"id":"14747","subject_id":"86","goods_id":"141","goodsName":"推荐指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170628154358216020006362358.jpg","description":"油皮妹纸们必备的懒人神器,睡前一抹,整晚无忧,让肌肤在睡眠中变得清新润泽~"},{"id":"14748","subject_id":"86","goods_id":"313","goodsName":"清爽指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17062815439285573627696368.jpg","description":"二次清洁小助手,\u201c大油田\u201d必备,精选玉竹精萃,这个夏天做个不油腻\u201c小清新\u201d~"},{"id":"14749","subject_id":"86","goods_id":"11","goodsName":"口碑指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170628154316020599974151881.jpg","description":"整整一大瓶,对抗油田、草莓鼻、粗毛孔无忧虑,从此清新无油,爱上自拍,和美颜相机说拜拜~"},{"id":"14750","subject_id":"86","goods_id":"559","goodsName":"控油指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170628154343010618075663627.jpg","description":"控油能力较好,竹炭味道清新,质地温和,能带走多余油脂,维持肌肤油脂平衡~"}],"url":"http://h.yunifang.com/goods/subject.html?id=86","wapUrl":"http://vip.yunifang.com/goods/subject.html?id=86"},{"id":"89","title":"美白系列","detail":"3年研究成果\n5种植物复配美白精华\n滴滴渗透,淡化黑色素\n美白层层递增恢复自然白皙","image":"https://image.yunifang.com/yunifang/images/goods/temp/17051612377286522760845671.jpg","start_time":"2017.05.16 12:38:21","end_time":"2017.11.30 00:00:00","show_number":6,"state":"1","sort":0,"descImage":"https://image.yunifang.com/yunifang/images/goods/temp/170516123730510604321177291.jpg","template":"templateDefault","goodsList":[{"id":"8","goods_name":"全新升级丨美白嫩肤面膜20片","shop_price":129.9,"market_price":359,"goods_img":"https://image.yunifang.com/yunifang/images/goods/8/goods_img/170818182578717903477668239.jpg","reservable":false,"efficacy":"真美白 匠心造","stock_number":0,"restrict_purchase_num":0,"goodsName":"美白指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17081618370419872110796752.jpg","description":"真美白,匠心造!全新升级美白嫩肤面膜,多种美白成分助力美白,国家权威美白特证安全放心~"},{"id":"185","goods_name":"美白嫩肤护肤基础三件套装","shop_price":169.9,"market_price":209.9,"goods_img":"https://image.yunifang.com/yunifang/images/goods/185/goods_img/170626104732716695049042487.jpg","reservable":false,"efficacy":"温和清洁 补水美白","stock_number":0,"restrict_purchase_num":0,"goodsName":"美白指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170630224949016695049047380.jpg","description":"美白嫩肤,名字是代表,品质是保证,还有什么可犹豫的~"},{"id":"10","goods_name":"美白嫩肤睡眠面膜180g","shop_price":69,"market_price":119,"goods_img":"https://image.yunifang.com/yunifang/images/goods/10/goods_img/170626112190919312919673075.jpg","reservable":false,"efficacy":"补水美白 越睡越白","stock_number":0,"restrict_purchase_num":0,"goodsName":"美白指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170630224882619312919673312.jpg","description":"夜间是皮肤修复黄金期,若想修炼成白雪公主,每晚坚持使用效果更棒,白天也别忘防晒哦~"},{"id":"343","goods_name":"美白嫩肤润肤水150ml","shop_price":69,"market_price":119,"goods_img":"https://image.yunifang.com/yunifang/images/goods/343/goods_img/170626103423611420000294568.jpg","reservable":false,"efficacy":"补水保湿 美白嫩肤","stock_number":0,"restrict_purchase_num":0,"goodsName":"美白效果:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170630224836611420000297349.jpg","description":"质地不粘稠,洗完脸以后肌肤的第一道滋润,打开肌肤通道,助力美白营养成分吸收~"},{"id":"1101","goods_name":"美白嫩肤泥浆面膜110g","shop_price":69,"market_price":79,"goods_img":"https://image.yunifang.com/yunifang/images/goods/1101/goods_img/170627175248420984384699974.jpg","reservable":false,"efficacy":"清洁净透 美白嫩肤","stock_number":0,"restrict_purchase_num":0,"goodsName":"美白清洁:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170630224986120984384692751.jpg","description":"为了白,尝尽各种方法,然而效果不佳,这款泥浆,深层吸黑,草本焕白,国家美白特证放心体验~"},{"id":"121","goods_name":"镇店之宝丨美白嫩肤面膜7片","shop_price":49.9,"market_price":99,"goods_img":"https://image.yunifang.com/yunifang/images/goods/121/goods_img/17062610568378169043195978.jpg","reservable":false,"efficacy":"镇店之宝 美白爆款","stock_number":0,"restrict_purchase_num":0,"goodsName":"美白指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17072910225828169043193082.jpg","description":"15分钟亲肤享受,洗完脸以后肌肤的第一道滋润,打开肌肤通道,助力美白营养成分吸收~"}],"goodsIdsList":["8","185","10","343","1101","121"],"goodsRelationList":[{"id":"14443","subject_id":"89","goods_id":"8","goodsName":"美白指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17081618370419872110796752.jpg","description":"真美白,匠心造!全新升级美白嫩肤面膜,多种美白成分助力美白,国家权威美白特证安全放心~"},{"id":"14444","subject_id":"89","goods_id":"185","goodsName":"美白指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170630224949016695049047380.jpg","description":"美白嫩肤,名字是代表,品质是保证,还有什么可犹豫的~"},{"id":"14445","subject_id":"89","goods_id":"10","goodsName":"美白指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170630224882619312919673312.jpg","description":"夜间是皮肤修复黄金期,若想修炼成白雪公主,每晚坚持使用效果更棒,白天也别忘防晒哦~"},{"id":"14446","subject_id":"89","goods_id":"343","goodsName":"美白效果:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170630224836611420000297349.jpg","description":"质地不粘稠,洗完脸以后肌肤的第一道滋润,打开肌肤通道,助力美白营养成分吸收~"},{"id":"14447","subject_id":"89","goods_id":"1101","goodsName":"美白清洁:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170630224986120984384692751.jpg","description":"为了白,尝尽各种方法,然而效果不佳,这款泥浆,深层吸黑,草本焕白,国家美白特证放心体验~"},{"id":"14448","subject_id":"89","goods_id":"121","goodsName":"美白指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17072910225828169043193082.jpg","description":"15分钟亲肤享受,洗完脸以后肌肤的第一道滋润,打开肌肤通道,助力美白营养成分吸收~"}],"url":"http://h.yunifang.com/goods/subject.html?id=89","wapUrl":"http://vip.yunifang.com/goods/subject.html?id=89"},{"id":"88","title":"红石榴系列","detail":"肌肤好像透着光\n每一滴红石榴原液含有护肤精粹\n赋予黯哑粗糙肌肤鲜润魅力\n红石榴不仅蕴含多种维他命矿物,更含有石榴多酚和花青素,渗透肌底,深层排浊,自内焕发肌肤红润光泽~\n","image":"https://image.yunifang.com/yunifang/images/goods/temp/170516122967511806265329475.jpg","start_time":"2017.05.16 12:29:44","end_time":"2017.10.31 00:00:00","show_number":6,"state":"1","sort":0,"descImage":"https://image.yunifang.com/yunifang/images/goods/temp/170516122975121341081719659.jpg","template":"templateDefault","goodsList":[{"id":"99","goods_name":"红石榴矿物洁面乳100ml","shop_price":29.9,"market_price":59,"goods_img":"https://image.yunifang.com/yunifang/images/goods/99/goods_img/170626105849718932898868035.jpg","reservable":false,"efficacy":"温和清洁 提亮肤色","stock_number":0,"restrict_purchase_num":0,"goodsName":"清洁指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17051612304946692218255625.jpg","description":"泡沫绵密,清扫毛孔浊质,助力鲜活补水,红石榴精华唤醒肌肤鲜活动力~"},{"id":"71","goods_name":"性价比之王|红石榴矿物补水亮肤十件套","shop_price":159.99,"market_price":319.9,"goods_img":"https://image.yunifang.com/yunifang/images/goods/71/goods_img/170914091495612767354095021.jpg","reservable":false,"efficacy":"补水亮肤 改善黯哑","stock_number":0,"restrict_purchase_num":0,"goodsName":"亮肤保湿:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170516123365218037277371021.jpg","description":"小仙女们都知道,红石榴有提亮肤色的功效,这款套装炒鸡滋润,而且不油腻,红色大气包装更能俘获人心~"},{"id":"1281","goods_name":"新品眼霜丨红石榴矿物眼霜25g","shop_price":129,"market_price":159,"goods_img":"https://image.yunifang.com/yunifang/images/goods/1281/goods_img/170626102555811776047044227.jpg","reservable":false,"efficacy":"淡退黑眼圈 净彻排浊","stock_number":0,"restrict_purchase_num":0,"goodsName":"淡化眼圈:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170729102668111776047045132.jpg","description":"熊猫眼克星!多种植物精粹,天然舒活肌肤水通道。清爽不油腻,好吸收,细纹看着浅。"},{"id":"151","goods_name":"红石榴鲜活矿物睡眠面膜180g","shop_price":99,"market_price":119,"goods_img":"https://image.yunifang.com/yunifang/images/goods/151/goods_img/170626105075810681841436827.jpg","reservable":false,"efficacy":"源源养护 鲜活亮颜","stock_number":0,"restrict_purchase_num":0,"goodsName":"提亮指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170729102811710681841435351.jpg","description":"看得见的鲜活粒子,增添肌肤鲜活能量!啫喱态的面膜,质地清爽不油腻!"}],"goodsIdsList":["99","1652","1250","71","1281","151"],"goodsRelationList":[{"id":"13960","subject_id":"88","goods_id":"99","goodsName":"清洁指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17051612304946692218255625.jpg","description":"泡沫绵密,清扫毛孔浊质,助力鲜活补水,红石榴精华唤醒肌肤鲜活动力~"},{"id":"13961","subject_id":"88","goods_id":"1652","goodsName":"亮肤指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170516123680716693836711273.jpg","description":"红石榴精华有助于打散黑色素群,提亮肤色更给力,肤色暗黄的小伙伴们看过来~"},{"id":"13962","subject_id":"88","goods_id":"1250","goodsName":"抗氧化:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170516123022219451838196701.jpg","description":"你的梳妆台必不可少一瓶面霜,告别熬夜和岁月留下的黄脸,为肌肤注入鲜活能量~"},{"id":"13963","subject_id":"88","goods_id":"71","goodsName":"亮肤保湿:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170516123365218037277371021.jpg","description":"小仙女们都知道,红石榴有提亮肤色的功效,这款套装炒鸡滋润,而且不油腻,红色大气包装更能俘获人心~"},{"id":"13964","subject_id":"88","goods_id":"1281","goodsName":"淡化眼圈:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170729102668111776047045132.jpg","description":"熊猫眼克星!多种植物精粹,天然舒活肌肤水通道。清爽不油腻,好吸收,细纹看着浅。"},{"id":"13965","subject_id":"88","goods_id":"151","goodsName":"提亮指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170729102811710681841435351.jpg","description":"看得见的鲜活粒子,增添肌肤鲜活能量!啫喱态的面膜,质地清爽不油腻!"}],"url":"http://h.yunifang.com/goods/subject.html?id=88","wapUrl":"http://vip.yunifang.com/goods/subject.html?id=88"},{"id":"101","title":"黑玫瑰系列","detail":"层层筛选优质黑玫瑰\n黑玫瑰精粹含单宁酸及植物多酚\n解决肌肤黯哑不均,显著提亮","image":"https://image.yunifang.com/yunifang/images/goods/temp/170731095719116873211372276.jpg","start_time":"2017.07.25 00:00:00","end_time":"2018.01.31 00:00:00","show_number":6,"state":"1","sort":0,"descImage":"https://image.yunifang.com/yunifang/images/goods/temp/17073109575402630402867921.jpg","template":"templateDefault","goodsList":[{"id":"4","goods_name":"黑玫瑰矿物洁面乳100ml","shop_price":49,"market_price":59,"goods_img":"https://image.yunifang.com/yunifang/images/goods/4/goods_img/17062611262464209534577694.jpg","reservable":false,"efficacy":"温和清洁 提亮肤色","stock_number":0,"restrict_purchase_num":0,"goodsName":"清洁提亮:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17073110055984209534577564.jpg","description":"泡沫细腻,清洁清洁肌肤,一扫城市雾霾导致的肌肤污垢,同时黑玫瑰精粹由内而外提亮肤色~"},{"id":"1805","goods_name":"黑玫瑰护肤基础三件套","shop_price":269.9,"market_price":387,"goods_img":"https://image.yunifang.com/yunifang/images/goods/1805/goods_img/17050414108281642074189987.jpg","reservable":false,"efficacy":"击退黯哑 提亮莹润","stock_number":0,"restrict_purchase_num":0,"goodsName":"推荐指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170731100820019181327789327.jpg","description":"3重亮肤能量,层层淡化黯哑,给予肌肤奢宠养护~"},{"id":"127","goods_name":"黑玫瑰泥浆面膜260g","shop_price":199,"market_price":199,"goods_img":"https://image.yunifang.com/yunifang/images/goods/127/goods_img/170626145396916224693431300.jpg","reservable":false,"efficacy":"滋养润滑 提亮肤色","stock_number":0,"restrict_purchase_num":0,"goodsName":"清洁亮肤:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170731101056416224693431021.jpg","description":"大多肌肤问题源于脸部清洁不当,黑玫瑰泥浆解决护肤根本问题~"},{"id":"245","goods_name":"黑玫瑰睡眠面膜护肤四件套装","shop_price":429.9,"market_price":539.9,"goods_img":"https://image.yunifang.com/yunifang/images/goods/245/goods_img/17062610416972131702264912.jpg","reservable":false,"efficacy":"滋养肌肤 提亮肤色","stock_number":0,"restrict_purchase_num":0,"goodsName":"综合指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1707311016882131702267162.jpg","description":"一套护肤装备,解决肌肤粗糙暗沉,熟龄肌首选~"}],"goodsIdsList":["403","4","1805","127","83","245"],"goodsRelationList":[{"id":"13947","subject_id":"101","goods_id":"403","goodsName":"推荐指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1707311002441167403859909.jpg","description":"黑玫瑰精粹集于一瓶,一小瓶精华液唤醒肌肤夺目光彩"},{"id":"13948","subject_id":"101","goods_id":"4","goodsName":"清洁提亮:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17073110055984209534577564.jpg","description":"泡沫细腻,清洁清洁肌肤,一扫城市雾霾导致的肌肤污垢,同时黑玫瑰精粹由内而外提亮肤色~"},{"id":"13949","subject_id":"101","goods_id":"1805","goodsName":"推荐指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170731100820019181327789327.jpg","description":"3重亮肤能量,层层淡化黯哑,给予肌肤奢宠养护~"},{"id":"13950","subject_id":"101","goods_id":"127","goodsName":"清洁亮肤:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170731101056416224693431021.jpg","description":"大多肌肤问题源于脸部清洁不当,黑玫瑰泥浆解决护肤根本问题~"},{"id":"13951","subject_id":"101","goods_id":"83","goodsName":"补水提亮:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17073110134825656554699188.jpg","description":"15分钟亲肤享受,敷面膜时黑玫瑰自然清新的花香令人身心愉悦,于芬芳中绽放美好气色~"},{"id":"13952","subject_id":"101","goods_id":"245","goodsName":"综合指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1707311016882131702267162.jpg","description":"一套护肤装备,解决肌肤粗糙暗沉,熟龄肌首选~"}],"url":"http://h.yunifang.com/goods/subject.html?id=101","wapUrl":"http://vip.yunifang.com/goods/subject.html?id=101"}],"activityInfo":{"activityAreaDisplay":"1","activityInfoList":[{"id":"60","activityImg":"https://image.yunifang.com/yunifang/images/goods/temp/170527155491221343694704636.jpg","activityType":"60","activityData":"69","activityDataDetail":"69","activityAreaDisplay":"1","countDownEnable":"0","remark":"搭配购买立减","sort":0},{"id":"21","activityImg":"https://image.yunifang.com/yunifang/images/goods/temp/17051718251658680692616281.jpg","activityType":"1","activityData":"http://h.yunifang.com/invite/invite.html?login_check=2","activityDataDetail":"http%3A%2F%2Fh.yunifang.com%2Finvite%2Finvite.html%3Flogin_check%3D2","activityAreaDisplay":"1","countDownEnable":"0","sort":0}]},"ad1":[{"id":"1147","createtime":"2017.10.09 08:33:42","lastupdatetime":"2017.10.09 08:33:46","image":"https://image.yunifang.com/yunifang/images/goods/ad0/17100908319495742677657462.jpg","ad_type":0,"sort":1414,"position":0,"enabled":1,"createuser":"leiqi","lastupdateuser":"leiqi","ad_type_dynamic":"1","ad_type_dynamic_data":"http://h.yunifang.com/h/comment.html","ad_type_dynamic_detail":"http%3A%2F%2Fh.yunifang.com%2Fh%2Fcomment.html","title":"10月商品好评有礼","channelType":"0"},{"id":"1047","createtime":"2017.07.05 19:49:35","lastupdatetime":"2017.09.28 22:16:07","image":"https://image.yunifang.com/yunifang/images/goods/ad0/170905143497021095281713081.jpg","ad_type":0,"sort":1404,"position":0,"enabled":1,"createuser":"hani","lastupdateuser":"leiqi","ad_type_dynamic":"2","ad_type_dynamic_data":"8","ad_type_dynamic_detail":"8","show_channel":"1,2,3,4","title":"美白嫩肤新品面膜","channelType":"0"},{"id":"1055","createtime":"2017.07.19 14:52:20","lastupdatetime":"2017.10.09 10:53:21","image":"https://image.yunifang.com/yunifang/images/goods/ad0/170905143499118006873413769.jpg","ad_type":0,"sort":1403,"position":0,"enabled":1,"createuser":"xicheng","lastupdateuser":"hani","ad_type_dynamic":"2","ad_type_dynamic_data":"1870","ad_type_dynamic_detail":"1870","show_channel":"1,2,3,4","title":"820玉润雪肌膜盒","channelType":"0"},{"id":"1088","createtime":"2017.08.23 09:32:02","lastupdatetime":"2017.09.28 10:24:57","image":"https://image.yunifang.com/yunifang/images/goods/ad0/170823222049920659891841095.jpg","ad_type":0,"sort":1400,"position":0,"enabled":1,"createuser":"hani","lastupdateuser":"xicheng","ad_type_dynamic":"1","ad_type_dynamic_data":"http://h.yunifang.com/h/video.html","ad_type_dynamic_detail":"http%3A%2F%2Fh.yunifang.com%2Fh%2Fvideo.html","show_channel":"1,2,3,4","title":"国货力量","channelType":"0"}],"ad5":[{"id":"359","image":"https://image.yunifang.com/yunifang/images/goods/ad0/170516143575610973073847273.png","ad_type":4,"sort":295,"position":5,"enabled":0,"ad_type_dynamic":"1","ad_type_dynamic_data":"http://h.yunifang.com/sign/sign.html?login_check=2","ad_type_dynamic_detail":"http%3A%2F%2Fh.yunifang.com%2Fsign%2Fsign.html%3Flogin_check%3D2","show_channel":"1,2","title":"每日签到"},{"id":"358","image":"https://image.yunifang.com/yunifang/images/goods/ad0/170516143522410954603429327.png","ad_type":1,"url":"http://mobile.hmeili.com/yunifang/web/member/gift","sort":293,"position":5,"enabled":0,"ad_type_dynamic":"1","ad_type_dynamic_data":"http://m.yunifang.com/yunifang/mobile/creditShop/loginDBShop?dbredirect=http://www.duiba.com.cn/chome/index&login_check=2","ad_type_dynamic_detail":"http%3A%2F%2Fm.yunifang.com%2Fyunifang%2Fmobile%2FcreditShop%2FloginDBShop%3Fdbredirect%3Dhttp%3A%2F%2Fwww.duiba.com.cn%2Fchome%2Findex%26login_check%3D2","show_channel":"1,2","title":"积分商城"},{"id":"357","image":"https://image.yunifang.com/yunifang/images/goods/ad0/170516143491410936133008135.png","ad_type":1,"url":"http://mobile.hmeili.com/yunifang/web/help/cash","sort":291,"position":5,"enabled":0,"ad_type_dynamic":"1","ad_type_dynamic_data":"http://h.yunifang.com/exchange/code_app.html?login_check=1","ad_type_dynamic_detail":"http%3A%2F%2Fh.yunifang.com%2Fexchange%2Fcode_app.html%3Flogin_check%3D1","show_channel":"1,2","title":"兑换专区"},{"id":"360","image":"https://image.yunifang.com/yunifang/images/goods/ad0/170516143497810917662585920.png","ad_type":1,"url":"http://www.yunifang.com/a/fangweichaxun/wap_fwcx.html","sort":289,"position":5,"enabled":0,"ad_type_dynamic":"1","ad_type_dynamic_data":"http://www.yunifang.com/a/fangweichaxun/wap_fwcx.html","ad_type_dynamic_detail":"http%3A%2F%2Fwww.yunifang.com%2Fa%2Ffangweichaxun%2Fwap_fwcx.html","show_channel":"1,2,3,4","title":"真伪查询"}],"ad8":[{"id":"1056","image":"https://image.yunifang.com/yunifang/images/goods/ad0/170719150582816742818457761.png","ad_type":0,"sort":57,"position":8,"enabled":0,"description":"人气好物超值推荐","ad_type_dynamic":"1","ad_type_dynamic_data":"http://vip.yunifang.com/goods/recommend.html?id=87","ad_type_dynamic_detail":"http%3A%2F%2Fh.yunifang.com%2Fgoods%2Frecommend.html%3Fid%3D87","show_channel":"1,2,3,4","title":"新鲜每一天","goods":{"collect_count":0,"reservable":false,"restriction":0,"restrict_purchase_num":0,"is_coupon_allowed":false,"allocated_stock":0,"is_gift":0}},{"id":"954","image":"https://image.yunifang.com/yunifang/images/goods/ad0/171011094966420374041489003.jpg","ad_type":0,"sort":56,"position":8,"enabled":0,"description":"补水滢亮面膜礼盒","ad_type_dynamic":"1","ad_type_dynamic_data":"http://vip.yunifang.com/community_wap/theme-detail.html?id=14319","ad_type_dynamic_detail":"http%3A%2F%2Fvip.yunifang.com%2Fcommunity%2Ftheme-detail.html%3Fid%3D14319","show_channel":"1,2,3,4","title":"免费试用","goods":{"collect_count":0,"reservable":false,"restriction":0,"restrict_purchase_num":0,"is_coupon_allowed":false,"allocated_stock":0,"is_gift":0}},{"id":"1125","image":"https://image.yunifang.com/yunifang/images/goods/ad0/17093010304768203378533256.jpg","ad_type":0,"sort":54,"position":8,"enabled":0,"description":"解救干燥肌","ad_type_dynamic":"2","ad_type_dynamic_data":"16","ad_type_dynamic_detail":"16","show_channel":"1,2,3,4","title":"秋季热销","goods":{"collect_count":0,"reservable":false,"restriction":0,"restrict_purchase_num":0,"is_coupon_allowed":false,"allocated_stock":0,"is_gift":0}}],"defaultGoodsList":[{"id":"121","goods_name":"镇店之宝丨美白嫩肤面膜7片","shop_price":49.9,"market_price":99,"goods_img":"https://image.yunifang.com/yunifang/images/goods/121/goods_img/17062610568378169043195978.jpg","reservable":false,"efficacy":"镇店之宝 美白爆款","stock_number":0,"restrict_purchase_num":0},{"id":"389","goods_name":"热销爆款丨清爽平衡矿物黑面膜21片","shop_price":99.9,"market_price":297,"goods_img":"https://image.yunifang.com/yunifang/images/goods/389/goods_img/17062610265116850439553337.jpg","reservable":false,"efficacy":"以黑吸黑 净透亮肤","stock_number":0,"restrict_purchase_num":0},{"id":"684","goods_name":"解救肌渴丨花粹水润面膜套装10片","shop_price":29.9,"market_price":139,"goods_img":"https://image.yunifang.com/yunifang/images/goods/684/goods_img/17062610401397749701177609.jpg","reservable":false,"efficacy":"水润充盈 鲜嫩少女肌","stock_number":0,"restrict_purchase_num":0},{"id":"6","goods_name":"好用不贵丨亮颜水润蚕丝面膜(寂地定制版)","shop_price":59.9,"market_price":239.9,"goods_img":"https://image.yunifang.com/yunifang/images/goods/6/goods_img/170626112597120167739086821.jpg","reservable":false,"efficacy":"深层补水 提亮肤色","stock_number":0,"restrict_purchase_num":0},{"id":"772","goods_name":"全新升级丨清润莹亮黑膜套装21片","shop_price":99.9,"market_price":297,"goods_img":"https://image.yunifang.com/yunifang/images/goods/772/goods_img/17090514228269026987111180.jpg","reservable":false,"efficacy":"自然莹亮 水感瓷肌","stock_number":0,"restrict_purchase_num":0},{"id":"5","goods_name":"金桂花矿物眼膜贴60片","shop_price":69,"market_price":129,"goods_img":"https://image.yunifang.com/yunifang/images/goods/5/goods_img/170626112553213363513709796.jpg","reservable":false,"efficacy":"补水靓眼 改善熊猫眼","stock_number":0,"restrict_purchase_num":0}],"creditRecived":false,"goodsSpreeActivity":{"id":"327","name":"10.13早场","startDate":"2017.10.13 10:00:00","endDate":"2017.10.13 16:00:00","status":"1","startSeconds":"-12118","endSeconds":"9481","isChecked":"0","goodsList":[{"id":"997","goodsSpreeId":"327","goodsId":"340","goodsName":"【使用期一年以上介意慎拍】黑玫瑰矿物柔肤乳液120ml","goodsImg":"https://image.yunifang.com/yunifang/images/goods/340/goods_img/170626103460417447209262417.jpg","marketPrice":169,"activityPrice":39.9,"salesRatio":0,"stockNumber":30,"releaseNumber":40},{"id":"998","goodsSpreeId":"327","goodsId":"1324","goodsName":"鲜气少女肌|水光轻灵焕彩面膜5片","goodsImg":"https://image.yunifang.com/yunifang/images/goods/1324/goods_img/170626102366110382576889824.jpg","marketPrice":129,"activityPrice":59.9,"salesRatio":0,"stockNumber":30,"releaseNumber":30},{"id":"999","goodsSpreeId":"327","goodsId":"903","goodsName":"绿豆原浆泥面膜100g","goodsImg":"https://image.yunifang.com/yunifang/images/goods/903/goods_img/170627180542017051678666200.jpg","marketPrice":99,"activityPrice":49.9,"salesRatio":0,"stockNumber":28,"releaseNumber":30}]}}
     */

    private int code;
    private String msg;
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * subjects : [{"id":"84","title":"新品上市","detail":"质本天然,探寻自然生命的非凡能量,给\u201c躁动\u201d的肌肤一场新的旅行~~","image":"https://image.yunifang.com/yunifang/images/goods/temp/171011162655217457875119759.jpg","start_time":"2017.05.16 09:26:13","end_time":"2017.10.31 00:00:00","show_number":6,"state":"1","sort":0,"descImage":"https://image.yunifang.com/yunifang/images/goods/temp/17051609265319705925918251.jpg","template":"templateDefault","goodsList":[{"id":"492","goods_name":"盈透美肌黑膜套装(插画版)","shop_price":99.9,"market_price":298,"goods_img":"https://image.yunifang.com/yunifang/images/goods/492/goods_img/171011191068814258195256706.jpg","reservable":false,"efficacy":"以黑吸黑 润透亮颜","stock_number":0,"restrict_purchase_num":0,"goodsName":"PG one热荐:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/171011192212214258195254179.jpg","description":"三重植物精粹,三重水润膜力,美时美刻,水润透亮~"},{"id":"2076","goods_name":"鲜嫩美莓面膜套装","shop_price":129.9,"market_price":299,"goods_img":"https://image.yunifang.com/yunifang/images/goods/2076/goods_img/170930212555714134276722977.jpg","reservable":false,"efficacy":"果然水润 嫩颜美莓","stock_number":0,"restrict_purchase_num":0,"goodsName":"水润指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17101119283583452898243380.jpg","description":"畅享鲜果派对,肌肤水嫩鲜活,萃取自然野草莓、黑莓、巴西莓精华,三款搭配持续水嫩鲜活~"},{"id":"1189","goods_name":"清透盈润面膜套装21片","shop_price":79.9,"market_price":297,"goods_img":"https://image.yunifang.com/yunifang/images/goods/1189/goods_img/17093019432252555150652465.jpg","reservable":false,"efficacy":"水感剔透 鲜颜嫩肌","stock_number":0,"restrict_purchase_num":0,"goodsName":"鲜嫩指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17101119312216937168845205.jpg","description":"精选玫瑰、竹萃自然精粹,清洁力、补水力、亮泽度全新升级,另肌肤水感剔透~"},{"id":"1638","goods_name":"全新升级丨嫩肌酵素黑膜礼盒21片","shop_price":139.9,"market_price":299,"goods_img":"https://image.yunifang.com/yunifang/images/goods/1638/goods_img/170905151496114997886544712.jpg","reservable":false,"efficacy":"极地酵素 \u201c酵\u201d醒美肌","stock_number":0,"restrict_purchase_num":0,"goodsName":"推荐指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170905182614314997886548523.jpg","description":"蕴含南极活性补水酵素精华,持久补水锁水,轻蔬鲜果酵素助力平衡水油~"},{"id":"1830","goods_name":"新品尝鲜|水润茶萃微囊黑面膜20片","shop_price":129.9,"market_price":297,"goods_img":"https://image.yunifang.com/yunifang/images/goods/1830/goods_img/17063017284962337647468682.jpg","reservable":false,"efficacy":"只要一片 水润一天","stock_number":0,"restrict_purchase_num":0,"goodsName":"新品推荐:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1705240026717476518778188.jpg","description":"茶萃微囊精华,开创持续保湿新体验,只要一片,水润一天,持续保湿12小时以上"},{"id":"2091","goods_name":"新品上市丨V7伪妆素颜霜20g","shop_price":79,"market_price":79,"goods_img":"https://image.yunifang.com/yunifang/images/goods/2091/goods_img/170905172822119555059792173.jpg","reservable":false,"efficacy":"即刻提亮 闪亮肤色","stock_number":0,"restrict_purchase_num":0,"goodsName":"遮瑕指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1709051825818467283561992.jpg","description":"如果你是素颜控,这款即刻提亮,闪亮肤色的懒人新品素颜霜你值得拥有~"},{"id":"2039","goods_name":"水润柔嫩黑膜21片","shop_price":89.9,"market_price":297,"goods_img":"https://image.yunifang.com/yunifang/images/goods/2039/goods_img/17093020002498271170145819.jpg","reservable":false,"efficacy":"自然纯粹 水润纯净","stock_number":0,"restrict_purchase_num":0,"goodsName":"补水指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/171011193181418890895139029.jpg","description":"精选龙头竹菁萃、牛油果精粹、黑珍珠精粹,给你自然纯粹,水润纯净体验~"},{"id":"745","goods_name":"全新升级丨晶亮红石榴面膜7片","shop_price":79,"market_price":89,"goods_img":"https://image.yunifang.com/yunifang/images/goods/745/goods_img/17081617418998795654179347.jpg","reservable":false,"efficacy":"深度排浊 一扫黯哑","stock_number":0,"restrict_purchase_num":0,"goodsName":"亮肤指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170816184151311258603701437.jpg","description":"萃取红石榴原液,滴滴蕴含鲜活能量,清洁排浊、透亮无瑕,改善粗糙黯哑小能手"},{"id":"1870","goods_name":"新品尝鲜|玉润雪肌黑白膜盒20片","shop_price":129.9,"market_price":297,"goods_img":"https://image.yunifang.com/yunifang/images/goods/1870/goods_img/17071909555120332464127704.jpg","reservable":false,"efficacy":"黑白膜力 美肌如玉","stock_number":0,"restrict_purchase_num":0,"goodsName":"新品推荐:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1707171037861467283567706.jpg","description":"白膜胶原蛋白精华,昼弹润生态库,黑膜三分子玻尿酸,夜补水先锋。黑白膜力,水肌如玉~"},{"id":"1919","goods_name":"透亮红酒酵力面膜21片","shop_price":129.9,"market_price":239,"goods_img":"https://image.yunifang.com/yunifang/images/goods/1919/goods_img/170630171021217601465422538.jpg","reservable":false,"efficacy":"红酒透亮 酵醒美肌","stock_number":0,"restrict_purchase_num":0,"goodsName":"亮肤指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170630224599017601465422520.jpg","description":"全新添加西班牙酵母发酵液,融合法国红酒多酚亮肤成分,加乘亮肤功效~"},{"id":"772","goods_name":"全新升级丨清润莹亮黑膜套装21片","shop_price":99.9,"market_price":297,"goods_img":"https://image.yunifang.com/yunifang/images/goods/772/goods_img/17090514228269026987111180.jpg","reservable":false,"efficacy":"自然莹亮 水感瓷肌","stock_number":0,"restrict_purchase_num":0,"goodsName":"水亮能量:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1709191414112467283564077.jpg","description":"自然莹亮,水感瓷肌,精选龙头竹、葡萄籽,演绎水亮二重奏~"},{"id":"487","goods_name":"海洋弹性蛋白矿物精华眼霜25g","shop_price":139,"market_price":169,"goods_img":"https://image.yunifang.com/yunifang/images/goods/487/goods_img/170626101843492134395965.jpg","reservable":false,"efficacy":"提拉紧致 润亮双眸","stock_number":0,"restrict_purchase_num":0,"goodsName":"抗皱指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1706151917130467283566572.jpg","description":"不要等到有皱纹了才想起用眼霜,不要让眼睛放大你的年龄,每一滴自然精粹,都为你打造明亮双眸~"},{"id":"1281","goods_name":"新品眼霜丨红石榴矿物眼霜25g","shop_price":129,"market_price":159,"goods_img":"https://image.yunifang.com/yunifang/images/goods/1281/goods_img/170626102555811776047044227.jpg","reservable":false,"efficacy":"淡退黑眼圈 净彻排浊","stock_number":0,"restrict_purchase_num":0,"goodsName":"抗皱指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1706151918330467283566999.jpg","description":"熊猫眼克星!多种植物精粹,天然舒活肌肤水通道,清爽不油腻,好吸收,和细纹说拜拜~"}],"goodsIdsList":["492","2076","1923","1189","1638","1830","2091","2039","745","1870","1919","772","1280","487","1281","1250"],"goodsRelationList":[{"id":"14815","subject_id":"84","goods_id":"492","goodsName":"PG one热荐:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/171011192212214258195254179.jpg","description":"三重植物精粹,三重水润膜力,美时美刻,水润透亮~"},{"id":"14816","subject_id":"84","goods_id":"2076","goodsName":"水润指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17101119283583452898243380.jpg","description":"畅享鲜果派对,肌肤水嫩鲜活,萃取自然野草莓、黑莓、巴西莓精华,三款搭配持续水嫩鲜活~"},{"id":"14817","subject_id":"84","goods_id":"1923","goodsName":"美白指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170816184068619872110797032.jpg","description":"真美白,匠心造!全新升级美白嫩肤面膜,多种美白成分助力美白,国家权威美白特证安全放心~"},{"id":"14818","subject_id":"84","goods_id":"1189","goodsName":"鲜嫩指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17101119312216937168845205.jpg","description":"精选玫瑰、竹萃自然精粹,清洁力、补水力、亮泽度全新升级,另肌肤水感剔透~"},{"id":"14819","subject_id":"84","goods_id":"1638","goodsName":"推荐指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170905182614314997886548523.jpg","description":"蕴含南极活性补水酵素精华,持久补水锁水,轻蔬鲜果酵素助力平衡水油~"},{"id":"14820","subject_id":"84","goods_id":"1830","goodsName":"新品推荐:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1705240026717476518778188.jpg","description":"茶萃微囊精华,开创持续保湿新体验,只要一片,水润一天,持续保湿12小时以上"},{"id":"14821","subject_id":"84","goods_id":"2091","goodsName":"遮瑕指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1709051825818467283561992.jpg","description":"如果你是素颜控,这款即刻提亮,闪亮肤色的懒人新品素颜霜你值得拥有~"},{"id":"14822","subject_id":"84","goods_id":"2039","goodsName":"补水指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/171011193181418890895139029.jpg","description":"精选龙头竹菁萃、牛油果精粹、黑珍珠精粹,给你自然纯粹,水润纯净体验~"},{"id":"14823","subject_id":"84","goods_id":"745","goodsName":"亮肤指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170816184151311258603701437.jpg","description":"萃取红石榴原液,滴滴蕴含鲜活能量,清洁排浊、透亮无瑕,改善粗糙黯哑小能手"},{"id":"14824","subject_id":"84","goods_id":"1870","goodsName":"新品推荐:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1707171037861467283567706.jpg","description":"白膜胶原蛋白精华,昼弹润生态库,黑膜三分子玻尿酸,夜补水先锋。黑白膜力,水肌如玉~"},{"id":"14825","subject_id":"84","goods_id":"1919","goodsName":"亮肤指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170630224599017601465422520.jpg","description":"全新添加西班牙酵母发酵液,融合法国红酒多酚亮肤成分,加乘亮肤功效~"},{"id":"14826","subject_id":"84","goods_id":"772","goodsName":"水亮能量:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1709191414112467283564077.jpg","description":"自然莹亮,水感瓷肌,精选龙头竹、葡萄籽,演绎水亮二重奏~"},{"id":"14827","subject_id":"84","goods_id":"1280","goodsName":"遮瑕指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17051609285005287026507049.jpg","description":"日本进口粉扑,云母成分强遮瑕,接触肌肤绵密柔软,粉体细腻,妆感轻薄,完美遮瑕~"},{"id":"14828","subject_id":"84","goods_id":"487","goodsName":"抗皱指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1706151917130467283566572.jpg","description":"不要等到有皱纹了才想起用眼霜,不要让眼睛放大你的年龄,每一滴自然精粹,都为你打造明亮双眸~"},{"id":"14829","subject_id":"84","goods_id":"1281","goodsName":"抗皱指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1706151918330467283566999.jpg","description":"熊猫眼克星!多种植物精粹,天然舒活肌肤水通道,清爽不油腻,好吸收,和细纹说拜拜~"},{"id":"14830","subject_id":"84","goods_id":"1250","goodsName":"抗氧化指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1706021026770467283563014.jpg","description":"你的梳妆台必不可少一瓶面霜,告别熬夜和岁月留下的黄脸,为肌肤注入鲜活能量。"}],"url":"http://h.yunifang.com/goods/subject.html?id=84","wapUrl":"http://vip.yunifang.com/goods/subject.html?id=84"},{"id":"85","title":"玫瑰系列","detail":"大马士革玫瑰 ,天然补水之选\n沙漠玫瑰 ,优质锁水之源\n打造花漾透润,奢宠水嫩肌","image":"https://image.yunifang.com/yunifang/images/goods/temp/17051609349138679665088294.jpg","start_time":"2017.05.16 09:34:46","end_time":"2017.10.31 00:00:00","show_number":6,"state":"1","sort":0,"descImage":"https://image.yunifang.com/yunifang/images/goods/temp/17051609348383766880399479.jpg","template":"templateDefault","goodsList":[{"id":"16","goods_name":"热销套装丨玫瑰滋养保湿四件套","shop_price":169.9,"market_price":259.9,"goods_img":"https://image.yunifang.com/yunifang/images/goods/16/goods_img/17062611152592656236701367.jpg","reservable":false,"efficacy":"一整套源源补水","stock_number":0,"restrict_purchase_num":0,"goodsName":"补水指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17051609358507874536438833.jpg","description":"明星同款四件套,沙漠玫瑰精萃持久保湿,配合同款睡眠面膜保湿更持久~"},{"id":"87","goods_name":"全新升级丨玫瑰滋养面膜7片","shop_price":89,"market_price":89,"goods_img":"https://image.yunifang.com/yunifang/images/goods/87/goods_img/170904211885816205585811962.jpg","reservable":false,"efficacy":"岂止补水 更能锁水","stock_number":0,"restrict_purchase_num":0,"goodsName":"补水指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1709051823381467283568718.jpg","description":"岂止补水,更能锁水,如沐玫瑰清泉,远离干渴沙肌~"},{"id":"101","goods_name":"玫瑰滋养矿物洁面乳100ml","shop_price":29.9,"market_price":59,"goods_img":"https://image.yunifang.com/yunifang/images/goods/101/goods_img/170626105885015353255525556.jpg","reservable":false,"efficacy":"温和清洁 补水保湿","stock_number":0,"restrict_purchase_num":0,"goodsName":"清洁指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170516093764320738763251731.jpg","description":"有淡淡玫瑰花香,细腻低泡质地,洗完水润清爽,补水锁水,脸部不紧绷~"},{"id":"9","goods_name":"玫瑰滋养矿物睡眠面膜180g","shop_price":59.9,"market_price":99,"goods_img":"https://image.yunifang.com/yunifang/images/goods/9/goods_img/170626112611018894167156705.jpg","reservable":false,"efficacy":"镇店之宝 彻夜补水","stock_number":0,"restrict_purchase_num":0,"goodsName":"推荐指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170516093920020890610623903.jpg","description":"晚上洁面后,用完水乳,再涂上薄薄的一层,翌日起来,皮肤弹润有光泽,上妆也完全不担心会脱妆~"},{"id":"336","goods_name":"玫瑰滋养矿物润肤乳液","shop_price":69,"market_price":129,"goods_img":"https://image.yunifang.com/yunifang/images/goods/336/goods_img/170626103574019791491356888.jpg","reservable":false,"efficacy":"长效保湿 持久滋养","stock_number":0,"restrict_purchase_num":0,"goodsName":"保湿指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170516093939713507603809610.jpg","description":"它可以说是保湿小助手,有它在,肌肤干燥、皮肤油腻,通通解决~"},{"id":"187","goods_name":"玫瑰滋养基础三件套","shop_price":149.9,"market_price":179.9,"goods_img":"https://image.yunifang.com/yunifang/images/goods/187/goods_img/17062610472505220941898288.jpg","reservable":false,"efficacy":"多倍补水 长效保湿","stock_number":0,"restrict_purchase_num":0,"goodsName":"补水指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17051609414379789618916490.jpg","description":"超能补水,柔美的粉红色,淡淡的玫瑰香,闻起来特别舒服,保湿很明显~"},{"id":"315","goods_name":"玫瑰滋养矿物润肤水","shop_price":65,"market_price":109,"goods_img":"https://image.yunifang.com/yunifang/images/goods/315/goods_img/17062610389695661847862326.jpg","reservable":false,"efficacy":"持久保湿 静享芬芳","stock_number":0,"restrict_purchase_num":0,"goodsName":"补水指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17051609422120971403077934.jpg","description":"巧妙融合\u201c双重瑰宝\u201d萃取精华,\u201c黄金\u201d补水库,可使肌肤水嫩Q弹~"}],"goodsIdsList":["16","87","101","9","336","187","315"],"goodsRelationList":[{"id":"14299","subject_id":"85","goods_id":"16","goodsName":"补水指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17051609358507874536438833.jpg","description":"明星同款四件套,沙漠玫瑰精萃持久保湿,配合同款睡眠面膜保湿更持久~"},{"id":"14300","subject_id":"85","goods_id":"87","goodsName":"补水指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1709051823381467283568718.jpg","description":"岂止补水,更能锁水,如沐玫瑰清泉,远离干渴沙肌~"},{"id":"14301","subject_id":"85","goods_id":"101","goodsName":"清洁指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170516093764320738763251731.jpg","description":"有淡淡玫瑰花香,细腻低泡质地,洗完水润清爽,补水锁水,脸部不紧绷~"},{"id":"14302","subject_id":"85","goods_id":"9","goodsName":"推荐指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170516093920020890610623903.jpg","description":"晚上洁面后,用完水乳,再涂上薄薄的一层,翌日起来,皮肤弹润有光泽,上妆也完全不担心会脱妆~"},{"id":"14303","subject_id":"85","goods_id":"336","goodsName":"保湿指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170516093939713507603809610.jpg","description":"它可以说是保湿小助手,有它在,肌肤干燥、皮肤油腻,通通解决~"},{"id":"14304","subject_id":"85","goods_id":"187","goodsName":"补水指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17051609414379789618916490.jpg","description":"超能补水,柔美的粉红色,淡淡的玫瑰香,闻起来特别舒服,保湿很明显~"},{"id":"14305","subject_id":"85","goods_id":"315","goodsName":"补水指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17051609422120971403077934.jpg","description":"巧妙融合\u201c双重瑰宝\u201d萃取精华,\u201c黄金\u201d补水库,可使肌肤水嫩Q弹~"}],"url":"http://h.yunifang.com/goods/subject.html?id=85","wapUrl":"http://vip.yunifang.com/goods/subject.html?id=85"},{"id":"86","title":"清爽系列","detail":"温度变化、空气污染、电脑辐射等易引起的肌肤出油,玉竹贡竹的清新搭配,悦享净透清爽~","image":"https://image.yunifang.com/yunifang/images/goods/temp/17101116265017851243534104.jpg","start_time":"2017.05.16 09:44:13","end_time":"2018.01.31 00:00:00","show_number":6,"state":"1","sort":0,"descImage":"https://image.yunifang.com/yunifang/images/goods/temp/170516094973114360348144160.jpg","template":"templateDefault","goodsList":[{"id":"189","goods_name":"控油必备丨清爽平衡护肤三件套","shop_price":99.9,"market_price":179.9,"goods_img":"https://image.yunifang.com/yunifang/images/goods/189/goods_img/1706261046499486999388441.jpg","reservable":false,"efficacy":"深层清洁 平衡水油","stock_number":0,"restrict_purchase_num":0,"goodsName":"控油指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170516095132819066095187324.jpg","description":"大油田的救星,水和乳的质地都很清爽,轻薄完全不油腻,味道也很好闻没有很刺鼻的香气~"},{"id":"341","goods_name":"清爽平衡矿物爽肤乳液120ml","shop_price":79,"market_price":129,"goods_img":"https://image.yunifang.com/yunifang/images/goods/341/goods_img/17062610346813637236975691.jpg","reservable":false,"efficacy":"补水保湿 清爽控油","stock_number":0,"restrict_purchase_num":0,"goodsName":"控油指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170628154348413637236979205.jpg","description":"油性肌肤的烦恼需要从根源解决问题,该乳液蕴含玉竹精粹,可通过调节油脂平衡,告别油腻烦恼~"},{"id":"141","goods_name":"清爽平衡矿物睡眠面膜180g","shop_price":69.9,"market_price":79.9,"goods_img":"https://image.yunifang.com/yunifang/images/goods/141/goods_img/170626105338416020006362606.jpg","reservable":false,"efficacy":"平衡水油 清爽净透","stock_number":0,"restrict_purchase_num":0,"goodsName":"推荐指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170628154358216020006362358.jpg","description":"油皮妹纸们必备的懒人神器,睡前一抹,整晚无忧,让肌肤在睡眠中变得清新润泽~"},{"id":"313","goods_name":"清爽平衡矿物爽肤水150ml","shop_price":65,"market_price":109,"goods_img":"https://image.yunifang.com/yunifang/images/goods/313/goods_img/17062610398875573627694321.jpg","reservable":false,"efficacy":"补水控油 收敛毛孔","stock_number":0,"restrict_purchase_num":0,"goodsName":"清爽指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17062815439285573627696368.jpg","description":"二次清洁小助手,\u201c大油田\u201d必备,精选玉竹精萃,这个夏天做个不油腻\u201c小清新\u201d~"},{"id":"11","goods_name":"清爽平衡矿物泥浆面膜260g","shop_price":99,"market_price":99,"goods_img":"https://image.yunifang.com/yunifang/images/goods/11/goods_img/170626112085420599974158029.jpg","reservable":false,"efficacy":"口碑泥浆 清爽控油","stock_number":0,"restrict_purchase_num":0,"goodsName":"口碑指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170628154316020599974151881.jpg","description":"整整一大瓶,对抗油田、草莓鼻、粗毛孔无忧虑,从此清新无油,爱上自拍,和美颜相机说拜拜~"},{"id":"559","goods_name":"竹炭净透矿物泥浆面膜110g","shop_price":59,"market_price":99,"goods_img":"https://image.yunifang.com/yunifang/images/goods/559/goods_img/170627164784010618075663103.jpg","reservable":false,"efficacy":"控油净肤 细腻毛孔","stock_number":0,"restrict_purchase_num":0,"goodsName":"控油指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170628154343010618075663627.jpg","description":"控油能力较好,竹炭味道清新,质地温和,能带走多余油脂,维持肌肤油脂平衡~"}],"goodsIdsList":["189","341","141","313","11","559"],"goodsRelationList":[{"id":"14745","subject_id":"86","goods_id":"189","goodsName":"控油指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170516095132819066095187324.jpg","description":"大油田的救星,水和乳的质地都很清爽,轻薄完全不油腻,味道也很好闻没有很刺鼻的香气~"},{"id":"14746","subject_id":"86","goods_id":"341","goodsName":"控油指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170628154348413637236979205.jpg","description":"油性肌肤的烦恼需要从根源解决问题,该乳液蕴含玉竹精粹,可通过调节油脂平衡,告别油腻烦恼~"},{"id":"14747","subject_id":"86","goods_id":"141","goodsName":"推荐指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170628154358216020006362358.jpg","description":"油皮妹纸们必备的懒人神器,睡前一抹,整晚无忧,让肌肤在睡眠中变得清新润泽~"},{"id":"14748","subject_id":"86","goods_id":"313","goodsName":"清爽指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17062815439285573627696368.jpg","description":"二次清洁小助手,\u201c大油田\u201d必备,精选玉竹精萃,这个夏天做个不油腻\u201c小清新\u201d~"},{"id":"14749","subject_id":"86","goods_id":"11","goodsName":"口碑指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170628154316020599974151881.jpg","description":"整整一大瓶,对抗油田、草莓鼻、粗毛孔无忧虑,从此清新无油,爱上自拍,和美颜相机说拜拜~"},{"id":"14750","subject_id":"86","goods_id":"559","goodsName":"控油指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170628154343010618075663627.jpg","description":"控油能力较好,竹炭味道清新,质地温和,能带走多余油脂,维持肌肤油脂平衡~"}],"url":"http://h.yunifang.com/goods/subject.html?id=86","wapUrl":"http://vip.yunifang.com/goods/subject.html?id=86"},{"id":"89","title":"美白系列","detail":"3年研究成果\n5种植物复配美白精华\n滴滴渗透,淡化黑色素\n美白层层递增恢复自然白皙","image":"https://image.yunifang.com/yunifang/images/goods/temp/17051612377286522760845671.jpg","start_time":"2017.05.16 12:38:21","end_time":"2017.11.30 00:00:00","show_number":6,"state":"1","sort":0,"descImage":"https://image.yunifang.com/yunifang/images/goods/temp/170516123730510604321177291.jpg","template":"templateDefault","goodsList":[{"id":"8","goods_name":"全新升级丨美白嫩肤面膜20片","shop_price":129.9,"market_price":359,"goods_img":"https://image.yunifang.com/yunifang/images/goods/8/goods_img/170818182578717903477668239.jpg","reservable":false,"efficacy":"真美白 匠心造","stock_number":0,"restrict_purchase_num":0,"goodsName":"美白指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17081618370419872110796752.jpg","description":"真美白,匠心造!全新升级美白嫩肤面膜,多种美白成分助力美白,国家权威美白特证安全放心~"},{"id":"185","goods_name":"美白嫩肤护肤基础三件套装","shop_price":169.9,"market_price":209.9,"goods_img":"https://image.yunifang.com/yunifang/images/goods/185/goods_img/170626104732716695049042487.jpg","reservable":false,"efficacy":"温和清洁 补水美白","stock_number":0,"restrict_purchase_num":0,"goodsName":"美白指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170630224949016695049047380.jpg","description":"美白嫩肤,名字是代表,品质是保证,还有什么可犹豫的~"},{"id":"10","goods_name":"美白嫩肤睡眠面膜180g","shop_price":69,"market_price":119,"goods_img":"https://image.yunifang.com/yunifang/images/goods/10/goods_img/170626112190919312919673075.jpg","reservable":false,"efficacy":"补水美白 越睡越白","stock_number":0,"restrict_purchase_num":0,"goodsName":"美白指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170630224882619312919673312.jpg","description":"夜间是皮肤修复黄金期,若想修炼成白雪公主,每晚坚持使用效果更棒,白天也别忘防晒哦~"},{"id":"343","goods_name":"美白嫩肤润肤水150ml","shop_price":69,"market_price":119,"goods_img":"https://image.yunifang.com/yunifang/images/goods/343/goods_img/170626103423611420000294568.jpg","reservable":false,"efficacy":"补水保湿 美白嫩肤","stock_number":0,"restrict_purchase_num":0,"goodsName":"美白效果:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170630224836611420000297349.jpg","description":"质地不粘稠,洗完脸以后肌肤的第一道滋润,打开肌肤通道,助力美白营养成分吸收~"},{"id":"1101","goods_name":"美白嫩肤泥浆面膜110g","shop_price":69,"market_price":79,"goods_img":"https://image.yunifang.com/yunifang/images/goods/1101/goods_img/170627175248420984384699974.jpg","reservable":false,"efficacy":"清洁净透 美白嫩肤","stock_number":0,"restrict_purchase_num":0,"goodsName":"美白清洁:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170630224986120984384692751.jpg","description":"为了白,尝尽各种方法,然而效果不佳,这款泥浆,深层吸黑,草本焕白,国家美白特证放心体验~"},{"id":"121","goods_name":"镇店之宝丨美白嫩肤面膜7片","shop_price":49.9,"market_price":99,"goods_img":"https://image.yunifang.com/yunifang/images/goods/121/goods_img/17062610568378169043195978.jpg","reservable":false,"efficacy":"镇店之宝 美白爆款","stock_number":0,"restrict_purchase_num":0,"goodsName":"美白指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17072910225828169043193082.jpg","description":"15分钟亲肤享受,洗完脸以后肌肤的第一道滋润,打开肌肤通道,助力美白营养成分吸收~"}],"goodsIdsList":["8","185","10","343","1101","121"],"goodsRelationList":[{"id":"14443","subject_id":"89","goods_id":"8","goodsName":"美白指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17081618370419872110796752.jpg","description":"真美白,匠心造!全新升级美白嫩肤面膜,多种美白成分助力美白,国家权威美白特证安全放心~"},{"id":"14444","subject_id":"89","goods_id":"185","goodsName":"美白指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170630224949016695049047380.jpg","description":"美白嫩肤,名字是代表,品质是保证,还有什么可犹豫的~"},{"id":"14445","subject_id":"89","goods_id":"10","goodsName":"美白指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170630224882619312919673312.jpg","description":"夜间是皮肤修复黄金期,若想修炼成白雪公主,每晚坚持使用效果更棒,白天也别忘防晒哦~"},{"id":"14446","subject_id":"89","goods_id":"343","goodsName":"美白效果:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170630224836611420000297349.jpg","description":"质地不粘稠,洗完脸以后肌肤的第一道滋润,打开肌肤通道,助力美白营养成分吸收~"},{"id":"14447","subject_id":"89","goods_id":"1101","goodsName":"美白清洁:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170630224986120984384692751.jpg","description":"为了白,尝尽各种方法,然而效果不佳,这款泥浆,深层吸黑,草本焕白,国家美白特证放心体验~"},{"id":"14448","subject_id":"89","goods_id":"121","goodsName":"美白指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17072910225828169043193082.jpg","description":"15分钟亲肤享受,洗完脸以后肌肤的第一道滋润,打开肌肤通道,助力美白营养成分吸收~"}],"url":"http://h.yunifang.com/goods/subject.html?id=89","wapUrl":"http://vip.yunifang.com/goods/subject.html?id=89"},{"id":"88","title":"红石榴系列","detail":"肌肤好像透着光\n每一滴红石榴原液含有护肤精粹\n赋予黯哑粗糙肌肤鲜润魅力\n红石榴不仅蕴含多种维他命矿物,更含有石榴多酚和花青素,渗透肌底,深层排浊,自内焕发肌肤红润光泽~\n","image":"https://image.yunifang.com/yunifang/images/goods/temp/170516122967511806265329475.jpg","start_time":"2017.05.16 12:29:44","end_time":"2017.10.31 00:00:00","show_number":6,"state":"1","sort":0,"descImage":"https://image.yunifang.com/yunifang/images/goods/temp/170516122975121341081719659.jpg","template":"templateDefault","goodsList":[{"id":"99","goods_name":"红石榴矿物洁面乳100ml","shop_price":29.9,"market_price":59,"goods_img":"https://image.yunifang.com/yunifang/images/goods/99/goods_img/170626105849718932898868035.jpg","reservable":false,"efficacy":"温和清洁 提亮肤色","stock_number":0,"restrict_purchase_num":0,"goodsName":"清洁指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17051612304946692218255625.jpg","description":"泡沫绵密,清扫毛孔浊质,助力鲜活补水,红石榴精华唤醒肌肤鲜活动力~"},{"id":"71","goods_name":"性价比之王|红石榴矿物补水亮肤十件套","shop_price":159.99,"market_price":319.9,"goods_img":"https://image.yunifang.com/yunifang/images/goods/71/goods_img/170914091495612767354095021.jpg","reservable":false,"efficacy":"补水亮肤 改善黯哑","stock_number":0,"restrict_purchase_num":0,"goodsName":"亮肤保湿:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170516123365218037277371021.jpg","description":"小仙女们都知道,红石榴有提亮肤色的功效,这款套装炒鸡滋润,而且不油腻,红色大气包装更能俘获人心~"},{"id":"1281","goods_name":"新品眼霜丨红石榴矿物眼霜25g","shop_price":129,"market_price":159,"goods_img":"https://image.yunifang.com/yunifang/images/goods/1281/goods_img/170626102555811776047044227.jpg","reservable":false,"efficacy":"淡退黑眼圈 净彻排浊","stock_number":0,"restrict_purchase_num":0,"goodsName":"淡化眼圈:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170729102668111776047045132.jpg","description":"熊猫眼克星!多种植物精粹,天然舒活肌肤水通道。清爽不油腻,好吸收,细纹看着浅。"},{"id":"151","goods_name":"红石榴鲜活矿物睡眠面膜180g","shop_price":99,"market_price":119,"goods_img":"https://image.yunifang.com/yunifang/images/goods/151/goods_img/170626105075810681841436827.jpg","reservable":false,"efficacy":"源源养护 鲜活亮颜","stock_number":0,"restrict_purchase_num":0,"goodsName":"提亮指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170729102811710681841435351.jpg","description":"看得见的鲜活粒子,增添肌肤鲜活能量!啫喱态的面膜,质地清爽不油腻!"}],"goodsIdsList":["99","1652","1250","71","1281","151"],"goodsRelationList":[{"id":"13960","subject_id":"88","goods_id":"99","goodsName":"清洁指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17051612304946692218255625.jpg","description":"泡沫绵密,清扫毛孔浊质,助力鲜活补水,红石榴精华唤醒肌肤鲜活动力~"},{"id":"13961","subject_id":"88","goods_id":"1652","goodsName":"亮肤指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170516123680716693836711273.jpg","description":"红石榴精华有助于打散黑色素群,提亮肤色更给力,肤色暗黄的小伙伴们看过来~"},{"id":"13962","subject_id":"88","goods_id":"1250","goodsName":"抗氧化:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170516123022219451838196701.jpg","description":"你的梳妆台必不可少一瓶面霜,告别熬夜和岁月留下的黄脸,为肌肤注入鲜活能量~"},{"id":"13963","subject_id":"88","goods_id":"71","goodsName":"亮肤保湿:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170516123365218037277371021.jpg","description":"小仙女们都知道,红石榴有提亮肤色的功效,这款套装炒鸡滋润,而且不油腻,红色大气包装更能俘获人心~"},{"id":"13964","subject_id":"88","goods_id":"1281","goodsName":"淡化眼圈:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170729102668111776047045132.jpg","description":"熊猫眼克星!多种植物精粹,天然舒活肌肤水通道。清爽不油腻,好吸收,细纹看着浅。"},{"id":"13965","subject_id":"88","goods_id":"151","goodsName":"提亮指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170729102811710681841435351.jpg","description":"看得见的鲜活粒子,增添肌肤鲜活能量!啫喱态的面膜,质地清爽不油腻!"}],"url":"http://h.yunifang.com/goods/subject.html?id=88","wapUrl":"http://vip.yunifang.com/goods/subject.html?id=88"},{"id":"101","title":"黑玫瑰系列","detail":"层层筛选优质黑玫瑰\n黑玫瑰精粹含单宁酸及植物多酚\n解决肌肤黯哑不均,显著提亮","image":"https://image.yunifang.com/yunifang/images/goods/temp/170731095719116873211372276.jpg","start_time":"2017.07.25 00:00:00","end_time":"2018.01.31 00:00:00","show_number":6,"state":"1","sort":0,"descImage":"https://image.yunifang.com/yunifang/images/goods/temp/17073109575402630402867921.jpg","template":"templateDefault","goodsList":[{"id":"4","goods_name":"黑玫瑰矿物洁面乳100ml","shop_price":49,"market_price":59,"goods_img":"https://image.yunifang.com/yunifang/images/goods/4/goods_img/17062611262464209534577694.jpg","reservable":false,"efficacy":"温和清洁 提亮肤色","stock_number":0,"restrict_purchase_num":0,"goodsName":"清洁提亮:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17073110055984209534577564.jpg","description":"泡沫细腻,清洁清洁肌肤,一扫城市雾霾导致的肌肤污垢,同时黑玫瑰精粹由内而外提亮肤色~"},{"id":"1805","goods_name":"黑玫瑰护肤基础三件套","shop_price":269.9,"market_price":387,"goods_img":"https://image.yunifang.com/yunifang/images/goods/1805/goods_img/17050414108281642074189987.jpg","reservable":false,"efficacy":"击退黯哑 提亮莹润","stock_number":0,"restrict_purchase_num":0,"goodsName":"推荐指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170731100820019181327789327.jpg","description":"3重亮肤能量,层层淡化黯哑,给予肌肤奢宠养护~"},{"id":"127","goods_name":"黑玫瑰泥浆面膜260g","shop_price":199,"market_price":199,"goods_img":"https://image.yunifang.com/yunifang/images/goods/127/goods_img/170626145396916224693431300.jpg","reservable":false,"efficacy":"滋养润滑 提亮肤色","stock_number":0,"restrict_purchase_num":0,"goodsName":"清洁亮肤:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170731101056416224693431021.jpg","description":"大多肌肤问题源于脸部清洁不当,黑玫瑰泥浆解决护肤根本问题~"},{"id":"245","goods_name":"黑玫瑰睡眠面膜护肤四件套装","shop_price":429.9,"market_price":539.9,"goods_img":"https://image.yunifang.com/yunifang/images/goods/245/goods_img/17062610416972131702264912.jpg","reservable":false,"efficacy":"滋养肌肤 提亮肤色","stock_number":0,"restrict_purchase_num":0,"goodsName":"综合指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1707311016882131702267162.jpg","description":"一套护肤装备,解决肌肤粗糙暗沉,熟龄肌首选~"}],"goodsIdsList":["403","4","1805","127","83","245"],"goodsRelationList":[{"id":"13947","subject_id":"101","goods_id":"403","goodsName":"推荐指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1707311002441167403859909.jpg","description":"黑玫瑰精粹集于一瓶,一小瓶精华液唤醒肌肤夺目光彩"},{"id":"13948","subject_id":"101","goods_id":"4","goodsName":"清洁提亮:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17073110055984209534577564.jpg","description":"泡沫细腻,清洁清洁肌肤,一扫城市雾霾导致的肌肤污垢,同时黑玫瑰精粹由内而外提亮肤色~"},{"id":"13949","subject_id":"101","goods_id":"1805","goodsName":"推荐指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170731100820019181327789327.jpg","description":"3重亮肤能量,层层淡化黯哑,给予肌肤奢宠养护~"},{"id":"13950","subject_id":"101","goods_id":"127","goodsName":"清洁亮肤:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170731101056416224693431021.jpg","description":"大多肌肤问题源于脸部清洁不当,黑玫瑰泥浆解决护肤根本问题~"},{"id":"13951","subject_id":"101","goods_id":"83","goodsName":"补水提亮:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17073110134825656554699188.jpg","description":"15分钟亲肤享受,敷面膜时黑玫瑰自然清新的花香令人身心愉悦,于芬芳中绽放美好气色~"},{"id":"13952","subject_id":"101","goods_id":"245","goodsName":"综合指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1707311016882131702267162.jpg","description":"一套护肤装备,解决肌肤粗糙暗沉,熟龄肌首选~"}],"url":"http://h.yunifang.com/goods/subject.html?id=101","wapUrl":"http://vip.yunifang.com/goods/subject.html?id=101"}]
         * activityInfo : {"activityAreaDisplay":"1","activityInfoList":[{"id":"60","activityImg":"https://image.yunifang.com/yunifang/images/goods/temp/170527155491221343694704636.jpg","activityType":"60","activityData":"69","activityDataDetail":"69","activityAreaDisplay":"1","countDownEnable":"0","remark":"搭配购买立减","sort":0},{"id":"21","activityImg":"https://image.yunifang.com/yunifang/images/goods/temp/17051718251658680692616281.jpg","activityType":"1","activityData":"http://h.yunifang.com/invite/invite.html?login_check=2","activityDataDetail":"http%3A%2F%2Fh.yunifang.com%2Finvite%2Finvite.html%3Flogin_check%3D2","activityAreaDisplay":"1","countDownEnable":"0","sort":0}]}
         * ad1 : [{"id":"1147","createtime":"2017.10.09 08:33:42","lastupdatetime":"2017.10.09 08:33:46","image":"https://image.yunifang.com/yunifang/images/goods/ad0/17100908319495742677657462.jpg","ad_type":0,"sort":1414,"position":0,"enabled":1,"createuser":"leiqi","lastupdateuser":"leiqi","ad_type_dynamic":"1","ad_type_dynamic_data":"http://h.yunifang.com/h/comment.html","ad_type_dynamic_detail":"http%3A%2F%2Fh.yunifang.com%2Fh%2Fcomment.html","title":"10月商品好评有礼","channelType":"0"},{"id":"1047","createtime":"2017.07.05 19:49:35","lastupdatetime":"2017.09.28 22:16:07","image":"https://image.yunifang.com/yunifang/images/goods/ad0/170905143497021095281713081.jpg","ad_type":0,"sort":1404,"position":0,"enabled":1,"createuser":"hani","lastupdateuser":"leiqi","ad_type_dynamic":"2","ad_type_dynamic_data":"8","ad_type_dynamic_detail":"8","show_channel":"1,2,3,4","title":"美白嫩肤新品面膜","channelType":"0"},{"id":"1055","createtime":"2017.07.19 14:52:20","lastupdatetime":"2017.10.09 10:53:21","image":"https://image.yunifang.com/yunifang/images/goods/ad0/170905143499118006873413769.jpg","ad_type":0,"sort":1403,"position":0,"enabled":1,"createuser":"xicheng","lastupdateuser":"hani","ad_type_dynamic":"2","ad_type_dynamic_data":"1870","ad_type_dynamic_detail":"1870","show_channel":"1,2,3,4","title":"820玉润雪肌膜盒","channelType":"0"},{"id":"1088","createtime":"2017.08.23 09:32:02","lastupdatetime":"2017.09.28 10:24:57","image":"https://image.yunifang.com/yunifang/images/goods/ad0/170823222049920659891841095.jpg","ad_type":0,"sort":1400,"position":0,"enabled":1,"createuser":"hani","lastupdateuser":"xicheng","ad_type_dynamic":"1","ad_type_dynamic_data":"http://h.yunifang.com/h/video.html","ad_type_dynamic_detail":"http%3A%2F%2Fh.yunifang.com%2Fh%2Fvideo.html","show_channel":"1,2,3,4","title":"国货力量","channelType":"0"}]
         * ad5 : [{"id":"359","image":"https://image.yunifang.com/yunifang/images/goods/ad0/170516143575610973073847273.png","ad_type":4,"sort":295,"position":5,"enabled":0,"ad_type_dynamic":"1","ad_type_dynamic_data":"http://h.yunifang.com/sign/sign.html?login_check=2","ad_type_dynamic_detail":"http%3A%2F%2Fh.yunifang.com%2Fsign%2Fsign.html%3Flogin_check%3D2","show_channel":"1,2","title":"每日签到"},{"id":"358","image":"https://image.yunifang.com/yunifang/images/goods/ad0/170516143522410954603429327.png","ad_type":1,"url":"http://mobile.hmeili.com/yunifang/web/member/gift","sort":293,"position":5,"enabled":0,"ad_type_dynamic":"1","ad_type_dynamic_data":"http://m.yunifang.com/yunifang/mobile/creditShop/loginDBShop?dbredirect=http://www.duiba.com.cn/chome/index&login_check=2","ad_type_dynamic_detail":"http%3A%2F%2Fm.yunifang.com%2Fyunifang%2Fmobile%2FcreditShop%2FloginDBShop%3Fdbredirect%3Dhttp%3A%2F%2Fwww.duiba.com.cn%2Fchome%2Findex%26login_check%3D2","show_channel":"1,2","title":"积分商城"},{"id":"357","image":"https://image.yunifang.com/yunifang/images/goods/ad0/170516143491410936133008135.png","ad_type":1,"url":"http://mobile.hmeili.com/yunifang/web/help/cash","sort":291,"position":5,"enabled":0,"ad_type_dynamic":"1","ad_type_dynamic_data":"http://h.yunifang.com/exchange/code_app.html?login_check=1","ad_type_dynamic_detail":"http%3A%2F%2Fh.yunifang.com%2Fexchange%2Fcode_app.html%3Flogin_check%3D1","show_channel":"1,2","title":"兑换专区"},{"id":"360","image":"https://image.yunifang.com/yunifang/images/goods/ad0/170516143497810917662585920.png","ad_type":1,"url":"http://www.yunifang.com/a/fangweichaxun/wap_fwcx.html","sort":289,"position":5,"enabled":0,"ad_type_dynamic":"1","ad_type_dynamic_data":"http://www.yunifang.com/a/fangweichaxun/wap_fwcx.html","ad_type_dynamic_detail":"http%3A%2F%2Fwww.yunifang.com%2Fa%2Ffangweichaxun%2Fwap_fwcx.html","show_channel":"1,2,3,4","title":"真伪查询"}]
         * ad8 : [{"id":"1056","image":"https://image.yunifang.com/yunifang/images/goods/ad0/170719150582816742818457761.png","ad_type":0,"sort":57,"position":8,"enabled":0,"description":"人气好物超值推荐","ad_type_dynamic":"1","ad_type_dynamic_data":"http://vip.yunifang.com/goods/recommend.html?id=87","ad_type_dynamic_detail":"http%3A%2F%2Fh.yunifang.com%2Fgoods%2Frecommend.html%3Fid%3D87","show_channel":"1,2,3,4","title":"新鲜每一天","goods":{"collect_count":0,"reservable":false,"restriction":0,"restrict_purchase_num":0,"is_coupon_allowed":false,"allocated_stock":0,"is_gift":0}},{"id":"954","image":"https://image.yunifang.com/yunifang/images/goods/ad0/171011094966420374041489003.jpg","ad_type":0,"sort":56,"position":8,"enabled":0,"description":"补水滢亮面膜礼盒","ad_type_dynamic":"1","ad_type_dynamic_data":"http://vip.yunifang.com/community_wap/theme-detail.html?id=14319","ad_type_dynamic_detail":"http%3A%2F%2Fvip.yunifang.com%2Fcommunity%2Ftheme-detail.html%3Fid%3D14319","show_channel":"1,2,3,4","title":"免费试用","goods":{"collect_count":0,"reservable":false,"restriction":0,"restrict_purchase_num":0,"is_coupon_allowed":false,"allocated_stock":0,"is_gift":0}},{"id":"1125","image":"https://image.yunifang.com/yunifang/images/goods/ad0/17093010304768203378533256.jpg","ad_type":0,"sort":54,"position":8,"enabled":0,"description":"解救干燥肌","ad_type_dynamic":"2","ad_type_dynamic_data":"16","ad_type_dynamic_detail":"16","show_channel":"1,2,3,4","title":"秋季热销","goods":{"collect_count":0,"reservable":false,"restriction":0,"restrict_purchase_num":0,"is_coupon_allowed":false,"allocated_stock":0,"is_gift":0}}]
         * defaultGoodsList : [{"id":"121","goods_name":"镇店之宝丨美白嫩肤面膜7片","shop_price":49.9,"market_price":99,"goods_img":"https://image.yunifang.com/yunifang/images/goods/121/goods_img/17062610568378169043195978.jpg","reservable":false,"efficacy":"镇店之宝 美白爆款","stock_number":0,"restrict_purchase_num":0},{"id":"389","goods_name":"热销爆款丨清爽平衡矿物黑面膜21片","shop_price":99.9,"market_price":297,"goods_img":"https://image.yunifang.com/yunifang/images/goods/389/goods_img/17062610265116850439553337.jpg","reservable":false,"efficacy":"以黑吸黑 净透亮肤","stock_number":0,"restrict_purchase_num":0},{"id":"684","goods_name":"解救肌渴丨花粹水润面膜套装10片","shop_price":29.9,"market_price":139,"goods_img":"https://image.yunifang.com/yunifang/images/goods/684/goods_img/17062610401397749701177609.jpg","reservable":false,"efficacy":"水润充盈 鲜嫩少女肌","stock_number":0,"restrict_purchase_num":0},{"id":"6","goods_name":"好用不贵丨亮颜水润蚕丝面膜(寂地定制版)","shop_price":59.9,"market_price":239.9,"goods_img":"https://image.yunifang.com/yunifang/images/goods/6/goods_img/170626112597120167739086821.jpg","reservable":false,"efficacy":"深层补水 提亮肤色","stock_number":0,"restrict_purchase_num":0},{"id":"772","goods_name":"全新升级丨清润莹亮黑膜套装21片","shop_price":99.9,"market_price":297,"goods_img":"https://image.yunifang.com/yunifang/images/goods/772/goods_img/17090514228269026987111180.jpg","reservable":false,"efficacy":"自然莹亮 水感瓷肌","stock_number":0,"restrict_purchase_num":0},{"id":"5","goods_name":"金桂花矿物眼膜贴60片","shop_price":69,"market_price":129,"goods_img":"https://image.yunifang.com/yunifang/images/goods/5/goods_img/170626112553213363513709796.jpg","reservable":false,"efficacy":"补水靓眼 改善熊猫眼","stock_number":0,"restrict_purchase_num":0}]
         * creditRecived : false
         * goodsSpreeActivity : {"id":"327","name":"10.13早场","startDate":"2017.10.13 10:00:00","endDate":"2017.10.13 16:00:00","status":"1","startSeconds":"-12118","endSeconds":"9481","isChecked":"0","goodsList":[{"id":"997","goodsSpreeId":"327","goodsId":"340","goodsName":"【使用期一年以上介意慎拍】黑玫瑰矿物柔肤乳液120ml","goodsImg":"https://image.yunifang.com/yunifang/images/goods/340/goods_img/170626103460417447209262417.jpg","marketPrice":169,"activityPrice":39.9,"salesRatio":0,"stockNumber":30,"releaseNumber":40},{"id":"998","goodsSpreeId":"327","goodsId":"1324","goodsName":"鲜气少女肌|水光轻灵焕彩面膜5片","goodsImg":"https://image.yunifang.com/yunifang/images/goods/1324/goods_img/170626102366110382576889824.jpg","marketPrice":129,"activityPrice":59.9,"salesRatio":0,"stockNumber":30,"releaseNumber":30},{"id":"999","goodsSpreeId":"327","goodsId":"903","goodsName":"绿豆原浆泥面膜100g","goodsImg":"https://image.yunifang.com/yunifang/images/goods/903/goods_img/170627180542017051678666200.jpg","marketPrice":99,"activityPrice":49.9,"salesRatio":0,"stockNumber":28,"releaseNumber":30}]}
         */

        private ActivityInfoBean activityInfo;
        private boolean creditRecived;
        private GoodsSpreeActivityBean goodsSpreeActivity;
        private List<SubjectsBean> subjects;
        private List<Ad1Bean> ad1;
        private List<Ad5Bean> ad5;
        private List<Ad8Bean> ad8;
        private List<DefaultGoodsListBean> defaultGoodsList;

        public ActivityInfoBean getActivityInfo() {
            return activityInfo;
        }

        public void setActivityInfo(ActivityInfoBean activityInfo) {
            this.activityInfo = activityInfo;
        }

        public boolean isCreditRecived() {
            return creditRecived;
        }

        public void setCreditRecived(boolean creditRecived) {
            this.creditRecived = creditRecived;
        }

        public GoodsSpreeActivityBean getGoodsSpreeActivity() {
            return goodsSpreeActivity;
        }

        public void setGoodsSpreeActivity(GoodsSpreeActivityBean goodsSpreeActivity) {
            this.goodsSpreeActivity = goodsSpreeActivity;
        }

        public List<SubjectsBean> getSubjects() {
            return subjects;
        }

        public void setSubjects(List<SubjectsBean> subjects) {
            this.subjects = subjects;
        }

        public List<Ad1Bean> getAd1() {
            return ad1;
        }

        public void setAd1(List<Ad1Bean> ad1) {
            this.ad1 = ad1;
        }

        public List<Ad5Bean> getAd5() {
            return ad5;
        }

        public void setAd5(List<Ad5Bean> ad5) {
            this.ad5 = ad5;
        }

        public List<Ad8Bean> getAd8() {
            return ad8;
        }

        public void setAd8(List<Ad8Bean> ad8) {
            this.ad8 = ad8;
        }

        public List<DefaultGoodsListBean> getDefaultGoodsList() {
            return defaultGoodsList;
        }

        public void setDefaultGoodsList(List<DefaultGoodsListBean> defaultGoodsList) {
            this.defaultGoodsList = defaultGoodsList;
        }

        public static class ActivityInfoBean {
            /**
             * activityAreaDisplay : 1
             * activityInfoList : [{"id":"60","activityImg":"https://image.yunifang.com/yunifang/images/goods/temp/170527155491221343694704636.jpg","activityType":"60","activityData":"69","activityDataDetail":"69","activityAreaDisplay":"1","countDownEnable":"0","remark":"搭配购买立减","sort":0},{"id":"21","activityImg":"https://image.yunifang.com/yunifang/images/goods/temp/17051718251658680692616281.jpg","activityType":"1","activityData":"http://h.yunifang.com/invite/invite.html?login_check=2","activityDataDetail":"http%3A%2F%2Fh.yunifang.com%2Finvite%2Finvite.html%3Flogin_check%3D2","activityAreaDisplay":"1","countDownEnable":"0","sort":0}]
             */

            private String activityAreaDisplay;
            private List<ActivityInfoListBean> activityInfoList;

            public String getActivityAreaDisplay() {
                return activityAreaDisplay;
            }

            public void setActivityAreaDisplay(String activityAreaDisplay) {
                this.activityAreaDisplay = activityAreaDisplay;
            }

            public List<ActivityInfoListBean> getActivityInfoList() {
                return activityInfoList;
            }

            public void setActivityInfoList(List<ActivityInfoListBean> activityInfoList) {
                this.activityInfoList = activityInfoList;
            }

            public static class ActivityInfoListBean {
                /**
                 * id : 60
                 * activityImg : https://image.yunifang.com/yunifang/images/goods/temp/170527155491221343694704636.jpg
                 * activityType : 60
                 * activityData : 69
                 * activityDataDetail : 69
                 * activityAreaDisplay : 1
                 * countDownEnable : 0
                 * remark : 搭配购买立减
                 * sort : 0
                 */

                private String id;
                private String activityImg;
                private String activityType;
                private String activityData;
                private String activityDataDetail;
                private String activityAreaDisplay;
                private String countDownEnable;
                private String remark;
                private int sort;

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String getActivityImg() {
                    return activityImg;
                }

                public void setActivityImg(String activityImg) {
                    this.activityImg = activityImg;
                }

                public String getActivityType() {
                    return activityType;
                }

                public void setActivityType(String activityType) {
                    this.activityType = activityType;
                }

                public String getActivityData() {
                    return activityData;
                }

                public void setActivityData(String activityData) {
                    this.activityData = activityData;
                }

                public String getActivityDataDetail() {
                    return activityDataDetail;
                }

                public void setActivityDataDetail(String activityDataDetail) {
                    this.activityDataDetail = activityDataDetail;
                }

                public String getActivityAreaDisplay() {
                    return activityAreaDisplay;
                }

                public void setActivityAreaDisplay(String activityAreaDisplay) {
                    this.activityAreaDisplay = activityAreaDisplay;
                }

                public String getCountDownEnable() {
                    return countDownEnable;
                }

                public void setCountDownEnable(String countDownEnable) {
                    this.countDownEnable = countDownEnable;
                }

                public String getRemark() {
                    return remark;
                }

                public void setRemark(String remark) {
                    this.remark = remark;
                }

                public int getSort() {
                    return sort;
                }

                public void setSort(int sort) {
                    this.sort = sort;
                }
            }
        }

        public static class GoodsSpreeActivityBean {
            /**
             * id : 327
             * name : 10.13早场
             * startDate : 2017.10.13 10:00:00
             * endDate : 2017.10.13 16:00:00
             * status : 1
             * startSeconds : -12118
             * endSeconds : 9481
             * isChecked : 0
             * goodsList : [{"id":"997","goodsSpreeId":"327","goodsId":"340","goodsName":"【使用期一年以上介意慎拍】黑玫瑰矿物柔肤乳液120ml","goodsImg":"https://image.yunifang.com/yunifang/images/goods/340/goods_img/170626103460417447209262417.jpg","marketPrice":169,"activityPrice":39.9,"salesRatio":0,"stockNumber":30,"releaseNumber":40},{"id":"998","goodsSpreeId":"327","goodsId":"1324","goodsName":"鲜气少女肌|水光轻灵焕彩面膜5片","goodsImg":"https://image.yunifang.com/yunifang/images/goods/1324/goods_img/170626102366110382576889824.jpg","marketPrice":129,"activityPrice":59.9,"salesRatio":0,"stockNumber":30,"releaseNumber":30},{"id":"999","goodsSpreeId":"327","goodsId":"903","goodsName":"绿豆原浆泥面膜100g","goodsImg":"https://image.yunifang.com/yunifang/images/goods/903/goods_img/170627180542017051678666200.jpg","marketPrice":99,"activityPrice":49.9,"salesRatio":0,"stockNumber":28,"releaseNumber":30}]
             */

            private String id;
            private String name;
            private String startDate;
            private String endDate;
            private String status;
            private String startSeconds;
            private String endSeconds;
            private String isChecked;
            private List<GoodsListBean> goodsList;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getStartDate() {
                return startDate;
            }

            public void setStartDate(String startDate) {
                this.startDate = startDate;
            }

            public String getEndDate() {
                return endDate;
            }

            public void setEndDate(String endDate) {
                this.endDate = endDate;
            }

            public String getStatus() {
                return status;
            }

            public void setStatus(String status) {
                this.status = status;
            }

            public String getStartSeconds() {
                return startSeconds;
            }

            public void setStartSeconds(String startSeconds) {
                this.startSeconds = startSeconds;
            }

            public String getEndSeconds() {
                return endSeconds;
            }

            public void setEndSeconds(String endSeconds) {
                this.endSeconds = endSeconds;
            }

            public String getIsChecked() {
                return isChecked;
            }

            public void setIsChecked(String isChecked) {
                this.isChecked = isChecked;
            }

            public List<GoodsListBean> getGoodsList() {
                return goodsList;
            }

            public void setGoodsList(List<GoodsListBean> goodsList) {
                this.goodsList = goodsList;
            }

            public static class GoodsListBean {
                /**
                 * id : 997
                 * goodsSpreeId : 327
                 * goodsId : 340
                 * goodsName : 【使用期一年以上介意慎拍】黑玫瑰矿物柔肤乳液120ml
                 * goodsImg : https://image.yunifang.com/yunifang/images/goods/340/goods_img/170626103460417447209262417.jpg
                 * marketPrice : 169.0
                 * activityPrice : 39.9
                 * salesRatio : 0
                 * stockNumber : 30
                 * releaseNumber : 40
                 */

                private String id;
                private String goodsSpreeId;
                private String goodsId;
                private String goodsName;
                private String goodsImg;
                private double marketPrice;
                private double activityPrice;
                private int salesRatio;
                private int stockNumber;
                private int releaseNumber;

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String getGoodsSpreeId() {
                    return goodsSpreeId;
                }

                public void setGoodsSpreeId(String goodsSpreeId) {
                    this.goodsSpreeId = goodsSpreeId;
                }

                public String getGoodsId() {
                    return goodsId;
                }

                public void setGoodsId(String goodsId) {
                    this.goodsId = goodsId;
                }

                public String getGoodsName() {
                    return goodsName;
                }

                public void setGoodsName(String goodsName) {
                    this.goodsName = goodsName;
                }

                public String getGoodsImg() {
                    return goodsImg;
                }

                public void setGoodsImg(String goodsImg) {
                    this.goodsImg = goodsImg;
                }

                public double getMarketPrice() {
                    return marketPrice;
                }

                public void setMarketPrice(double marketPrice) {
                    this.marketPrice = marketPrice;
                }

                public double getActivityPrice() {
                    return activityPrice;
                }

                public void setActivityPrice(double activityPrice) {
                    this.activityPrice = activityPrice;
                }

                public int getSalesRatio() {
                    return salesRatio;
                }

                public void setSalesRatio(int salesRatio) {
                    this.salesRatio = salesRatio;
                }

                public int getStockNumber() {
                    return stockNumber;
                }

                public void setStockNumber(int stockNumber) {
                    this.stockNumber = stockNumber;
                }

                public int getReleaseNumber() {
                    return releaseNumber;
                }

                public void setReleaseNumber(int releaseNumber) {
                    this.releaseNumber = releaseNumber;
                }
            }
        }

        public static class SubjectsBean {
            /**
             * id : 84
             * title : 新品上市
             * detail : 质本天然,探寻自然生命的非凡能量,给“躁动”的肌肤一场新的旅行~~
             * image : https://image.yunifang.com/yunifang/images/goods/temp/171011162655217457875119759.jpg
             * start_time : 2017.05.16 09:26:13
             * end_time : 2017.10.31 00:00:00
             * show_number : 6
             * state : 1
             * sort : 0
             * descImage : https://image.yunifang.com/yunifang/images/goods/temp/17051609265319705925918251.jpg
             * template : templateDefault
             * goodsList : [{"id":"492","goods_name":"盈透美肌黑膜套装(插画版)","shop_price":99.9,"market_price":298,"goods_img":"https://image.yunifang.com/yunifang/images/goods/492/goods_img/171011191068814258195256706.jpg","reservable":false,"efficacy":"以黑吸黑 润透亮颜","stock_number":0,"restrict_purchase_num":0,"goodsName":"PG one热荐:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/171011192212214258195254179.jpg","description":"三重植物精粹,三重水润膜力,美时美刻,水润透亮~"},{"id":"2076","goods_name":"鲜嫩美莓面膜套装","shop_price":129.9,"market_price":299,"goods_img":"https://image.yunifang.com/yunifang/images/goods/2076/goods_img/170930212555714134276722977.jpg","reservable":false,"efficacy":"果然水润 嫩颜美莓","stock_number":0,"restrict_purchase_num":0,"goodsName":"水润指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17101119283583452898243380.jpg","description":"畅享鲜果派对,肌肤水嫩鲜活,萃取自然野草莓、黑莓、巴西莓精华,三款搭配持续水嫩鲜活~"},{"id":"1189","goods_name":"清透盈润面膜套装21片","shop_price":79.9,"market_price":297,"goods_img":"https://image.yunifang.com/yunifang/images/goods/1189/goods_img/17093019432252555150652465.jpg","reservable":false,"efficacy":"水感剔透 鲜颜嫩肌","stock_number":0,"restrict_purchase_num":0,"goodsName":"鲜嫩指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17101119312216937168845205.jpg","description":"精选玫瑰、竹萃自然精粹,清洁力、补水力、亮泽度全新升级,另肌肤水感剔透~"},{"id":"1638","goods_name":"全新升级丨嫩肌酵素黑膜礼盒21片","shop_price":139.9,"market_price":299,"goods_img":"https://image.yunifang.com/yunifang/images/goods/1638/goods_img/170905151496114997886544712.jpg","reservable":false,"efficacy":"极地酵素 \u201c酵\u201d醒美肌","stock_number":0,"restrict_purchase_num":0,"goodsName":"推荐指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170905182614314997886548523.jpg","description":"蕴含南极活性补水酵素精华,持久补水锁水,轻蔬鲜果酵素助力平衡水油~"},{"id":"1830","goods_name":"新品尝鲜|水润茶萃微囊黑面膜20片","shop_price":129.9,"market_price":297,"goods_img":"https://image.yunifang.com/yunifang/images/goods/1830/goods_img/17063017284962337647468682.jpg","reservable":false,"efficacy":"只要一片 水润一天","stock_number":0,"restrict_purchase_num":0,"goodsName":"新品推荐:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1705240026717476518778188.jpg","description":"茶萃微囊精华,开创持续保湿新体验,只要一片,水润一天,持续保湿12小时以上"},{"id":"2091","goods_name":"新品上市丨V7伪妆素颜霜20g","shop_price":79,"market_price":79,"goods_img":"https://image.yunifang.com/yunifang/images/goods/2091/goods_img/170905172822119555059792173.jpg","reservable":false,"efficacy":"即刻提亮 闪亮肤色","stock_number":0,"restrict_purchase_num":0,"goodsName":"遮瑕指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1709051825818467283561992.jpg","description":"如果你是素颜控,这款即刻提亮,闪亮肤色的懒人新品素颜霜你值得拥有~"},{"id":"2039","goods_name":"水润柔嫩黑膜21片","shop_price":89.9,"market_price":297,"goods_img":"https://image.yunifang.com/yunifang/images/goods/2039/goods_img/17093020002498271170145819.jpg","reservable":false,"efficacy":"自然纯粹 水润纯净","stock_number":0,"restrict_purchase_num":0,"goodsName":"补水指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/171011193181418890895139029.jpg","description":"精选龙头竹菁萃、牛油果精粹、黑珍珠精粹,给你自然纯粹,水润纯净体验~"},{"id":"745","goods_name":"全新升级丨晶亮红石榴面膜7片","shop_price":79,"market_price":89,"goods_img":"https://image.yunifang.com/yunifang/images/goods/745/goods_img/17081617418998795654179347.jpg","reservable":false,"efficacy":"深度排浊 一扫黯哑","stock_number":0,"restrict_purchase_num":0,"goodsName":"亮肤指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170816184151311258603701437.jpg","description":"萃取红石榴原液,滴滴蕴含鲜活能量,清洁排浊、透亮无瑕,改善粗糙黯哑小能手"},{"id":"1870","goods_name":"新品尝鲜|玉润雪肌黑白膜盒20片","shop_price":129.9,"market_price":297,"goods_img":"https://image.yunifang.com/yunifang/images/goods/1870/goods_img/17071909555120332464127704.jpg","reservable":false,"efficacy":"黑白膜力 美肌如玉","stock_number":0,"restrict_purchase_num":0,"goodsName":"新品推荐:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1707171037861467283567706.jpg","description":"白膜胶原蛋白精华,昼弹润生态库,黑膜三分子玻尿酸,夜补水先锋。黑白膜力,水肌如玉~"},{"id":"1919","goods_name":"透亮红酒酵力面膜21片","shop_price":129.9,"market_price":239,"goods_img":"https://image.yunifang.com/yunifang/images/goods/1919/goods_img/170630171021217601465422538.jpg","reservable":false,"efficacy":"红酒透亮 酵醒美肌","stock_number":0,"restrict_purchase_num":0,"goodsName":"亮肤指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170630224599017601465422520.jpg","description":"全新添加西班牙酵母发酵液,融合法国红酒多酚亮肤成分,加乘亮肤功效~"},{"id":"772","goods_name":"全新升级丨清润莹亮黑膜套装21片","shop_price":99.9,"market_price":297,"goods_img":"https://image.yunifang.com/yunifang/images/goods/772/goods_img/17090514228269026987111180.jpg","reservable":false,"efficacy":"自然莹亮 水感瓷肌","stock_number":0,"restrict_purchase_num":0,"goodsName":"水亮能量:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1709191414112467283564077.jpg","description":"自然莹亮,水感瓷肌,精选龙头竹、葡萄籽,演绎水亮二重奏~"},{"id":"487","goods_name":"海洋弹性蛋白矿物精华眼霜25g","shop_price":139,"market_price":169,"goods_img":"https://image.yunifang.com/yunifang/images/goods/487/goods_img/170626101843492134395965.jpg","reservable":false,"efficacy":"提拉紧致 润亮双眸","stock_number":0,"restrict_purchase_num":0,"goodsName":"抗皱指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1706151917130467283566572.jpg","description":"不要等到有皱纹了才想起用眼霜,不要让眼睛放大你的年龄,每一滴自然精粹,都为你打造明亮双眸~"},{"id":"1281","goods_name":"新品眼霜丨红石榴矿物眼霜25g","shop_price":129,"market_price":159,"goods_img":"https://image.yunifang.com/yunifang/images/goods/1281/goods_img/170626102555811776047044227.jpg","reservable":false,"efficacy":"淡退黑眼圈 净彻排浊","stock_number":0,"restrict_purchase_num":0,"goodsName":"抗皱指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1706151918330467283566999.jpg","description":"熊猫眼克星!多种植物精粹,天然舒活肌肤水通道,清爽不油腻,好吸收,和细纹说拜拜~"}]
             * goodsIdsList : ["492","2076","1923","1189","1638","1830","2091","2039","745","1870","1919","772","1280","487","1281","1250"]
             * goodsRelationList : [{"id":"14815","subject_id":"84","goods_id":"492","goodsName":"PG one热荐:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/171011192212214258195254179.jpg","description":"三重植物精粹,三重水润膜力,美时美刻,水润透亮~"},{"id":"14816","subject_id":"84","goods_id":"2076","goodsName":"水润指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17101119283583452898243380.jpg","description":"畅享鲜果派对,肌肤水嫩鲜活,萃取自然野草莓、黑莓、巴西莓精华,三款搭配持续水嫩鲜活~"},{"id":"14817","subject_id":"84","goods_id":"1923","goodsName":"美白指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170816184068619872110797032.jpg","description":"真美白,匠心造!全新升级美白嫩肤面膜,多种美白成分助力美白,国家权威美白特证安全放心~"},{"id":"14818","subject_id":"84","goods_id":"1189","goodsName":"鲜嫩指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17101119312216937168845205.jpg","description":"精选玫瑰、竹萃自然精粹,清洁力、补水力、亮泽度全新升级,另肌肤水感剔透~"},{"id":"14819","subject_id":"84","goods_id":"1638","goodsName":"推荐指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170905182614314997886548523.jpg","description":"蕴含南极活性补水酵素精华,持久补水锁水,轻蔬鲜果酵素助力平衡水油~"},{"id":"14820","subject_id":"84","goods_id":"1830","goodsName":"新品推荐:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1705240026717476518778188.jpg","description":"茶萃微囊精华,开创持续保湿新体验,只要一片,水润一天,持续保湿12小时以上"},{"id":"14821","subject_id":"84","goods_id":"2091","goodsName":"遮瑕指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1709051825818467283561992.jpg","description":"如果你是素颜控,这款即刻提亮,闪亮肤色的懒人新品素颜霜你值得拥有~"},{"id":"14822","subject_id":"84","goods_id":"2039","goodsName":"补水指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/171011193181418890895139029.jpg","description":"精选龙头竹菁萃、牛油果精粹、黑珍珠精粹,给你自然纯粹,水润纯净体验~"},{"id":"14823","subject_id":"84","goods_id":"745","goodsName":"亮肤指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170816184151311258603701437.jpg","description":"萃取红石榴原液,滴滴蕴含鲜活能量,清洁排浊、透亮无瑕,改善粗糙黯哑小能手"},{"id":"14824","subject_id":"84","goods_id":"1870","goodsName":"新品推荐:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1707171037861467283567706.jpg","description":"白膜胶原蛋白精华,昼弹润生态库,黑膜三分子玻尿酸,夜补水先锋。黑白膜力,水肌如玉~"},{"id":"14825","subject_id":"84","goods_id":"1919","goodsName":"亮肤指数:★★★★★","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/170630224599017601465422520.jpg","description":"全新添加西班牙酵母发酵液,融合法国红酒多酚亮肤成分,加乘亮肤功效~"},{"id":"14826","subject_id":"84","goods_id":"772","goodsName":"水亮能量:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1709191414112467283564077.jpg","description":"自然莹亮,水感瓷肌,精选龙头竹、葡萄籽,演绎水亮二重奏~"},{"id":"14827","subject_id":"84","goods_id":"1280","goodsName":"遮瑕指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/17051609285005287026507049.jpg","description":"日本进口粉扑,云母成分强遮瑕,接触肌肤绵密柔软,粉体细腻,妆感轻薄,完美遮瑕~"},{"id":"14828","subject_id":"84","goods_id":"487","goodsName":"抗皱指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1706151917130467283566572.jpg","description":"不要等到有皱纹了才想起用眼霜,不要让眼睛放大你的年龄,每一滴自然精粹,都为你打造明亮双眸~"},{"id":"14829","subject_id":"84","goods_id":"1281","goodsName":"抗皱指数:★★★☆☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1706151918330467283566999.jpg","description":"熊猫眼克星!多种植物精粹,天然舒活肌肤水通道,清爽不油腻,好吸收,和细纹说拜拜~"},{"id":"14830","subject_id":"84","goods_id":"1250","goodsName":"抗氧化指数:★★★★☆","goodsImage":"https://image.yunifang.com/yunifang/images/goods/temp/1706021026770467283563014.jpg","description":"你的梳妆台必不可少一瓶面霜,告别熬夜和岁月留下的黄脸,为肌肤注入鲜活能量。"}]
             * url : http://h.yunifang.com/goods/subject.html?id=84
             * wapUrl : http://vip.yunifang.com/goods/subject.html?id=84
             */

            private String id;
            private String title;
            private String detail;
            private String image;
            private String start_time;
            private String end_time;
            private int show_number;
            private String state;
            private int sort;
            private String descImage;
            private String template;
            private String url;
            private String wapUrl;
            private List<GoodsListBeanX> goodsList;
            private List<String> goodsIdsList;
            private List<GoodsRelationListBean> goodsRelationList;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getDetail() {
                return detail;
            }

            public void setDetail(String detail) {
                this.detail = detail;
            }

            public String getImage() {
                return image;
            }

            public void setImage(String image) {
                this.image = image;
            }

            public String getStart_time() {
                return start_time;
            }

            public void setStart_time(String start_time) {
                this.start_time = start_time;
            }

            public String getEnd_time() {
                return end_time;
            }

            public void setEnd_time(String end_time) {
                this.end_time = end_time;
            }

            public int getShow_number() {
                return show_number;
            }

            public void setShow_number(int show_number) {
                this.show_number = show_number;
            }

            public String getState() {
                return state;
            }

            public void setState(String state) {
                this.state = state;
            }

            public int getSort() {
                return sort;
            }

            public void setSort(int sort) {
                this.sort = sort;
            }

            public String getDescImage() {
                return descImage;
            }

            public void setDescImage(String descImage) {
                this.descImage = descImage;
            }

            public String getTemplate() {
                return template;
            }

            public void setTemplate(String template) {
                this.template = template;
            }

            public String getUrl() {
                return url;
            }

            public void setUrl(String url) {
                this.url = url;
            }

            public String getWapUrl() {
                return wapUrl;
            }

            public void setWapUrl(String wapUrl) {
                this.wapUrl = wapUrl;
            }

            public List<GoodsListBeanX> getGoodsList() {
                return goodsList;
            }

            public void setGoodsList(List<GoodsListBeanX> goodsList) {
                this.goodsList = goodsList;
            }

            public List<String> getGoodsIdsList() {
                return goodsIdsList;
            }

            public void setGoodsIdsList(List<String> goodsIdsList) {
                this.goodsIdsList = goodsIdsList;
            }

            public List<GoodsRelationListBean> getGoodsRelationList() {
                return goodsRelationList;
            }

            public void setGoodsRelationList(List<GoodsRelationListBean> goodsRelationList) {
                this.goodsRelationList = goodsRelationList;
            }

            public static class GoodsListBeanX {
                /**
                 * id : 492
                 * goods_name : 盈透美肌黑膜套装(插画版)
                 * shop_price : 99.9
                 * market_price : 298.0
                 * goods_img : https://image.yunifang.com/yunifang/images/goods/492/goods_img/171011191068814258195256706.jpg
                 * reservable : false
                 * efficacy : 以黑吸黑 润透亮颜
                 * stock_number : 0
                 * restrict_purchase_num : 0
                 * goodsName : PG one热荐:★★★★★
                 * goodsImage : https://image.yunifang.com/yunifang/images/goods/temp/171011192212214258195254179.jpg
                 * description : 三重植物精粹,三重水润膜力,美时美刻,水润透亮~
                 */

                private String id;
                private String goods_name;
                private double shop_price;
                private double market_price;
                private String goods_img;
                private boolean reservable;
                private String efficacy;
                private int stock_number;
                private int restrict_purchase_num;
                private String goodsName;
                private String goodsImage;
                private String description;

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String getGoods_name() {
                    return goods_name;
                }

                public void setGoods_name(String goods_name) {
                    this.goods_name = goods_name;
                }

                public double getShop_price() {
                    return shop_price;
                }

                public void setShop_price(double shop_price) {
                    this.shop_price = shop_price;
                }

                public double getMarket_price() {
                    return market_price;
                }

                public void setMarket_price(double market_price) {
                    this.market_price = market_price;
                }

                public String getGoods_img() {
                    return goods_img;
                }

                public void setGoods_img(String goods_img) {
                    this.goods_img = goods_img;
                }

                public boolean isReservable() {
                    return reservable;
                }

                public void setReservable(boolean reservable) {
                    this.reservable = reservable;
                }

                public String getEfficacy() {
                    return efficacy;
                }

                public void setEfficacy(String efficacy) {
                    this.efficacy = efficacy;
                }

                public int getStock_number() {
                    return stock_number;
                }

                public void setStock_number(int stock_number) {
                    this.stock_number = stock_number;
                }

                public int getRestrict_purchase_num() {
                    return restrict_purchase_num;
                }

                public void setRestrict_purchase_num(int restrict_purchase_num) {
                    this.restrict_purchase_num = restrict_purchase_num;
                }

                public String getGoodsName() {
                    return goodsName;
                }

                public void setGoodsName(String goodsName) {
                    this.goodsName = goodsName;
                }

                public String getGoodsImage() {
                    return goodsImage;
                }

                public void setGoodsImage(String goodsImage) {
                    this.goodsImage = goodsImage;
                }

                public String getDescription() {
                    return description;
                }

                public void setDescription(String description) {
                    this.description = description;
                }
            }

            public static class GoodsRelationListBean {
                /**
                 * id : 14815
                 * subject_id : 84
                 * goods_id : 492
                 * goodsName : PG one热荐:★★★★★
                 * goodsImage : https://image.yunifang.com/yunifang/images/goods/temp/171011192212214258195254179.jpg
                 * description : 三重植物精粹,三重水润膜力,美时美刻,水润透亮~
                 */

                private String id;
                private String subject_id;
                private String goods_id;
                private String goodsName;
                private String goodsImage;
                private String description;

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String getSubject_id() {
                    return subject_id;
                }

                public void setSubject_id(String subject_id) {
                    this.subject_id = subject_id;
                }

                public String getGoods_id() {
                    return goods_id;
                }

                public void setGoods_id(String goods_id) {
                    this.goods_id = goods_id;
                }

                public String getGoodsName() {
                    return goodsName;
                }

                public void setGoodsName(String goodsName) {
                    this.goodsName = goodsName;
                }

                public String getGoodsImage() {
                    return goodsImage;
                }

                public void setGoodsImage(String goodsImage) {
                    this.goodsImage = goodsImage;
                }

                public String getDescription() {
                    return description;
                }

                public void setDescription(String description) {
                    this.description = description;
                }
            }
        }

        public static class Ad1Bean {
            /**
             * id : 1147
             * createtime : 2017.10.09 08:33:42
             * lastupdatetime : 2017.10.09 08:33:46
             * image : https://image.yunifang.com/yunifang/images/goods/ad0/17100908319495742677657462.jpg
             * ad_type : 0
             * sort : 1414
             * position : 0
             * enabled : 1
             * createuser : leiqi
             * lastupdateuser : leiqi
             * ad_type_dynamic : 1
             * ad_type_dynamic_data : http://h.yunifang.com/h/comment.html
             * ad_type_dynamic_detail : http%3A%2F%2Fh.yunifang.com%2Fh%2Fcomment.html
             * title : 10月商品好评有礼
             * channelType : 0
             * show_channel : 1,2,3,4
             */

            private String id;
            private String createtime;
            private String lastupdatetime;
            private String image;
            private int ad_type;
            private int sort;
            private int position;
            private int enabled;
            private String createuser;
            private String lastupdateuser;
            private String ad_type_dynamic;
            private String ad_type_dynamic_data;
            private String ad_type_dynamic_detail;
            private String title;
            private String channelType;
            private String show_channel;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getCreatetime() {
                return createtime;
            }

            public void setCreatetime(String createtime) {
                this.createtime = createtime;
            }

            public String getLastupdatetime() {
                return lastupdatetime;
            }

            public void setLastupdatetime(String lastupdatetime) {
                this.lastupdatetime = lastupdatetime;
            }

            public String getImage() {
                return image;
            }

            public void setImage(String image) {
                this.image = image;
            }

            public int getAd_type() {
                return ad_type;
            }

            public void setAd_type(int ad_type) {
                this.ad_type = ad_type;
            }

            public int getSort() {
                return sort;
            }

            public void setSort(int sort) {
                this.sort = sort;
            }

            public int getPosition() {
                return position;
            }

            public void setPosition(int position) {
                this.position = position;
            }

            public int getEnabled() {
                return enabled;
            }

            public void setEnabled(int enabled) {
                this.enabled = enabled;
            }

            public String getCreateuser() {
                return createuser;
            }

            public void setCreateuser(String createuser) {
                this.createuser = createuser;
            }

            public String getLastupdateuser() {
                return lastupdateuser;
            }

            public void setLastupdateuser(String lastupdateuser) {
                this.lastupdateuser = lastupdateuser;
            }

            public String getAd_type_dynamic() {
                return ad_type_dynamic;
            }

            public void setAd_type_dynamic(String ad_type_dynamic) {
                this.ad_type_dynamic = ad_type_dynamic;
            }

            public String getAd_type_dynamic_data() {
                return ad_type_dynamic_data;
            }

            public void setAd_type_dynamic_data(String ad_type_dynamic_data) {
                this.ad_type_dynamic_data = ad_type_dynamic_data;
            }

            public String getAd_type_dynamic_detail() {
                return ad_type_dynamic_detail;
            }

            public void setAd_type_dynamic_detail(String ad_type_dynamic_detail) {
                this.ad_type_dynamic_detail = ad_type_dynamic_detail;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getChannelType() {
                return channelType;
            }

            public void setChannelType(String channelType) {
                this.channelType = channelType;
            }

            public String getShow_channel() {
                return show_channel;
            }

            public void setShow_channel(String show_channel) {
                this.show_channel = show_channel;
            }
        }

        public static class Ad5Bean {
            /**
             * id : 359
             * image : https://image.yunifang.com/yunifang/images/goods/ad0/170516143575610973073847273.png
             * ad_type : 4
             * sort : 295
             * position : 5
             * enabled : 0
             * ad_type_dynamic : 1
             * ad_type_dynamic_data : http://h.yunifang.com/sign/sign.html?login_check=2
             * ad_type_dynamic_detail : http%3A%2F%2Fh.yunifang.com%2Fsign%2Fsign.html%3Flogin_check%3D2
             * show_channel : 1,2
             * title : 每日签到
             * url : http://mobile.hmeili.com/yunifang/web/member/gift
             */

            private String id;
            private String image;
            private int ad_type;
            private int sort;
            private int position;
            private int enabled;
            private String ad_type_dynamic;
            private String ad_type_dynamic_data;
            private String ad_type_dynamic_detail;
            private String show_channel;
            private String title;
            private String url;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getImage() {
                return image;
            }

            public void setImage(String image) {
                this.image = image;
            }

            public int getAd_type() {
                return ad_type;
            }

            public void setAd_type(int ad_type) {
                this.ad_type = ad_type;
            }

            public int getSort() {
                return sort;
            }

            public void setSort(int sort) {
                this.sort = sort;
            }

            public int getPosition() {
                return position;
            }

            public void setPosition(int position) {
                this.position = position;
            }

            public int getEnabled() {
                return enabled;
            }

            public void setEnabled(int enabled) {
                this.enabled = enabled;
            }

            public String getAd_type_dynamic() {
                return ad_type_dynamic;
            }

            public void setAd_type_dynamic(String ad_type_dynamic) {
                this.ad_type_dynamic = ad_type_dynamic;
            }

            public String getAd_type_dynamic_data() {
                return ad_type_dynamic_data;
            }

            public void setAd_type_dynamic_data(String ad_type_dynamic_data) {
                this.ad_type_dynamic_data = ad_type_dynamic_data;
            }

            public String getAd_type_dynamic_detail() {
                return ad_type_dynamic_detail;
            }

            public void setAd_type_dynamic_detail(String ad_type_dynamic_detail) {
                this.ad_type_dynamic_detail = ad_type_dynamic_detail;
            }

            public String getShow_channel() {
                return show_channel;
            }

            public void setShow_channel(String show_channel) {
                this.show_channel = show_channel;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getUrl() {
                return url;
            }

            public void setUrl(String url) {
                this.url = url;
            }
        }

        public static class Ad8Bean {
            /**
             * id : 1056
             * image : https://image.yunifang.com/yunifang/images/goods/ad0/170719150582816742818457761.png
             * ad_type : 0
             * sort : 57
             * position : 8
             * enabled : 0
             * description : 人气好物超值推荐
             * ad_type_dynamic : 1
             * ad_type_dynamic_data : http://vip.yunifang.com/goods/recommend.html?id=87
             * ad_type_dynamic_detail : http%3A%2F%2Fh.yunifang.com%2Fgoods%2Frecommend.html%3Fid%3D87
             * show_channel : 1,2,3,4
             * title : 新鲜每一天
             * goods : {"collect_count":0,"reservable":false,"restriction":0,"restrict_purchase_num":0,"is_coupon_allowed":false,"allocated_stock":0,"is_gift":0}
             */

            private String id;
            private String image;
            private int ad_type;
            private int sort;
            private int position;
            private int enabled;
            private String description;
            private String ad_type_dynamic;
            private String ad_type_dynamic_data;
            private String ad_type_dynamic_detail;
            private String show_channel;
            private String title;
            private GoodsBean goods;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getImage() {
                return image;
            }

            public void setImage(String image) {
                this.image = image;
            }

            public int getAd_type() {
                return ad_type;
            }

            public void setAd_type(int ad_type) {
                this.ad_type = ad_type;
            }

            public int getSort() {
                return sort;
            }

            public void setSort(int sort) {
                this.sort = sort;
            }

            public int getPosition() {
                return position;
            }

            public void setPosition(int position) {
                this.position = position;
            }

            public int getEnabled() {
                return enabled;
            }

            public void setEnabled(int enabled) {
                this.enabled = enabled;
            }

            public String getDescription() {
                return description;
            }

            public void setDescription(String description) {
                this.description = description;
            }

            public String getAd_type_dynamic() {
                return ad_type_dynamic;
            }

            public void setAd_type_dynamic(String ad_type_dynamic) {
                this.ad_type_dynamic = ad_type_dynamic;
            }

            public String getAd_type_dynamic_data() {
                return ad_type_dynamic_data;
            }

            public void setAd_type_dynamic_data(String ad_type_dynamic_data) {
                this.ad_type_dynamic_data = ad_type_dynamic_data;
            }

            public String getAd_type_dynamic_detail() {
                return ad_type_dynamic_detail;
            }

            public void setAd_type_dynamic_detail(String ad_type_dynamic_detail) {
                this.ad_type_dynamic_detail = ad_type_dynamic_detail;
            }

            public String getShow_channel() {
                return show_channel;
            }

            public void setShow_channel(String show_channel) {
                this.show_channel = show_channel;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public GoodsBean getGoods() {
                return goods;
            }

            public void setGoods(GoodsBean goods) {
                this.goods = goods;
            }

            public static class GoodsBean {
                /**
                 * collect_count : 0
                 * reservable : false
                 * restriction : 0
                 * restrict_purchase_num : 0
                 * is_coupon_allowed : false
                 * allocated_stock : 0
                 * is_gift : 0
                 */

                private int collect_count;
                private boolean reservable;
                private int restriction;
                private int restrict_purchase_num;
                private boolean is_coupon_allowed;
                private int allocated_stock;
                private int is_gift;

                public int getCollect_count() {
                    return collect_count;
                }

                public void setCollect_count(int collect_count) {
                    this.collect_count = collect_count;
                }

                public boolean isReservable() {
                    return reservable;
                }

                public void setReservable(boolean reservable) {
                    this.reservable = reservable;
                }

                public int getRestriction() {
                    return restriction;
                }

                public void setRestriction(int restriction) {
                    this.restriction = restriction;
                }

                public int getRestrict_purchase_num() {
                    return restrict_purchase_num;
                }

                public void setRestrict_purchase_num(int restrict_purchase_num) {
                    this.restrict_purchase_num = restrict_purchase_num;
                }

                public boolean isIs_coupon_allowed() {
                    return is_coupon_allowed;
                }

                public void setIs_coupon_allowed(boolean is_coupon_allowed) {
                    this.is_coupon_allowed = is_coupon_allowed;
                }

                public int getAllocated_stock() {
                    return allocated_stock;
                }

                public void setAllocated_stock(int allocated_stock) {
                    this.allocated_stock = allocated_stock;
                }

                public int getIs_gift() {
                    return is_gift;
                }

                public void setIs_gift(int is_gift) {
                    this.is_gift = is_gift;
                }
            }
        }

        public static class DefaultGoodsListBean {
            /**
             * id : 121
             * goods_name : 镇店之宝丨美白嫩肤面膜7片
             * shop_price : 49.9
             * market_price : 99.0
             * goods_img : https://image.yunifang.com/yunifang/images/goods/121/goods_img/17062610568378169043195978.jpg
             * reservable : false
             * efficacy : 镇店之宝 美白爆款
             * stock_number : 0
             * restrict_purchase_num : 0
             */

            private String id;
            private String goods_name;
            private double shop_price;
            private double market_price;
            private String goods_img;
            private boolean reservable;
            private String efficacy;
            private int stock_number;
            private int restrict_purchase_num;
            private int count;

            public int getCount() {
                return count;
            }

            public void setCount(int count) {
                this.count = count;
            }

            //商品是否被选中
            private boolean isSelect = true;
            //是否是第一个 如果isfirst 等于1 显示商户的名称, 否则隐藏商户的名称
            private int isFirst = 2;
            //商户是否被选中
            private boolean isShopSelect = true;

            public boolean isSelect() {
                return isSelect;
            }

            public void setSelect(boolean select) {
                isSelect = select;
            }

            public int getIsFirst() {
                return isFirst;
            }

            public void setIsFirst(int isFirst) {
                this.isFirst = isFirst;
            }

            public boolean isShopSelect() {
                return isShopSelect;
            }

            public void setShopSelect(boolean shopSelect) {
                isShopSelect = shopSelect;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getGoods_name() {
                return goods_name;
            }

            public void setGoods_name(String goods_name) {
                this.goods_name = goods_name;
            }

            public double getShop_price() {
                return shop_price;
            }

            public void setShop_price(double shop_price) {
                this.shop_price = shop_price;
            }

            public double getMarket_price() {
                return market_price;
            }

            public void setMarket_price(double market_price) {
                this.market_price = market_price;
            }

            public String getGoods_img() {
                return goods_img;
            }

            public void setGoods_img(String goods_img) {
                this.goods_img = goods_img;
            }

            public boolean isReservable() {
                return reservable;
            }

            public void setReservable(boolean reservable) {
                this.reservable = reservable;
            }

            public String getEfficacy() {
                return efficacy;
            }

            public void setEfficacy(String efficacy) {
                this.efficacy = efficacy;
            }

            public int getStock_number() {
                return stock_number;
            }

            public void setStock_number(int stock_number) {
                this.stock_number = stock_number;
            }

            public int getRestrict_purchase_num() {
                return restrict_purchase_num;
            }

            public void setRestrict_purchase_num(int restrict_purchase_num) {
                this.restrict_purchase_num = restrict_purchase_num;
            }
        }
    }
}

 

MainActivity


package com.example.myshopcart;

import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.example.myshopcart.Adapter.MyAdapter;
import com.example.myshopcart.Bean.ShopBean;
import com.example.myshopcart.Presenter.ShowPresenter;
import com.example.myshopcart.Presenter.ShowPresenterImpl;
import com.example.myshopcart.View.ShowView;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class MainActivity extends AppCompatActivity implements ShowView {
    @BindView(R.id.third_recyclerview)
    RecyclerView thirdRecyclerview;
    @BindView(R.id.third_allselect)
    TextView thirdAllselect;
    @BindView(R.id.third_totalprice)
    TextView thirdTotalprice;
    @BindView(R.id.third_totalnum)
    TextView thirdTotalnum;
    @BindView(R.id.third_submit)
    TextView thirdSubmit;
    @BindView(R.id.third_pay_linear)
    LinearLayout thirdPayLinear;
    private List<ShopBean.DataBean.DefaultGoodsListBean>list;
    private MyAdapter adapter;
    private ShowPresenter presenter;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ButterKnife.bind(this);

        // 1 选中 2 未选中
        presenter = new ShowPresenterImpl(this);
        //p关联m 做网络请求
        presenter.relevance();
        thirdAllselect.setTag(1);
        showData();
    }
    //存放购物车中所有的商品
    private List<ShopBean.DataBean.DefaultGoodsListBean> mAllOrderList = new ArrayList<>();

    private void showData() {

        LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false);
        adapter = new MyAdapter(this);
        thirdRecyclerview.setAdapter(adapter);
        thirdRecyclerview.setLayoutManager(linearLayoutManager);


        //删除数据回调
        adapter.setOnDeleteClickListener(new MyAdapter.OnDeleteClickListener() {
            @Override
            public void onDeleteClick(View view, int position, int cartid) {


            }
        });

        //
        adapter.setOnRefershListener(new MyAdapter.OnRefershListener() {
            @Override
            public void onRefersh(boolean isSelect, List<ShopBean.DataBean.DefaultGoodsListBean> list) {

                //标记底部 全选按钮
                if (isSelect) {
                    Drawable left = getResources().getDrawable(R.drawable.shopcart_selected);
                    thirdAllselect.setCompoundDrawablesWithIntrinsicBounds(left, null, null, null);
                } else {
                    Drawable left = getResources().getDrawable(R.drawable.shopcart_unselected);
                    thirdAllselect.setCompoundDrawablesWithIntrinsicBounds(left, null, null, null);
                }

                //总价
                float mTotlaPrice = 0f;
                int mTotalNum = 0;
                for (int i = 0; i < list.size(); i++) {
                    if (list.get(i).isSelect()) {
                        mTotlaPrice += mAllOrderList.get(i).getShop_price() * list.get(i).getCount();
                        mTotalNum += mAllOrderList.get(i).getCount();
                    }
                }
                System.out.println("mTotlaPrice = " + mTotlaPrice);

                thirdTotalprice.setText("总价 : " + mTotlaPrice);

                thirdTotalnum.setText("共" + mTotalNum + "件商品");
            }
        });

    }
    /**
     * 标记第一条数据 isfirst 1 显示商户名称 2 隐藏
     *
     * @param list
     */
    public static void setFirstState(List<ShopBean.DataBean.DefaultGoodsListBean> list) {

        if (list.size() > 0) {
            list.get(0).setIsFirst(1);
            for (int i = 1; i < list.size(); i++) {
                if (list.get(i).getId() == list.get(i - 1).getId()) {
                    list.get(i).setIsFirst(2);
                } else {
                    list.get(i).setIsFirst(1);
                }
            }
        }
    }

    @OnClick({R.id.third_allselect, R.id.third_totalprice, R.id.third_totalnum, R.id.third_submit})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.third_allselect:

                // 全选
                int state = (Integer)  thirdAllselect.getTag() ;

                adapter.setUnSelected(state);
                if(state == 1){
                    thirdAllselect.setTag(2);
                }else {
                    thirdAllselect.setTag(1);
                }
                break;
            case R.id.third_totalprice:
                break;
            case R.id.third_totalnum:
                break;
            case R.id.third_submit:
                break;
        }
    }

    @Override
    public void showData(ShopBean news) {

        mAllOrderList = news.getData().getDefaultGoodsList();
        adapter.setData(mAllOrderList);
        thirdRecyclerview.setAdapter(adapter);
    }
}

 

以上是关于Android -- 购物车的主要内容,如果未能解决你的问题,请参考以下文章

将多个项目添加到 SQLite 数据库 Android

Android Studio 第六十九期 - Android 加入购物车动画 一行

Mvp 购物车

Android-购物车实现(思路+步骤+源码)

Android之购物车框架

Android中购物车的全选反选问题和计算价格