Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_aiyuebao
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
0
Merge Requests
0
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
android
android_aiyuebao
Commits
c736f1a6
Commit
c736f1a6
authored
Apr 14, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
0cc75c25
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
19 additions
and
19 deletions
+19
-19
Constant.kt
app/src/main/java/com/wenshu/aiyuebao/common/Constant.kt
+3
-3
MyFragment.kt
...c/main/java/com/wenshu/aiyuebao/ui/fragment/MyFragment.kt
+8
-8
SignView.java
...rc/main/java/com/wenshu/aiyuebao/ui/widgets/SignView.java
+3
-3
bg_splash.png
app/src/main/res/drawable-xhdpi/bg_splash.png
+0
-0
ic_launcher_main.png
app/src/main/res/drawable-xhdpi/ic_launcher_main.png
+0
-0
ic_launcher_main.png
app/src/main/res/mipmap-xhdpi/ic_launcher_main.png
+0
-0
ic_launcher_main.png
app/src/main/res/mipmap-xxhdpi/ic_launcher_main.png
+0
-0
gradle.properties
gradle.properties
+2
-2
ShareSDK.xml
shareSdkLib/src/main/assets/ShareSDK.xml
+3
-3
No files found.
app/src/main/java/com/wenshu/aiyuebao/common/Constant.kt
View file @
c736f1a6
...
@@ -77,9 +77,9 @@ object Constant {
...
@@ -77,9 +77,9 @@ object Constant {
const
val
FRAGMENT_TAG_RSNEWS
=
"FRAGMENT_TAG_RSNEWS"
const
val
FRAGMENT_TAG_RSNEWS
=
"FRAGMENT_TAG_RSNEWS"
// 协议地址
// 协议地址
var
REGISTER_URL
=
BuildConfig
.
MainIp
+
"
yy
/register.html"
//服务协议
var
REGISTER_URL
=
BuildConfig
.
MainIp
+
"
ayb
/register.html"
//服务协议
var
PRIVACY_URL
=
BuildConfig
.
MainIp
+
"
yy
/privacy.html"
//隐私协议
var
PRIVACY_URL
=
BuildConfig
.
MainIp
+
"
ayb
/privacy.html"
//隐私协议
var
STRATEGY_URL
=
BuildConfig
.
MainIp
+
"
yy
/strategy.html"
//团长攻略
var
STRATEGY_URL
=
BuildConfig
.
MainIp
+
"
ayb
/strategy.html"
//团长攻略
/**
/**
...
...
app/src/main/java/com/wenshu/aiyuebao/ui/fragment/MyFragment.kt
View file @
c736f1a6
...
@@ -437,14 +437,14 @@ class MyFragment : BaseFragment(),
...
@@ -437,14 +437,14 @@ class MyFragment : BaseFragment(),
.
append
(
"天"
).
setForegroundColor
(
ContextCompat
.
getColor
(
mContext
,
R
.
color
.
color_172B54
))
.
append
(
"天"
).
setForegroundColor
(
ContextCompat
.
getColor
(
mContext
,
R
.
color
.
color_172B54
))
.
create
()
.
create
()
val
finalSignStatus
=
signStatus
val
finalSignStatus
=
signStatus
item_clock_signview
.
setSignViewListener
{
day
->
//
item_clock_signview.setSignViewListener { day ->
if
(
nowDate
==
day
)
{
//
if (nowDate == day) {
if
(
finalSignStatus
==
1
)
{
//
if (finalSignStatus == 1) {
carrierType
=
Constant
.
CARRIER_SIGNIN_HOMEPAGE_CARD
//
carrierType = Constant.CARRIER_SIGNIN_HOMEPAGE_CARD
awardVedio
(
curSignCoin
*
2
,
Constant
.
CARRIER_SIGNIN_HOMEPAGE_CARD
)
//
awardVedio(curSignCoin * 2, Constant.CARRIER_SIGNIN_HOMEPAGE_CARD)
}
//
}
}
//
}
}
//
}
}
}
private
fun
setUserLoginStatus
()
{
private
fun
setUserLoginStatus
()
{
...
...
app/src/main/java/com/wenshu/aiyuebao/ui/widgets/SignView.java
View file @
c736f1a6
...
@@ -173,7 +173,7 @@ public class SignView extends LinearLayout implements View.OnClickListener {
...
@@ -173,7 +173,7 @@ public class SignView extends LinearLayout implements View.OnClickListener {
* 显示红包动画
* 显示红包动画
*/
*/
public
void
showRedbox
(
View
view
)
{
public
void
showRedbox
(
View
view
)
{
rope
=
YoYo
.
with
(
Techniques
.
Tada
).
duration
(
1000
).
repeat
(-
1
).
playOn
(
view
);
//
rope = YoYo.with(Techniques.Tada).duration(1000).repeat(-1).playOn(view);
}
}
public
void
stopRedbox
()
{
public
void
stopRedbox
()
{
...
@@ -215,9 +215,9 @@ public class SignView extends LinearLayout implements View.OnClickListener {
...
@@ -215,9 +215,9 @@ public class SignView extends LinearLayout implements View.OnClickListener {
if
(
isCurFlag
)
{
if
(
isCurFlag
)
{
tvContent
.
setText
(
""
);
tvContent
.
setText
(
""
);
tvContent
.
setTextColor
(
resources
.
getColor
(
R
.
color
.
color_AAA
));
tvContent
.
setTextColor
(
resources
.
getColor
(
R
.
color
.
color_AAA
));
tvContent
.
setBackground
(
resources
.
getDrawable
(
R
.
mipmap
.
ic_sign_
video
));
tvContent
.
setBackground
(
resources
.
getDrawable
(
R
.
mipmap
.
ic_sign_
finish
));
tvDay
.
setTextColor
(
resources
.
getColor
(
R
.
color
.
black
));
tvDay
.
setTextColor
(
resources
.
getColor
(
R
.
color
.
black
));
tvDay
.
setText
(
"
可翻倍
"
);
tvDay
.
setText
(
"
已领
"
);
showRedbox
(
tvContent
);
showRedbox
(
tvContent
);
}
else
{
}
else
{
stopRedbox
();
stopRedbox
();
...
...
app/src/main/res/drawable-xhdpi/bg_splash.png
deleted
100644 → 0
View file @
0cc75c25
19 KB
app/src/main/res/drawable-xhdpi/ic_launcher_main.png
View replaced file @
0cc75c25
View file @
c736f1a6
8.84 KB
|
W:
|
H:
11.5 KB
|
W:
|
H:
2-up
Swipe
Onion skin
app/src/main/res/mipmap-xhdpi/ic_launcher_main.png
View replaced file @
0cc75c25
View file @
c736f1a6
8.84 KB
|
W:
|
H:
11.5 KB
|
W:
|
H:
2-up
Swipe
Onion skin
app/src/main/res/mipmap-xxhdpi/ic_launcher_main.png
View replaced file @
0cc75c25
View file @
c736f1a6
14.2 KB
|
W:
|
H:
18.8 KB
|
W:
|
H:
2-up
Swipe
Onion skin
gradle.properties
View file @
c736f1a6
...
@@ -16,9 +16,9 @@ org.gradle.jvmargs=-Xmx1536m
...
@@ -16,9 +16,9 @@ org.gradle.jvmargs=-Xmx1536m
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
# org.gradle.parallel=true
DEBUG_URL
=
"http://39.97.65.143:9082/
yy
-api/"
DEBUG_URL
=
"http://39.97.65.143:9082/
ayb
-api/"
#DEBUG_URL="http://192.168.31.194:8101/"
#DEBUG_URL="http://192.168.31.194:8101/"
RELEASE_URL="https://api.mints-id.com/
yy
-api/"
RELEASE_URL="https://api.mints-id.com/
ayb
-api/"
RELEASE_KEY_PASSWORD
=
mints.aiyuebao
RELEASE_KEY_PASSWORD
=
mints.aiyuebao
RELEASE_KEY_ALIAS
=
mints_aiyuebao
RELEASE_KEY_ALIAS
=
mints_aiyuebao
...
...
shareSdkLib/src/main/assets/ShareSDK.xml
View file @
c736f1a6
...
@@ -77,15 +77,15 @@
...
@@ -77,15 +77,15 @@
但是只能分享图片和文字,username和path是分享小程序用的的,userName是小程序的原始ID,path是小程序内的页面路径;
但是只能分享图片和文字,username和path是分享小程序用的的,userName是小程序的原始ID,path是小程序内的页面路径;
而且必须保证微信开放平台与微信公众/小程序绑定才可以分享;不需要的不用管
而且必须保证微信开放平台与微信公众/小程序绑定才可以分享;不需要的不用管
-->
-->
<Wechat
AppId=
"wx
a9c7cc9c01db59f1"
AppSecret=
"4d317618b7205c56992219f195349a2c
"
BypassApproval=
"false"
<Wechat
AppId=
"wx
4a9e187f45e2114b"
AppSecret=
"ae25a618ebe5deb08fee4e268d2c3e58
"
BypassApproval=
"false"
Enable=
"true"
Id=
"4"
Enable=
"true"
Id=
"4"
MiniprogramType=
"0"
Path=
"pages/index/index.html?id=1"
SortId=
"4"
MiniprogramType=
"0"
Path=
"pages/index/index.html?id=1"
SortId=
"4"
UserName=
"gh_afb25ac019c9"
WithShareTicket=
"true"
/>
UserName=
"gh_afb25ac019c9"
WithShareTicket=
"true"
/>
<WechatMoments
AppId=
"wx
a9c7cc9c01db59f1"
AppSecret=
"4d317618b7205c56992219f195349a2c
"
BypassApproval=
"false"
<WechatMoments
AppId=
"wx
4a9e187f45e2114b"
AppSecret=
"ae25a618ebe5deb08fee4e268d2c3e58
"
BypassApproval=
"false"
Enable=
"true"
Id=
"5"
SortId=
"5"
/>
Enable=
"true"
Id=
"5"
SortId=
"5"
/>
<WechatFavorite
AppId=
"wx
a9c7cc9c01db59f1"
AppSecret=
"4d317618b7205c56992219f195349a2c
"
Enable=
"true"
<WechatFavorite
AppId=
"wx
4a9e187f45e2114b"
AppSecret=
"ae25a618ebe5deb08fee4e268d2c3e58
"
Enable=
"true"
Id=
"6"
SortId=
"6"
/>
Id=
"6"
SortId=
"6"
/>
<!-- ShareByAppClient标识是否使用微博客户端分享,默认是false -->
<!-- ShareByAppClient标识是否使用微博客户端分享,默认是false -->
...
...
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