Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MiYaFastCashier
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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jiangjiantao
MiYaFastCashier
Commits
488b87a0
Commit
488b87a0
authored
Jun 01, 2022
by
赵鹏翔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
基础ui抽取并调整
parent
ce44caa4
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
21 additions
and
12 deletions
+21
-12
build.gradle
app/build.gradle
+0
-1
FunctionCenterActivity.kt
...n/java/com/miya/fastcashier/log/FunctionCenterActivity.kt
+1
-1
LFilePickerActivity.java
...in/java/com/miya/fastcashier/log/LFilePickerActivity.java
+1
-1
AliPayCodeActivity.kt
...c/main/java/com/miya/fastcashier/ui/AliPayCodeActivity.kt
+2
-2
MainActivity.kt
app/src/main/java/com/miya/fastcashier/ui/MainActivity.kt
+1
-0
PayActivity.kt
app/src/main/java/com/miya/fastcashier/ui/PayActivity.kt
+1
-0
PayCodeActivity.kt
app/src/main/java/com/miya/fastcashier/ui/PayCodeActivity.kt
+2
-1
PayResultActivity.kt
...rc/main/java/com/miya/fastcashier/ui/PayResultActivity.kt
+3
-2
PriceInputActivity.kt
...c/main/java/com/miya/fastcashier/ui/PriceInputActivity.kt
+1
-0
RefundActivity.kt
app/src/main/java/com/miya/fastcashier/ui/RefundActivity.kt
+1
-0
ResetAuthorizePasswordActivity.kt
...com/miya/fastcashier/ui/ResetAuthorizePasswordActivity.kt
+1
-0
SearchOrderActivity.kt
.../main/java/com/miya/fastcashier/ui/SearchOrderActivity.kt
+1
-0
SettingActivity.kt
app/src/main/java/com/miya/fastcashier/ui/SettingActivity.kt
+1
-0
WxPayCodeActivity.kt
...rc/main/java/com/miya/fastcashier/ui/WxPayCodeActivity.kt
+2
-1
AuthorizePasswordInputDialog.kt
...iya/fastcashier/ui/dialog/AuthorizePasswordInputDialog.kt
+1
-2
build.gradle
lib_common/build.gradle
+1
-0
BaseActivity.kt
...main/java/com/fastcashier/lib_common/base/BaseActivity.kt
+1
-1
No files found.
app/build.gradle
View file @
488b87a0
...
...
@@ -81,7 +81,6 @@ dependencies {
androidTestImplementation
'androidx.test.ext:junit:1.1.2'
androidTestImplementation
'androidx.test.espresso:espresso-core:3.3.0'
implementation
'com.github.ybq:Android-SpinKit:1.4.0'
implementation
'com.github.d-max:spots-dialog:1.1@aar'
implementation
'com.elvishew:xlog:1.10.1'
implementation
'com.contrarywind:Android-PickerView:4.1.9'
...
...
app/src/main/java/com/miya/fastcashier/log/FunctionCenterActivity.kt
View file @
488b87a0
...
...
@@ -2,9 +2,9 @@ package com.miya.fastcashier.log
import
android.content.Intent
import
android.os.Bundle
import
com.fastcashier.lib_common.base.BaseActivity
import
com.fastcashier.lib_common.util.clickWithTrigger
import
com.miya.fastcashier.databinding.ActivityFunctionCenterBinding
import
com.miya.fastcashier.ui.BaseActivity
import
com.miya.fastcashier.utils.LogFileUtils
/**
...
...
app/src/main/java/com/miya/fastcashier/log/LFilePickerActivity.java
View file @
488b87a0
...
...
@@ -16,13 +16,13 @@ import com.blankj.utilcode.util.EncodeUtils;
import
com.blankj.utilcode.util.LogUtils
;
import
com.blankj.utilcode.util.StringUtils
;
import
com.fastcashier.lib_common.BuildConfig
;
import
com.fastcashier.lib_common.base.BaseActivity
;
import
com.fastcashier.lib_common.function.account.AccountService
;
import
com.fastcashier.lib_common.function.account.SelfCashierTerminalConfig
;
import
com.fastcashier.lib_common.net.CommonCallback
;
import
com.miya.fastcashier.R
;
import
com.miya.fastcashier.net.ApiRequest
;
import
com.miya.fastcashier.net.ApiService
;
import
com.miya.fastcashier.ui.BaseActivity
;
import
com.miya.fastcashier.utils.LogFileUtils
;
import
java.io.File
;
...
...
app/src/main/java/com/miya/fastcashier/ui/AliPayCodeActivity.kt
View file @
488b87a0
...
...
@@ -3,10 +3,10 @@ package com.miya.fastcashier.ui
import
android.content.Intent
import
android.os.Bundle
import
android.widget.Toast
import
androidx.appcompat.app.AppCompatActivity
import
androidx.lifecycle.ViewModelProvider
import
com.alibaba.fastjson.JSON
import
com.blankj.utilcode.util.LogUtils
import
com.fastcashier.lib_common.base.BaseActivity
import
com.fastcashier.lib_common.config.IntentExtra
import
com.fastcashier.lib_common.function.pay.OrderRecordManageKit
import
com.fastcashier.lib_common.util.StringPriceFormatUtils
...
...
@@ -23,7 +23,7 @@ import java.util.*
/***
* 支付宝付款码
*/
class
AliPayCodeActivity
:
AppCompat
Activity
()
{
class
AliPayCodeActivity
:
Base
Activity
()
{
private
lateinit
var
viewModel
:
PayViewModel
private
lateinit
var
binding
:
ActivityAliPayCodeBinding
...
...
app/src/main/java/com/miya/fastcashier/ui/MainActivity.kt
View file @
488b87a0
...
...
@@ -7,6 +7,7 @@ import android.widget.Toast
import
androidx.appcompat.app.AppCompatActivity
import
androidx.fragment.app.FragmentManager
import
androidx.lifecycle.ViewModelProvider
import
com.fastcashier.lib_common.base.BaseActivity
import
com.fastcashier.lib_common.function.account.AccountService
import
com.fastcashier.lib_common.function.pay.OrderRecordManageKit
import
com.fastcashier.lib_common.function.print.PrintService
...
...
app/src/main/java/com/miya/fastcashier/ui/PayActivity.kt
View file @
488b87a0
...
...
@@ -5,6 +5,7 @@ import android.os.Bundle
import
android.view.KeyEvent
import
android.widget.Toast
import
androidx.lifecycle.ViewModelProvider
import
com.fastcashier.lib_common.base.BaseActivity
import
com.fastcashier.lib_common.config.IntentExtra
import
com.fastcashier.lib_common.function.pay.OrderRecordManageKit
import
com.fastcashier.lib_common.util.clickWithTrigger
...
...
app/src/main/java/com/miya/fastcashier/ui/PayCodeActivity.kt
View file @
488b87a0
...
...
@@ -7,6 +7,7 @@ import androidx.appcompat.content.res.AppCompatResources
import
androidx.lifecycle.ViewModelProvider
import
com.alibaba.fastjson.JSON
import
com.blankj.utilcode.util.LogUtils
import
com.fastcashier.lib_common.base.BaseActivity
import
com.fastcashier.lib_common.config.IntentExtra
import
com.fastcashier.lib_common.util.StringPriceFormatUtils
import
com.fastcashier.lib_common.util.clickWithTrigger
...
...
@@ -22,7 +23,7 @@ import kotlinx.coroutines.Dispatchers
import
kotlinx.coroutines.runBlocking
import
java.util.*
class
PayCodeActivity
:
AppCompat
Activity
()
{
class
PayCodeActivity
:
Base
Activity
()
{
private
lateinit
var
viewModel
:
PayViewModel
private
lateinit
var
binding
:
ActivityPayCodeBinding
...
...
app/src/main/java/com/miya/fastcashier/ui/PayResultActivity.kt
View file @
488b87a0
...
...
@@ -5,6 +5,7 @@ import android.os.Bundle
import
android.view.View
import
androidx.appcompat.app.AppCompatActivity
import
androidx.lifecycle.ViewModelProvider
import
com.fastcashier.lib_common.base.BaseActivity
import
com.fastcashier.lib_common.config.IntentExtra
import
com.fastcashier.lib_common.function.pay.MiYaPayPlantformPayWayEnum
import
com.fastcashier.lib_common.util.StringPriceFormatUtils
...
...
@@ -13,12 +14,12 @@ import com.miya.fastcashier.databinding.ActivityPayResultBinding
import
com.miya.fastcashier.viewmodel.PrintViewModel
import
com.sdy.miya.moblie.component.pay.platform.bean.PayServiceResponse
class
PayResultActivity
:
AppCompat
Activity
()
{
class
PayResultActivity
:
Base
Activity
()
{
private
lateinit
var
viewModel
:
PrintViewModel
private
lateinit
var
binding
:
ActivityPayResultBinding
companion
object
{
fun
start
(
context
:
AppCompat
Activity
,
payServiceResponse
:
PayServiceResponse
?)
{
fun
start
(
context
:
Base
Activity
,
payServiceResponse
:
PayServiceResponse
?)
{
val
intent
=
Intent
()
intent
.
setClass
(
context
,
PayResultActivity
::
class
.
java
)
intent
.
putExtra
(
IntentExtra
.
KEY_EXTRA_PAYSERVICERESPONSE
,
payServiceResponse
)
...
...
app/src/main/java/com/miya/fastcashier/ui/PriceInputActivity.kt
View file @
488b87a0
...
...
@@ -6,6 +6,7 @@ import android.text.TextUtils
import
android.view.View
import
android.widget.Toast
import
androidx.lifecycle.ViewModelProvider
import
com.fastcashier.lib_common.base.BaseActivity
import
com.fastcashier.lib_common.config.IntentExtra
import
com.fastcashier.lib_common.ui.dialog.CommonDialog
import
com.fastcashier.lib_common.util.StringPriceFormatUtils
...
...
app/src/main/java/com/miya/fastcashier/ui/RefundActivity.kt
View file @
488b87a0
...
...
@@ -5,6 +5,7 @@ import android.os.Bundle
import
android.view.KeyEvent
import
android.widget.Toast
import
androidx.lifecycle.ViewModelProvider
import
com.fastcashier.lib_common.base.BaseActivity
import
com.fastcashier.lib_common.ui.dialog.NumberManualDialog
import
com.fastcashier.lib_common.util.clickWithTrigger
import
com.miya.fastcashier.databinding.ActivityRefundBinding
...
...
app/src/main/java/com/miya/fastcashier/ui/ResetAuthorizePasswordActivity.kt
View file @
488b87a0
...
...
@@ -4,6 +4,7 @@ import android.content.Context
import
android.content.Intent
import
android.os.Bundle
import
android.text.TextUtils
import
com.fastcashier.lib_common.base.BaseActivity
import
com.fastcashier.lib_common.util.clickWithTrigger
import
com.miya.fastcashier.databinding.ActivityResetAuthorizePasswordBinding
import
com.miya.fastcashier.utils.CenterToasty
...
...
app/src/main/java/com/miya/fastcashier/ui/SearchOrderActivity.kt
View file @
488b87a0
...
...
@@ -15,6 +15,7 @@ import androidx.recyclerview.widget.LinearLayoutManager
import
androidx.recyclerview.widget.RecyclerView
import
androidx.viewpager2.adapter.FragmentStateAdapter
import
com.elvishew.xlog.XLog
import
com.fastcashier.lib_common.base.BaseActivity
import
com.fastcashier.lib_common.function.account.AccountService
import
com.fastcashier.lib_common.function.pay.MiYaPayPlantformPayWayEnum
import
com.fastcashier.lib_common.function.print.PrintService
...
...
app/src/main/java/com/miya/fastcashier/ui/SettingActivity.kt
View file @
488b87a0
...
...
@@ -5,6 +5,7 @@ import android.content.Intent
import
android.os.Bundle
import
android.view.Gravity
import
androidx.fragment.app.FragmentManager
import
com.fastcashier.lib_common.base.BaseActivity
import
com.fastcashier.lib_common.ui.dialog.CommonDialog
import
com.fastcashier.lib_common.util.click
import
com.fastcashier.lib_common.util.clickWithTrigger
...
...
app/src/main/java/com/miya/fastcashier/ui/WxPayCodeActivity.kt
View file @
488b87a0
...
...
@@ -7,6 +7,7 @@ import androidx.appcompat.app.AppCompatActivity
import
androidx.lifecycle.ViewModelProvider
import
com.alibaba.fastjson.JSON
import
com.blankj.utilcode.util.LogUtils
import
com.fastcashier.lib_common.base.BaseActivity
import
com.fastcashier.lib_common.config.IntentExtra
import
com.fastcashier.lib_common.function.pay.OrderRecordManageKit
import
com.fastcashier.lib_common.util.StringPriceFormatUtils
...
...
@@ -23,7 +24,7 @@ import java.util.*
/**
* 微信付款码
*/
class
WxPayCodeActivity
:
AppCompat
Activity
()
{
class
WxPayCodeActivity
:
Base
Activity
()
{
private
lateinit
var
viewModel
:
PayViewModel
private
lateinit
var
binding
:
ActivityWxPayCodeBinding
...
...
app/src/main/java/com/miya/fastcashier/ui/dialog/AuthorizePasswordInputDialog.kt
View file @
488b87a0
...
...
@@ -10,9 +10,9 @@ import android.widget.EditText
import
androidx.appcompat.app.AppCompatActivity
import
androidx.fragment.app.DialogFragment
import
androidx.fragment.app.FragmentManager
import
com.fastcashier.lib_common.base.BaseActivity
import
com.fastcashier.lib_common.util.dp2px
import
com.miya.fastcashier.databinding.DialogAuthorizePasswordInputBinding
import
com.miya.fastcashier.ui.BaseActivity
import
com.miya.fastcashier.ui.RefundActivity
import
com.miya.fastcashier.utils.CenterToasty
import
com.miya.fastcashier.utils.manage.AccountPasswordManageKit
...
...
@@ -23,7 +23,6 @@ class AuthorizePasswordInputDialog : DialogFragment(), View.OnClickListener {
private
var
callback
:
OnAuthorizedFinishListener
?
=
null
companion
object
{
fun
newInstance
():
AuthorizePasswordInputDialog
{
return
AuthorizePasswordInputDialog
()
}
...
...
lib_common/build.gradle
View file @
488b87a0
...
...
@@ -62,4 +62,5 @@ dependencies {
api
'com.blankj:utilcode:1.30.0'
api
'androidx.multidex:multidex:2.0.0@aar'
api
'com.github.d-max:spots-dialog:1.1@aar'
}
\ No newline at end of file
app/src/main/java/com/miya/fastcashier/ui
/BaseActivity.kt
→
lib_common/src/main/java/com/fastcashier/lib_common/base
/BaseActivity.kt
View file @
488b87a0
package
com.
miya.fastcashier.ui
package
com.
fastcashier.lib_common.base
import
android.view.KeyEvent
import
androidx.appcompat.app.AppCompatActivity
...
...
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