Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
X
xxsq
Project
Project
Details
Activity
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王雪伟
xxsq
Commits
060a6f50
Commit
060a6f50
authored
Aug 05, 2022
by
王雪伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[提交人]:王雪伟
[提交简述] :1.1.5 [实现方案] :修改bug
parent
4cc52505
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
108 additions
and
7 deletions
+108
-7
Appli.kt
app/src/main/java/com/zxhl/shop/Appli.kt
+2
-1
ClipboardManagerUtil.kt
cms/src/main/java/com/zxhl/cms/utils/ClipboardManagerUtil.kt
+3
-0
ShoppingMallFragment.kt
...java/com/zxbw/modulemain/fragment/ShoppingMallFragment.kt
+18
-0
UserCenterFragment.kt
...n/java/com/zxbw/modulemain/fragment/UserCenterFragment.kt
+2
-2
img_shop_title_bg.png
moduleMain/src/main/res/drawable-xhdpi/img_shop_title_bg.png
+0
-0
activity_layout_recharge.xml
moduleMain/src/main/res/layout/activity_layout_recharge.xml
+4
-4
fragment_layout_shoppimg_mall.xml
...ain/src/main/res/layout/fragment_layout_shoppimg_mall.xml
+79
-0
No files found.
app/src/main/java/com/zxhl/shop/Appli.kt
View file @
060a6f50
...
@@ -6,6 +6,7 @@ import android.util.Log
...
@@ -6,6 +6,7 @@ import android.util.Log
import
com.tencent.bugly.crashreport.CrashReport
import
com.tencent.bugly.crashreport.CrashReport
import
com.umeng.commonsdk.UMConfigure
import
com.umeng.commonsdk.UMConfigure
import
com.umeng.socialize.PlatformConfig
import
com.umeng.socialize.PlatformConfig
import
com.zx.ad.modulecommon.AdNetConfig
import
com.zxhl.cms.AppContext
import
com.zxhl.cms.AppContext
import
com.zxhl.cms.common.ApplicationAsLibrary
import
com.zxhl.cms.common.ApplicationAsLibrary
import
com.zxhl.cms.common.Config
import
com.zxhl.cms.common.Config
...
@@ -26,7 +27,7 @@ class Appli : Application() {
...
@@ -26,7 +27,7 @@ class Appli : Application() {
override
fun
onCreate
()
{
override
fun
onCreate
()
{
super
.
onCreate
()
super
.
onCreate
()
AppContext
.
init
(
applicationContext
)
AppContext
.
init
(
applicationContext
)
AdNetConfig
.
setBase_Url
(
AdNetConfig
.
Environment
.
PRODUCT
)
if
(!
SettingPreference
.
getFirstApp
())
{
if
(!
SettingPreference
.
getFirstApp
())
{
initAppConfig
()
initAppConfig
()
}
}
...
...
cms/src/main/java/com/zxhl/cms/utils/ClipboardManagerUtil.kt
View file @
060a6f50
...
@@ -50,6 +50,9 @@ object ClipboardManagerUtil {
...
@@ -50,6 +50,9 @@ object ClipboardManagerUtil {
var
clipData
:
ClipData
?
=
clipboard
.
primaryClip
var
clipData
:
ClipData
?
=
clipboard
.
primaryClip
if
(
clipData
!=
null
&&
clipData
.
itemCount
>
0
)
{
if
(
clipData
!=
null
&&
clipData
.
itemCount
>
0
)
{
// 从数据集中获取(粘贴)第一条文本数据
// 从数据集中获取(粘贴)第一条文本数据
if
(
clipData
.
getItemAt
(
0
).
coerceToText
(
context
)
==
null
)
{
return
@postDelayed
}
var
textStr
=
clipData
.
getItemAt
(
0
).
coerceToText
(
context
).
toString
()
var
textStr
=
clipData
.
getItemAt
(
0
).
coerceToText
(
context
).
toString
()
Log
.
d
(
"wxw"
,
"textStr"
+
textStr
)
Log
.
d
(
"wxw"
,
"textStr"
+
textStr
)
if
(
textStr
.
length
>
10
)
{
if
(
textStr
.
length
>
10
)
{
...
...
moduleMain/src/main/java/com/zxbw/modulemain/fragment/ShoppingMallFragment.kt
0 → 100644
View file @
060a6f50
package
com.zxbw.modulemain.fragment
import
android.view.View
import
com.zxbw.modulemain.R
import
com.zxhl.cms.common.base.BaseFragment
/**
* @author (wangXuewei)
* @datetime 2022-08-05 13:39 GMT+8
* @detail :
*/
class
ShoppingMallFragment
:
BaseFragment
()
{
override
fun
layoutID
():
Int
=
R
.
layout
.
fragment_layout_shoppimg_mall
override
fun
init
(
view
:
View
?)
{
}
}
\ No newline at end of file
moduleMain/src/main/java/com/zxbw/modulemain/fragment/UserCenterFragment.kt
View file @
060a6f50
...
@@ -126,7 +126,7 @@ class UserCenterFragment : BaseFragment(), AdCallback<String> {
...
@@ -126,7 +126,7 @@ class UserCenterFragment : BaseFragment(), AdCallback<String> {
fun
updateView
()
{
fun
updateView
()
{
val
user
=
SettingPreference
.
getUserInfoData
()
val
user
=
SettingPreference
.
getUserInfoData
()
if
(
user
==
null
)
{
if
(
user
==
null
||
activity
==
null
)
{
return
return
}
}
id_tv_user_number
?.
text
=
user
.
phone
id_tv_user_number
?.
text
=
user
.
phone
...
@@ -141,7 +141,7 @@ class UserCenterFragment : BaseFragment(), AdCallback<String> {
...
@@ -141,7 +141,7 @@ class UserCenterFragment : BaseFragment(), AdCallback<String> {
id_ll_trip
?.
visibility
=
View
.
VISIBLE
id_ll_trip
?.
visibility
=
View
.
VISIBLE
id_tv_kaitong
?.
visibility
=
View
.
VISIBLE
id_tv_kaitong
?.
visibility
=
View
.
VISIBLE
}
}
if
(!
TextUtils
.
isEmpty
(
user
.
headImage
))
{
if
(!
TextUtils
.
isEmpty
(
user
.
headImage
)
||
activity
?.
isDestroyed
!!
)
{
Glide
.
with
(
this
).
load
(
user
.
headImage
)
Glide
.
with
(
this
).
load
(
user
.
headImage
)
.
apply
(
RequestOptions
.
bitmapTransform
(
CircleCrop
()))
.
apply
(
RequestOptions
.
bitmapTransform
(
CircleCrop
()))
.
error
(
R
.
drawable
.
icon_default_user_img
)
.
error
(
R
.
drawable
.
icon_default_user_img
)
...
...
moduleMain/src/main/res/drawable-xhdpi/img_shop_title_bg.png
0 → 100644
View file @
060a6f50
21.7 KB
moduleMain/src/main/res/layout/activity_layout_recharge.xml
View file @
060a6f50
...
@@ -235,7 +235,7 @@
...
@@ -235,7 +235,7 @@
android:layout_marginRight=
"4dp"
android:layout_marginRight=
"4dp"
android:text=
"温馨提示"
android:text=
"温馨提示"
android:textColor=
"@color/color_333333"
android:textColor=
"@color/color_333333"
android:textSize=
"
16
sp"
android:textSize=
"
20
sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
<ImageView
<ImageView
...
@@ -249,7 +249,7 @@
...
@@ -249,7 +249,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/huafei_desc1"
android:text=
"@string/huafei_desc1"
android:textColor=
"#BA7E36"
android:textColor=
"#BA7E36"
android:textSize=
"1
2
sp"
android:textSize=
"1
6
sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
<TextView
<TextView
...
@@ -258,7 +258,7 @@
...
@@ -258,7 +258,7 @@
android:layout_marginTop=
"10dp"
android:layout_marginTop=
"10dp"
android:text=
"@string/huafei_desc3"
android:text=
"@string/huafei_desc3"
android:textColor=
"#BA7E36"
android:textColor=
"#BA7E36"
android:textSize=
"1
2
sp"
android:textSize=
"1
6
sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
<TextView
<TextView
...
@@ -268,7 +268,7 @@
...
@@ -268,7 +268,7 @@
android:text=
"@string/huafei_desc2"
android:text=
"@string/huafei_desc2"
android:layout_marginBottom=
"82dp"
android:layout_marginBottom=
"82dp"
android:textColor=
"@color/color_999999"
android:textColor=
"@color/color_999999"
android:textSize=
"1
2
sp"
android:textSize=
"1
6
sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
...
...
moduleMain/src/main/res/layout/fragment_layout_shoppimg_mall.xml
0 → 100644
View file @
060a6f50
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"#F4F4F4"
android:orientation=
"vertical"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@drawable/img_shop_title_bg"
android:orientation=
"vertical"
>
<View
android:id=
"@+id/id_sys_bar_view"
android:layout_width=
"match_parent"
android:layout_height=
"40dp"
android:layout_marginBottom=
"10dp"
/>
<LinearLayout
android:id=
"@+id/id_ll_search_title"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
>
<LinearLayout
android:id=
"@+id/id_ll_search_view"
android:layout_width=
"match_parent"
android:layout_height=
"36dp"
android:layout_marginLeft=
"16dp"
android:layout_marginRight=
"16dp"
android:background=
"@drawable/shape_white_r25"
android:gravity=
"center_vertical"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"10dp"
android:drawableLeft=
"@drawable/icon_search"
android:drawablePadding=
"4dp"
android:text=
"搜索商品"
android:textColor=
"@color/color_999999"
android:textSize=
"14sp"
/>
</LinearLayout>
</LinearLayout>
<!-- <com.zxhl.main.page.view.SlidingTabLayout2-->
<!-- android:id="@+id/id_fragment_shop_tab"-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="38dp"-->
<!-- android:layout_marginTop="10dp"-->
<!-- android:layout_marginBottom="5dp"-->
<!-- android:paddingLeft="5dp"-->
<!-- android:paddingRight="5dp"-->
<!-- app:tl_indicator_color="@color/white"-->
<!-- app:tl_indicator_corner_radius="2dp"-->
<!-- app:tl_indicator_height="4dp"-->
<!-- app:tl_indicator_style="NORMAL"-->
<!-- app:tl_indicator_width="14dp"-->
<!-- app:tl_tab_padding="10dp"-->
<!-- app:tl_tab_space_equal="true"-->
<!-- app:tl_textBold="SELECT"-->
<!-- app:tl_textSelectColor="@color/white"-->
<!-- app:tl_textUnselectColor="@color/white"-->
<!-- app:tl_textsize="18sp" />-->
</LinearLayout>
<androidx.viewpager.widget.ViewPager
android:id=
"@+id/shop_viewPager"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
app:layout_behavior=
"@string/appbar_scrolling_view_behavior"
/>
</LinearLayout>
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