|
@@ -159,22 +159,7 @@ public class MineFragment extends MVPFragment<MinePresent, MineModel> implements
|
159
|
159
|
activity = (BaseFragmentActivity) getActivity();
|
160
|
160
|
|
161
|
161
|
mShareListener = new CustomShareListener(getActivity());
|
162
|
|
- mShareAction = new ShareAction(getActivity()).setDisplayList(
|
163
|
|
- SHARE_MEDIA.WEIXIN, SHARE_MEDIA.WEIXIN_CIRCLE,
|
164
|
|
- SHARE_MEDIA.QQ, SHARE_MEDIA.QZONE) .setShareboardclickCallback(new ShareBoardlistener() {
|
165
|
|
- @Override
|
166
|
|
- public void onclick(SnsPlatform snsPlatform, SHARE_MEDIA share_media) {
|
167
|
|
- UMWeb web = new UMWeb("https://www.baidu.com");
|
168
|
|
- web.setTitle("来自分享面板标题");
|
169
|
|
- web.setDescription("来自分享面板内容");
|
170
|
|
- web.setThumb(new UMImage(getActivity(), R.mipmap.ic_launcher));
|
171
|
|
- new ShareAction(getActivity()).withMedia(web)
|
172
|
|
- .setPlatform(share_media)
|
173
|
|
- .setCallback(mShareListener)
|
174
|
|
- .share();
|
175
|
162
|
|
176
|
|
- }
|
177
|
|
- });
|
178
|
163
|
|
179
|
164
|
month = cal.get(Calendar.MONTH )+1+"";
|
180
|
165
|
year = cal.get(Calendar.YEAR )+"";
|
|
@@ -234,7 +219,7 @@ public class MineFragment extends MVPFragment<MinePresent, MineModel> implements
|
234
|
219
|
}
|
235
|
220
|
|
236
|
221
|
@Override
|
237
|
|
- public void setMineData(MineJson mineModel) {
|
|
222
|
+ public void setMineData(final MineJson mineModel) {
|
238
|
223
|
if(mineModel.getUsername()==null&&mineModel.getNickname()==null){
|
239
|
224
|
mNameText.setText("");
|
240
|
225
|
}else{
|
|
@@ -257,7 +242,21 @@ public class MineFragment extends MVPFragment<MinePresent, MineModel> implements
|
257
|
242
|
}
|
258
|
243
|
}
|
259
|
244
|
|
|
245
|
+ mShareAction = new ShareAction(getActivity()).setDisplayList(
|
|
246
|
+ SHARE_MEDIA.WEIXIN, SHARE_MEDIA.WEIXIN_CIRCLE) .setShareboardclickCallback(new ShareBoardlistener() {
|
|
247
|
+ @Override
|
|
248
|
+ public void onclick(SnsPlatform snsPlatform, SHARE_MEDIA share_media) {
|
|
249
|
+ UMWeb web = new UMWeb(mineModel.getAndroid_share_url());
|
|
250
|
+ web.setTitle("来自分享面板标题");
|
|
251
|
+ web.setDescription("来自分享面板内容");
|
|
252
|
+ web.setThumb(new UMImage(getActivity(), R.mipmap.app_icon));
|
|
253
|
+ new ShareAction(getActivity()).withMedia(web)
|
|
254
|
+ .setPlatform(share_media)
|
|
255
|
+ .setCallback(mShareListener)
|
|
256
|
+ .share();
|
260
|
257
|
|
|
258
|
+ }
|
|
259
|
+ });
|
261
|
260
|
}
|
262
|
261
|
|
263
|
262
|
@Override
|
|
@@ -281,6 +280,9 @@ public class MineFragment extends MVPFragment<MinePresent, MineModel> implements
|
281
|
280
|
TextSetUtil.setTextForMoey(0.00+"",incomeText,16,12);
|
282
|
281
|
TextSetUtil.setTextForMoey(0.00+"",payText,16,12);
|
283
|
282
|
TextSetUtil.setTextForMoey(0.00+"",balanceText,16,12);
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
284
|
286
|
}
|
285
|
287
|
|
286
|
288
|
@Override
|