| | |
| | | import com.google.gson.GsonBuilder; |
| | | import com.google.gson.reflect.TypeToken; |
| | | import com.nostra13.universalimageloader.cache.disc.naming.Md5FileNameGenerator; |
| | | import com.tejia.lijin.app.ShoppingApplication; |
| | | import com.tejia.lijin.app.util.user.UserUtil; |
| | | import com.viewpagerindicator.CirclePageIndicator; |
| | | import com.wpc.library.content.ConnectivityChangeHelper; |
| | | import com.wpc.library.util.NetUtils; |
| | |
| | | |
| | | //精选 |
| | | SharedPreferences sp = fragment_brand_fragment_sf.getContext().getSharedPreferences("user", MODE_PRIVATE); |
| | | ShoppingApi.getShopList(fragment_brand_fragment_sf.getContext(), page + "", mBundle.getString("id"), (sp.getBoolean("isLogin", false) ? sp.getString("uid", "0") : null), new BasicTextHttpResponseHandler() { |
| | | ShoppingApi.getShopList(fragment_brand_fragment_sf.getContext(), page + "", mBundle.getString("id"), UserUtil.getUid(ShoppingApplication.application), new BasicTextHttpResponseHandler() { |
| | | @Override |
| | | public void onStart() { |
| | | super.onStart(); |
| | |
| | | refresh2 = false; |
| | | //精选 |
| | | SharedPreferences sp = getActivity().getSharedPreferences("user", MODE_PRIVATE); |
| | | ShoppingApi.getHistory(fragment_brand_fragment_sf.getContext(), "1", (sp.getBoolean("isLogin", false) ? sp.getString("uid", "0") : null), "1", new BasicTextHttpResponseHandler() { |
| | | ShoppingApi.getHistory(fragment_brand_fragment_sf.getContext(), "1", UserUtil.getUid(ShoppingApplication.application), "1", new BasicTextHttpResponseHandler() { |
| | | @Override |
| | | public void onSuccessPerfect(int statusCode, Header[] headers, JSONObject jsonObject) throws Exception { |
| | | refresh2 = true; |