首页增加及时刷新按钮,刷新项圈数据。
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -35,8 +35,8 @@ android {
|
|||||||
applicationId "com.ck.ckcollar.app"
|
applicationId "com.ck.ckcollar.app"
|
||||||
minSdk 24
|
minSdk 24
|
||||||
targetSdk 36
|
targetSdk 36
|
||||||
versionCode 1
|
versionCode 3
|
||||||
versionName "1.0.1"
|
versionName "1.0.3"
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
@@ -152,10 +152,6 @@ dependencies {
|
|||||||
//websocket
|
//websocket
|
||||||
implementation 'org.java-websocket:Java-WebSocket:1.5.2'
|
implementation 'org.java-websocket:Java-WebSocket:1.5.2'
|
||||||
|
|
||||||
implementation 'com.umeng.umsdk:common:9.4.7'// 必选
|
|
||||||
implementation 'com.umeng.umsdk:asms:1.4.0'// 必选
|
|
||||||
implementation 'com.umeng.umsdk:apm:+'
|
|
||||||
|
|
||||||
implementation 'com.github.yyued:SVGAPlayer-Android:2.6.1'
|
implementation 'com.github.yyued:SVGAPlayer-Android:2.6.1'
|
||||||
|
|
||||||
//圆形视图库
|
//圆形视图库
|
||||||
|
|||||||
4
app/proguard-rules.pro
vendored
4
app/proguard-rules.pro
vendored
@@ -33,10 +33,6 @@
|
|||||||
}
|
}
|
||||||
-keep class com.uc.** {*;}
|
-keep class com.uc.** {*;}
|
||||||
|
|
||||||
-keep class com.efs.** {*;}
|
|
||||||
|
|
||||||
-keep class com.umeng.** {*;}
|
|
||||||
|
|
||||||
-keep class org.repackage.** {*;}
|
-keep class org.repackage.** {*;}
|
||||||
|
|
||||||
-keep class com.uyumao.** { *; }
|
-keep class com.uyumao.** { *; }
|
||||||
|
|||||||
@@ -11,11 +11,11 @@
|
|||||||
android:extractNativeLibs="true"
|
android:extractNativeLibs="true"
|
||||||
android:dataExtractionRules="@xml/data_extraction_rules"
|
android:dataExtractionRules="@xml/data_extraction_rules"
|
||||||
android:fullBackupContent="@xml/backup_rules"
|
android:fullBackupContent="@xml/backup_rules"
|
||||||
android:icon="@mipmap/icon"
|
android:icon="@mipmap/app_icon"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:networkSecurityConfig="@xml/network_security_config"
|
android:networkSecurityConfig="@xml/network_security_config"
|
||||||
android:requestLegacyExternalStorage="true"
|
android:requestLegacyExternalStorage="true"
|
||||||
android:roundIcon="@mipmap/icon"
|
android:roundIcon="@mipmap/app_icon"
|
||||||
android:supportsRtl="true"
|
android:supportsRtl="true"
|
||||||
android:theme="@style/Theme.CkCollar_app">
|
android:theme="@style/Theme.CkCollar_app">
|
||||||
<activity
|
<activity
|
||||||
@@ -39,37 +39,37 @@
|
|||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.login.LoginActivity"
|
android:name=".ui.act.login.LoginActivity"
|
||||||
android:launchMode="singleTask"
|
android:launchMode="singleTask"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.login.RegisterActivity"
|
android:name=".ui.act.login.RegisterActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.login.BoundPhoneActivity"
|
android:name=".ui.act.login.BoundPhoneActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.login.RegisterSuccessActivity"
|
android:name=".ui.act.login.RegisterSuccessActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.login.LostActivity"
|
android:name=".ui.act.login.LostActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.login.AgreementActivity"
|
android:name=".ui.act.login.AgreementActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.setting.SettingWebViewActivity"
|
android:name=".ui.act.setting.SettingWebViewActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.home.MainActivity"
|
android:name=".ui.act.home.MainActivity"
|
||||||
android:launchMode="singleTask"
|
android:launchMode="singleTask"
|
||||||
android:theme="@style/Theme.CkCollar_app.MainTheme"></activity>
|
android:theme="@style/Theme.CkCollar_app.MainTheme"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".wxapi.WXEntryActivity"
|
android:name=".wxapi.WXEntryActivity"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:launchMode="singleTask"
|
android:launchMode="singleTask"
|
||||||
android:taskAffinity="com.ck.ckcollar.app"
|
android:taskAffinity="com.ck.ckcollar.app"
|
||||||
android:theme="@android:style/Theme.Translucent.NoTitleBar"></activity>
|
android:theme="@android:style/Theme.Translucent.NoTitleBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".wxapi.WXPayEntryActivity"
|
android:name=".wxapi.WXPayEntryActivity"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
@@ -78,205 +78,206 @@
|
|||||||
android:theme="@android:style/Theme.Translucent.NoTitleBar" />
|
android:theme="@android:style/Theme.Translucent.NoTitleBar" />
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.petmanager.PetManagerActivity"
|
android:name=".ui.act.petmanager.PetManagerActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.petmanager.AddPetActivity"
|
android:name=".ui.act.petmanager.AddPetActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.petmanager.EditPetActivity"
|
android:name=".ui.act.petmanager.EditPetActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.petmanager.ViewPetFileActivity"
|
android:name=".ui.act.petmanager.ViewPetFileActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.customer.CustomerActivity"
|
android:name=".ui.act.customer.CustomerActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.user.UserInfoActivity"
|
android:name=".ui.act.user.UserInfoActivity"
|
||||||
android:launchMode="singleTask"
|
android:launchMode="singleTask"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.message.MessageCenterActivity"
|
android:name=".ui.act.message.MessageCenterActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.setting.SettingActivity"
|
android:name=".ui.act.setting.SettingActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.setting.PasswordManagerActivity"
|
android:name=".ui.act.setting.PasswordManagerActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.setting.EditPsswordActivity"
|
android:name=".ui.act.setting.EditPsswordActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.setting.FindPasswordActivity"
|
android:name=".ui.act.setting.FindPasswordActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.setting.AddressActivity"
|
android:name=".ui.act.setting.AddressActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.setting.AddAddressActivity"
|
android:name=".ui.act.setting.AddAddressActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.setting.AccountCancellationActivity"
|
android:name=".ui.act.setting.AccountCancellationActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.balance.BalanceActivity"
|
android:name=".ui.act.balance.BalanceActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.MapTheme"></activity>
|
android:theme="@style/Theme.CkCollar_app.MapTheme"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.balance.RechargeActivity"
|
android:name=".ui.act.balance.RechargeActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.balance.WithDrawActivity"
|
android:name=".ui.act.balance.WithDrawActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.MapTheme"></activity>
|
android:theme="@style/Theme.CkCollar_app.MapTheme"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.balance.WithDrawSuccessActivity"
|
android:name=".ui.act.balance.WithDrawSuccessActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.balance.OutRecordDetailsActivity"
|
android:name=".ui.act.balance.OutRecordDetailsActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.balance.IncomeRecordDetailsActivity"
|
android:name=".ui.act.balance.IncomeRecordDetailsActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.points.PointsActivity"
|
android:name=".ui.act.points.PointsActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.MapTheme"></activity>
|
android:theme="@style/Theme.CkCollar_app.MapTheme"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.member.MemberActivity"
|
android:name=".ui.act.member.MemberActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.member.OpenMemberActivity"
|
android:name=".ui.act.member.OpenMemberActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.MapTheme"></activity>
|
android:theme="@style/Theme.CkCollar_app.MapTheme"/>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.mine.ReturnDeviceActivity"
|
android:name=".ui.act.mine.ReturnDeviceActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.mine.FeedBackActivity"
|
android:name=".ui.act.mine.FeedBackActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.shop.SearchActivity"
|
android:name=".ui.act.shop.SearchActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.MapTheme"
|
android:theme="@style/Theme.CkCollar_app.MapTheme"
|
||||||
android:windowSoftInputMode="stateAlwaysVisible"></activity>
|
android:windowSoftInputMode="stateAlwaysVisible"/>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.shop.ShopCarActivity"
|
android:name=".ui.act.shop.ShopCarActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.MapTheme"
|
android:theme="@style/Theme.CkCollar_app.MapTheme"
|
||||||
android:windowSoftInputMode="stateAlwaysVisible"></activity>
|
android:windowSoftInputMode="stateAlwaysVisible"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.shop.TypeActivity"
|
android:name=".ui.act.shop.TypeActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.MapTheme"
|
android:theme="@style/Theme.CkCollar_app.MapTheme"
|
||||||
android:windowSoftInputMode="stateAlwaysVisible"></activity>
|
android:windowSoftInputMode="stateAlwaysVisible"/>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.shop.ProductDetailsActivity"
|
android:name=".ui.act.shop.ProductDetailsActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.shop.OrderActivity"
|
android:name=".ui.act.shop.OrderActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.shop.OrderSuccessActivity"
|
android:name=".ui.act.shop.OrderSuccessActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.order.MyOrderActivity"
|
android:name=".ui.act.order.MyOrderActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"
|
||||||
|
android:launchMode="singleTask"/>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.order.OrderDetailsActivity"
|
android:name=".ui.act.order.OrderDetailsActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.order.AfterSalesActivity"
|
android:name=".ui.act.order.AfterSalesActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.order.RefundActivity"
|
android:name=".ui.act.order.RefundActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.order.ModifyAddressActivity"
|
android:name=".ui.act.order.ModifyAddressActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.order.AfterSalesProgressActivity"
|
android:name=".ui.act.order.AfterSalesProgressActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.order.LogisticsInfoActivity"
|
android:name=".ui.act.order.LogisticsInfoActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.note.NoteDetailsActivity"
|
android:name=".ui.act.note.NoteDetailsActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.setting.EditAddressActivity"
|
android:name=".ui.act.setting.EditAddressActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.order.InputLogisticsNumActivity"
|
android:name=".ui.act.order.InputLogisticsNumActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.message.MessageDetailsActivity"
|
android:name=".ui.act.message.MessageDetailsActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.setting.PayPasswordManagerActivity"
|
android:name=".ui.act.setting.PayPasswordManagerActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.setting.FindPayPasswordActivity"
|
android:name=".ui.act.setting.FindPayPasswordActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.setting.EditPayPsswordActivity"
|
android:name=".ui.act.setting.EditPayPsswordActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.setting.PayPsswordActivity"
|
android:name=".ui.act.setting.PayPsswordActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.order.PayOrderActivity"
|
android:name=".ui.act.order.PayOrderActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.deposit.DepositActivity"
|
android:name=".ui.act.deposit.DepositActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.customer.PeopleCustomerActivity"
|
android:name=".ui.act.customer.PeopleCustomerActivity"
|
||||||
android:windowSoftInputMode="adjustResize"
|
android:windowSoftInputMode="adjustResize"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.petmanager.InputInviteCodeActivity"
|
android:name=".ui.act.petmanager.InputInviteCodeActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.petmanager.BoundSuccessActivity"
|
android:name=".ui.act.petmanager.BoundSuccessActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.deposit.StartDepositActivity"
|
android:name=".ui.act.deposit.StartDepositActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.petmanager.ImageViewActivity"
|
android:name=".ui.act.petmanager.ImageViewActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.customer.MineCustomerActivity"
|
android:name=".ui.act.customer.MineCustomerActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.customer.ShopCustomerActivity"
|
android:name=".ui.act.customer.ShopCustomerActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.NoActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.NoActionBar"/>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.WifiListActivity"
|
android:name=".ui.act.WifiListActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.DarkActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.DarkActionBar"/>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.BlueToothActivity"
|
android:name=".ui.act.BlueToothActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.DarkActionBar"></activity>
|
android:theme="@style/Theme.CkCollar_app.DarkActionBar"/>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.act.petmanager.MapLocationActivity"
|
android:name=".ui.act.petmanager.MapLocationActivity"
|
||||||
android:theme="@style/Theme.CkCollar_app.MapTheme"></activity>
|
android:theme="@style/Theme.CkCollar_app.MapTheme"/>
|
||||||
|
|
||||||
|
|
||||||
<provider
|
<provider
|
||||||
@@ -301,7 +302,9 @@
|
|||||||
</queries>
|
</queries>
|
||||||
|
|
||||||
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
|
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
|
||||||
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
|
<uses-permission
|
||||||
|
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
|
||||||
|
tools:node="remove" />
|
||||||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
||||||
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
|
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
|
||||||
|
|
||||||
|
|||||||
@@ -13,9 +13,6 @@ import com.cyclone.shadowsocks.utils.PreferencesUtils
|
|||||||
import com.google.gson.Gson
|
import com.google.gson.Gson
|
||||||
import com.tt.kit.base.TTBaseActivity
|
import com.tt.kit.base.TTBaseActivity
|
||||||
import com.tt.kit.utils.TTLog
|
import com.tt.kit.utils.TTLog
|
||||||
import com.umeng.analytics.MobclickAgent
|
|
||||||
import com.umeng.commonsdk.UMConfigure
|
|
||||||
import com.umeng.umcrash.customlog.UAPMCustomLog
|
|
||||||
|
|
||||||
|
|
||||||
class CKApp : Application() {
|
class CKApp : Application() {
|
||||||
@@ -54,11 +51,6 @@ class CKApp : Application() {
|
|||||||
Glide.init(this, GlideBuilder().setDefaultRequestOptions(defaultOptions))
|
Glide.init(this, GlideBuilder().setDefaultRequestOptions(defaultOptions))
|
||||||
//SkinManager.getInstance().init(this);
|
//SkinManager.getInstance().init(this);
|
||||||
|
|
||||||
// UMConfigure.setLogEnabled(true)
|
|
||||||
// MobclickAgent.setPageCollectionMode(MobclickAgent.PageMode.MANUAL);
|
|
||||||
// UMConfigure.preInit(this, "6a618cf0e88ae439bf379f37", "UM");
|
|
||||||
// UMConfigure.init(this, "6a618cf0e88ae439bf379f37", "UM", UMConfigure.DEVICE_TYPE_PHONE, "");
|
|
||||||
|
|
||||||
TTLog.isLogEable(true)
|
TTLog.isLogEable(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ object ActionCode {
|
|||||||
|
|
||||||
const val BASE_URL = "https://d.chongdunpet.com"
|
const val BASE_URL = "https://d.chongdunpet.com"
|
||||||
// const val BASE_URL = "http://192.168.1.187:8080"
|
// const val BASE_URL = "http://192.168.1.187:8080"
|
||||||
|
// const val BASE_URL = "http://192.168.1.22:8080"
|
||||||
const val CUSTOMER_URL = "wss://d.chongdunpet.com/ws/chat?role=customer&token=";
|
const val CUSTOMER_URL = "wss://d.chongdunpet.com/ws/chat?role=customer&token=";
|
||||||
|
|
||||||
|
|
||||||
@@ -113,6 +114,8 @@ object ActionCode {
|
|||||||
"充值" -> url = "/app/balance/recharge"
|
"充值" -> url = "/app/balance/recharge"
|
||||||
"提现" -> url = "/app/balance/withdraw"
|
"提现" -> url = "/app/balance/withdraw"
|
||||||
"修改登录密码" -> url = "/app/setting/loginPassword/change"
|
"修改登录密码" -> url = "/app/setting/loginPassword/change"
|
||||||
|
"撤销微信提现转账" -> url = "/app/balance/withdraw/cancel"
|
||||||
|
|
||||||
|
|
||||||
"积分总览" -> url = "/app/points/overview"
|
"积分总览" -> url = "/app/points/overview"
|
||||||
"积分明细" -> url = "/app/points/list"
|
"积分明细" -> url = "/app/points/list"
|
||||||
@@ -155,7 +158,7 @@ object ActionCode {
|
|||||||
"找回支付密码" -> url = "/app/setting/payPassword/reset"
|
"找回支付密码" -> url = "/app/setting/payPassword/reset"
|
||||||
"查询支付密码状态" -> url = "/app/setting/payPassword/status"
|
"查询支付密码状态" -> url = "/app/setting/payPassword/status"
|
||||||
"订单支付" -> url = "/app/order/pay"
|
"订单支付" -> url = "/app/order/pay"
|
||||||
"取消待支付订单" -> url = "/app/order/cancelPending"
|
"取消待支付订单" -> url = "/app/order/cancelWxPayment"
|
||||||
|
|
||||||
|
|
||||||
"修改个人信息" -> url = "/app/profile/update"
|
"修改个人信息" -> url = "/app/profile/update"
|
||||||
|
|||||||
@@ -9,8 +9,6 @@ import android.os.Process
|
|||||||
import android.util.Log
|
import android.util.Log
|
||||||
import com.cyclone.shadowsocks.utils.PreferencesUtils
|
import com.cyclone.shadowsocks.utils.PreferencesUtils
|
||||||
import com.tt.kit.utils.ToastHelper
|
import com.tt.kit.utils.ToastHelper
|
||||||
import com.umeng.umcrash.UMCrash
|
|
||||||
import com.umeng.umcrash.customlog.UAPMCustomLog
|
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import java.io.FileOutputStream
|
import java.io.FileOutputStream
|
||||||
import java.io.PrintWriter
|
import java.io.PrintWriter
|
||||||
@@ -105,8 +103,6 @@ class ExceptionHandler : UncaughtExceptionHandler {
|
|||||||
// sb.append(obtainExceptionInfo(ex));
|
// sb.append(obtainExceptionInfo(ex));
|
||||||
sb.append("exception").append(" = ").append(getStackTraceString(ex))
|
sb.append("exception").append(" = ").append(getStackTraceString(ex))
|
||||||
|
|
||||||
UAPMCustomLog.e("chong_dun",sb.toString())
|
|
||||||
UMCrash.generateCustomLog(ex,"chongdunException");
|
|
||||||
if (Environment.getExternalStorageState() == Environment.MEDIA_MOUNTED) {
|
if (Environment.getExternalStorageState() == Environment.MEDIA_MOUNTED) {
|
||||||
val dir = File(
|
val dir = File(
|
||||||
mContext!!.getFilesDir().toString() + File.separator + "crash" + File.separator
|
mContext!!.getFilesDir().toString() + File.separator + "crash" + File.separator
|
||||||
|
|||||||
@@ -49,8 +49,12 @@ class WithDrawActivity : CKLHBaseActionBarActivity() {
|
|||||||
val withdraw = pendingWithdraw ?: return@observe
|
val withdraw = pendingWithdraw ?: return@observe
|
||||||
if (resultCode == 0) {
|
if (resultCode == 0) {
|
||||||
showWithdrawSuccess(withdraw)
|
showWithdrawSuccess(withdraw)
|
||||||
|
} else if (resultCode == -2) {
|
||||||
|
pendingWithdraw = null
|
||||||
|
toast("已取消微信收款确认")
|
||||||
|
cancelWeChatWithdraw(withdraw)
|
||||||
} else {
|
} else {
|
||||||
toast(if (resultCode == -2) "已取消微信收款确认" else "微信提现确认失败")
|
toast("微信提现确认失败")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -158,6 +162,22 @@ class WithDrawActivity : CKLHBaseActionBarActivity() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private fun cancelWeChatWithdraw(withdraw: WithDrawModel) {
|
||||||
|
val outBillNo = withdraw.outBillNo
|
||||||
|
if (outBillNo.isNullOrBlank()) {
|
||||||
|
toast("撤销微信提现失败:提现单号为空")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
TTHttpClient.post(this, "撤销微信提现转账", outBillNo, object : ICallback {
|
||||||
|
override fun onSuccess(data: String) = Unit
|
||||||
|
|
||||||
|
override fun onFailed(code: String, msg: String) {
|
||||||
|
toast("撤销微信提现失败:$msg")
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
private fun showWithdrawSuccess(withdraw: WithDrawModel) {
|
private fun showWithdrawSuccess(withdraw: WithDrawModel) {
|
||||||
toActivity(WithDrawSuccessActivity::class.java, DataCollection().apply {
|
toActivity(WithDrawSuccessActivity::class.java, DataCollection().apply {
|
||||||
add(Data("data", Gson().toJson(withdraw)))
|
add(Data("data", Gson().toJson(withdraw)))
|
||||||
|
|||||||
@@ -314,7 +314,9 @@ class CustomerActivity : CKBaseActivity() {
|
|||||||
|
|
||||||
var models = Gson().fromJson<List<CustomerMessageModel.MessageItemModel>>(dataStr,object : TypeToken<List<CustomerMessageModel.MessageItemModel>>(){}.type)
|
var models = Gson().fromJson<List<CustomerMessageModel.MessageItemModel>>(dataStr,object : TypeToken<List<CustomerMessageModel.MessageItemModel>>(){}.type)
|
||||||
|
|
||||||
var data2 = models.stream().filter { it-> !TextUtils.isEmpty(it.url) || !TextUtils.isEmpty(it.content) }.toList()
|
val data2 = models.filter { it ->
|
||||||
|
!TextUtils.isEmpty(it.url) || !TextUtils.isEmpty(it.content)
|
||||||
|
}
|
||||||
data.addAll(data2)
|
data.addAll(data2)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -275,7 +275,9 @@ class CustomerActivity_copy : CKBaseActivity() {
|
|||||||
|
|
||||||
var models = Gson().fromJson<List<CustomerMessageModel.MessageItemModel>>(dataStr,object : TypeToken<List<CustomerMessageModel.MessageItemModel>>(){}.type)
|
var models = Gson().fromJson<List<CustomerMessageModel.MessageItemModel>>(dataStr,object : TypeToken<List<CustomerMessageModel.MessageItemModel>>(){}.type)
|
||||||
|
|
||||||
var data2 = models.stream().filter { it-> !TextUtils.isEmpty(it.url) || !TextUtils.isEmpty(it.content) }.toList()
|
val data2 = models.filter { it ->
|
||||||
|
!TextUtils.isEmpty(it.url) || !TextUtils.isEmpty(it.content)
|
||||||
|
}
|
||||||
data.addAll(data2)
|
data.addAll(data2)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ import android.view.LayoutInflater
|
|||||||
import android.view.View
|
import android.view.View
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import android.view.WindowManager
|
import android.view.WindowManager
|
||||||
|
import android.view.animation.AnimationUtils
|
||||||
import android.widget.ImageView
|
import android.widget.ImageView
|
||||||
import android.widget.PopupWindow
|
import android.widget.PopupWindow
|
||||||
import android.widget.TextView
|
import android.widget.TextView
|
||||||
@@ -60,6 +61,7 @@ import com.ck.ckcollar.app.utils.networkone.model.TTRequestParam
|
|||||||
import com.ck.ckcollar.app.widget.CKRoundImageView
|
import com.ck.ckcollar.app.widget.CKRoundImageView
|
||||||
import com.cyclone.shadowsocks.utils.PreferencesUtils
|
import com.cyclone.shadowsocks.utils.PreferencesUtils
|
||||||
import com.google.gson.Gson
|
import com.google.gson.Gson
|
||||||
|
import com.google.gson.JsonParseException
|
||||||
import com.gyf.immersionbar.ImmersionBar
|
import com.gyf.immersionbar.ImmersionBar
|
||||||
import com.tt.kit.base.TTBaseActivity
|
import com.tt.kit.base.TTBaseActivity
|
||||||
import com.tt.kit.model.Data
|
import com.tt.kit.model.Data
|
||||||
@@ -110,6 +112,14 @@ class HomeFragment : CKBaseFragment() {
|
|||||||
pendingCameraAction = null
|
pendingCameraAction = null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
private val scanPermissionLauncher = registerForActivityResult(
|
||||||
|
ActivityResultContracts.RequestMultiplePermissions()
|
||||||
|
) { result ->
|
||||||
|
hideCameraPermissionTopDialog()
|
||||||
|
if (result.values.all { it }) {
|
||||||
|
startScan()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
lateinit var homeBinding: FragmentHomeBinding
|
lateinit var homeBinding: FragmentHomeBinding
|
||||||
var collarDatas = listOf<CollarTypeModel.TypeDataModel>()
|
var collarDatas = listOf<CollarTypeModel.TypeDataModel>()
|
||||||
@@ -122,6 +132,9 @@ class HomeFragment : CKBaseFragment() {
|
|||||||
private var waitingForLoginResult = false
|
private var waitingForLoginResult = false
|
||||||
private var loadedLoginToken: String? = null
|
private var loadedLoginToken: String? = null
|
||||||
private var shouldRefreshPetListOnResume = false
|
private var shouldRefreshPetListOnResume = false
|
||||||
|
private var equipmentRequestId = 0
|
||||||
|
private var equipmentRequestPetId: String? = null
|
||||||
|
private var equipmentRequestToken: String? = null
|
||||||
override fun onCreateView(
|
override fun onCreateView(
|
||||||
inflater: LayoutInflater,
|
inflater: LayoutInflater,
|
||||||
container: ViewGroup?,
|
container: ViewGroup?,
|
||||||
@@ -158,11 +171,11 @@ class HomeFragment : CKBaseFragment() {
|
|||||||
return@setOnClickListener
|
return@setOnClickListener
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!checkCameraPermissions()){
|
if (!hasScanPermissions()){
|
||||||
CKAlertDialog(activity!!,getString(R.string.alert),getString(R.string.camera_alert),object : CKAlertDialog.AlertClickListener{
|
CKAlertDialog(activity!!,getString(R.string.alert),getString(R.string.scan_permission_alert),object : CKAlertDialog.AlertClickListener{
|
||||||
override fun onBack(isConfirm: Boolean) {
|
override fun onBack(isConfirm: Boolean) {
|
||||||
if(isConfirm){
|
if(isConfirm){
|
||||||
requestCameraPermission(CameraAction.SCAN)
|
requestScanPermissions()
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -247,6 +260,18 @@ class HomeFragment : CKBaseFragment() {
|
|||||||
)
|
)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
homeBinding.contentRefresh.setOnClickListener {
|
||||||
|
if (!requireLogin()) return@setOnClickListener
|
||||||
|
val pet = dataModel
|
||||||
|
if (pet == null) {
|
||||||
|
toast(getString(R.string.choose_pet_alert))
|
||||||
|
return@setOnClickListener
|
||||||
|
}
|
||||||
|
homeBinding.imageRefresh.startAnimation(
|
||||||
|
AnimationUtils.loadAnimation(requireContext(), R.anim.refresh_rotate)
|
||||||
|
)
|
||||||
|
getEquipmentInfo(pet.id.toString())
|
||||||
|
}
|
||||||
homeBinding.refreshLayout?.setOnRefreshListener {
|
homeBinding.refreshLayout?.setOnRefreshListener {
|
||||||
if (!CKApp.app.isUserLoggedIn) {
|
if (!CKApp.app.isUserLoggedIn) {
|
||||||
homeBinding.refreshLayout?.finishRefresh()
|
homeBinding.refreshLayout?.finishRefresh()
|
||||||
@@ -323,6 +348,9 @@ class HomeFragment : CKBaseFragment() {
|
|||||||
override fun onDestroyView() {
|
override fun onDestroyView() {
|
||||||
hideCameraPermissionTopDialog()
|
hideCameraPermissionTopDialog()
|
||||||
pendingCameraAction = null
|
pendingCameraAction = null
|
||||||
|
homeBinding.imageRefresh.clearAnimation()
|
||||||
|
equipmentRequestId++
|
||||||
|
finishEquipmentRefresh()
|
||||||
super.onDestroyView()
|
super.onDestroyView()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -399,88 +427,141 @@ class HomeFragment : CKBaseFragment() {
|
|||||||
|
|
||||||
fun getData(id: String) {
|
fun getData(id: String) {
|
||||||
if (!CKApp.app.isUserLoggedIn) return
|
if (!CKApp.app.isUserLoggedIn) return
|
||||||
|
val requestToken = CKApp.app.token
|
||||||
|
val binding = homeBinding
|
||||||
TTHttpClient.get(activity as TTBaseActivity, "首页", TTRequestParam().apply {
|
TTHttpClient.get(activity as TTBaseActivity, "首页", TTRequestParam().apply {
|
||||||
add(TTRequestData("patId", id))
|
add(TTRequestData("patId", id))
|
||||||
}, object : ICallback {
|
}, object : ICallback {
|
||||||
override fun onSuccess(data: String) {
|
override fun onSuccess(data: String) {
|
||||||
if (!CKApp.app.isUserLoggedIn) return
|
if (!isCurrentPetRequest(id, requestToken, binding)) return
|
||||||
homeModel = Gson().fromJson<HomeModel>(data, HomeModel::class.java)
|
val model = Gson().fromJson(data, HomeModel::class.java)
|
||||||
|
// 首页响应只更新首页数据,避免覆盖设备接口已返回的最新数据。
|
||||||
setBannerData(homeModel?.banners.orEmpty())
|
val currentModel = homeModel ?: HomeModel().also { homeModel = it }
|
||||||
|
currentModel.banners = model.banners
|
||||||
|
currentModel.lowBattery = model.lowBattery
|
||||||
|
setBannerData(currentModel.banners.orEmpty())
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onFailed(code: String, msg: String) {
|
override fun onFailed(code: String, msg: String) {
|
||||||
|
if (!isCurrentPetRequest(id, requestToken, binding)) return
|
||||||
toast(msg)
|
toast(msg)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
TTHttpClient.get(activity as TTBaseActivity, "设备信息", TTRequestParam().apply { add(TTRequestData("patId",id)) },object : ICallback{
|
getEquipmentInfo(id)
|
||||||
override fun onSuccess(data: String) {
|
}
|
||||||
|
|
||||||
|
private fun getEquipmentInfo(id: String) {
|
||||||
if (!CKApp.app.isUserLoggedIn) return
|
if (!CKApp.app.isUserLoggedIn) return
|
||||||
var model = Gson().fromJson<HomeModel.EquipmentModel>(data, HomeModel.EquipmentModel::class.java)
|
val hostActivity = activity as? TTBaseActivity ?: return
|
||||||
|
val requestToken = CKApp.app.token
|
||||||
homeModel?.equipment = model
|
if (equipmentRequestPetId == id && equipmentRequestToken == requestToken) return
|
||||||
|
|
||||||
|
val binding = homeBinding
|
||||||
|
val requestId = ++equipmentRequestId
|
||||||
|
equipmentRequestPetId = id
|
||||||
|
equipmentRequestToken = requestToken
|
||||||
|
binding.contentRefresh.isEnabled = false
|
||||||
|
binding.contentRefresh.alpha = 0.5f
|
||||||
|
|
||||||
|
TTHttpClient.get(hostActivity, "设备信息", TTRequestParam().apply {
|
||||||
|
add(TTRequestData("patId", id))
|
||||||
|
}, object : ICallback {
|
||||||
|
override fun onSuccess(data: String) {
|
||||||
|
if (requestId != equipmentRequestId) return
|
||||||
try {
|
try {
|
||||||
if (!TextUtils.isEmpty(homeModel?.equipment?.collNum)) {
|
if (!isCurrentPetRequest(id, requestToken, binding)) return
|
||||||
homeBinding.btnBound!!.text = homeModel?.equipment?.collNum
|
val model = Gson().fromJson(data, HomeModel.EquipmentModel::class.java)
|
||||||
homeBinding.textHealthPoints!!.text = homeModel?.equipment?.healthVitality
|
?: HomeModel.EquipmentModel()
|
||||||
homeBinding.textStep!!.text = homeModel?.equipment?.steps
|
val currentModel = homeModel ?: HomeModel().also { homeModel = it }
|
||||||
homeBinding.textDistance!!.text = homeModel?.equipment?.mileage.toString()
|
currentModel.equipment = model
|
||||||
homeBinding.textPowerValue!!.text = homeModel?.equipment?.powerLevel + "%"
|
renderEquipmentInfo(model)
|
||||||
|
} catch (e: JsonParseException) {
|
||||||
|
TTLog.e("设备信息解析失败: ${e.message}")
|
||||||
|
toast(getString(R.string.equipment_refresh_failed))
|
||||||
|
} finally {
|
||||||
|
finishEquipmentRefresh()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onFailed(code: String, msg: String) {
|
||||||
|
if (requestId != equipmentRequestId) return
|
||||||
|
try {
|
||||||
|
if (isCurrentPetRequest(id, requestToken, binding)) toast(msg)
|
||||||
|
} finally {
|
||||||
|
finishEquipmentRefresh()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
homeModel?.equipment?.powerLevel?.let {
|
private fun isCurrentPetRequest(
|
||||||
if (it.toDouble() == 0.0){
|
id: String,
|
||||||
|
token: String,
|
||||||
|
binding: FragmentHomeBinding
|
||||||
|
): Boolean {
|
||||||
|
return isAdded && view === binding.root && CKApp.app.isUserLoggedIn &&
|
||||||
|
CKApp.app.token == token && dataModel?.id?.toString().orEmpty() == id
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun finishEquipmentRefresh() {
|
||||||
|
equipmentRequestPetId = null
|
||||||
|
equipmentRequestToken = null
|
||||||
|
homeBinding.contentRefresh.isEnabled = true
|
||||||
|
homeBinding.contentRefresh.alpha = 1f
|
||||||
|
homeBinding.refreshLayout?.finishRefresh()
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun renderEquipmentInfo(model: HomeModel.EquipmentModel) {
|
||||||
|
if (!TextUtils.isEmpty(model.collNum)) {
|
||||||
|
homeBinding.btnBound!!.text = model.collNum
|
||||||
|
homeBinding.textHealthPoints!!.text = model.healthVitality
|
||||||
|
homeBinding.textStep!!.text = model.steps
|
||||||
|
homeBinding.textDistance!!.text = model.mileage.toString()
|
||||||
|
homeBinding.textPowerValue!!.text = model.powerLevel + "%"
|
||||||
|
|
||||||
|
model.powerLevel?.toDoubleOrNull()?.let {
|
||||||
|
if (it == 0.0) {
|
||||||
homeBinding.imagePower?.setImageResource(R.mipmap.image_power_0)
|
homeBinding.imagePower?.setImageResource(R.mipmap.image_power_0)
|
||||||
}else if (it.toDouble() > 0 && it.toDouble() <= 10){
|
} else if (it > 0 && it <= 10) {
|
||||||
homeBinding.imagePower?.setImageResource(R.mipmap.image_power_1)
|
homeBinding.imagePower?.setImageResource(R.mipmap.image_power_1)
|
||||||
}else if (it.toDouble() > 10 && it.toDouble() <= 20){
|
} else if (it > 10 && it <= 20) {
|
||||||
homeBinding.imagePower?.setImageResource(R.mipmap.image_power_2)
|
homeBinding.imagePower?.setImageResource(R.mipmap.image_power_2)
|
||||||
}else if (it.toDouble() > 20 && it.toDouble() <= 30){
|
} else if (it > 20 && it <= 30) {
|
||||||
homeBinding.imagePower?.setImageResource(R.mipmap.image_power_3)
|
homeBinding.imagePower?.setImageResource(R.mipmap.image_power_3)
|
||||||
}else if (it.toDouble() > 30 && it.toDouble() <= 40){
|
} else if (it > 30 && it <= 40) {
|
||||||
homeBinding.imagePower?.setImageResource(R.mipmap.image_power_4)
|
homeBinding.imagePower?.setImageResource(R.mipmap.image_power_4)
|
||||||
}else if (it.toDouble() > 40 && it.toDouble() <= 50){
|
} else if (it > 40 && it <= 50) {
|
||||||
homeBinding.imagePower?.setImageResource(R.mipmap.image_power_5)
|
homeBinding.imagePower?.setImageResource(R.mipmap.image_power_5)
|
||||||
}else if (it.toDouble() > 50 && it.toDouble() <= 60){
|
} else if (it > 50 && it <= 60) {
|
||||||
homeBinding.imagePower?.setImageResource(R.mipmap.image_power_6)
|
homeBinding.imagePower?.setImageResource(R.mipmap.image_power_6)
|
||||||
}else if (it.toDouble() > 60 && it.toDouble() <= 70){
|
} else if (it > 60 && it <= 70) {
|
||||||
homeBinding.imagePower?.setImageResource(R.mipmap.image_power_7)
|
homeBinding.imagePower?.setImageResource(R.mipmap.image_power_7)
|
||||||
}else if (it.toDouble() > 70 && it.toDouble() <= 80){
|
} else if (it > 70 && it <= 80) {
|
||||||
homeBinding.imagePower?.setImageResource(R.mipmap.image_power_8)
|
homeBinding.imagePower?.setImageResource(R.mipmap.image_power_8)
|
||||||
}else if (it.toDouble() > 80 && it.toDouble() <= 90){
|
} else if (it > 80 && it <= 90) {
|
||||||
homeBinding.imagePower?.setImageResource(R.mipmap.image_power_9)
|
homeBinding.imagePower?.setImageResource(R.mipmap.image_power_9)
|
||||||
}else if (it.toDouble() > 90 && it.toDouble() <= 100){
|
} else if (it > 90 && it <= 100) {
|
||||||
homeBinding.imagePower?.setImageResource(R.mipmap.image_power_10)
|
homeBinding.imagePower?.setImageResource(R.mipmap.image_power_10)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
homeBinding.contentPower?.visibility = View.VISIBLE
|
homeBinding.contentPower?.visibility = View.VISIBLE
|
||||||
|
|
||||||
homeBinding.btnScan?.visibility = View.GONE
|
homeBinding.btnScan?.visibility = View.GONE
|
||||||
homeBinding.btnDetails?.visibility = View.VISIBLE
|
homeBinding.btnDetails?.visibility = View.VISIBLE
|
||||||
|
|
||||||
homeBinding.btnAdreessDetails?.visibility = View.VISIBLE
|
homeBinding.btnAdreessDetails?.visibility = View.VISIBLE
|
||||||
homeBinding.btnViewPostion?.visibility = View.GONE
|
homeBinding.btnViewPostion?.visibility = View.GONE
|
||||||
|
|
||||||
if (homeModel?.equipment!!.noSignal) {
|
homeBinding.textAddress!!.text = if (model.noSignal) {
|
||||||
if (TextUtils.isEmpty(homeModel?.equipment?.lastLocation)){
|
if (TextUtils.isEmpty(model.lastLocation)) {
|
||||||
homeBinding.textAddress!!.text = getString(R.string.no_position)
|
getString(R.string.no_position)
|
||||||
} else {
|
} else {
|
||||||
homeBinding.textAddress!!.text =
|
"当前位置无法接收信号,最后一次定位是:" + model.lastLocation
|
||||||
"当前位置无法接收信号,最后一次定位是:" + (homeModel?.equipment?.lastLocation
|
|
||||||
?: "")
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
homeBinding.textAddress!!.text = homeModel?.equipment?.lastLocation
|
model.lastLocation
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
homeBinding.btnBound!!.text = getString(R.string.unbound)
|
homeBinding.btnBound!!.text = getString(R.string.unbound)
|
||||||
homeBinding.textHealthPoints!!.text = "--"
|
homeBinding.textHealthPoints!!.text = "--"
|
||||||
@@ -488,27 +569,12 @@ class HomeFragment : CKBaseFragment() {
|
|||||||
homeBinding.textAddress!!.text = getString(R.string.no_position)
|
homeBinding.textAddress!!.text = getString(R.string.no_position)
|
||||||
homeBinding.textDistance!!.text = "-"
|
homeBinding.textDistance!!.text = "-"
|
||||||
homeBinding.textPowerValue!!.text = "%"
|
homeBinding.textPowerValue!!.text = "%"
|
||||||
|
|
||||||
homeBinding.contentPower?.visibility = View.GONE
|
homeBinding.contentPower?.visibility = View.GONE
|
||||||
|
|
||||||
homeBinding.btnScan?.visibility = View.VISIBLE
|
homeBinding.btnScan?.visibility = View.VISIBLE
|
||||||
homeBinding.btnDetails?.visibility = View.GONE
|
homeBinding.btnDetails?.visibility = View.GONE
|
||||||
|
|
||||||
homeBinding.btnAdreessDetails?.visibility = View.GONE
|
homeBinding.btnAdreessDetails?.visibility = View.GONE
|
||||||
homeBinding.btnViewPostion?.visibility = View.VISIBLE
|
homeBinding.btnViewPostion?.visibility = View.VISIBLE
|
||||||
}
|
}
|
||||||
homeBinding.refreshLayout?.finishRefresh()
|
|
||||||
}catch (e : Exception ){
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun onFailed(code: String, msg: String) {
|
|
||||||
toast(msg)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun performCameraAction(action: CameraAction?) {
|
private fun performCameraAction(action: CameraAction?) {
|
||||||
@@ -941,12 +1007,67 @@ class HomeFragment : CKBaseFragment() {
|
|||||||
shouldRefreshPetListOnResume = false
|
shouldRefreshPetListOnResume = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private fun hasScanPermissions(): Boolean {
|
||||||
|
val photoPermission = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
|
||||||
|
Manifest.permission.READ_MEDIA_IMAGES
|
||||||
|
} else {
|
||||||
|
Manifest.permission.READ_EXTERNAL_STORAGE
|
||||||
|
}
|
||||||
|
return checkCameraPermissions() &&
|
||||||
|
ActivityCompat.checkSelfPermission(requireContext(), photoPermission) ==
|
||||||
|
android.content.pm.PackageManager.PERMISSION_GRANTED
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun requestScanPermissions() {
|
||||||
|
showScanPermissionTopDialog()
|
||||||
|
val permissions = mutableListOf(Manifest.permission.CAMERA)
|
||||||
|
val photoPermission = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
|
||||||
|
Manifest.permission.READ_MEDIA_IMAGES
|
||||||
|
} else {
|
||||||
|
Manifest.permission.READ_EXTERNAL_STORAGE
|
||||||
|
}
|
||||||
|
permissions += photoPermission
|
||||||
|
val requestedPermissions = permissions.distinct().toTypedArray()
|
||||||
|
permissionTopDialog?.window?.decorView?.post {
|
||||||
|
if (isAdded && permissionTopDialog != null) {
|
||||||
|
scanPermissionLauncher.launch(requestedPermissions)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun showScanPermissionTopDialog() {
|
||||||
|
permissionTopDialog?.dismiss()
|
||||||
|
val view = layoutInflater.inflate(R.layout.permission_top_dialog, null)
|
||||||
|
view.findViewById<TextView>(R.id.permissionTopTitle).text = getString(R.string.scan)
|
||||||
|
view.findViewById<TextView>(R.id.permissionTopContent).text =
|
||||||
|
getString(R.string.scan_permission_alert)
|
||||||
|
permissionTopDialog = AlertDialog.Builder(requireContext())
|
||||||
|
.setView(view)
|
||||||
|
.create()
|
||||||
|
.also { dialog ->
|
||||||
|
dialog.setCanceledOnTouchOutside(false)
|
||||||
|
dialog.setCancelable(false)
|
||||||
|
dialog.show()
|
||||||
|
dialog.window?.apply {
|
||||||
|
setBackgroundDrawable(ColorDrawable(android.graphics.Color.TRANSPARENT))
|
||||||
|
setGravity(Gravity.TOP)
|
||||||
|
setLayout(
|
||||||
|
WindowManager.LayoutParams.MATCH_PARENT,
|
||||||
|
WindowManager.LayoutParams.WRAP_CONTENT
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
override fun onPause() {
|
override fun onPause() {
|
||||||
super.onPause()
|
super.onPause()
|
||||||
shouldRefreshPetListOnResume = true
|
shouldRefreshPetListOnResume = true
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun resetLoggedOutState() {
|
private fun resetLoggedOutState() {
|
||||||
|
homeBinding.imageRefresh.clearAnimation()
|
||||||
|
equipmentRequestId++
|
||||||
|
finishEquipmentRefresh()
|
||||||
loadedLoginToken = null
|
loadedLoginToken = null
|
||||||
collarDatas = emptyList()
|
collarDatas = emptyList()
|
||||||
bannarData = emptyList()
|
bannarData = emptyList()
|
||||||
|
|||||||
@@ -232,7 +232,12 @@ class MineFragment : CKBaseFragment() {
|
|||||||
if (!CKApp.app.isUserLoggedIn) return
|
if (!CKApp.app.isUserLoggedIn) return
|
||||||
var model = Gson().fromJson<UnReadModel>(data, UnReadModel::class.java)
|
var model = Gson().fromJson<UnReadModel>(data, UnReadModel::class.java)
|
||||||
|
|
||||||
|
|
||||||
|
if(model.unreadCount > 99){
|
||||||
|
binding.textCount.text = "99"
|
||||||
|
}else{
|
||||||
binding.textCount.text = model.unreadCount.toString()
|
binding.textCount.text = model.unreadCount.toString()
|
||||||
|
}
|
||||||
if (model.unreadCount == 0){
|
if (model.unreadCount == 0){
|
||||||
binding.textCount.visibility = View.INVISIBLE
|
binding.textCount.visibility = View.INVISIBLE
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -319,7 +319,11 @@ class ShopFragment : CKBaseFragment() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
if (model.count > 0){
|
if (model.count > 0){
|
||||||
|
if(model.count > 99){
|
||||||
|
binding.textCount.text = "99"
|
||||||
|
}else{
|
||||||
binding.textCount.text = model.count.toString()
|
binding.textCount.text = model.count.toString()
|
||||||
|
}
|
||||||
binding.textCount.visibility = View.VISIBLE
|
binding.textCount.visibility = View.VISIBLE
|
||||||
}else{
|
}else{
|
||||||
binding.textCount.visibility = View.GONE
|
binding.textCount.visibility = View.GONE
|
||||||
|
|||||||
@@ -411,11 +411,10 @@ class PayOrderActivity : CKBaseActivity() {
|
|||||||
isCancellingOrder = true
|
isCancellingOrder = true
|
||||||
showProgeassDialog(getString(R.string.cancel))
|
showProgeassDialog(getString(R.string.cancel))
|
||||||
TTHttpClient.post(this, "取消待支付订单", TTRequestParam().apply {
|
TTHttpClient.post(this, "取消待支付订单", TTRequestParam().apply {
|
||||||
add(TTRequestData("orderId", model.id))
|
add(TTRequestData("orderNo", model.orderNo.toString()))
|
||||||
}, object : ICallback {
|
}, object : ICallback {
|
||||||
override fun onSuccess(data: String) {
|
override fun onSuccess(data: String) {
|
||||||
hiddenProgeassDialog()
|
hiddenProgeassDialog()
|
||||||
toast(getString(R.string.cancel_pay_cussess))
|
|
||||||
finish(DataCollection(), 1002)
|
finish(DataCollection(), 1002)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ class OrderActivity : CKBaseActivity() {
|
|||||||
|
|
||||||
var flag = 0
|
var flag = 0
|
||||||
|
|
||||||
private var currentOrderId = 0
|
private var currentOrderId = ""
|
||||||
private var isCancellingOrder = false
|
private var isCancellingOrder = false
|
||||||
|
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
@@ -331,7 +331,7 @@ class OrderActivity : CKBaseActivity() {
|
|||||||
TTHttpClient.postJson(this, "下单", param.toString(), object : ICallback {
|
TTHttpClient.postJson(this, "下单", param.toString(), object : ICallback {
|
||||||
override fun onSuccess(data: String) {
|
override fun onSuccess(data: String) {
|
||||||
val paymentModel = Gson().fromJson(data, OrderPaymentModel::class.java)
|
val paymentModel = Gson().fromJson(data, OrderPaymentModel::class.java)
|
||||||
currentOrderId = paymentModel.orderId
|
// currentOrderId = paymentModel.orderId
|
||||||
if ("0".equals(this@OrderActivity.payType)) {
|
if ("0".equals(this@OrderActivity.payType)) {
|
||||||
val weChatPayParams = paymentModel.wxMap
|
val weChatPayParams = paymentModel.wxMap
|
||||||
if (weChatPayParams == null || !weChatPayParams.isJsonObject) {
|
if (weChatPayParams == null || !weChatPayParams.isJsonObject) {
|
||||||
@@ -339,6 +339,8 @@ class OrderActivity : CKBaseActivity() {
|
|||||||
toast("微信支付参数格式错误")
|
toast("微信支付参数格式错误")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
val wxPayEntity = Gson().fromJson(weChatPayParams, PayOrderModel::class.java)
|
||||||
|
currentOrderId = wxPayEntity?.orderNo.toString()
|
||||||
wxPay(Gson().fromJson(weChatPayParams, PayOrderModel::class.java))
|
wxPay(Gson().fromJson(weChatPayParams, PayOrderModel::class.java))
|
||||||
}else if ("1".equals(this@OrderActivity.payType)) {
|
}else if ("1".equals(this@OrderActivity.payType)) {
|
||||||
val aliPayOrderStr = paymentModel.orderStr
|
val aliPayOrderStr = paymentModel.orderStr
|
||||||
@@ -466,8 +468,7 @@ class OrderActivity : CKBaseActivity() {
|
|||||||
|
|
||||||
private fun cancelPendingOrder() {
|
private fun cancelPendingOrder() {
|
||||||
if (isCancellingOrder) return
|
if (isCancellingOrder) return
|
||||||
|
if(TextUtils.isEmpty(currentOrderId)){
|
||||||
if (currentOrderId <= 0) {
|
|
||||||
toast(getString(R.string.payment_faild))
|
toast(getString(R.string.payment_faild))
|
||||||
openPendingOrderList()
|
openPendingOrderList()
|
||||||
return
|
return
|
||||||
@@ -476,11 +477,10 @@ class OrderActivity : CKBaseActivity() {
|
|||||||
isCancellingOrder = true
|
isCancellingOrder = true
|
||||||
showProgeassDialog(getString(R.string.cancel))
|
showProgeassDialog(getString(R.string.cancel))
|
||||||
TTHttpClient.post(this, "取消待支付订单", TTRequestParam().apply {
|
TTHttpClient.post(this, "取消待支付订单", TTRequestParam().apply {
|
||||||
add(TTRequestData("orderId", currentOrderId))
|
add(TTRequestData("orderNo", currentOrderId))
|
||||||
}, object : ICallback {
|
}, object : ICallback {
|
||||||
override fun onSuccess(data: String) {
|
override fun onSuccess(data: String) {
|
||||||
hiddenProgeassDialog()
|
hiddenProgeassDialog()
|
||||||
toast(getString(R.string.cancel_pay_cussess))
|
|
||||||
openPendingOrderList()
|
openPendingOrderList()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -19,10 +19,8 @@ import androidx.core.view.WindowInsetsCompat
|
|||||||
import androidx.core.view.updatePadding
|
import androidx.core.view.updatePadding
|
||||||
import com.ck.ckcollar.app.CKApp
|
import com.ck.ckcollar.app.CKApp
|
||||||
import com.ck.ckcollar.app.R
|
import com.ck.ckcollar.app.R
|
||||||
import com.efs.sdk.launch.LaunchManager
|
|
||||||
import com.tt.kit.base.TTBaseActivity
|
import com.tt.kit.base.TTBaseActivity
|
||||||
import com.tt.kit.utils.TTUtils
|
import com.tt.kit.utils.TTUtils
|
||||||
import com.umeng.analytics.MobclickAgent
|
|
||||||
import pub.devrel.easypermissions.EasyPermissions
|
import pub.devrel.easypermissions.EasyPermissions
|
||||||
|
|
||||||
|
|
||||||
@@ -187,23 +185,4 @@ open class CKLHBaseActivity : TTBaseActivity(){
|
|||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onResume() {
|
|
||||||
super.onResume()
|
|
||||||
LaunchManager.onTracePage(this, LaunchManager.PAGE_ON_RESUME, false);
|
|
||||||
MobclickAgent.onResume(this)
|
|
||||||
MobclickAgent.onPageStart("view")
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun onStop() {
|
|
||||||
super.onStop()
|
|
||||||
LaunchManager.onTracePage(this, LaunchManager.PAGE_ON_STOP, true);
|
|
||||||
|
|
||||||
}
|
|
||||||
override fun onPause() {
|
|
||||||
super.onPause()
|
|
||||||
MobclickAgent.onPause(this)
|
|
||||||
MobclickAgent.onPageEnd("view")
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
android:id="@+id/loginImage"
|
android:id="@+id/loginImage"
|
||||||
android:layout_width="270dp"
|
android:layout_width="270dp"
|
||||||
android:layout_height="270dp"
|
android:layout_height="270dp"
|
||||||
android:src="@mipmap/image_logo"
|
android:src="@mipmap/launch_icon"
|
||||||
>
|
>
|
||||||
|
|
||||||
</com.ck.ckcollar.app.widget.CKImageView>
|
</com.ck.ckcollar.app.widget.CKImageView>
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
android:layout_width="120dp"
|
android:layout_width="120dp"
|
||||||
android:layout_height="120dp"
|
android:layout_height="120dp"
|
||||||
android:layout_marginTop="43dp"
|
android:layout_marginTop="43dp"
|
||||||
android:src="@mipmap/image_login_logo"
|
android:src="@mipmap/launch_icon"
|
||||||
>
|
>
|
||||||
|
|
||||||
</com.ck.ckcollar.app.widget.CKImageView>
|
</com.ck.ckcollar.app.widget.CKImageView>
|
||||||
|
|||||||
@@ -185,8 +185,7 @@
|
|||||||
android:layout_marginLeft="10dp"
|
android:layout_marginLeft="10dp"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingHorizontal="5dp"
|
android:paddingHorizontal="5dp"
|
||||||
android:visibility="gone"
|
android:visibility="gone">
|
||||||
>
|
|
||||||
|
|
||||||
<com.ck.ckcollar.app.widget.CKImageView
|
<com.ck.ckcollar.app.widget.CKImageView
|
||||||
android:id="@+id/imagePower"
|
android:id="@+id/imagePower"
|
||||||
@@ -204,6 +203,25 @@
|
|||||||
android:text="50%"
|
android:text="50%"
|
||||||
/>
|
/>
|
||||||
</com.ck.ckcollar.app.widget.CKLinearLayout>
|
</com.ck.ckcollar.app.widget.CKLinearLayout>
|
||||||
|
|
||||||
|
<com.ck.ckcollar.app.widget.CKLinearLayout
|
||||||
|
android:id="@+id/contentRefresh"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:background="@drawable/bg_bound_button"
|
||||||
|
android:layout_marginLeft="10dp"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:paddingHorizontal="5dp"
|
||||||
|
android:visibility="visible">
|
||||||
|
|
||||||
|
<com.ck.ckcollar.app.widget.CKImageView
|
||||||
|
android:id="@+id/imageRefresh"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:src="@mipmap/icon_index_refresh" />
|
||||||
|
|
||||||
|
</com.ck.ckcollar.app.widget.CKLinearLayout>
|
||||||
</com.ck.ckcollar.app.widget.CKLinearLayout>
|
</com.ck.ckcollar.app.widget.CKLinearLayout>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -125,7 +125,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/pet_member"
|
android:text="@string/pet_member"
|
||||||
android:textColor="@color/textColor"
|
android:textColor="@color/textColor"
|
||||||
android:textSize="20sp"
|
android:textSize="18sp"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
@@ -133,9 +133,10 @@
|
|||||||
android:id="@+id/textMemberDate"
|
android:id="@+id/textMemberDate"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="5dp"
|
||||||
android:text="@string/pet_member_rewards"
|
android:text="@string/pet_member_rewards"
|
||||||
android:textColor="@color/textColor"
|
android:textColor="@color/textColor"
|
||||||
android:textSize="16sp"
|
android:textSize="14sp"
|
||||||
/>
|
/>
|
||||||
</com.ck.ckcollar.app.widget.CKLinearLayout>
|
</com.ck.ckcollar.app.widget.CKLinearLayout>
|
||||||
|
|
||||||
@@ -172,7 +173,8 @@
|
|||||||
<com.ck.ckcollar.app.widget.CKTextView
|
<com.ck.ckcollar.app.widget.CKTextView
|
||||||
android:id="@+id/textBalance"
|
android:id="@+id/textBalance"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="0dp"
|
||||||
|
android:layout_weight="6"
|
||||||
android:textSize="20dp"
|
android:textSize="20dp"
|
||||||
android:textColor="@color/textColor"
|
android:textColor="@color/textColor"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
@@ -181,7 +183,8 @@
|
|||||||
|
|
||||||
<com.ck.ckcollar.app.widget.CKTextView
|
<com.ck.ckcollar.app.widget.CKTextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="0dp"
|
||||||
|
android:layout_weight="4"
|
||||||
android:textSize="16dp"
|
android:textSize="16dp"
|
||||||
android:textColor="@color/textColor"
|
android:textColor="@color/textColor"
|
||||||
android:text="@string/balance"
|
android:text="@string/balance"
|
||||||
@@ -204,7 +207,8 @@
|
|||||||
<com.ck.ckcollar.app.widget.CKTextView
|
<com.ck.ckcollar.app.widget.CKTextView
|
||||||
android:id="@+id/textPoints"
|
android:id="@+id/textPoints"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="0dp"
|
||||||
|
android:layout_weight="6"
|
||||||
android:textSize="20dp"
|
android:textSize="20dp"
|
||||||
android:textColor="@color/textColor"
|
android:textColor="@color/textColor"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
@@ -213,7 +217,8 @@
|
|||||||
|
|
||||||
<com.ck.ckcollar.app.widget.CKTextView
|
<com.ck.ckcollar.app.widget.CKTextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="0dp"
|
||||||
|
android:layout_weight="4"
|
||||||
android:textSize="16dp"
|
android:textSize="16dp"
|
||||||
android:textColor="@color/textColor"
|
android:textColor="@color/textColor"
|
||||||
android:text="@string/points2"
|
android:text="@string/points2"
|
||||||
@@ -235,7 +240,8 @@
|
|||||||
<com.ck.ckcollar.app.widget.CKTextView
|
<com.ck.ckcollar.app.widget.CKTextView
|
||||||
android:id="@+id/textDeposit"
|
android:id="@+id/textDeposit"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="0dp"
|
||||||
|
android:layout_weight="6"
|
||||||
android:textSize="16dp"
|
android:textSize="16dp"
|
||||||
android:textColor="@color/textColor"
|
android:textColor="@color/textColor"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
@@ -244,7 +250,8 @@
|
|||||||
|
|
||||||
<com.ck.ckcollar.app.widget.CKTextView
|
<com.ck.ckcollar.app.widget.CKTextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="0dp"
|
||||||
|
android:layout_weight="4"
|
||||||
android:textSize="16dp"
|
android:textSize="16dp"
|
||||||
android:textColor="@color/textColor"
|
android:textColor="@color/textColor"
|
||||||
android:text="@string/deposit"
|
android:text="@string/deposit"
|
||||||
@@ -434,7 +441,7 @@
|
|||||||
<com.ck.ckcollar.app.widget.CKLinearLayout
|
<com.ck.ckcollar.app.widget.CKLinearLayout
|
||||||
android:id="@+id/btnReturnDevice"
|
android:id="@+id/btnReturnDevice"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="52dp"
|
android:layout_height="50dp"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
>
|
>
|
||||||
@@ -458,7 +465,7 @@
|
|||||||
<com.ck.ckcollar.app.widget.CKLinearLayout
|
<com.ck.ckcollar.app.widget.CKLinearLayout
|
||||||
android:id="@+id/btnFeedback"
|
android:id="@+id/btnFeedback"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="52dp"
|
android:layout_height="50dp"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
>
|
>
|
||||||
@@ -482,7 +489,7 @@
|
|||||||
<com.ck.ckcollar.app.widget.CKLinearLayout
|
<com.ck.ckcollar.app.widget.CKLinearLayout
|
||||||
android:id="@+id/btnCustomerService"
|
android:id="@+id/btnCustomerService"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="52dp"
|
android:layout_height="50dp"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
>
|
>
|
||||||
|
|||||||
BIN
app/src/main/res/mipmap-xhdpi/icon_index_refresh.png
Normal file
BIN
app/src/main/res/mipmap-xhdpi/icon_index_refresh.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 568 B |
BIN
app/src/main/res/mipmap-xhdpi/launch_icon.png
Normal file
BIN
app/src/main/res/mipmap-xhdpi/launch_icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.3 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/app_icon.png
Normal file
BIN
app/src/main/res/mipmap-xxhdpi/app_icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.9 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/icon_index_refresh.png
Normal file
BIN
app/src/main/res/mipmap-xxhdpi/icon_index_refresh.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 792 B |
BIN
app/src/main/res/mipmap-xxhdpi/launch_icon.png
Normal file
BIN
app/src/main/res/mipmap-xxhdpi/launch_icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
BIN
app/src/main/res/mipmap-xxxhdpi/launch_icon.png
Normal file
BIN
app/src/main/res/mipmap-xxxhdpi/launch_icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
@@ -63,6 +63,7 @@
|
|||||||
<string name="continue_str">继续</string>
|
<string name="continue_str">继续</string>
|
||||||
<string name="camera">相机</string>
|
<string name="camera">相机</string>
|
||||||
<string name="scan_bind_camera">用于扫码绑定设备</string>
|
<string name="scan_bind_camera">用于扫码绑定设备</string>
|
||||||
|
<string name="scan_permission_alert">宠盾需要使用相机扫描二维码,也需要访问相册以便从相册选择二维码图片</string>
|
||||||
<string name="notify">通知</string>
|
<string name="notify">通知</string>
|
||||||
<string name="notify_alert">用于接收通知</string>
|
<string name="notify_alert">用于接收通知</string>
|
||||||
|
|
||||||
@@ -593,6 +594,7 @@
|
|||||||
<string name="clear_alert">确认清除聊天记录吗?</string>
|
<string name="clear_alert">确认清除聊天记录吗?</string>
|
||||||
<string name="product_details">商品详情</string>
|
<string name="product_details">商品详情</string>
|
||||||
<string name="no_device_data">无设备信息</string>
|
<string name="no_device_data">无设备信息</string>
|
||||||
|
<string name="equipment_refresh_failed">设备信息获取失败,请重试</string>
|
||||||
<string name="please_choose_product">请先选择商品</string>
|
<string name="please_choose_product">请先选择商品</string>
|
||||||
<string name="cancel_account_phone">注销%s绑定的账号</string>
|
<string name="cancel_account_phone">注销%s绑定的账号</string>
|
||||||
<string name="please_choose_data">请选择原因</string>
|
<string name="please_choose_data">请选择原因</string>
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user