| | |
| | | public void onSuccess(HDLLoginBean loginBean) { |
| | | |
| | | if (callBack != null) { |
| | | loginBean.setAccount(account); |
| | | saveUserData(loginBean); |
| | | callBack.onSuccess(loginBean); |
| | | } |
| | |
| | | JsonObject jsonObject = new JsonObject(); |
| | | jsonObject.addProperty("user_name", UserConfigManage.getInstance().getUserName()); |
| | | jsonObject.addProperty("user_image_url", UserConfigManage.getInstance().getUserImageUrl()); |
| | | jsonObject.addProperty("user_account", UserConfigManage.getInstance().getAccount()); |
| | | uniCallbackData(mode_type, jsonObject, callback); |
| | | } |
| | | break; |
| | |
| | | } |
| | | |
| | | String acc = "13375012441"; |
| | | // String acc = "nuy13368@uzxia.com"; |
| | | String pws = "123456"; |
| | | //测试用 |
| | | viewBinding.homeLoginAccountEt.setText(acc); |
| | |
| | | setTextViewStyle(holder.stateTv, houseIdBean.getPowerStationStatus()); |
| | | GlideUtils.getRoundedCornersImage(mContext, houseIdBean.getPowerStationImage(), holder.homeIconIv, new RoundedCorners(4),false); |
| | | |
| | | HdlLogLogic.print("电站名称--->" + houseIdBean.getHomeName() + "--->" + houseIdBean.isMove() + "--->" + holder.item_parent_swipeLayout.toString()); |
| | | HdlLogLogic.print("--->电站名称:" + houseIdBean.getHomeName() + "--->图片url:" + houseIdBean.getPowerStationImage(), true); |
| | | holder.item_parent_rl.setOnClickListener(new View.OnClickListener() { |
| | | @Override |
| | | public void onClick(View v) { |
| | |
| | | if (mUniMPCaches.containsKey(uniAppId)) { |
| | | if (mUniMPCaches.get(uniAppId) != null) { |
| | | mUniMPCaches.get(uniAppId).sendUniMPEvent(topic, data); |
| | | HdlLogLogic.print("发送通知成功:event:" + topic + " data:" + new Gson().toJson(data)); |
| | | HdlLogLogic.print("Android--->通知---uni--->主题:" + topic + "--->发送数据:" + new Gson().toJson(data)); |
| | | } else { |
| | | HdlLogLogic.print("发送失败,小程序对象为空:" + uniAppId); |
| | | HdlLogLogic.print("Android--->通知---uni--->失败--->小程序对象为空:" + uniAppId); |
| | | } |
| | | } else { |
| | | HdlLogLogic.print("发送失败,找不到对应的小程序:" + uniAppId); |
| | | HdlLogLogic.print("Android--->通知---uni--->失败--->小程序对象为空:" + uniAppId); |
| | | } |
| | | |
| | | } |
| | |
| | | xmlns:tools="http://schemas.android.com/tools" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="match_parent" |
| | | android:background="@color/text_38C494" |
| | | tools:context=".ui.CPowerStationActivity"> |
| | | |
| | | </androidx.constraintlayout.widget.ConstraintLayout> |