| | |
| | | import com.hdl.photovoltaic.HDLApp; |
| | | import com.hdl.photovoltaic.R; |
| | | import com.hdl.photovoltaic.config.AppConfigManage; |
| | | import com.hdl.photovoltaic.enums.LowerTagType; |
| | | import com.hdl.photovoltaic.other.HdlLogLogic; |
| | | import com.hdl.photovoltaic.other.HdlThreadLogic; |
| | | import com.hdl.sdk.link.core.bean.eventbus.BaseEventBus; |
| | |
| | | |
| | | //小程序被关闭了通知给原生 |
| | | BaseEventBus baseEventBus = new BaseEventBus(); |
| | | baseEventBus.setType(HDLUniMP.UNI_EVENT_REPLY_HOME_CLOSE_HOME_DETAILS_PAGE); |
| | | baseEventBus.setTopic(HDLUniMP.UNI_EVENT_REPLY_HOME_CLOSE_HOME_DETAILS_PAGE); |
| | | baseEventBus.setType(LowerTagType.power_station.toString()); |
| | | EventBus.getDefault().post(baseEventBus); |
| | | |
| | | } |
| | |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * 打开小程序 |
| | | * |
| | | * @param uniAppId 小程序ID |
| | | * @param path 指定路径 |
| | | * 例:pages/component/scroll-view/scroll-view?a=1&b=2&c=3 |
| | | * @param jsonObject 附加数据 |
| | | * @param callBack 监听小程序OtherUniMPEvent事件 |
| | | */ |
| | | public void openUniMP(String uniAppId, String path, JSONObject jsonObject, IOnOtherUniMPEventCallBack callBack) { |
| | | if (TextUtils.isEmpty(uniAppId)) { |
| | | HdlThreadLogic.toast(mContext, "uni Id null"); |