第N+3次提交 还缺专属红包

This commit is contained in:
xuhuixiang
2025-04-29 11:30:48 +08:00
parent 725426ea65
commit b07055fe3f
23 changed files with 296 additions and 377 deletions

View File

@@ -949,40 +949,22 @@ public class RegisterActivity extends BaseActivity {
private void toQIiNiuYunOss(File file) { private void toQIiNiuYunOss(File file) {
String updatePathPic = "postHomepageBackground";
String updatePathPicHead = "userAvatarFileName"; String updatePathPicHead = "userAvatarFileName";
// new Handler().post(() -> QiNiuTool.upload(convertFileToBytes(file)));
UploadOptions options = new UploadOptions(null, null, true, UploadOptions options = new UploadOptions(null, null, true,
(key, percent) -> { (key, percent) -> {
LogUtils.i("结果是啥进度:" + percent);
}, () -> { }, () -> {
LogUtils.i("结果是啥进度112222222111");
return false; return false;
}); });
// Zone zone = FixedZone.zoneAs0;
Configuration configuration = new Configuration.Builder() Configuration configuration = new Configuration.Builder()
// .connectTimeout(10) // 链接超时。默认10秒
// .responseTimeout(60) // 服务器响应超时。默认60秒
// .zone(zone) // 设置区域不指定会自动选择。指定不同区域的上传域名、备用域名、备用IP。
.build(); .build();
UploadManager uploadManager = new UploadManager(configuration); UploadManager uploadManager = new UploadManager(configuration);
String fileName = UUID.randomUUID().toString() + "_" + file.getName(); String fileName = UUID.randomUUID().toString() + "_" + file.getName();
LogUtils.i("结果是啥开始:" + stsCredentialsBean + ";;" + file.getAbsolutePath()); // LogUtils.i("结果是啥开始:" + stsCredentialsBean + ";;" + file.getAbsolutePath());
// Uri uri = FileUtils.getMediaUriFromPath(file.getAbsolutePath(),UserHeadEditActivity.this);
// GPX2hnRdNpAvovOSZGrhMxtaa6JP2mPvJ96-tdmD
// immchat
String files = "media/" + updatePathPicHead + "/" + fileName; String files = "media/" + updatePathPicHead + "/" + fileName;
uploadManager.put(file, files, stsCredentialsBean, (key, info, response) -> {
byte[] sss = convertFileToBytes(file);
LogUtils.i("结果是啥开始:" + sss);
uploadManager.put(sss, files, stsCredentialsBean, (key, info, response) -> {
// LogUtils.i("结果是啥2" + GsonUtils.beanToJSONString(info)); // LogUtils.i("结果是啥2" + GsonUtils.beanToJSONString(info));
LogUtils.i("结果是啥2" + GsonUtils.beanToJSONString(response)); // LogUtils.i("结果是啥2" + GsonUtils.beanToJSONString(response));
dimessLoadingDialog(); dimessLoadingDialog();
if (info != null && info.isOK()) { if (info != null && info.isOK()) {
// 上传成功 // 上传成功

View File

@@ -74,7 +74,7 @@ public class ChatTabFragment extends BaseFragment {
ChatConversationFragment allConversationFragment; ChatConversationFragment allConversationFragment;
ChatConversationFragment friendConversationFragment; ChatConversationFragment friendConversationFragment;
ChatConversationFragment teamConversationFragment; ChatConversationFragment teamConversationFragment;
FollowListFragment followListFragment; // FollowListFragment followListFragment;
private FragmentAdapter fragmentAdapter; private FragmentAdapter fragmentAdapter;
private View mCurrentTab; private View mCurrentTab;
@@ -115,9 +115,9 @@ public class ChatTabFragment extends BaseFragment {
if (type == 2) { if (type == 2) {
deleteMoreConversation(2, conversationEditEvent.getList()); deleteMoreConversation(2, conversationEditEvent.getList());
} }
if (type == 3) { // if (type == 3) {
followListFragment.updateConversation(conversationEditEvent.getList()); // followListFragment.updateConversation(conversationEditEvent.getList());
} // }
} }
@NonNull @NonNull
@@ -315,10 +315,10 @@ public class ChatTabFragment extends BaseFragment {
public void initView() { public void initView() {
tabView = new View[]{viewBinding.layoutChatfmAll, viewBinding.layoutChatfmFriends, viewBinding.layoutChatfmGroup, viewBinding.layoutChatfmFollow}; tabView = new View[]{viewBinding.layoutChatfmAll, viewBinding.layoutChatfmFriends, viewBinding.layoutChatfmGroup, viewBinding.layoutChatfmFollow};
fragments.add(allConversationFragment = ChatConversationFragment.newInstance(0)); fragments.add(allConversationFragment = ChatConversationFragment.newInstance(0));
fragments.add(friendConversationFragment = ChatConversationFragment.newInstance(1)); // fragments.add(friendConversationFragment = ChatConversationFragment.newInstance(1));
fragments.add(teamConversationFragment = ChatConversationFragment.newInstance(2)); // fragments.add(teamConversationFragment = ChatConversationFragment.newInstance(2));
followListFragment = new FollowListFragment(); // followListFragment = new FollowListFragment();
fragments.add(followListFragment); // fragments.add(followListFragment);
fragmentAdapter = new FragmentAdapter(this); fragmentAdapter = new FragmentAdapter(this);
@@ -331,7 +331,7 @@ public class ChatTabFragment extends BaseFragment {
viewBinding.layoutChatfmAll.setOnClickListener(this::chatClick); viewBinding.layoutChatfmAll.setOnClickListener(this::chatClick);
viewBinding.layoutChatfmFriends.setOnClickListener(this::chatClick); viewBinding.layoutChatfmFriends.setOnClickListener(this::chatClick);
viewBinding.layoutChatfmGroup.setOnClickListener(this::chatClick); viewBinding.layoutChatfmGroup.setOnClickListener(this::chatClick);
viewBinding.layoutChatfmFollow.setOnClickListener(this::chatClick); // viewBinding.layoutChatfmFollow.setOnClickListener(this::chatClick);
viewBinding.viewSettingclick.setOnClickListener(view -> { viewBinding.viewSettingclick.setOnClickListener(view -> {
startActivity(new Intent(getActivity(), EditChatRecordlistActivity.class).putExtra("groupIds", groupIds)); startActivity(new Intent(getActivity(), EditChatRecordlistActivity.class).putExtra("groupIds", groupIds));

View File

@@ -537,7 +537,7 @@ public class MineFragment extends BaseFragment {
Api.getInstance().walletInfo(IMKitClient.account()) Api.getInstance().walletInfo(IMKitClient.account())
.subscribeOn(Schedulers.io()) .subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread()) .observeOn(AndroidSchedulers.mainThread())
.subscribe(new BaseObserver<Result<WalletBean>>() { .subscribe(new BaseObserver<>() {
@Override @Override
public void onSuccess(Result<WalletBean> feedbackResp) { public void onSuccess(Result<WalletBean> feedbackResp) {

View File

@@ -308,49 +308,30 @@ public class UserHeadEditActivity extends BaseActivity implements CommonCallback
private void toQIiNiuYunOss(File file, boolean isHead) { private void toQIiNiuYunOss(File file, boolean isHead) {
String updatePathPic = "postHomepageBackground"; String updatePathPic = "postHomepageBackground";
String updatePathPicHead = "userAvatarFileName"; String updatePathPicHead = "userAvatarFileName";
// new Handler().post(() -> QiNiuTool.upload(convertFileToBytes(file)));
UploadOptions options = new UploadOptions(null, null, true, UploadOptions options = new UploadOptions(null, null, true,
(key, percent) -> { (key, percent) -> {
LogUtils.i("结果是啥进度:" + percent);
}, () -> { }, () -> {
LogUtils.i("结果是啥进度112222222111");
return false; return false;
}); });
// Zone zone = FixedZone.zoneAs0;
Configuration configuration = new Configuration.Builder() Configuration configuration = new Configuration.Builder()
// .connectTimeout(10) // 链接超时。默认10秒
// .responseTimeout(60) // 服务器响应超时。默认60秒
// .zone(zone) // 设置区域不指定会自动选择。指定不同区域的上传域名、备用域名、备用IP。
.build(); .build();
UploadManager uploadManager = new UploadManager(configuration); UploadManager uploadManager = new UploadManager(configuration);
String fileName = UUID.randomUUID().toString() + "_" + file.getName(); String fileName = UUID.randomUUID().toString() + "_" + file.getName();
LogUtils.i("结果是啥开始:" + stsCredentialsBean + ";;" + file.getAbsolutePath()); LogUtils.i("结果是啥开始:" + stsCredentialsBean + ";;" + file.getAbsolutePath());
// Uri uri = FileUtils.getMediaUriFromPath(file.getAbsolutePath(),UserHeadEditActivity.this);
// GPX2hnRdNpAvovOSZGrhMxtaa6JP2mPvJ96-tdmD
// immchat
String files = "media/" + updatePathPic + "/" + fileName; String files = "media/" + updatePathPic + "/" + fileName;
if (isHead) { if (isHead) {
files = "media/" + updatePathPicHead + "/" + fileName; files = "media/" + updatePathPicHead + "/" + fileName;
} }
byte[] sss = convertFileToBytes(file); uploadManager.put(file, files, stsCredentialsBean, (key, info, response) -> {
LogUtils.i("结果是啥开始:" + sss);
uploadManager.put(sss, files, stsCredentialsBean, (key, info, response) -> {
// LogUtils.i("结果是啥2" + GsonUtils.beanToJSONString(info));
LogUtils.i("结果是啥2" + GsonUtils.beanToJSONString(response));
dimessLoadingDialog(); dimessLoadingDialog();
if (info != null && info.isOK()) { if (info != null && info.isOK()) {
// 上传成功 // 上传成功
try { try {
if (isHead) { if (isHead) {
LogUtils.i("地址是啥:" + response.getString("key"));
toPush(IMUIKitConfig.OSS_URL + response.getString("key"), isHead); toPush(IMUIKitConfig.OSS_URL + response.getString("key"), isHead);
} else { } else {
LogUtils.i("地址是啥:" + response.getString("key"));
toPush(response.getString("key"), isHead); toPush(response.getString("key"), isHead);
} }
} catch (JSONException e) { } catch (JSONException e) {

View File

@@ -96,6 +96,9 @@ public class LoginBean extends RosterElementEntity {
} }
public Integer getIsFollow() { public Integer getIsFollow() {
if(isFollow == null){
return 0;
}
return isFollow; return isFollow;
} }

View File

@@ -0,0 +1,67 @@
package com.hbl.lewan.model;
public class RedBean {
private String groupName;
private int amount;
private String createTime;
private int type;
private Integer sendCount;
private Integer grabCount;
public String getGroupName() {
return groupName;
}
public void setGroupName(String groupName) {
this.groupName = groupName;
}
public int getAmount() {
return amount;
}
public void setAmount(int amount) {
this.amount = amount;
}
public String getCreateTime() {
return createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime;
}
public int getType() {
return type;
}
public void setType(int type) {
this.type = type;
}
public Integer getSendCount() {
if(sendCount==null){
return 1;
}
return sendCount;
}
public void setSendCount(Integer sendCount) {
this.sendCount = sendCount;
}
public Integer getGrabCount() {
if(grabCount==null){
return 0;
}
return grabCount;
}
public void setGrabCount(Integer grabCount) {
this.grabCount = grabCount;
}
}

View File

@@ -14,14 +14,14 @@ public class RedLogBean {
private Integer redPkgCount; private Integer redPkgCount;
private Integer redPkgAmount; private Integer redPkgAmount;
private List<BillBean> groupGrabRecords; private ListBeanResult<RedBean> groupGrabRecords;
private List<BillBean> groupSendRecords; private ListBeanResult<RedBean> groupSendRecords;
public List<BillBean> getGroupSendRecords() { public ListBeanResult<RedBean> getGroupSendRecords() {
return groupSendRecords; return groupSendRecords;
} }
public void setGroupSendRecords(List<BillBean> groupSendRecords) { public void setGroupSendRecords(ListBeanResult<RedBean> groupSendRecords) {
this.groupSendRecords = groupSendRecords; this.groupSendRecords = groupSendRecords;
} }
@@ -41,11 +41,11 @@ public class RedLogBean {
this.redPkgAmount = redPkgAmount; this.redPkgAmount = redPkgAmount;
} }
public List<BillBean> getGroupGrabRecords() { public ListBeanResult<RedBean> getGroupGrabRecords() {
return groupGrabRecords; return groupGrabRecords;
} }
public void setGroupGrabRecords(List<BillBean> groupGrabRecords) { public void setGroupGrabRecords(ListBeanResult<RedBean> groupGrabRecords) {
this.groupGrabRecords = groupGrabRecords; this.groupGrabRecords = groupGrabRecords;
} }
} }

View File

@@ -104,7 +104,7 @@ public class SendRedPacketActivity extends BaseActivity {
int maxNumber = 100; int maxNumber = 100;
protected Team teamInfo; protected Team teamInfo;
protected TeamMember teamMember; protected TeamMember teamMember;
private boolean isJinBi = false; private boolean isJinBi = true;
private ActivitySendRedPacketBinding viewBinding; private ActivitySendRedPacketBinding viewBinding;
PayCashFingerDialog payCashFingerDialog; PayCashFingerDialog payCashFingerDialog;
PayCashDialog payDialog; PayCashDialog payDialog;
@@ -404,15 +404,23 @@ public class SendRedPacketActivity extends BaseActivity {
// } // }
if (isGroup) { if (isGroup) {
if (TextUtils.isEmpty(viewBinding.sizeHintEt.getText().toString().trim())) { if(isPinShouQi) {
ToastX.showShortToast(R.string.size_not_null_tips_txt); if (TextUtils.isEmpty(viewBinding.sizeHintEt.getText().toString().trim())) {
return; ToastX.showShortToast(R.string.size_not_null_tips_txt);
} return;
}
if (Integer.parseInt(viewBinding.sizeHintEt.getText().toString().trim()) < 1) { if (Integer.parseInt(viewBinding.sizeHintEt.getText().toString().trim()) < 1) {
ToastX.showShortToast(R.string.qsrhbgs_txt); ToastX.showShortToast(R.string.qsrhbgs_txt);
return; return;
}
}else{
if (userInfo == null) {
ToastX.showShortToast("请先选择收红包用户");
return;
}
} }
} }
@@ -464,33 +472,6 @@ public class SendRedPacketActivity extends BaseActivity {
} }
if (walletBean != null) { if (walletBean != null) {
if (Float.parseFloat(viewBinding.numberTv.getText().toString().trim()) > (isJinBi ? walletBean.getGoldCoin() / 100f : walletBean.getSilverCoin() / 100f)) { if (Float.parseFloat(viewBinding.numberTv.getText().toString().trim()) > (isJinBi ? walletBean.getGoldCoin() / 100f : walletBean.getSilverCoin() / 100f)) {
// new AlertDialog.Builder(SendRedPacketActivity.this)
// .setTitle("余额不足")
// .setMessage("是否去充值金额?")
// .setPositiveButton("去充值", (dialog, which) -> {
// Intent intent = new Intent(SendRedPacketActivity.this, TopActivity.class);
// startActivity(intent);
// })
// .setNegativeButton($$(R.string.general_cancel), null)
// .show();
// ActionConfirmDialog actionDialog = new ActionConfirmDialog(SendRedPacketActivity.this, getString(R.string.sfqcz_txt), getString(R.string.general_cancel), getString(R.string.quchongzhi_txt));
// actionDialog.setOnToActionListener(new ActionConfirmDialog.OnToActionListener() {
// @Override
// public void toSumbit() {
// Intent intent = new Intent(SendRedPacketActivity.this, WalletInfoActivity.class);
// intent.putExtra("isG", true);
// startActivity(intent);
// }
//
// @Override
// public void toCancel() {
//
// }
// });
// actionDialog.show();
ToastX.showShortToast(R.string.yebz_txt); ToastX.showShortToast(R.string.yebz_txt);
return; return;
@@ -882,6 +863,12 @@ public class SendRedPacketActivity extends BaseActivity {
groupBean.getCount() + "", groupBean.getResidualCount() + "", groupBean.getResidualAmount() + "", groupBean.getSendTime(), groupBean.getCount() + "", groupBean.getResidualCount() + "", groupBean.getResidualAmount() + "", groupBean.getSendTime(),
groupBean.getFinishTime(), groupBean.getRemark(), groupBean.getSenderNickname(), groupBean.getCoinType() + "", groupBean.getFinishTime(), groupBean.getRemark(), groupBean.getSenderNickname(), groupBean.getCoinType() + "",
null, null); null, null);
//{"amount":"1000","coinType":"0","count":"2","groupId":"38605640048","id":"1917033242059538434",
// "isCashGift":"0","remark":"恭喜发财,大吉大利","residualAmount":"1000","residualCount":"2",
// "sendTime":"2025-04-29 09:48:36","senderNickname":"特朗普",
// "senderUid":"61330233","status":"0","type":1005}
toShareMessageGroup(redPacketAttachment); toShareMessageGroup(redPacketAttachment);
} }

View File

@@ -400,47 +400,28 @@ public class BindWeChatOrAliPayActivity extends BaseActivity {
private void toQIiNiuYunOss(File file) { private void toQIiNiuYunOss(File file) {
String updatePathPic = isWeChat ? "wechat" : "alipay"; String updatePathPic = isWeChat ? "wechat" : "alipay";
// new Handler().post(() -> QiNiuTool.upload(convertFileToBytes(file)));
UploadOptions options = new UploadOptions(null, null, true, UploadOptions options = new UploadOptions(null, null, true,
(key, percent) -> { (key, percent) -> {
LogUtils.i("结果是啥进度:" + percent); LogUtils.i("结果是啥进度:" + percent);
}, () -> { }, () -> {
LogUtils.i("结果是啥进度112222222111");
return false; return false;
}); });
// Zone zone = FixedZone.zoneAs0;
Configuration configuration = new Configuration.Builder() Configuration configuration = new Configuration.Builder()
// .connectTimeout(10) // 链接超时。默认10秒
// .responseTimeout(60) // 服务器响应超时。默认60秒
// .zone(zone) // 设置区域不指定会自动选择。指定不同区域的上传域名、备用域名、备用IP。
.build(); .build();
UploadManager uploadManager = new UploadManager(configuration); UploadManager uploadManager = new UploadManager(configuration);
String fileName = UUID.randomUUID().toString() + "_" + file.getName(); String fileName = UUID.randomUUID().toString() + "_" + file.getName();
LogUtils.i("结果是啥开始:" + stsCredentialsBean + ";;" + file.getAbsolutePath()); LogUtils.i("结果是啥开始:" + stsCredentialsBean + ";;" + file.getAbsolutePath());
// Uri uri = FileUtils.getMediaUriFromPath(file.getAbsolutePath(),UserHeadEditActivity.this);
// GPX2hnRdNpAvovOSZGrhMxtaa6JP2mPvJ96-tdmD
// immchat
String files = "media/" + updatePathPic + "/" + fileName; String files = "media/" + updatePathPic + "/" + fileName;
byte[] sss = convertFileToBytes(file);
LogUtils.i("结果是啥开始:" + sss);
uploadManager.put(sss, files, stsCredentialsBean, (key, info, response) -> { uploadManager.put(file, files, stsCredentialsBean, (key, info, response) -> {
// LogUtils.i("结果是啥2" + GsonUtils.beanToJSONString(info));
LogUtils.i("结果是啥2" + GsonUtils.beanToJSONString(response));
dimessLoadingDialog(); dimessLoadingDialog();
if (info != null && info.isOK()) { if (info != null && info.isOK()) {
// 上传成功 // 上传成功
try { try {
LogUtils.i("地址是啥:" + response.getString("key"));
toPush(IMUIKitConfig.OSS_URL + response.getString("key")); toPush(IMUIKitConfig.OSS_URL + response.getString("key"));
} catch (JSONException e) { } catch (JSONException e) {
LogUtils.i("结果是啥失败:" + e); LogUtils.i("结果是啥失败:" + e);
} }

View File

@@ -274,6 +274,8 @@ public class TiXianActivity extends BaseActivity {
if(aliPayBeans!=null&&aliPayBeans.size()>0){ if(aliPayBeans!=null&&aliPayBeans.size()>0){
viewBinding.shoukuanBt.setText(aliPayBeans.get(0).getCardholderName()+" "+aliPayBeans.get(0).getBankName()+" "+aliPayBeans.get(0).getNumber()); viewBinding.shoukuanBt.setText(aliPayBeans.get(0).getCardholderName()+" "+aliPayBeans.get(0).getBankName()+" "+aliPayBeans.get(0).getNumber());
bankBean =aliPayBeans.get(0); bankBean =aliPayBeans.get(0);
}else{
viewBinding.shoukuanBt.setText("");
} }
if(tiXianConfBean!=null) { if(tiXianConfBean!=null) {
viewBinding.tipsTv.setText(Html.fromHtml("单笔提现手续费<font color = '#FA6947'>" + tiXianConfBean.getBaseFee() + "</font>元<br>提现费率<font color = '#FA6947'>" + tiXianConfBean.getFeeRate() + "%</font><br>预计到账时间<font color = '#FA6947'>2</font>小时以内")); viewBinding.tipsTv.setText(Html.fromHtml("单笔提现手续费<font color = '#FA6947'>" + tiXianConfBean.getBaseFee() + "</font>元<br>提现费率<font color = '#FA6947'>" + tiXianConfBean.getFeeRate() + "%</font><br>预计到账时间<font color = '#FA6947'>2</font>小时以内"));
@@ -287,6 +289,8 @@ public class TiXianActivity extends BaseActivity {
if(bankBeans!=null&&bankBeans.size()>0){ if(bankBeans!=null&&bankBeans.size()>0){
viewBinding.shoukuanBt.setText(bankBeans.get(0).getCardholderName()+" "+bankBeans.get(0).getBankName()+" "+bankBeans.get(0).getNumber()); viewBinding.shoukuanBt.setText(bankBeans.get(0).getCardholderName()+" "+bankBeans.get(0).getBankName()+" "+bankBeans.get(0).getNumber());
bankBean =bankBeans.get(0); bankBean =bankBeans.get(0);
}else{
viewBinding.shoukuanBt.setText("");
} }
if(tiXianConfBean!=null) { if(tiXianConfBean!=null) {
viewBinding.tipsTv.setText(Html.fromHtml("单笔提现手续费<font color = '#FA6947'>" + tiXianConfBean.getBaseFee() + "</font>元<br>提现费率<font color = '#FA6947'>" + tiXianConfBean.getFeeRate() + "%</font><br>预计到账时间<font color = '#FA6947'>2</font>小时以内")); viewBinding.tipsTv.setText(Html.fromHtml("单笔提现手续费<font color = '#FA6947'>" + tiXianConfBean.getBaseFee() + "</font>元<br>提现费率<font color = '#FA6947'>" + tiXianConfBean.getFeeRate() + "%</font><br>预计到账时间<font color = '#FA6947'>2</font>小时以内"));

View File

@@ -141,28 +141,31 @@ public class WalletInfoFragment extends BaseFragment {
taskBeans = GsonUtils.getListFromJSON(billBean, TaskBean.class); taskBeans = GsonUtils.getListFromJSON(billBean, TaskBean.class);
} }
Calendar selectedDate = Calendar.getInstance();//系统当前时间 Calendar selectedDate = Calendar.getInstance();//系统当前时间
time = selectedDate.get(Calendar.YEAR) + "-" + ((selectedDate.get(Calendar.MONTH) + 1) < 10 ? "0" + (selectedDate.get(Calendar.MONTH) + 1) : (selectedDate.get(Calendar.MONTH) + 1)); // time = selectedDate.get(Calendar.YEAR) + "-" + ((selectedDate.get(Calendar.MONTH) + 1) < 10 ? "0" + (selectedDate.get(Calendar.MONTH) + 1) : (selectedDate.get(Calendar.MONTH) + 1));
loc = DataUtils.get(IMApplication.getInstance(), "locale", 1); loc = DataUtils.get(IMApplication.getInstance(), "locale", 1);
// } // }
binding.typeTv1.setOnClickListener(v -> { // binding.typeTv1.setOnClickListener(v -> {
SelectTypeDialog selectTypeDialog = new SelectTypeDialog(getActivity(), type, this.status == 0); // SelectTypeDialog selectTypeDialog = new SelectTypeDialog(getActivity(), type, this.status == 0);
selectTypeDialog.setOnToVipListener(t -> { // selectTypeDialog.setOnToVipListener(t -> {
type = t.getType(); // type = t.getType();
binding.typeTv1.setText(TypeBean.getTypeString1(type, this.status == 0)); // binding.typeTv1.setText(TypeBean.getTypeString1(type, this.status == 0));
binding.refreshLayout.autoRefresh(); // binding.refreshLayout.autoRefresh();
}); //
selectTypeDialog.show(); // });
}); // selectTypeDialog.show();
// });
initList(); initList();
initRefreshLayout(); initRefreshLayout();
time = DataUtils.getCurrentTimeMonth(System.currentTimeMillis()); time = DataUtils.getCurrentTimeMonth(System.currentTimeMillis());
binding.typeTv1.setText(time); binding.typeTv1.setText(time);
getStatistics();
binding.typeTv1.setOnClickListener(v -> showTimerPicker()); binding.typeTv1.setOnClickListener(v -> showTimerPicker());
} }
String data = DataUtils.getCurrentTimeType(System.currentTimeMillis()); String data = DataUtils.getCurrentTimeType(System.currentTimeMillis());
private void showTimerPicker() { private void showTimerPicker() {
@@ -175,11 +178,11 @@ public class WalletInfoFragment extends BaseFragment {
timestamp -> { timestamp -> {
time = DataUtils.getCurrentTimeMonth(timestamp); time = DataUtils.getCurrentTimeMonth(timestamp);
binding.typeTv1.setText(time); binding.typeTv1.setText(time);
data = DataUtils.getCurrentTimeType(timestamp); data = DataUtils.getCurrentTimeType(timestamp);
binding.nodateLy.setVisibility(View.GONE); binding.nodateLy.setVisibility(View.GONE);
binding.refreshLayout.setVisibility(View.VISIBLE); binding.refreshLayout.setVisibility(View.VISIBLE);
binding.refreshLayout.autoRefresh(); binding.refreshLayout.autoRefresh();
// getStatistics(); getStatistics();
}, },
beginTime, beginTime,
endTime, data); endTime, data);
@@ -193,22 +196,15 @@ public class WalletInfoFragment extends BaseFragment {
mTimerPicker.setCanShowAnim(false); mTimerPicker.setCanShowAnim(false);
mTimerPicker.show(data); mTimerPicker.show(data);
} }
private void getStatistics() { private void getStatistics() {
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
if (status == 0) { map.put("coinType", 0);
map.put("coinType", 0); String statTime = time + "-01 00:00:01";
} else { String endTime = time + "-" + getMonth(time) + " 23:59:59";
map.put("coinType", 1); map.put("timeGe", statTime);
map.put("timeLe", endTime);
}
if (TextUtils.isEmpty(typeInfo)) {
} else {
String statTime = time + "-01 00:00:01";
String endTime = time + "-" + getMonth(time) + " 23:59:59";
map.put("timeGe", statTime);
map.put("timeLe", endTime);
}
if (!TextUtils.isEmpty(IMUIKitConfig.SUBSTATIONID)) { if (!TextUtils.isEmpty(IMUIKitConfig.SUBSTATIONID)) {
map.put("substationId", IMUIKitConfig.SUBSTATIONID); map.put("substationId", IMUIKitConfig.SUBSTATIONID);
} }
@@ -219,8 +215,8 @@ public class WalletInfoFragment extends BaseFragment {
@Override @Override
public void onSuccess(Result<StatisticsBean> feedbackResp) { public void onSuccess(Result<StatisticsBean> feedbackResp) {
if (feedbackResp.data != null) { if (feedbackResp.data != null) {
// outTv.setText(String.format("%.2f", Math.abs(feedbackResp.data.getOutgoing()) / 100f)); binding.outTv.setText(AppUtils.getQian(feedbackResp.data.getOutgoing()));
// incomeTv.setText(String.format("%.2f", feedbackResp.data.getIncoming() / 100f)); binding.incomeTv.setText(AppUtils.getQian(feedbackResp.data.getIncoming()));
} }
} }
@@ -233,74 +229,6 @@ public class WalletInfoFragment extends BaseFragment {
} }
// private void initCustomTimePicker() {
// /**
// * @description
// *
// * 注意事项:
// * 1.自定义布局中id为 optionspicker 或者 timepicker 的布局以及其子控件必须要有,否则会报空指针.
// * 具体可参考demo 里面的两个自定义layout布局。
// * 2.因为系统Calendar的月份是从0-11的,所以如果是调用Calendar的set方法来设置时间,月份的范围也要是从0-11
// * setRangDate方法控制起始终止时间(如果不设置范围则使用默认时间1900-2100年此段代码可注释)
// */
// Calendar selectedDate = Calendar.getInstance();//系统当前时间
// Calendar startDate = Calendar.getInstance();
// startDate.set(2023, 3, 1);
// Calendar endDate = Calendar.getInstance();
//// endDate.set(selectedDate.get(Calendar.YEAR), selectedDate.get(Calendar.MONTH) , 28);
// //时间选择器 ,自定义布局
// pvTime = new TimePickerBuilder(getActivity(), (date, v) -> {//选中事件回调
// binding.dateTv.setText(getTime(date));
// time = getTime(date);
// typeInfo = time;
// refreshLayout.autoRefresh();
// getStatistics();
//
// }).setBgColor(getResources().getColor(R.color.white))
// .setContentTextSize(18)
// .setTextColorCenter(getResources().getColor(R.color.black))
// .setTextColorOut(getResources().getColor(R.color.common_list_hint_text))
// .setDividerColor(getResources().getColor(R.color.color_f7f7fc))
// .setRangDate(startDate, endDate)
// .setDate(selectedDate)
// .setLayoutRes(R.layout.pickerview_time, v -> {
// final TextView tvSubmit = (TextView) v.findViewById(R.id.btnSubmit);
// tvSubmit.setTextColor(getResources().getColor(R.color.colorAccent));
// TextView ivCancel = (TextView) v.findViewById(R.id.btnCancel);
// ivCancel.setTextColor(getResources().getColor(R.color.colorAccent));
//
// ivCancel.setText(getString(R.string.all_time_txt));
// tvSubmit.setOnClickListener(v12 -> {
// pvTime.returnData();
// pvTime.dismiss();
// });
// ivCancel.setOnClickListener(v1 -> {
// typeInfo = "";
// dateTv.setText(getString(R.string.all_time_txt));
// pvTime.dismiss();
// refreshLayout.autoRefresh();
// getStatistics();
//
// });
// })
// .setType(new boolean[]{true, true, false, false, false, false})
// .setLabel(getString(R.string.time_year_txt), getString(R.string.time_month_txt), getString(R.string.time_day_txt),
// getString(R.string.time_shi_txt), getString(R.string.time_fen_txt), getString(R.string.time_miao_txt))
// .setLineSpacingMultiplier(1.6f)
// .setTextXOffset(0, 0, 0, 40, 0, -40)
// .isCenterLabel(false) //是否只显示中间选中项的label文字false则每项item全部都带有label。
// .setDividerColor(0x00000000)
// .build();
// }
private String getTime(Date date) {//可根据需要自行截取数据显示
Log.d("getTime()", "choice date millis: " + date.getTime());
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM");
return format.format(date);
}
private void initList() { private void initList() {
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getActivity()); LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getActivity());
binding.recyclerview.setLayoutManager(linearLayoutManager); binding.recyclerview.setLayoutManager(linearLayoutManager);
@@ -318,7 +246,7 @@ public class WalletInfoFragment extends BaseFragment {
} else { } else {
textView.setTextColor(getResources().getColor(R.color.black)); textView.setTextColor(getResources().getColor(R.color.black));
} }
if (s.getTransferMoneyRecord() != null && s.getTransferMoneyRecord().getFeeAmount() > 0 && s.getAmount()<0) { if (s.getTransferMoneyRecord() != null && s.getTransferMoneyRecord().getFeeAmount() > 0 && s.getAmount() < 0) {
isShowRate = true; isShowRate = true;
textView.setCompoundDrawablesWithIntrinsicBounds(getResources().getDrawable(R.mipmap.ic_transfer_tips), null, null, null); textView.setCompoundDrawablesWithIntrinsicBounds(getResources().getDrawable(R.mipmap.ic_transfer_tips), null, null, null);
} else { } else {
@@ -729,7 +657,7 @@ public class WalletInfoFragment extends BaseFragment {
return s.getCoinModifyRemark() + ""; return s.getCoinModifyRemark() + "";
} else if (s.getType() == 32) { } else if (s.getType() == 32) {
return "购买副号"; return "购买副号";
}else { } else {
return TextUtils.isEmpty(s.getCoinModifyRemark()) ? getString(R.string.weizhi_txt) : s.getCoinModifyRemark() + ""; return TextUtils.isEmpty(s.getCoinModifyRemark()) ? getString(R.string.weizhi_txt) : s.getCoinModifyRemark() + "";
} }
} }
@@ -936,102 +864,34 @@ public class WalletInfoFragment extends BaseFragment {
private void getDateList() { private void getDateList() {
if (status == 0) { Map<String, Object> map = new HashMap<>();
Map<String, Object> map = new HashMap<>();
if (type == -1) {
if (TextUtils.isEmpty(typeInfo)) {
map.put("page", pageSize);
} else {
String statTime = time + "-01 00:00:01";
String endTime = time + "-" + getMonth(time) + " 23:59:59";
map.put("page", pageSize);
map.put("timeGe", statTime);
map.put("timeLe", endTime);
}
} else {
if (TextUtils.isEmpty(typeInfo)) {
map.put("page", pageSize);
map.put("type", type);
} else { String statTime = time + "-01 00:00:01";
String statTime = time + "-01 00:00:01"; String endTime = time + "-" + getMonth(time) + " 23:59:59";
String endTime = time + "-" + getMonth(time) + " 23:59:59"; map.put("page", pageSize);
map.put("timeGe", statTime);
map.put("timeLe", endTime);
map.put("page", pageSize); if (!TextUtils.isEmpty(IMUIKitConfig.SUBSTATIONID)) {
map.put("timeGe", statTime); map.put("substationId", IMUIKitConfig.SUBSTATIONID);
map.put("timeLe", endTime);
map.put("type", type);
}
}
if (!TextUtils.isEmpty(IMUIKitConfig.SUBSTATIONID)) {
map.put("substationId", IMUIKitConfig.SUBSTATIONID);
}
Api.getInstance().goldDetails(IMKitClient.account(), map)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new BaseObserver<Result<ListBeanResult<BillBean>>>() {
@Override
public void onSuccess(Result<ListBeanResult<BillBean>> feedbackResp) {
changeDate(feedbackResp.data);
}
@Override
public void onError(int code, String msg) {
LogUtils.i("获取到的错误:" + code + "" + msg);
binding.refreshLayout.finishRefresh();
binding.refreshLayout.finishLoadMore();
changeView(false);
}
});
} else {
Map<String, Object> map = new HashMap<>();
if (type == -1) {
if (TextUtils.isEmpty(typeInfo)) {
map.put("page", pageSize);
} else {
String statTime = time + "-01 00:00:01";
String endTime = time + "-" + getMonth(time) + " 23:59:59";
map.put("page", pageSize);
map.put("timeGe", statTime);
map.put("timeLe", endTime);
}
} else {
if (TextUtils.isEmpty(typeInfo)) {
map.put("page", pageSize);
map.put("type", type);
} else {
String statTime = time + "-01 00:00:01";
String endTime = time + "-" + getMonth(time) + " 23:59:59";
map.put("page", pageSize);
map.put("timeGe", statTime);
map.put("timeLe", endTime);
map.put("type", type);
}
}
if (!TextUtils.isEmpty(IMUIKitConfig.SUBSTATIONID)) {
map.put("substationId", IMUIKitConfig.SUBSTATIONID);
}
Api.getInstance().silverDetails(IMKitClient.account(), map)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new BaseObserver<Result<ListBeanResult<BillBean>>>() {
@Override
public void onSuccess(Result<ListBeanResult<BillBean>> feedbackResp) {
changeDate(feedbackResp.data);
}
@Override
public void onError(int code, String msg) {
LogUtils.i("获取到的错误:" + code + "" + msg);
binding.refreshLayout.finishRefresh();
binding.refreshLayout.finishLoadMore();
changeView(false);
}
});
} }
Api.getInstance().goldDetails(IMKitClient.account(), map)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new BaseObserver<Result<ListBeanResult<BillBean>>>() {
@Override
public void onSuccess(Result<ListBeanResult<BillBean>> feedbackResp) {
changeDate(feedbackResp.data);
}
@Override
public void onError(int code, String msg) {
LogUtils.i("获取到的错误:" + code + "" + msg);
binding.refreshLayout.finishRefresh();
binding.refreshLayout.finishLoadMore();
changeView(false);
}
});
} }

View File

@@ -30,6 +30,7 @@ import com.hbl.lewan.databinding.FragmentWalletInfoNewBinding;
import com.hbl.lewan.dialog.SelectTypeDialog; import com.hbl.lewan.dialog.SelectTypeDialog;
import com.hbl.lewan.model.BillBean; import com.hbl.lewan.model.BillBean;
import com.hbl.lewan.model.ListBeanResult; import com.hbl.lewan.model.ListBeanResult;
import com.hbl.lewan.model.RedBean;
import com.hbl.lewan.model.RedLogBean; import com.hbl.lewan.model.RedLogBean;
import com.hbl.lewan.model.StatisticsBean; import com.hbl.lewan.model.StatisticsBean;
import com.hbl.lewan.model.TaskBean; import com.hbl.lewan.model.TaskBean;
@@ -79,7 +80,7 @@ public class WalletInfoRedFragment extends BaseFragment {
int type = -1; int type = -1;
String typeInfo = ""; String typeInfo = "";
CommonAdapter commonAdapter; CommonAdapter commonAdapter;
private ArrayList<BillBean> titles = new ArrayList<>(); private ArrayList<RedBean> titles = new ArrayList<>();
List<TaskBean> taskBeans = null; List<TaskBean> taskBeans = null;
int loc = 0; int loc = 0;
FragmentWalletInfoNewBinding binding; FragmentWalletInfoNewBinding binding;
@@ -126,7 +127,6 @@ public class WalletInfoRedFragment extends BaseFragment {
public void setTime(String monthStr) { public void setTime(String monthStr) {
this.time = monthStr; this.time = monthStr;
initOne(); initOne();
} }
private void initOne() { private void initOne() {
@@ -141,53 +141,25 @@ public class WalletInfoRedFragment extends BaseFragment {
private void initList() { private void initList() {
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getActivity()); LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getActivity());
binding.recyclerview.setLayoutManager(linearLayoutManager); binding.recyclerview.setLayoutManager(linearLayoutManager);
commonAdapter = new CommonAdapter<BillBean>(getContext(), R.layout.item_bill_list, titles) { commonAdapter = new CommonAdapter<RedBean>(getContext(), R.layout.item_bill_list1, titles) {
@Override @Override
public void convert(ViewHolder holder, BillBean s, int index) { public void convert(ViewHolder holder, RedBean s, int index) {
boolean isShowRate; if(type == 0){
// holder.setText(R.id.price_tv, AppUtils.getQian(s.getAmount()) + (status == 0 ? getString(R.string.species_txt) : holder.setText(R.id.title_tv, "来自"+s.getGroupName()+"的群红包");
// getString(R.string.silver_coins_txt))); holder.setText(R.id.time_tv, "" + s.getCreateTime());
TextView textView = holder.getView(R.id.price_tv); holder.setText(R.id.status_tv, ""+AppUtils.getQian(s.getAmount()));
textView.setText(AppUtils.getQian(s.getAmount())); holder.getView(R.id.count_tv).setVisibility(View.GONE);
RelativeLayout layoutroot = holder.getView(R.id.big_bg); }else{
if (s.getAmount() < 0) { holder.setText(R.id.title_tv, "发给"+s.getGroupName()+"的拼手气红包");
textView.setTextColor(getResources().getColor(R.color.black)); if(s.getType()!=0){
} else { holder.setText(R.id.title_tv, "发给"+s.getGroupName()+"的专属红包");
textView.setTextColor(getResources().getColor(R.color.black));
}
if (s.getTransferMoneyRecord() != null && s.getTransferMoneyRecord().getFeeAmount() > 0 && s.getAmount() < 0) {
isShowRate = true;
textView.setCompoundDrawablesWithIntrinsicBounds(getResources().getDrawable(R.mipmap.ic_transfer_tips), null, null, null);
} else {
isShowRate = false;
textView.setCompoundDrawablesWithIntrinsicBounds(null, null, null, null);
}
TextView statusTv = holder.getView(R.id.status_tv);
statusTv.setVisibility(View.GONE);
if (s.getType() == 5) {
if (s.getWithdrawCashRecord() != null) {
statusTv.setVisibility(View.VISIBLE);
statusTv.setText(getStatusTxt(s.getWithdrawCashRecord()));
} }
} holder.setText(R.id.time_tv, "" + s.getCreateTime());
holder.setText(R.id.status_tv, ""+AppUtils.getQian(s.getAmount()));
holder.setText(R.id.balan_tv, getString(R.string.yuee_2f_txt1) + AppUtils.getQian(s.getBalance())); holder.getView(R.id.count_tv).setVisibility(View.VISIBLE);
// holder.setText(R.id.title_tv,getUserInfo(s)+getTypeString(s.getType())); holder.setText(R.id.count_tv, s.getGrabCount()+"/"+s.getSendCount()+"");
holder.setText(R.id.title_tv, getTypeNoteString(s));
holder.setText(R.id.time_tv, s.getCreateTime());
if (!TextUtils.isEmpty(s.getCreateTimestamp())) {
holder.setText(R.id.time_tv, TimeFormatUtils.formatMillisecond(getActivity(), Long.parseLong(s.getCreateTimestamp())));
} }
layoutroot.setOnClickListener(v -> {
//弹窗
if (isShowRate) {
showPopWindow(textView, s.getTransferMoneyRecord().getFeeAmount(), s.getTransferMoneyRecord().getCoinType());
}
});
((ImageView) holder.getView(R.id.logo_iv)).setImageResource(getTypeRes(s));
} }
}; };
binding.recyclerview.setAdapter(commonAdapter); binding.recyclerview.setAdapter(commonAdapter);
@@ -514,9 +486,10 @@ public class WalletInfoRedFragment extends BaseFragment {
.subscribe(new BaseObserver<>() { .subscribe(new BaseObserver<>() {
@Override @Override
public void onSuccess(Result<RedLogBean> feedbackResp) { public void onSuccess(Result<RedLogBean> feedbackResp) {
// changeDate(feedbackResp.data);
if(walletInfoRedActivity!=null) if(walletInfoRedActivity!=null)
walletInfoRedActivity.setReceive(feedbackResp.data.getRedPkgCount(),feedbackResp.data.getRedPkgAmount()); walletInfoRedActivity.setReceive(feedbackResp.data.getRedPkgCount(),feedbackResp.data.getRedPkgAmount());
changeDate(feedbackResp.data.getGroupGrabRecords());
} }
@Override @Override
@@ -536,8 +509,7 @@ public class WalletInfoRedFragment extends BaseFragment {
public void onSuccess(Result<RedLogBean> feedbackResp) { public void onSuccess(Result<RedLogBean> feedbackResp) {
if(walletInfoRedActivity!=null) if(walletInfoRedActivity!=null)
walletInfoRedActivity.setSend(feedbackResp.data.getRedPkgCount(),feedbackResp.data.getRedPkgAmount()); walletInfoRedActivity.setSend(feedbackResp.data.getRedPkgCount(),feedbackResp.data.getRedPkgAmount());
changeDate(feedbackResp.data.getGroupSendRecords());
// changeDate(feedbackResp.data.getGroupSendRecords());
} }
@Override @Override
@@ -553,10 +525,10 @@ public class WalletInfoRedFragment extends BaseFragment {
} }
private void changeDate(ListBeanResult<BillBean> data) { private void changeDate(ListBeanResult<RedBean> data) {
if (data.getList() != null) { if (data!=null&&data.getList() != null) {
commonAdapter.addDates(data.getList()); commonAdapter.addDates(data.getList());
titles = (ArrayList<BillBean>) commonAdapter.getDates(); titles = (ArrayList<RedBean>) commonAdapter.getDates();
} }
binding.refreshLayout.finishRefresh(); binding.refreshLayout.finishRefresh();
binding.refreshLayout.finishLoadMore(); binding.refreshLayout.finishLoadMore();

View File

@@ -126,7 +126,7 @@ public class WalletInfologFragment extends BaseFragment {
commonAdapter = new CommonAdapter<>(getContext(), R.layout.item_bill_log, titles) { commonAdapter = new CommonAdapter<>(getContext(), R.layout.item_bill_log, titles) {
@Override @Override
public void convert(ViewHolder holder, ChongZhiLogBean s, int index) { public void convert(ViewHolder holder, ChongZhiLogBean s, int index) {
holder.setText(R.id.title_tv, "充值" + (s.getAmount()/100)); holder.setText(R.id.title_tv, "充值" + AppUtils.getQian(s.getAmount()));
holder.setText(R.id.orderid_tv, "订单号" + s.getId()); holder.setText(R.id.orderid_tv, "订单号" + s.getId());
holder.setText(R.id.time_tv, "" + s.getCreateTime()); holder.setText(R.id.time_tv, "" + s.getCreateTime());
TextView statusTv = holder.getView(R.id.status_tv); TextView statusTv = holder.getView(R.id.status_tv);
@@ -144,9 +144,9 @@ public class WalletInfologFragment extends BaseFragment {
commonAdapter = new CommonAdapter<>(getContext(), R.layout.item_bill_log, tiXianLogBeans) { commonAdapter = new CommonAdapter<>(getContext(), R.layout.item_bill_log, tiXianLogBeans) {
@Override @Override
public void convert(ViewHolder holder, TiXianLogBean s, int index) { public void convert(ViewHolder holder, TiXianLogBean s, int index) {
holder.setText(R.id.title_tv, "提现" + (s.getAmount() / 100)); holder.setText(R.id.title_tv, "提现" + AppUtils.getQian(s.getAmount()));
holder.setText(R.id.orderid_tv, "" + s.getCreateTime()); holder.setText(R.id.orderid_tv, "" + s.getCreateTime());
holder.setText(R.id.time_tv, "预计到账:" + (s.getActualAmount() / 100)); holder.setText(R.id.time_tv, "预计到账:" +AppUtils.getQian(s.getActualAmount()));
TextView statusTv = holder.getView(R.id.status_tv); TextView statusTv = holder.getView(R.id.status_tv);
if (s.getStatus() == 1) { if (s.getStatus() == 1) {
holder.setText(R.id.status_tv, "已通过"); holder.setText(R.id.status_tv, "已通过");

View File

@@ -175,6 +175,7 @@
android:layout_height="?actionBarSize" android:layout_height="?actionBarSize"
android:background="@android:color/white" android:background="@android:color/white"
android:gravity="bottom" android:gravity="bottom"
android:visibility="gone"
android:orientation="horizontal"> android:orientation="horizontal">
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
@@ -327,6 +328,7 @@
<View <View
android:layout_width="1dp" android:layout_width="1dp"
android:layout_height="@dimen/dp_20" android:layout_height="@dimen/dp_20"
android:visibility="gone"
android:layout_marginBottom="@dimen/dp_16" android:layout_marginBottom="@dimen/dp_16"
android:background="#EDE3E3" /> android:background="#EDE3E3" />
@@ -335,6 +337,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:visibility="gone"
android:onClick="chatClick" android:onClick="chatClick"
app:layout_constraintLeft_toRightOf="@+id/layout_chatfm_group" app:layout_constraintLeft_toRightOf="@+id/layout_chatfm_group"
app:layout_constraintTop_toTopOf="@+id/layout_chatfm_all"> app:layout_constraintTop_toTopOf="@+id/layout_chatfm_all">

View File

@@ -68,6 +68,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="0" android:text="0"
android:id="@+id/out_tv"
android:layout_weight="1" android:layout_weight="1"
android:textColor="#FA6947" android:textColor="#FA6947"
android:textSize="14sp" android:textSize="14sp"
@@ -83,6 +84,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="0" android:text="0"
android:id="@+id/income_tv"
android:textColor="#FA6947" android:textColor="#FA6947"
android:textSize="14sp" android:textSize="14sp"
/> />

View File

@@ -14,7 +14,7 @@
<com.scwang.smart.refresh.layout.SmartRefreshLayout <com.scwang.smart.refresh.layout.SmartRefreshLayout
android:id="@+id/refreshLayout" android:id="@+id/refreshLayout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:visibility="visible" android:visibility="visible"
app:srlAccentColor="@color/color_6b3689"> app:srlAccentColor="@color/color_6b3689">
@@ -27,7 +27,7 @@
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerview" android:id="@+id/recyclerview"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:overScrollMode="never"> android:overScrollMode="never">
</androidx.recyclerview.widget.RecyclerView> </androidx.recyclerview.widget.RecyclerView>

View File

@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/big_bg"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_60"
android:background="@drawable/ripple_with_color_mask"
android:orientation="horizontal"
tools:ignore="MissingDefaultResource">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/dp_15"
android:layout_marginTop="@dimen/dp_10"
android:id="@+id/title_tv"
android:textColor="#ff3d3d3d"
android:textSize="14sp"
android:text="1"
/>
<TextView
android:id="@+id/time_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginStart="@dimen/dp_15"
android:layout_marginBottom="@dimen/dp_10"
android:textColor="#ff999999"
android:textSize="12sp"
android:text="2"
/>
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentRight="true"
android:layout_marginEnd="@dimen/dp_15"
android:gravity="center_vertical|right"
android:orientation="vertical">
<TextView
android:id="@+id/status_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#333333"
android:text="2222"
android:textSize="14sp"
/>
<TextView
android:id="@+id/count_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="1222222222"
android:layout_marginTop="@dimen/dp_5"
android:visibility="gone"
android:textColor="#ff999999"
android:textSize="12sp"
/>
</androidx.appcompat.widget.LinearLayoutCompat>
<View
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_alignParentBottom="true"
android:layout_marginLeft="@dimen/dp_15"
android:layout_marginRight="@dimen/dp_15"
android:background="#ededed"
android:visibility="visible" />
</RelativeLayout>

View File

@@ -53,7 +53,7 @@ public class RedPacketGetViewHolder extends ChatBaseMessageViewHolder {
public void addViewToMessageContainer() { public void addViewToMessageContainer() {
textBinding = textBinding =
NormalChatMessageTipViewHolder1Binding.inflate( NormalChatMessageTipViewHolder1Binding.inflate(
LayoutInflater.from(parent.getContext()), getMessageTopGroup(), true); LayoutInflater.from(parent.getContext()), getMessageContainer(), true);
} }
@Override @Override
@@ -243,7 +243,8 @@ public class RedPacketGetViewHolder extends ChatBaseMessageViewHolder {
} }
} }
baseViewBinding.tvTimeOther.setVisibility(View.GONE);
baseViewBinding.tvTimeMy.setVisibility(View.GONE);
} }

View File

@@ -65,18 +65,25 @@ public class FunBottomActionFactory {
} }
if (isAdd) { if (isAdd) {
actions.add(new ActionItem(ActionConstants.ACTION_TYPE_MINGPIAN, R.drawable.ic_action_mingpian, R.string.mingpian_txt)); actions.add(new ActionItem(ActionConstants.ACTION_TYPE_MINGPIAN, R.drawable.ic_action_mingpian, R.string.mingpian_txt));
} }
} }
if (sessionType == SessionTypeEnum.Team || sessionType == SessionTypeEnum.SUPER_TEAM) {
actions.add(new ActionItem(ActionConstants.ACTION_TYPE_REP_PACKET, R.drawable.ic_action_red_packet, R.string.hongbao_txt));
}
// actions.add( // actions.add(
// new ActionItem( // new ActionItem(
// ActionConstants.ACTION_TYPE_LOCATION, // ActionConstants.ACTION_TYPE_LOCATION,
// R.drawable.ic_location1, // R.drawable.ic_location1,
// R.string.chat_message_location)); // R.string.chat_message_location));
actions.add(new ActionItem(ActionConstants.ACTION_TYPE_ALBUMS, R.drawable.ic_action_share_albums, R.string.sharealbums_txt)); // actions.add(new ActionItem(ActionConstants.ACTION_TYPE_ALBUMS, R.drawable.ic_action_share_albums, R.string.sharealbums_txt));
if (getConfig(IMKitClient.getApplicationContext(), "redpkg_score", false)) { //积分赠送 // if (getConfig(IMKitClient.getApplicationContext(), "redpkg_score", false)) { //积分赠送
//礼品积分红包 // //礼品积分红包
actions.add(new ActionItem(ActionConstants.ACTION_TYPE_REP_PACKET, R.drawable.ic_action_red_packet, R.string.hongbao_txt)); // actions.add(new ActionItem(ActionConstants.ACTION_TYPE_REP_PACKET, R.drawable.ic_action_red_packet, R.string.hongbao_txt));
} // }
//赠送功能入口 //赠送功能入口
// if (sessionType == SessionTypeEnum.P2P) { // if (sessionType == SessionTypeEnum.P2P) {
// if (getConfig(IMKitClient.getApplicationContext(), "transfer_score", false)) { //积分赠送 // if (getConfig(IMKitClient.getApplicationContext(), "transfer_score", false)) { //积分赠送

View File

@@ -255,7 +255,7 @@
<string name="received_txt2">has been received</string> <string name="received_txt2">has been received</string>
<string name="yituihuan_txt1">has been returned</string> <string name="yituihuan_txt1">has been returned</string>
<string name="yiguoqi_txt1">expired</string> <string name="yiguoqi_txt1">expired</string>
<string name="hongbao_des_txt">MM Cash red envelope</string> <string name="hongbao_des_txt">red envelope</string>
<string name="hongbao_des_txt1">MM Gift Points Red Envelope</string> <string name="hongbao_des_txt1">MM Gift Points Red Envelope</string>
<string name="hongbao_chat_txt">[红包]</string> <string name="hongbao_chat_txt">[红包]</string>
<string name="dailinqu_txt1">To be collected</string> <string name="dailinqu_txt1">To be collected</string>

View File

@@ -256,7 +256,7 @@
<string name="received_txt2">受信しました</string> <string name="received_txt2">受信しました</string>
<string name="yituihuan_txt1">返品されました</string> <string name="yituihuan_txt1">返品されました</string>
<string name="yiguoqi_txt1">期限切れ</string> <string name="yiguoqi_txt1">期限切れ</string>
<string name="hongbao_des_txt">MM Cashの赤い封筒</string> <string name="hongbao_des_txt">の赤い封筒</string>
<string name="hongbao_des_txt1">MMギフトポイントの赤い封筒</string> <string name="hongbao_des_txt1">MMギフトポイントの赤い封筒</string>
<string name="hongbao_chat_txt">[红包]</string> <string name="hongbao_chat_txt">[红包]</string>
<string name="dailinqu_txt1">収集対象</string> <string name="dailinqu_txt1">収集対象</string>

View File

@@ -255,7 +255,7 @@
<string name="received_txt2">已领取</string> <string name="received_txt2">已领取</string>
<string name="yituihuan_txt1">已退还</string> <string name="yituihuan_txt1">已退还</string>
<string name="yiguoqi_txt1">已过期</string> <string name="yiguoqi_txt1">已过期</string>
<string name="hongbao_des_txt">MM Cash红包</string> <string name="hongbao_des_txt">红包</string>
<string name="hongbao_des_txt1">MM 礼品积分红包</string> <string name="hongbao_des_txt1">MM 礼品积分红包</string>
<string name="hongbao_chat_txt">[红包]</string> <string name="hongbao_chat_txt">[红包]</string>
<string name="dailinqu_txt1">待领取</string> <string name="dailinqu_txt1">待领取</string>
@@ -263,9 +263,9 @@
<string name="fachudehongbao_txt">%s 发出的红包</string> <string name="fachudehongbao_txt">%s 发出的红包</string>
<string name="manle_end_txt">手慢了,红包抢完啦</string> <string name="manle_end_txt">手慢了,红包抢完啦</string>
<string name="redexpired_txt">红包超过24小时无法领取</string> <string name="redexpired_txt">红包超过24小时无法领取</string>
<string name="s_font_color_fc605c_font_txt"><![CDATA[%s领取了你的Cash红包]]></string> <string name="s_font_color_fc605c_font_txt"><![CDATA[%s领取了你的红包]]></string>
<string name="s_font_color_fc605c_font_txt1"><![CDATA[你领取了%s的Cash红包]]></string> <string name="s_font_color_fc605c_font_txt1"><![CDATA[你领取了%s的红包]]></string>
<string name="s_font_color_fc605c_font_txt2"><![CDATA[%s领取了%s的Cash红包]]></string> <string name="s_font_color_fc605c_font_txt2"><![CDATA[%s领取了%s的红包]]></string>
<string name="s_font_color_629cff_font_txt"><![CDATA[%s领取了你的礼品积分红包]]></string> <string name="s_font_color_629cff_font_txt"><![CDATA[%s领取了你的礼品积分红包]]></string>
<string name="s_font_color_629cff_font_txt1"><![CDATA[你领取了%s的礼品积分红包]]></string> <string name="s_font_color_629cff_font_txt1"><![CDATA[你领取了%s的礼品积分红包]]></string>

View File

@@ -215,7 +215,7 @@
<string name="chat_input_more_album_title">相簿</string> <string name="chat_input_more_album_title">相簿</string>
<string name="chat_input_audio_record_title">按住 說話</string> <string name="chat_input_audio_record_title">按住 說話</string>
<string name="zidingyi_txt">自訂</string> <string name="zidingyi_txt">自訂</string>
<string name="hongbao_txt">積分紅包</string> <string name="hongbao_txt">紅包</string>
<string name="zhuanzhang_txtq">積分贈送</string> <string name="zhuanzhang_txtq">積分贈送</string>
<string name="zhuanzhang_cash_txtq">Cash贈送</string> <string name="zhuanzhang_cash_txtq">Cash贈送</string>
<string name="mingpian_txt">名片</string> <string name="mingpian_txt">名片</string>
@@ -255,7 +255,7 @@
<string name="received_txt2">已領取</string> <string name="received_txt2">已領取</string>
<string name="yituihuan_txt1">已退還</string> <string name="yituihuan_txt1">已退還</string>
<string name="yiguoqi_txt1">已過期</string> <string name="yiguoqi_txt1">已過期</string>
<string name="hongbao_des_txt">MM Cash紅包</string> <string name="hongbao_des_txt">紅包</string>
<string name="hongbao_des_txt1">MM 禮品積分紅包</string> <string name="hongbao_des_txt1">MM 禮品積分紅包</string>
<string name="hongbao_chat_txt">[紅包]</string> <string name="hongbao_chat_txt">[紅包]</string>
<string name="dailinqu_txt1">待領取</string> <string name="dailinqu_txt1">待領取</string>
@@ -263,9 +263,9 @@
<string name="fachudehongbao_txt">%s 發出的紅包</string> <string name="fachudehongbao_txt">%s 發出的紅包</string>
<string name="manle_end_txt">手慢了,紅包搶完啦</string> <string name="manle_end_txt">手慢了,紅包搶完啦</string>
<string name="redexpired_txt">紅包超過24小時無法領取</string> <string name="redexpired_txt">紅包超過24小時無法領取</string>
<string name="s_font_color_fc605c_font_txt"><![CDATA[%s領取了你的Cash紅包]]></string> <string name="s_font_color_fc605c_font_txt"><![CDATA[%s領取了你的紅包]]></string>
<string name="s_font_color_fc605c_font_txt1"><![CDATA[你領取%s的Cash紅包]]></string> <string name="s_font_color_fc605c_font_txt1"><![CDATA[你領取%s的紅包]]></string>
<string name="s_font_color_fc605c_font_txt2"><![CDATA[%s領取%s的Cash紅包]]></string> <string name="s_font_color_fc605c_font_txt2"><![CDATA[%s領取%s的紅包]]></string>
<string name="s_font_color_629cff_font_txt"><![CDATA[%s領取了你的禮品積分紅包]]></string> <string name="s_font_color_629cff_font_txt"><![CDATA[%s領取了你的禮品積分紅包]]></string>
<string name="s_font_color_629cff_font_txt1"><![CDATA[你領取了%s的禮品積分紅包]]></string> <string name="s_font_color_629cff_font_txt1"><![CDATA[你領取了%s的禮品積分紅包]]></string>