| | |
| | | import android.widget.TextView; |
| | | import android.widget.Toast; |
| | | |
| | | import com.tejia.lijin.app.ShoppingApplication; |
| | | import com.tejia.lijin.app.util.user.UserUtil; |
| | | import com.wpc.library.util.common.StringUtils; |
| | | import com.tejia.lijin.app.BasicTextHttpResponseHandler; |
| | | import com.tejia.lijin.app.R; |
| | |
| | | * 获取模板 |
| | | */ |
| | | private void getShareTextTemplate() { |
| | | SharedPreferences sp = getSharedPreferences("user", MODE_PRIVATE); |
| | | String uid = sp.getString("uid", ""); |
| | | ShoppingApi.getShareTextTemplate(ActivityContentCompile.this, uid, hasCoupon + "", tljId, goodsType, |
| | | ShoppingApi.getShareTextTemplate(ActivityContentCompile.this, UserUtil.getUid(ShoppingApplication.application), hasCoupon + "", tljId, goodsType, |
| | | new BasicTextHttpResponseHandler() { |
| | | @Override |
| | | public void onSuccessPerfect(int statusCode, Header[] headers, JSONObject jsonObject) throws Exception { |
| | |
| | | * 预览模板 |
| | | */ |
| | | private void viewShareTextTemplate() { |
| | | SharedPreferences sp = getSharedPreferences("user", MODE_PRIVATE); |
| | | String uid = sp.getString("uid", ""); |
| | | ShoppingApi.viewShareTextTemplate(ActivityContentCompile.this, uid, |
| | | ShoppingApi.viewShareTextTemplate(ActivityContentCompile.this, UserUtil.getUid(ShoppingApplication.application), |
| | | goodsId, hasCoupon + "", content, tljId, goodsType, new BasicTextHttpResponseHandler() { |
| | | @Override |
| | | public void onSuccessPerfect(int statusCode, Header[] headers, JSONObject jsonObject) throws Exception { |
| | |
| | | */ |
| | | private void saveShareTextTemplate() { |
| | | SharedPreferences sp = getSharedPreferences("user", MODE_PRIVATE); |
| | | String uid = sp.getString("uid", ""); |
| | | Long uid = UserUtil.getUid(ShoppingApplication.application); |
| | | ShoppingApi.saveShareTextTemplate(ActivityContentCompile.this, uid, |
| | | hasCoupon + "", et_content_compile.getText().toString(), tljId, goodsType, new BasicTextHttpResponseHandler() { |
| | | @Override |