@Override
  protected void initView() {
    ivUserLogo.setImageResource(R.drawable.ic_head_default);
    ivUserLogo.setOnClickListener(this);
    btnSetting.setOnClickListener(this);
    ivScan.setOnClickListener(this);
    // 不启动任何刷新
    plServiceList.setMode(Mode.PULL_FROM_START);
    // 不显示指示器
    plServiceList.setShowIndicator(false);
    plServiceList
        .getLoadingLayoutProxy()
        .setLastUpdatedLabel(SharedPreferenceManager.getInstance().getString(getFragmentTag(), ""));
    plServiceList.setOnPullEventListener(pullEventListener);
    plServiceList.setOnRefreshListener(this);
    listView = plServiceList.getRefreshableView();
    listView.setOnItemClickListener(itemClick);
    initUserMsg();

    if (serviceHeaderView != null) listView.removeHeaderView(serviceHeaderView);
    if (listView.getHeaderViewsCount() == 0) {
      serviceHeaderView =
          new ServiceHeaderView(getActivity(), new ArrayList<SystemPromotionBanner>());
      listView.addHeaderView(serviceHeaderView);
    }

    adapter =
        new SystemPromotionListAdapter(getActivity(), new ArrayList<SystemPromotionDiscovery>());
    listView.setAdapter(adapter);

    requestSystemMessage();
    if (!SharedPreferenceManager.getInstance().getBoolean("isClickSetting", false)
        && SharedPreferenceManager.getInstance().getBoolean("isHaveNewVersion", false)) {
      ivVersionFlag.setVisibility(View.VISIBLE);
    } else {
      ivVersionFlag.setVisibility(View.GONE);
    }
  }
 /** 刷新完成 */
 private void refreshComplete() {
   if (plServiceList != null) {
     plServiceList.onRefreshComplete();
   }
 }