仿购物车订单

bean类。
创建view层
public interface IOrderView {
void showOrder(List<OrderBean.DataBean> list);
}
创建model层
public interface IOrderModel {
void showDate(Order order);
interface Order{
void complate(List<OrderBean.DataBean> list);
}
}
public class OrderModel implements IOrderModel {

@Override
public void showDate(final Order order) {
    RetrofitUtils.getInstance().order()
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(new Observer<OrderBean>() {
                @Override
                public void onCompleted() {

                }

                @Override
                public void onError(Throwable e) {
                    Log.i("=========", "onError: "+e.toString());
                }

                @Override
                public void onNext(OrderBean orderBean) {
                    List<OrderBean.DataBean> list = orderBean.getData();
                    order.complate(list);
                }
            });
}

}
创建presenter层
public interface IPreesenter<T> {
void attach(T view);
void deach();
}
public class OrderPresenter implements IPreesenter<IOrderView>{
IOrderModel model;
SoftReference<IOrderView> softReference;

public OrderPresenter(IOrderView view) {
    attach(view);
    model = new OrderModel();
}
public void DateOrder(){
    model.showDate(new IOrderModel.Order() {
        @Override
        public void complate(List<OrderBean.DataBean> list) {
            softReference.get().showOrder(list);
        }
    });
}
@Override
public void attach(IOrderView view) {
    softReference = new SoftReference<IOrderView>(view);
}

@Override
public void deach() {
    softReference.clear();
}

}
接口
public interface APIService {
@GET("product/getOrders?uid=71")
Observable<OrderBean> order();
@GET("product/updateOrder")
Call<ResponseBody> update(@Query("uid") int uid,@Query("status") int status,@Query("orderId") int orderId);
}
工具类
public class RetrofitUtils {

private static APIService service  = null ;


public static APIService getInstance(){
    if(service == null){
        synchronized (RetrofitUtils.class){

            Retrofit retrofit = new Retrofit.Builder()
                    .baseUrl("https://www.zhaoapi.cn/")
                    .addConverterFactory(GsonConverterFactory.create())
                    .addCallAdapterFactory(RxJavaCallAdapterFactory.create())
                    //.client(OkHttpUtils.getInstance())
                    .build();
            service = retrofit.create(APIService.class);
        }
    }
    return service;
}

}
创建adpter
public class MyAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
Context context;
List<OrderBean.DataBean> list;
OrderPresenter presenter;

public MyAdapter(Context context, List<OrderBean.DataBean> list,OrderPresenter presenter) {
    this.context = context;
    this.list = list;
    this.presenter = presenter;
}

@Override
public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
    View view = LayoutInflater.from(context).inflate(R.layout.qb_item,parent, false);;
    MyViewHolder holder = new MyViewHolder(view);
    return holder;
}
@Override
public void onBindViewHolder(RecyclerView.ViewHolder holder, final int position) {
    ((MyViewHolder)holder).mTitleText.setText(list.get(position).getTitle());
    ((MyViewHolder)holder).mPriceText.setText("价格: "+list.get(position).getPrice());
    ((MyViewHolder)holder).mTameText.setText(list.get(position).getCreatetime());
    if (list.get(position).getStatus()==0){
        ((MyViewHolder) holder).mDaizhifuText.setText("待支付");
        ((MyViewHolder) holder).mDaizhifuText.setTextColor(Color.RED);
        ((MyViewHolder) holder).mBtnText.setText("取消订单");
        ((MyViewHolder) holder).mBtnText.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                AlertDialog.Builder builder = new AlertDialog.Builder(context);
                builder.setTitle("提示");
                builder.setMessage("确定要取消订单吗?");
                builder.setPositiveButton("确定", new DialogInterface.OnClickListener() {
                    @Override
                    public void onClick(DialogInterface dialog, int which) {
                        retrofit2.Call<ResponseBody> call = RetrofitUtils.getInstance().update(71,2,list.get(position).getOrderid());
                        call.enqueue(new retrofit2.Callback<ResponseBody>() {
                            @Override
                            public void onResponse(retrofit2.Call<ResponseBody> call, retrofit2.Response<ResponseBody> response) {
                                presenter.DateOrder();
                                notifyDataSetChanged();
                        }

                            @Override
                            public void onFailure(retrofit2.Call<ResponseBody> call, Throwable t) {

                            }
                        });
                    }
                });

                builder.setNegativeButton("取消", new DialogInterface.OnClickListener() {
                    @Override
                    public void onClick(DialogInterface dialog, int which) {

                    }
                });
                builder.show();

            }
        });

    }else if (list.get(position).getStatus()==1){
        ((MyViewHolder) holder).mDaizhifuText.setText("已支付");
        ((MyViewHolder) holder).mDaizhifuText.setTextColor(Color.BLACK);
        ((MyViewHolder) holder).mBtnText.setText("查看订单");
    }else if (list.get(position).getStatus()==2){
        ((MyViewHolder) holder).mDaizhifuText.setText("已取消");
        ((MyViewHolder) holder).mDaizhifuText.setTextColor(Color.BLACK);
        ((MyViewHolder) holder).mBtnText.setText("查看订单");
        ((MyViewHolder) holder).mBtnText.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                AlertDialog.Builder builder = new AlertDialog.Builder(context);
                builder.setTitle("提示");
                builder.setMessage("确定循环利用吗?");
                builder.setPositiveButton("确定", new DialogInterface.OnClickListener() {
                    @Override
                    public void onClick(DialogInterface dialog, int which) {
                        retrofit2.Call<ResponseBody> call = RetrofitUtils.getInstance().update(71,0,list.get(position).getOrderid());
                        call.enqueue(new retrofit2.Callback<ResponseBody>() {
                            @Override
                            public void onResponse(retrofit2.Call<ResponseBody> call, retrofit2.Response<ResponseBody> response) {
                                presenter.DateOrder();
                                notifyDataSetChanged();
                            }

                            @Override
                            public void onFailure(retrofit2.Call<ResponseBody> call, Throwable t) {

                            }
                        });
                    }
                });

                builder.setNegativeButton("取消", new DialogInterface.OnClickListener() {
                    @Override
                    public void onClick(DialogInterface dialog, int which) {

                    }
                });
                builder.show();
            }
        });

    }
}

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

class MyViewHolder extends RecyclerView.ViewHolder {
    TextView mTitleText;
    TextView mDaizhifuText;
    TextView mPriceText;
    TextView mTameText;
    TextView mBtnText;
    public MyViewHolder(View itemView) {
        super(itemView);
        mTitleText = (TextView) itemView.findViewById(R.id.text_title);
        mDaizhifuText = (TextView) itemView.findViewById(R.id.text_daizhifu);
        mPriceText = (TextView) itemView.findViewById(R.id.text_price);
        mTameText = (TextView) itemView.findViewById(R.id.text_tame);
        mBtnText = (TextView) itemView.findViewById(R.id.text_btn);
    }
}

}
public class MyFrag extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
Context context;
List<OrderBean.DataBean> list;
OrderPresenter presenter;
public MyFrag(Context context, List<OrderBean.DataBean> list, OrderPresenter presenter) {
this.context = context;
this.list = list;
this.presenter = presenter;
}
@Override
public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View view = LayoutInflater.from(context).inflate(R.layout.daizhifu,parent, false);;
MyViewHolder holder = new MyViewHolder(view);
return holder;
}

@Override
public void onBindViewHolder(RecyclerView.ViewHolder holder, final int position) {
    if (list.get(position).getStatus()==0){
        ((MyViewHolder)holder).ll.setVisibility(View.VISIBLE);
        ((MyViewHolder)holder).mTitleText.setText(list.get(position).getTitle());
        ((MyViewHolder)holder).mPriceText.setText("价格: "+list.get(position).getPrice());
        ((MyViewHolder)holder).mTameText.setText(list.get(position).getCreatetime());
        ((MyViewHolder) holder).mDaizhifuText.setText("待支付");
        ((MyViewHolder) holder).mDaizhifuText.setTextColor(Color.RED);
        ((MyViewHolder) holder).mBtnText.setText("取消订单");
        ((MyViewHolder) holder).mBtnText.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                AlertDialog.Builder builder = new AlertDialog.Builder(context);
                builder.setTitle("提示");
                builder.setMessage("确定要取消订单吗?");
                builder.setPositiveButton("确定", new DialogInterface.OnClickListener() {
                    @Override
                    public void onClick(DialogInterface dialog, int which) {
                        retrofit2.Call<ResponseBody> call = RetrofitUtils.getInstance().update(71,2,list.get(position).getOrderid());
                        call.enqueue(new retrofit2.Callback<ResponseBody>() {
                            @Override
                            public void onResponse(retrofit2.Call<ResponseBody> call, retrofit2.Response<ResponseBody> response) {
                                presenter.DateOrder();
                                notifyDataSetChanged();
                            }

                            @Override
                            public void onFailure(retrofit2.Call<ResponseBody> call, Throwable t) {

                            }
                        });
                    }
                });

                builder.setNegativeButton("取消", new DialogInterface.OnClickListener() {
                    @Override
                    public void onClick(DialogInterface dialog, int which) {

                    }
                });
                builder.show();

            }
        });
    }
}

@Override
public int getItemCount() {
    if (list!=null){
        return list.size();
    }
    return 0;
}
class MyViewHolder extends RecyclerView.ViewHolder {
    TextView mTitleText;
    TextView mDaizhifuText;
    TextView mPriceText;
    TextView mTameText;
    TextView mBtnText;
    LinearLayout ll;
    public MyViewHolder(View itemView) {
        super(itemView);
        mTitleText = (TextView) itemView.findViewById(R.id.text_title);
        mDaizhifuText = (TextView) itemView.findViewById(R.id.text_daizhifu);
        mPriceText = (TextView) itemView.findViewById(R.id.text_price);
        mTameText = (TextView) itemView.findViewById(R.id.text_tame);
        mBtnText = (TextView) itemView.findViewById(R.id.text_btn);
        ll = itemView.findViewById(R.id.ll);
    }
}

}
public class MyQx extends RecyclerView.Adapter<RecyclerView.ViewHolder>{
Context context;
List<OrderBean.DataBean> list;
OrderPresenter presenter;
public MyQx(Context context, List<OrderBean.DataBean> list,OrderPresenter presenter) {
this.context = context;
this.list = list;
this.presenter = presenter;
}

@Override
public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
    View view = LayoutInflater.from(context).inflate(R.layout.qx_item,parent, false);;
    MyViewHolder holder = new MyViewHolder(view);
    return holder;
}

@Override
public void onBindViewHolder(RecyclerView.ViewHolder holder, final int position) {
    if (list.get(position).getStatus()==2){
        ((MyViewHolder)holder).ll.setVisibility(View.VISIBLE);
        ((MyViewHolder)holder).mTitleText.setText(list.get(position).getTitle());
        ((MyViewHolder)holder).mPriceText.setText("价格: "+list.get(position).getPrice());
        ((MyViewHolder)holder).mTameText.setText(list.get(position).getCreatetime());
        ((MyViewHolder) holder).mDaizhifuText.setText("已取消");
        ((MyViewHolder) holder).mDaizhifuText.setTextColor(Color.BLACK);
        ((MyViewHolder) holder).mBtnText.setText("查看订单");
        ((MyViewHolder) holder).mBtnText.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                AlertDialog.Builder builder = new AlertDialog.Builder(context);
                builder.setTitle("提示");
                builder.setMessage("确定循环利用吗?");
                builder.setPositiveButton("确定", new DialogInterface.OnClickListener() {
                    @Override
                    public void onClick(DialogInterface dialog, int which) {
                        retrofit2.Call<ResponseBody> call = RetrofitUtils.getInstance().update(71,0,list.get(position).getOrderid());
                        call.enqueue(new retrofit2.Callback<ResponseBody>() {
                            @Override
                            public void onResponse(retrofit2.Call<ResponseBody> call, retrofit2.Response<ResponseBody> response) {
                                presenter.DateOrder();
                                notifyDataSetChanged();
                            }

                            @Override
                            public void onFailure(retrofit2.Call<ResponseBody> call, Throwable t) {

                            }
                        });
                    }
                });

                builder.setNegativeButton("取消", new DialogInterface.OnClickListener() {
                    @Override
                    public void onClick(DialogInterface dialog, int which) {

                    }
                });
                builder.show();
            }
        });

    }
}

@Override
public int getItemCount() {
    if (list != null){
        return list.size();
    }
    return 0;
}
class MyViewHolder extends RecyclerView.ViewHolder {
    TextView mTitleText;
    TextView mDaizhifuText;
    TextView mPriceText;
    TextView mTameText;
    TextView mBtnText;
    LinearLayout ll;
    public MyViewHolder(View itemView) {
        super(itemView);
        mTitleText = (TextView) itemView.findViewById(R.id.text_title);
        mDaizhifuText = (TextView) itemView.findViewById(R.id.text_daizhifu);
        mPriceText = (TextView) itemView.findViewById(R.id.text_price);
        mTameText = (TextView) itemView.findViewById(R.id.text_tame);
        mBtnText = (TextView) itemView.findViewById(R.id.text_btn);
        ll = itemView.findViewById(R.id.ll);
    }
}

}
public class MyZf extends RecyclerView.Adapter<RecyclerView.ViewHolder>{
Context context;
List<OrderBean.DataBean> list;
private List<String> stringList;

public MyZf(Context context, List<OrderBean.DataBean> list) {
    this.context = context;
    this.list = list;

}
@Override
public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
    View view = LayoutInflater.from(context).inflate(R.layout.yizhifu,parent, false);;
    MyViewHolder holder = new MyViewHolder(view);
    return holder;
}

@Override
public void onBindViewHolder(RecyclerView.ViewHolder holder, final int position) {
    stringList = new ArrayList<>();
    if (list.get(position).getStatus()==1){

// stringList.add(list.get(position).getTitle());
//
// System.out.println("****"+stringList.size());

        ((MyViewHolder)holder).ll.setVisibility(View.VISIBLE);
        ((MyViewHolder)holder).mTitleText.setText(list.get(position).getTitle());
        ((MyViewHolder)holder).mPriceText.setText("价格: "+list.get(position).getPrice());
        ((MyViewHolder)holder).mTameText.setText(list.get(position).getCreatetime());
        ((MyViewHolder) holder).mDaizhifuText.setText("已支付");
        ((MyViewHolder) holder).mDaizhifuText.setTextColor(Color.BLACK);
        ((MyViewHolder) holder).mBtnText.setText("查看订单");
    }
}

@Override
public int getItemCount() {
    if (list != null){
        return list.size();
    }
    return 0;
}
class MyViewHolder extends RecyclerView.ViewHolder {
    TextView mTitleText;
    TextView mDaizhifuText;
    TextView mPriceText;
    TextView mTameText;
    TextView mBtnText;
    LinearLayout ll;
    public MyViewHolder(View itemView) {
        super(itemView);
        mTitleText = (TextView) itemView.findViewById(R.id.text_title);
        mDaizhifuText = (TextView) itemView.findViewById(R.id.text_daizhifu);
        mPriceText = (TextView) itemView.findViewById(R.id.text_price);
        mTameText = (TextView) itemView.findViewById(R.id.text_tame);
        mBtnText = (TextView) itemView.findViewById(R.id.text_btn);
        ll = itemView.findViewById(R.id.ll);
    }
}

}
主activity

public class MainActivity extends AppCompatActivity implements View.OnClickListener {

private RadioGroup radioGroup;
private RadioButton button_1;
private RadioButton button_2;
private RadioButton button_3;
private RadioButton button_4;
private Fragment_1 fragment_1;
private Fragment_2 fragment_2;
private Fragment_3 fragment_3;
private Fragment_4 fragment_4;
private List<Fragment> list;
private FrameLayout frameLayout;
private ImageView mBtnImage;
private View item_popup;
private PopupWindow popupWindow;
private View view;
private TextView btn_daizhi;
private TextView btn_yizhi;
private TextView btn_yiqu;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    initView();
}

private void initView() {
    frameLayout = (FrameLayout) findViewById(R.id.framelayout);
    radioGroup = (RadioGroup) findViewById(R.id.radioGroup);

    //找到四个按钮
    button_1 = (RadioButton) findViewById(R.id.button_1);
    button_2 = (RadioButton) findViewById(R.id.button_2);
    button_3 = (RadioButton) findViewById(R.id.button_3);
    button_4 = (RadioButton) findViewById(R.id.button_4);

    //创建Fragment对象及集合
    fragment_1 = new Fragment_1();
    fragment_2 = new Fragment_2();
    fragment_3 = new Fragment_3();
    fragment_4 = new Fragment_4();

    //将Fragment对象添加到list中
    list = new ArrayList<>();
    list.add(fragment_1);
    list.add(fragment_2);
    list.add(fragment_3);
    list.add(fragment_4);

    //设置RadioGroup开始时设置的按钮,设置第一个按钮为默认值
    radioGroup.check(R.id.button_1);


    //设置按钮点击监听
    button_1.setOnClickListener(this);
    button_2.setOnClickListener(this);
    button_3.setOnClickListener(this);
    button_4.setOnClickListener(this);

    //初始时向容器中添加第一个Fragment对象
    addFragment(fragment_1);

    mBtnImage = (ImageView) findViewById(R.id.image_btn);
    mBtnImage.setOnClickListener(this);
    item_popup = View.inflate(this, R.layout.item_popup, null);
    view = View.inflate(this, R.layout.activity_main, null);
    popupWindow = new PopupWindow(item_popup, ActionBar.LayoutParams.WRAP_CONTENT,ActionBar.LayoutParams.WRAP_CONTENT);
    popupWindow.setTouchable(true);

    btn_daizhi = item_popup.findViewById(R.id.btn_daizhi);
    btn_yizhi = item_popup.findViewById(R.id.btn_yizhi);
    btn_yiqu = item_popup.findViewById(R.id.btn_yiqu);
    btn_daizhi.setOnClickListener(this);
    btn_yizhi.setOnClickListener(this);
    btn_yiqu.setOnClickListener(this);
}

@Override
public void onClick(View v) {
    //我们根据参数的id区别不同按钮
    //不同按钮对应着不同的Fragment对象页面
    switch (v.getId()) {
        case R.id.button_1:
            addFragment(fragment_1);
            break;
        case R.id.button_2:
            addFragment(fragment_2);
            break;
        case R.id.button_3:
            addFragment(fragment_3);
            break;
        case R.id.button_4:
            addFragment(fragment_4);
            break;
        case R.id.image_btn:
            popupWindow.showAsDropDown(mBtnImage);
            break;
        case R.id.btn_daizhi:
            addFragment(fragment_2);
            popupWindow.dismiss();
            break;
        case R.id.btn_yizhi:
            addFragment(fragment_4);
            popupWindow.dismiss();
            break;
        case R.id.btn_yiqu:
            addFragment(fragment_3);
            popupWindow.dismiss();
            break;
        default:
            break;
    }

}

//向Activity中添加Fragment的方法
public void addFragment(Fragment fragment) {

    //获得Fragment管理器
    FragmentManager fragmentManager = getSupportFragmentManager();
    //使用管理器开启事务
    FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
    //使用事务替换Fragment容器中Fragment对象
    fragmentTransaction.replace(R.id.framelayout, fragment);
    //提交事务,否则事务不生效
    fragmentTransaction.commit();
}

}
创建fragment
public abstract class BaseFragment<T extends IPreesenter> extends Fragment {
T presenter;

@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
    createpresenter();
    return super.onCreateView(inflater, container, savedInstanceState);
}

protected abstract void createpresenter();

@Override
public void onDestroy() {
    super.onDestroy();
    if (presenter != null){
        presenter.deach();
    }
}

}
public class Fragment_1 extends BaseFragment<OrderPresenter> implements IOrderView {
private RecyclerView mRecy;

@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
    super.onCreateView(inflater, container, savedInstanceState);
    View view = View.inflate(getActivity(), R.layout.fragment_1, null);
    mRecy = (RecyclerView)view.findViewById(R.id.recy);
    presenter.DateOrder();
    return view;
}

@Override
public void showOrder(List<OrderBean.DataBean> list) {
    LinearLayoutManager mgs = new LinearLayoutManager(getActivity());
    mRecy.setLayoutManager(mgs);
    MyAdapter adapter = new MyAdapter(getActivity(),list,presenter);
    mRecy.setAdapter(adapter);
}

@Override
protected void createpresenter() {
    presenter = new OrderPresenter(this);
}

}
public class Fragment_2 extends BaseFragment<OrderPresenter> implements IOrderView {
RecyclerView recy;
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
super.onCreateView(inflater, container, savedInstanceState);
View view = View.inflate(getActivity(), R.layout.fragment_2,null);
recy = view.findViewById(R.id.recy);
presenter.DateOrder();
return view;
}

@Override
protected void createpresenter() {
    presenter = new OrderPresenter(this);
}

@Override
public void showOrder(List<OrderBean.DataBean> list) {
    LinearLayoutManager mgs = new LinearLayoutManager(getActivity());
    recy.setLayoutManager(mgs);
    MyFrag adapter = new MyFrag(getActivity(),list,presenter);
    recy.setAdapter(adapter);
}

}
public class Fragment_3 extends BaseFragment<OrderPresenter> implements IOrderView {
RecyclerView recyclerView;
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
super.onCreateView(inflater, container, savedInstanceState);
View view = View.inflate(getActivity(), R.layout.fragment_3,null);
recyclerView = view.findViewById(R.id.re);
presenter.DateOrder();
return view;
}

@Override
public void showOrder(List<OrderBean.DataBean> list) {
    LinearLayoutManager mgs = new LinearLayoutManager(getActivity());
    recyclerView.setLayoutManager(mgs);
    MyQx adapter = new MyQx(getActivity(),list,presenter);
    recyclerView.setAdapter(adapter);
}

@Override
protected void createpresenter() {
    presenter = new OrderPresenter(this);
}

}
public class Fragment_4 extends BaseFragment<OrderPresenter> implements IOrderView {
RecyclerView rv;
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
super.onCreateView(inflater, container, savedInstanceState);
View view = View.inflate(getActivity(), R.layout.fragment_4,null);
presenter.DateOrder();
rv = view.findViewById(R.id.rv);
return view;
}

@Override
protected void createpresenter() {
    presenter = new OrderPresenter(this);
}

@Override
public void showOrder(List<OrderBean.DataBean> list) {
    LinearLayoutManager mgs = new LinearLayoutManager(getActivity());
    rv.setLayoutManager(mgs);
    MyZf adapter = new MyZf(getActivity(),list);
    rv.setAdapter(adapter);
}

}

©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 214,658评论 6 496
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 91,482评论 3 389
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 160,213评论 0 350
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 57,395评论 1 288
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 66,487评论 6 386
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 50,523评论 1 293
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 39,525评论 3 414
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 38,300评论 0 270
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 44,753评论 1 307
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 37,048评论 2 330
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 39,223评论 1 343
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 34,905评论 5 338
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 40,541评论 3 322
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 31,168评论 0 21
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,417评论 1 268
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 47,094评论 2 365
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 44,088评论 2 352

推荐阅读更多精彩内容

  • Android 自定义View的各种姿势1 Activity的显示之ViewRootImpl详解 Activity...
    passiontim阅读 171,977评论 25 707
  • 详情页面 packagecom.example.shoppingcar; importandroid.conten...
    ForCrazyLove阅读 564评论 0 2
  • 最近热播的《我的前半生》,很多人都被靳东帅气的外表,职场上的睿智霸气所圈粉。而我最被打动的却是靳东所饰演的角色,...
    卧夫阅读 713评论 0 2
  • 文/水滴 在过年前,一直希冀着等待年二十九那天,看看谁会第一个给我祝福。但是搞笑的是,竟然忘却了,微信号有群发功...
    黄水娣很二阅读 225评论 0 0
  • 看完文章发觉自己昨天问投资时是否需要留一部分资金出来作大跌后补仓的备用金这个问题是多余的了……正如老师所说我在群里...
    阳光心屋阅读 234评论 0 0