| | |
| | | import com.alibaba.baichuan.trade.biz.core.taoke.AlibcTaokeParams; |
| | | import com.alibaba.baichuan.trade.biz.login.AlibcLogin; |
| | | import com.alibaba.baichuan.trade.biz.login.AlibcLoginCallback; |
| | | import com.tejia.lijin.app.ShoppingApplication; |
| | | import com.tejia.lijin.app.util.JumpActivityUtil; |
| | | import com.google.gson.Gson; |
| | | import com.google.gson.GsonBuilder; |
| | |
| | | private String id; |
| | | |
| | | private void getGoodsdetail() { |
| | | SharedPreferences sp = getSharedPreferences("user", MODE_PRIVATE); |
| | | String uid = sp.getString("uid", ""); |
| | | ShoppingApi.getGoodsInfoTB(this, id, uid, isTrolley ? "购物车" : isWeex ? "weex" : "其它", new BasicTextHttpResponseHandler() { |
| | | ShoppingApi.getGoodsInfoTB(this, id, UserUtil.getUid(ShoppingApplication.application), isTrolley ? "购物车" : isWeex ? "weex" : "其它", new BasicTextHttpResponseHandler() { |
| | | @Override |
| | | public void onSuccessPerfect(int statusCode, Header[] headers, JSONObject jsonObject) throws Exception { |
| | | Log.e("mResult", "getGoodsdetail()---onSuccessPerfect()---"); |
| | |
| | | |
| | | private void refresh(final ImageView iv) { |
| | | SharedPreferences sp = getSharedPreferences("user", MODE_PRIVATE); |
| | | String uid = sp.getString("uid", ""); |
| | | ShoppingApi.getGoodsInfoTB(this, id, uid, isTrolley ? "购物车" : isWeex ? "weex" : "其它", new BasicTextHttpResponseHandler() { |
| | | ShoppingApi.getGoodsInfoTB(this, id, UserUtil.getUid(ShoppingApplication.application), isTrolley ? "购物车" : isWeex ? "weex" : "其它", new BasicTextHttpResponseHandler() { |
| | | @Override |
| | | public void onSuccessPerfect(int statusCode, Header[] headers, JSONObject jsonObject) throws Exception { |
| | | if (jsonObject.optString("code").equalsIgnoreCase("0")) { |
| | |
| | | private void getTaobaoShareLink() { |
| | | final ShapeLoadingDialog pb = new ShapeLoadingDialog.Builder(this).build(); |
| | | pb.show(); |
| | | String uid = getSharedPreferences("user", MODE_PRIVATE).getString("uid", "0"); |
| | | ShoppingApi.createShareLink(this, uid, mInfo.getGoods().getGoodsId(), mInfo.getGoods().getGoodsType() + "", "", null,null, new BasicTextHttpResponseHandler() { |
| | | ShoppingApi.createShareLink(this, UserUtil.getUid(ShoppingApplication.application), mInfo.getGoods().getGoodsId(), mInfo.getGoods().getGoodsType() + "", "", null,null, new BasicTextHttpResponseHandler() { |
| | | @Override |
| | | public void onSuccessPerfect(int statusCode, Header[] headers, JSONObject jsonObject) throws Exception { |
| | | if (jsonObject.optString("code").equalsIgnoreCase("0")) { |
| | |
| | | } |
| | | |
| | | private void collection() { |
| | | String uid = getSharedPreferences("user", MODE_PRIVATE).getString("uid", "0"); |
| | | ShoppingApi.collectionGoods(GoodsDetailBrowerActivity.this, id, uid, isCollection ? "2" : "1", mInfo.getGoods().getGoodsType() + "", new BasicTextHttpResponseHandler() { |
| | | ShoppingApi.collectionGoods(GoodsDetailBrowerActivity.this, id, UserUtil.getUid(ShoppingApplication.application), isCollection ? "2" : "1", mInfo.getGoods().getGoodsType() + "", new BasicTextHttpResponseHandler() { |
| | | @Override |
| | | public void onSuccessPerfect(int statusCode, Header[] headers, JSONObject jsonObject) throws Exception { |
| | | if (jsonObject.optString("code").equalsIgnoreCase("0")) { |