Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
44b9412e
Commit
44b9412e
authored
Nov 30, 2021
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat : 微信支付,问诊弹窗
parent
6944f63c
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
65 additions
and
40 deletions
+65
-40
build.gradle
app/build.gradle
+2
-1
MainActivity.kt
app/src/main/java/com/ydl/component/MainActivity.kt
+1
-1
ComponentTestApp.java
app/src/main/java/com/ydl/component/base/ComponentTestApp.java
+2
-2
DemoAppLifecycles.kt
app/src/main/java/com/ydl/component/base/DemoAppLifecycles.kt
+4
-4
DemoGlobalConfig.java
app/src/main/java/com/ydl/component/base/DemoGlobalConfig.java
+2
-3
config.gradle
config.gradle
+4
-4
SessionHelper.java
m-im/src/main/java/com/yidianling/im/session/SessionHelper.java
+17
-17
GraphicConsultationFlow1Activity.kt
m-im/src/main/java/com/yidianling/medical/GraphicConsultationFlow1Activity.kt
+24
-0
im_nim_inquiry_end_layout.xml
m-im/src/main/res/layout/im_nim_inquiry_end_layout.xml
+0
-1
im_nim_inquiry_receive_layout.xml
m-im/src/main/res/layout/im_nim_inquiry_receive_layout.xml
+0
-1
medical_add_new_archives_activity.xml
m-im/src/main/res/layout/medical_add_new_archives_activity.xml
+1
-1
medical_edit_archives_activity.xml
m-im/src/main/res/layout/medical_edit_archives_activity.xml
+1
-1
im_nim_message_item.xml
m-im/src/main/res_uikit/layout/im_nim_message_item.xml
+1
-1
MedicalPayActivity.kt
ydl-medical-pay/src/main/java/com/medical/ydl/medical/pay/MedicalPayActivity.kt
+6
-3
No files found.
app/build.gradle
View file @
44b9412e
...
...
@@ -198,7 +198,8 @@ dependencies {
api
project
(
':m-home'
)
api
project
(
':m-confide'
)
api
project
(
':ydl-medical-pay'
)
// api project(':ydl-medical-pay')
api
rootProject
.
ext
.
dependencies
[
"ydl-medical-pay"
]
implementation
project
(
':ydl-flutter-base'
)
...
...
app/src/main/java/com/ydl/component/MainActivity.kt
View file @
44b9412e
...
...
@@ -105,7 +105,7 @@ class MainActivity : BaseLceActivity<DemoContract.View, DemoContract.Presenter>(
yl_twwz
.
setOnClickListener
{
//医疗图文问诊
GraphicConsultationFlow1Activity
.
start
(
this
@MainActivity
,
"10
622"
,
"130953969
"
)
GraphicConsultationFlow1Activity
.
start
(
this
@MainActivity
,
"10
586"
,
"130953108
"
)
}
yl_yhdangan_list
.
setOnClickListener
{
...
...
app/src/main/java/com/ydl/component/base/ComponentTestApp.java
View file @
44b9412e
...
...
@@ -67,10 +67,10 @@ public class ComponentTestApp extends BaseApp {
}
//umeng
String
umAppkey
=
"
56970affe0f55a9cda001e24
"
;
String
umAppkey
=
"
6126f317a8f28d032fa7535c
"
;
channel
=
"android_"
+
channel
;
initUM
(
umAppkey
,
channel
);
PlatformConfig
.
setWeixin
(
"wx
57a9d930270498c7"
,
"17c031f02500ded3457a80e69d8e5e45
"
);
PlatformConfig
.
setWeixin
(
"wx
dc73923f4cf27b53"
,
"2927c4ee158eae6f25a50dd6e55ac0cb
"
);
PlatformConfig
.
setWXFileProvider
(
"com.cxzapp.yidianling.fileprovider"
);
PlatformConfig
.
setQQZone
(
"1105070461"
,
"6BvkUnk6wXJekcgR"
);
PlatformConfig
.
setQQFileProvider
(
"com.cxzapp.yidianling.fileprovider"
);
...
...
app/src/main/java/com/ydl/component/base/DemoAppLifecycles.kt
View file @
44b9412e
...
...
@@ -122,13 +122,13 @@ class DemoAppLifecycles : IAppLifecycles {
//umeng
var
umAppkey
:
String
?
=
null
if
(
BuildConfig
.
FLAVOR
.
endsWith
(
"ydl"
))
{
umAppkey
=
"
56970affe0f55a9cda001e24
"
if
(
BuildConfig
.
FLAVOR
.
endsWith
(
"ydl"
)
||
BuildConfig
.
FLAVOR
.
endsWith
(
"medical"
)
)
{
umAppkey
=
"
6126f317a8f28d032fa7535c
"
channel
=
"android_$channel"
initUM
(
umAppkey
,
channel
,
application
)
PlatformConfig
.
setWeixin
(
"wx
57a9d930270498c
7"
,
"
17c031f02500ded3457a80e69d8e5e45
"
"wx
a1f1331fa005f4e
7"
,
"
4504c9a5ecf821e5d00c0922ad1f04b2
"
)
PlatformConfig
.
setQQZone
(
"1105070461"
,
"6BvkUnk6wXJekcgR"
)
}
else
if
(
BuildConfig
.
FLAVOR
.
endsWith
(
"xlzx"
))
{
...
...
app/src/main/java/com/ydl/component/base/DemoGlobalConfig.java
View file @
44b9412e
...
...
@@ -19,9 +19,8 @@ import java.util.List;
*/
public
final
class
DemoGlobalConfig
implements
IConfigModule
{
String
APP_DOMAIN
=
"https://api.github.com/"
;
// public static String appEnv = YDLConstants.ENV_AUTO_TEST;
public
static
String
appEnv
=
YDLConstants
.
ENV_TEST
;
// public static String appEnv = YDLConstants.ENV_NEW_TEST;//配置未上传到maven库
// public static String appEnv = YDLConstants.ENV_TEST;
public
static
String
appEnv
=
YDLConstants
.
ENV_NEW_TEST
;
// public static String appEnv = YDLConstants.ENV_PROD;
@Override
...
...
config.gradle
View file @
44b9412e
...
...
@@ -10,7 +10,7 @@ ext {
"m-fm"
:
"0.0.30.03"
,
"m-user"
:
"0.0.61.84"
,
"m-home"
:
"0.0.22.70"
,
"m-im"
:
"0.0.20.
48
"
,
"m-im"
:
"0.0.20.
55
"
,
"m-dynamic"
:
"0.0.7.28"
,
"m-article"
:
"0.0.0.10"
,
...
...
@@ -39,7 +39,7 @@ ext {
"ydl-webview"
:
"0.0.38.53"
,
"ydl-media"
:
"0.0.21.10"
,
"ydl-pay"
:
"0.0.18.19"
,
"ydl-medical-pay"
:
"0.0.01.
0
9"
,
"ydl-medical-pay"
:
"0.0.01.
1
9"
,
"m-audioim"
:
"0.0.49.29.37"
,
"ydl-flutter-base"
:
"0.0.14.26"
,
...
...
@@ -94,7 +94,7 @@ ext {
"m-fm"
:
"0.0.30.01"
,
"m-user"
:
"0.0.61.84"
,
"m-home"
:
"0.0.22.70"
,
"m-im"
:
"0.0.20.
48
"
,
"m-im"
:
"0.0.20.
55
"
,
"m-dynamic"
:
"0.0.7.28"
,
"m-article"
:
"0.0.0.8"
,
...
...
@@ -122,7 +122,7 @@ ext {
"ydl-webview"
:
"0.0.38.53"
,
"ydl-media"
:
"0.0.21.10"
,
"ydl-pay"
:
"0.0.18.19"
,
"ydl-medical-pay"
:
"0.0.01.
0
9"
,
"ydl-medical-pay"
:
"0.0.01.
1
9"
,
"m-audioim"
:
"0.0.49.29.37"
,
"ydl-flutter-base"
:
"0.0.14.26"
,
...
...
m-im/src/main/java/com/yidianling/im/session/SessionHelper.java
View file @
44b9412e
...
...
@@ -285,30 +285,30 @@ public class SessionHelper {
actions
.
add
(
new
ImageAction
());
actions
.
add
(
new
VideoAction
());
//语音视频
if
((
ImIn
.
INSTANCE
.
getUserInfo
().
getUser_type
()
==
1
&&
(
user_type
==
1
||
user_type
==
3
))
||
user_type
==
-
1
)
{
//1代表用户不能和用户聊天
}
else
{
// 助理也不能跟用户电话/视频聊天
if
(
ImIn
.
INSTANCE
.
getUserInfo
().
getUser_type
()
!=
3
)
{
actions
.
add
(
new
H5VideoAction
(
AVChatType
.
AUDIO
));
}
}
if
(
user_type
==
2
)
{
actions
.
add
(
new
OrderAction
());
}
//
if ((ImIn.INSTANCE.getUserInfo().getUser_type() == 1 && (user_type == 1 || user_type == 3)) || user_type == -1) {//1代表用户不能和用户聊天
//
} else {
//
// 助理也不能跟用户电话/视频聊天
//
if (ImIn.INSTANCE.getUserInfo().getUser_type() != 3) {
//
actions.add(new H5VideoAction(AVChatType.AUDIO));
//
}
//
}
//
if (user_type == 2) {
//
actions.add(new OrderAction());
//
}
//跟ios同步,助理也不展示帮助按钮
// if (ImIn.INSTANCE.getUserInfo().getUser_type() != 3) {
// actions.add(new HelpAction());
// }
if
(
user_type
==
2
)
{
actions
.
add
(
new
RedPacketAction
());
}
//
if (user_type == 2) {
//
actions.add(new RedPacketAction());
//
}
//助理
if
(
ImIn
.
INSTANCE
.
getUserInfo
().
getUser_type
()
==
3
)
{
actions
.
add
(
new
MakeCollectionsAction
());
// 发起收款
actions
.
add
(
new
SendCardAction
());
// 发送客服名片
}
//
if (ImIn.INSTANCE.getUserInfo().getUser_type() == 3) {
//
actions.add(new MakeCollectionsAction()); // 发起收款
//
actions.add(new SendCardAction()); // 发送客服名片
//
}
p2pCustomization
.
actions
=
actions
;
...
...
m-im/src/main/java/com/yidianling/medical/GraphicConsultationFlow1Activity.kt
View file @
44b9412e
...
...
@@ -160,6 +160,30 @@ class GraphicConsultationFlow1Activity : BaseActivity() {
backCheck
()
}
showDialogTip
()
}
private
fun
showDialogTip
()
{
val
builder
=
NormalDialog
.
Builder
(
this
@GraphicConsultationFlow1Activity
,
"center"
,
true
)
builder
.
setTitle
(
""
)
builder
.
setMessage
(
"\n为向您添加的就诊人提供问诊服务,您需要向我们提供该就诊人的身份证号码,并确保在提供前已取得该就诊人的授权同意;若该就诊人为儿童的,您需要在提供前征得该儿童监控人的同意。\n"
)
builder
.
setPositiveButton
(
"不同意"
)
{
dialog
,
which
->
//关闭页面
finish
()
dialog
.
dismiss
()
}.
setNegativeButton
(
"同意"
)
{
dialog
,
which
->
dialog
.
dismiss
()
}
builder
.
setRight_color
(
"#3464EC"
)
builder
.
setLeft_color
(
"#3464EC"
)
builder
.
setContent_color
(
"#10233A"
)
builder
.
create
().
show
()
}
@SuppressLint
(
"CheckResult"
)
...
...
m-im/src/main/res/layout/im_nim_inquiry_end_layout.xml
View file @
44b9412e
...
...
@@ -5,7 +5,6 @@
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"@dimen/platform_dp_12"
android:layout_marginRight=
"8dp"
android:background=
"#80d7dfea"
app:cardBackgroundColor=
"#80d7dfea"
android:elevation=
"0dp"
...
...
m-im/src/main/res/layout/im_nim_inquiry_receive_layout.xml
View file @
44b9412e
...
...
@@ -6,7 +6,6 @@
android:layout_height=
"wrap_content"
android:layout_gravity=
"right"
android:layout_marginTop=
"@dimen/platform_dp_12"
android:layout_marginRight=
"8dp"
android:background=
"@color/white"
android:elevation=
"0dp"
android:maxWidth=
"263dp"
...
...
m-im/src/main/res/layout/medical_add_new_archives_activity.xml
View file @
44b9412e
...
...
@@ -197,7 +197,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"20dp"
android:text=
"与
受访者
的关系"
android:text=
"与
问诊人
的关系"
android:textColor=
"#ff0c1d31"
android:textSize=
"14sp"
app:layout_constraintLeft_toLeftOf=
"@id/tv_name"
...
...
m-im/src/main/res/layout/medical_edit_archives_activity.xml
View file @
44b9412e
...
...
@@ -150,7 +150,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"20dp"
android:text=
"与
受访者
的关系"
android:text=
"与
问诊人
的关系"
android:textColor=
"#ff0c1d31"
android:textSize=
"14sp"
app:layout_constraintLeft_toLeftOf=
"@id/tv_name"
...
...
m-im/src/main/res_uikit/layout/im_nim_message_item.xml
View file @
44b9412e
...
...
@@ -18,7 +18,7 @@
android:layout_marginTop=
"@dimen/im_bubble_time_layout_margin_top"
android:paddingLeft=
"6dp"
android:paddingRight=
"6dp"
android:textColor=
"#
cccccc
"
android:textColor=
"#
8595A9
"
android:textSize=
"12dp"
android:visibility=
"gone"
tools:visibility=
"visible"
...
...
ydl-medical-pay/src/main/java/com/medical/ydl/medical/pay/MedicalPayActivity.kt
View file @
44b9412e
...
...
@@ -112,6 +112,7 @@ class MedicalPayActivity : BaseActivity() {
mPrice
=
intent
.
getStringExtra
(
PRICE_KEY
)
mOrderId
=
intent
.
getStringExtra
(
ORDER_KEY
)
mDoctorUid
=
intent
.
getStringExtra
(
DOCTORUID_KEY
)
payType
=
PAY_WECHAT
price
.
text
=
mPrice
ll_alipay
.
setOnClickListener
{
...
...
@@ -248,13 +249,12 @@ class MedicalPayActivity : BaseActivity() {
// 必须异步调用
var
payThread
=
Thread
(
payRunnable
)
payThread
.
start
()
}
else
{
}
else
if
(
payType
==
PAY_WECHAT
)
{
var
option
=
response
.
data
val
api
=
WXAPIFactory
.
createWXAPI
(
this
@MedicalPayActivity
,
null
)
val
api
=
WXAPIFactory
.
createWXAPI
(
applicationContext
,
option
.
appid
,
true
)
if
(
api
.
wxAppSupportAPI
<
Build
.
PAY_SUPPORTED_SDK_INT
)
{
ToastUtil
.
toastShort
(
"目前您的微信版本过低或未安装微信,需要安装微信才能使用"
)
}
api
.
registerApp
(
option
.
appid
)
val
request
=
PayReq
()
request
.
appId
=
option
.
appid
...
...
@@ -265,6 +265,9 @@ class MedicalPayActivity : BaseActivity() {
request
.
timeStamp
=
option
.
timestamp
request
.
sign
=
option
.
sign
api
.
sendReq
(
request
)
}
else
{
ToastUtil
.
toastShort
(
"支付类型出错"
)
}
}
...
...
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