Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RvApp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lify
RvApp
Commits
88186d5d
Commit
88186d5d
authored
Jul 29, 2019
by
jianglx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
适配推广有奖界面,添加推荐规则界面。
parent
fefc2e52
Changes
14
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
588 additions
and
252 deletions
+588
-252
AndroidManifest.xml
plugin_share/src/main/AndroidManifest.xml
+10
-8
ReativeBillActivity.java
...share/src/main/java/com/rv/share/ReativeBillActivity.java
+4
-3
ShareActivity.java
plugin_share/src/main/java/com/rv/share/ShareActivity.java
+5
-3
ShareRulerActivity.java
..._share/src/main/java/com/rv/share/ShareRulerActivity.java
+27
-0
RvWebView.java
plugin_share/src/main/java/com/rv/share/view/RvWebView.java
+0
-1
bg_share_ruler_tab.xml
..._share/src/main/res/drawable-xhdpi/bg_share_ruler_tab.xml
+10
-0
icon_line_share_ruler.xml
...are/src/main/res/drawable-xhdpi/icon_line_share_ruler.xml
+8
-0
icon_share_ruler_down.png
...are/src/main/res/drawable-xhdpi/icon_share_ruler_down.png
+0
-0
bg_share_top.jpg
plugin_share/src/main/res/drawable-xxhdpi/bg_share_top.jpg
+0
-0
banner_share_ruler_top.png
...in_share/src/main/res/drawable/banner_share_ruler_top.png
+0
-0
icon_triangle_share_ruler.xml
...share/src/main/res/drawable/icon_triangle_share_ruler.xml
+8
-0
activity_reative_bill.xml
plugin_share/src/main/res/layout/activity_reative_bill.xml
+4
-3
activity_share.xml
plugin_share/src/main/res/layout/activity_share.xml
+242
-234
activity_share_ruler.xml
plugin_share/src/main/res/layout/activity_share_ruler.xml
+270
-0
No files found.
plugin_share/src/main/AndroidManifest.xml
View file @
88186d5d
...
...
@@ -6,16 +6,18 @@
<activity
android:name=
".ShareActivity"
/>
<activity
android:name=
".BillActivity"
/>
<activity
android:name=
".WebViewActivity"
>
<!--<intent-filter>-->
<!--<data android:scheme="rv" android:host="xxfc" android:path="/activity" />-->
<!--<!–下面这几行也必须得设置–>-->
<!--<category android:name="android.intent.category.DEFAULT"/>-->
<!--<action android:name="android.intent.action.VIEW"/>-->
<!--<category android:name="android.intent.category.BROWSABLE"/>-->
<!--</intent-filter>-->
<!-- <intent-filter> -->
<!-- <data android:scheme="rv" android:host="xxfc" android:path="/activity" /> -->
<!-- <!–下面这几行也必须得设置–> -->
<!-- <category android:name="android.intent.category.DEFAULT"/> -->
<!-- <action android:name="android.intent.action.VIEW"/> -->
<!-- <category android:name="android.intent.category.BROWSABLE"/> -->
<!-- </intent-filter> -->
</activity>
<activity
android:name=
".ReativeBillActivity"
/>
<activity
android:name=
".PopularizeActivity"
></activity>
<activity
android:name=
".PopularizeActivity"
/>
<activity
android:name=
".ShareRulerActivity"
></activity>
</application>
</manifest>
\ No newline at end of file
plugin_share/src/main/java/com/rv/share/ReativeBillActivity.java
View file @
88186d5d
...
...
@@ -87,11 +87,12 @@ public class ReativeBillActivity extends BaseStatusActivity<ReativeBillPresenter
}
@OnClick
({
R2
.
id
.
btn_save_bill
,
R2
.
id
.
btn_share
})
@OnClick
({
R2
.
id
.
btn_save_bill
,
R2
.
id
.
btn_share
,
R2
.
id
.
tv_back_title
})
public
void
onViewClicked
(
View
view
)
{
int
id
=
view
.
getId
();
if
(
id
==
R
.
id
.
btn_save_bill
)
{
if
(
id
==
R
.
id
.
tv_back_title
)
{
finish
();
}
else
if
(
id
==
R
.
id
.
btn_save_bill
)
{
mPresenter
.
saveBill
(
llContent
);
}
else
if
(
id
==
R
.
id
.
btn_share
)
{
mPresenter
.
saveShare
(
llContent
);
...
...
plugin_share/src/main/java/com/rv/share/ShareActivity.java
View file @
88186d5d
...
...
@@ -115,13 +115,13 @@ public class ShareActivity extends BaseStatusActivity<SharePresenter> {
shareUrl
=
RvFrameConfig
.
HOST
+
"/h5/appHtml/view/invitationCourtesyShare.html?code="
+
code
+
"_P0101"
;
}
if
(
id
==
R
.
id
.
tv_weixin
)
{
mPresenter
.
shareWx
(
shareUrl
,
"
【滴房车】"
,
"新人专享大礼包,快去领!
"
);
mPresenter
.
shareWx
(
shareUrl
,
"
新人专享大礼包,快去领!"
,
"
"
);
}
else
if
(
id
==
R
.
id
.
tv_weixin_circle
)
{
mPresenter
.
shareWxC
(
shareUrl
,
"
【滴房车】"
,
"新人专享大礼包,快去领!
"
);
mPresenter
.
shareWxC
(
shareUrl
,
"
新人专享大礼包,快去领!"
,
"
"
);
}
else
if
(
id
==
R
.
id
.
tv_bill
)
{
startActivity
(
ReativeBillActivity
.
getIntent
(
this
,
shareUrl
));
}
else
if
(
id
==
R
.
id
.
tv_more
)
{
mPresenter
.
shareMore
(
shareUrl
,
"
【滴房车】"
,
"新人专享大礼包,快去领!
"
);
mPresenter
.
shareMore
(
shareUrl
,
"
新人专享大礼包,快去领!"
,
"
"
);
}
else
if
(
id
==
R
.
id
.
tv_more_detail
)
{
startActivity
(
PopularizeActivity
.
getIntent
(
getApplicationContext
(),
0
));
}
else
if
(
id
==
R
.
id
.
ll_activation
)
{
...
...
@@ -130,6 +130,8 @@ public class ShareActivity extends BaseStatusActivity<SharePresenter> {
startActivity
(
PopularizeActivity
.
getIntent
(
getApplicationContext
(),
1
));
}
else
if
(
id
==
R
.
id
.
ll_comein
)
{
startActivity
(
PopularizeActivity
.
getIntent
(
getApplicationContext
(),
0
));
}
else
if
(
id
==
R
.
id
.
tv_ruler
)
{
startActivity
(
new
Intent
(
getApplicationContext
(),
ShareRulerActivity
.
class
));
}
}
...
...
plugin_share/src/main/java/com/rv/share/ShareRulerActivity.java
0 → 100644
View file @
88186d5d
package
com
.
rv
.
share
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
import
com.ruiwenliu.wrapper.weight.TitleView
;
import
com.rv.home.rv.module.basic.BaseStatusActivity
;
import
com.rv.home.rv.module.basic.presenter.CommonPresenter
;
public
class
ShareRulerActivity
extends
BaseStatusActivity
<
CommonPresenter
>
{
@Override
protected
int
setLayout
()
{
return
R
.
layout
.
activity_share_ruler
;
}
@Override
protected
void
initView
(
Bundle
savedInstanceState
,
TitleView
titleView
,
Intent
intent
)
{
titleView
.
setTitle
(
"推广有奖规则"
);
}
@Override
public
void
onShowResult
(
int
requestType
,
BaseBean
result
)
{
}
}
plugin_share/src/main/java/com/rv/share/view/RvWebView.java
View file @
88186d5d
...
...
@@ -98,7 +98,6 @@ public class RvWebView extends WebView {
WebResourceResponse
response
=
super
.
shouldInterceptRequest
(
view
,
request
);
return
response
;
}
};
public
WebChromeClient
webChromeClient
=
new
WebChromeClient
()
{
...
...
plugin_share/src/main/res/drawable-xhdpi/bg_share_ruler_tab.xml
0 → 100644
View file @
88186d5d
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
<solid
android:color=
"#ffff9e74"
/>
<corners
android:bottomLeftRadius=
"80dp"
android:bottomRightRadius=
"80dp"
android:topLeftRadius=
"0dp"
android:topRightRadius=
"80dp"
/>
</shape>
plugin_share/src/main/res/drawable-xhdpi/icon_line_share_ruler.xml
0 → 100644
View file @
88186d5d
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
<stroke
android:width=
"2dp"
android:color=
"#fffe6e2f"
/>
</shape>
\ No newline at end of file
plugin_share/src/main/res/drawable-xhdpi/icon_share_ruler_down.png
0 → 100644
View file @
88186d5d
267 Bytes
plugin_share/src/main/res/drawable-xxhdpi/bg_share_top.jpg
0 → 100644
View file @
88186d5d
28.1 KB
plugin_share/src/main/res/drawable/banner_share_ruler_top.png
0 → 100644
View file @
88186d5d
123 KB
plugin_share/src/main/res/drawable/icon_triangle_share_ruler.xml
0 → 100644
View file @
88186d5d
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
<solid
android:color=
"#ffffffff"
/>
<stroke
android:width=
"2dp"
android:color=
"#fffe6e2f"
/>
</shape>
\ No newline at end of file
plugin_share/src/main/res/layout/activity_reative_bill.xml
View file @
88186d5d
...
...
@@ -10,8 +10,9 @@
tools:context=
".ReativeBillActivity"
>
<TextView
android:id=
"@+id/tv_back_title"
android:layout_width=
"wrap_content"
android:layout_height=
"@dimen/size_
48
"
android:layout_height=
"@dimen/size_
55
"
android:drawableLeft=
"@drawable/rv_common_icon_back_dark"
android:drawablePadding=
"5dp"
android:gravity=
"center"
...
...
@@ -24,9 +25,9 @@
<include
layout=
"@layout/common_line"
/>
<FrameLayout
android:background=
"#55eeeeee"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
android:background=
"#55eeeeee"
>
<LinearLayout
android:id=
"@+id/ll_content"
...
...
plugin_share/src/main/res/layout/activity_share.xml
View file @
88186d5d
This diff is collapsed.
Click to expand it.
plugin_share/src/main/res/layout/activity_share_ruler.xml
0 → 100644
View file @
88186d5d
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment