Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ShenghuoquanBusiness
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
bp
ShenghuoquanBusiness
Commits
df147c92
Commit
df147c92
authored
Aug 23, 2021
by
shiyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
确认订单页面搭建
parent
faf8ce77
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
513 additions
and
5 deletions
+513
-5
ConfirmOrderViewModel.kt
...om/yidian/shenghuoquan/border/ui/ConfirmOrderViewModel.kt
+48
-1
icon_red_envelope.webp
...Order/src/main/res/drawable-xxhdpi/icon_red_envelope.webp
+0
-0
icon_weixin_pay.webp
.../BOrder/src/main/res/drawable-xxhdpi/icon_weixin_pay.webp
+0
-0
shape_coupons_num_bg.xml
...nts/BOrder/src/main/res/drawable/shape_coupons_num_bg.xml
+8
-0
shape_pay_now_bg.xml
Components/BOrder/src/main/res/drawable/shape_pay_now_bg.xml
+9
-0
shape_white_card_bg.xml
...ents/BOrder/src/main/res/drawable/shape_white_card_bg.xml
+9
-0
border_activity_confirm_order.xml
...der/src/main/res/layout/border_activity_confirm_order.xml
+432
-4
colors.xml
Components/BOrder/src/main/res/values/colors.xml
+7
-0
No files found.
Components/BOrder/src/main/java/com/yidian/shenghuoquan/border/ui/ConfirmOrderViewModel.kt
View file @
df147c92
package
com.yidian.shenghuoquan.border.ui
import
androidx.lifecycle.MutableLiveData
import
com.yidian.bcommon.mvvm.BaseViewModel
class
ConfirmOrderViewModel
:
BaseViewModel
()
{
class
ConfirmOrderViewModel
:
BaseViewModel
()
{
// var selectedPickUpPoint = MutableLiveData<String>()
var
receivingName
=
MutableLiveData
<
String
>()
var
receivingPhone
=
MutableLiveData
<
String
>()
// var goodsList = MutableLiveData<String>()
var
couponsAvailableNum
=
MutableLiveData
<
Int
>()
var
discountAmount
=
MutableLiveData
<
Double
>()
var
totalAmount
=
MutableLiveData
<
Double
>()
var
remark
=
MutableLiveData
<
String
>()
/**
* 请求订单信息
*/
fun
requestOrderInfo
()
{
}
/**
* 选择自提点
*/
fun
choosePickUpPoint
()
{
}
/**
* 选择代金券
*/
fun
chooseVoucher
()
{
}
/**
* 创建订单
*/
fun
createOrder
()
{
}
/**
* 立即支付
*/
fun
payNow
()
{
}
}
Components/BOrder/src/main/res/drawable-xxhdpi/icon_red_envelope.webp
0 → 100644
View file @
df147c92
File added
Components/BOrder/src/main/res/drawable-xxhdpi/icon_weixin_pay.webp
0 → 100644
View file @
df147c92
File added
Components/BOrder/src/main/res/drawable/shape_coupons_num_bg.xml
0 → 100644
View file @
df147c92
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
<corners
android:radius=
"@dimen/dp9"
/>
<solid
android:color=
"#D66948"
/>
</shape>
\ No newline at end of file
Components/BOrder/src/main/res/drawable/shape_pay_now_bg.xml
0 → 100644
View file @
df147c92
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
<solid
android:color=
"@color/color_5A968F"
/>
<corners
android:radius=
"@dimen/dp18"
/>
</shape>
\ No newline at end of file
Components/BOrder/src/main/res/drawable/shape_white_card_bg.xml
0 → 100644
View file @
df147c92
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
<corners
android:radius=
"@dimen/dp20"
/>
<solid
android:color=
"@color/white"
/>
</shape>
\ No newline at end of file
Components/BOrder/src/main/res/layout/border_activity_confirm_order.xml
View file @
df147c92
This diff is collapsed.
Click to expand it.
Components/BOrder/src/main/res/values/colors.xml
0 → 100644
View file @
df147c92
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color
name=
"color_F6775B"
>
#F6775B
</color>
<color
name=
"color_F7F7F7"
>
#FFF7F7F7
</color>
<color
name=
"color_5A968F"
>
#5A968F
</color>
<color
name=
"color_D66948"
>
#D66948
</color>
</resources>
\ No newline at end of file
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