Commit baaabd67 by 万齐军

feat: ui修改

parent 8d85c7d1
package com.ydl.component.service.web package com.ydl.component.service.web
import android.webkit.JavascriptInterface import android.webkit.JavascriptInterface
import androidx.fragment.app.FragmentActivity
import com.google.gson.Gson import com.google.gson.Gson
import com.ydl.confide.api.ConfideRoute
import com.ydl.confide.api.IConfideService
import com.ydl.js_module.manager.WebViewRouterManager import com.ydl.js_module.manager.WebViewRouterManager
import com.ydl.webview.H5JsBean import com.ydl.webview.H5JsBean
import com.ydl.webview.IJavascriptHandler import com.ydl.webview.IJavascriptHandler
import com.ydl.ydl_router.manager.YDLRouterManager import com.ydl.ydl_router.manager.YDLRouterManager
import com.ydl.ydlcommon.base.BaseActivityMgr
import com.ydl.ydlcommon.base.config.HttpConfig
import com.ydl.ydlcommon.modular.ModularServiceManager import com.ydl.ydlcommon.modular.ModularServiceManager
import com.ydl.ydlcommon.modular.findRouteService
import com.ydl.ydlcommon.utils.log.LogHelper import com.ydl.ydlcommon.utils.log.LogHelper
import com.yidianling.common.tools.LogUtil import com.yidianling.common.tools.LogUtil
import com.yidianling.user.UserHelper import com.yidianling.user.UserHelper
...@@ -385,6 +391,15 @@ class WebJavascriptHandler : IJavascriptHandler{ ...@@ -385,6 +391,15 @@ class WebJavascriptHandler : IJavascriptHandler{
"get_next_doctor"->{ "get_next_doctor"->{
wvEnventPro?.getNextExpertStatus(jsData.cmd?.params?.doctorId.toString(),jsData.cmd?.params?.title,jsData.cmd?.params?.uid.toString()) wvEnventPro?.getNextExpertStatus(jsData.cmd?.params?.doctorId.toString(),jsData.cmd?.params?.title,jsData.cmd?.params?.uid.toString())
} }
"show_popup_window" -> {
val doctorId = jsData.cmd?.params?.doctorId?.toString()
val confideId = jsData.cmd?.params?.confidedId
val topActivity = BaseActivityMgr.INST.getTopActivity()
if (topActivity is FragmentActivity && doctorId != null && confideId != null) {
val url = HttpConfig.MH5_URL + ConfideRoute.h5ConfideIntro(confideId)
findRouteService(IConfideService::class.java)?.showExpertDetailDialog(topActivity, url, doctorId)
}
}
} }
} }
} }
...@@ -5,18 +5,18 @@ ext { ...@@ -5,18 +5,18 @@ ext {
ydlPublishVersion = [ ydlPublishVersion = [
// -------------- 业务模块 -------------- // -------------- 业务模块 --------------
//第三步 若干 //第三步 若干
"m-confide" : "0.0.49.82", "m-confide" : "0.0.49.83",
"m-consultant" : "0.0.60.21", "m-consultant" : "0.0.60.21",
"m-fm" : "0.0.30.08", "m-fm" : "0.0.30.08",
"m-user" : "0.0.62.04", "m-user" : "0.0.62.04",
"m-home" : "0.0.23.44", "m-home" : "0.0.23.60",
"m-im" : "0.0.21.45", "m-im" : "0.0.21.45",
"m-dynamic" : "0.0.7.37", "m-dynamic" : "0.0.7.37",
"m-article" : "0.0.0.10", "m-article" : "0.0.0.10",
"m-muse" : "0.0.28.28", "m-muse" : "0.0.28.28",
"m-tests" : "0.0.24.18", "m-tests" : "0.0.24.18",
"m-course" : "0.0.43.37", "m-course" : "0.0.43.38",
//-------------- 业务模块 API 层 -------------- //-------------- 业务模块 API 层 --------------
"m-audioim-api" : "0.0.6", "m-audioim-api" : "0.0.6",
...@@ -38,10 +38,10 @@ ext { ...@@ -38,10 +38,10 @@ ext {
"ydl-platform" : "0.0.41.13", "ydl-platform" : "0.0.41.13",
//第二步 若干 //第二步 若干
"ydl-webview" : "0.0.38.76", "ydl-webview" : "0.0.38.80",
"ydl-media" : "0.0.21.45", "ydl-media" : "0.0.21.45",
"ydl-pay" : "0.0.18.19", "ydl-pay" : "0.0.18.19",
"m-audioim" : "0.0.49.29.92", "m-audioim" : "0.0.49.29.93",
"ydl-flutter-base": "0.0.14.38", "ydl-flutter-base": "0.0.14.38",
//以下 几乎不会动 //以下 几乎不会动
...@@ -91,18 +91,18 @@ ext { ...@@ -91,18 +91,18 @@ ext {
// -------------- 业务模块 -------------- // -------------- 业务模块 --------------
//第三步 若干 //第三步 若干
"m-confide" : "0.0.49.82", "m-confide" : "0.0.49.83",
"m-consultant" : "0.0.60.21", "m-consultant" : "0.0.60.21",
"m-fm" : "0.0.30.08", "m-fm" : "0.0.30.08",
"m-user" : "0.0.62.04", "m-user" : "0.0.62.04",
"m-home" : "0.0.23.41", "m-home" : "0.0.23.60",
"m-im" : "0.0.21.45", "m-im" : "0.0.21.45",
"m-dynamic" : "0.0.7.37", "m-dynamic" : "0.0.7.37",
"m-article" : "0.0.0.8", "m-article" : "0.0.0.8",
"m-muse" : "0.0.28.28", "m-muse" : "0.0.28.28",
"m-tests" : "0.0.24.18", "m-tests" : "0.0.24.18",
"m-course" : "0.0.43.37", "m-course" : "0.0.43.38",
//-------------- 业务模块 API 层 -------------- //-------------- 业务模块 API 层 --------------
"m-audioim-api" : "0.0.6", "m-audioim-api" : "0.0.6",
"m-confide-api" : "0.0.2.14", "m-confide-api" : "0.0.2.14",
...@@ -122,10 +122,10 @@ ext { ...@@ -122,10 +122,10 @@ ext {
"ydl-platform" : "0.0.41.13", "ydl-platform" : "0.0.41.13",
//第二步 若干 //第二步 若干
"ydl-webview" : "0.0.38.76", "ydl-webview" : "0.0.38.80",
"ydl-media" : "0.0.21.45", "ydl-media" : "0.0.21.45",
"ydl-pay" : "0.0.18.19", "ydl-pay" : "0.0.18.19",
"m-audioim" : "0.0.49.29.92", "m-audioim" : "0.0.49.29.93",
"ydl-flutter-base": "0.0.14.38", "ydl-flutter-base": "0.0.14.38",
//以下 几乎不会动 //以下 几乎不会动
......
...@@ -760,7 +760,7 @@ class AudioHomeActivity : ...@@ -760,7 +760,7 @@ class AudioHomeActivity :
if (remainTime <= 0) { if (remainTime <= 0) {
waittingStatus() waittingStatus()
} else { } else {
tv_change_time_counter.text = "${remainTime}s" tv_change_time_counter.text = "转传统电话(${remainTime}s)"
} }
if (remainTime<=20){ if (remainTime<=20){
......
...@@ -277,9 +277,10 @@ class ConfideHomeEventImpl(context: Context, var confideHomeView: IConfideHomeCo ...@@ -277,9 +277,10 @@ class ConfideHomeEventImpl(context: Context, var confideHomeView: IConfideHomeCo
* 私聊 * 私聊
*/ */
override fun toChatForMsg(doctorId: String?) { override fun toChatForMsg(doctorId: String?) {
if (null != mContext && mContext is Activity){ if (null != mContext && mContext is Activity) {
PhoneCallIn.loginByOneKeyLogin(mContext as Activity,true) if (!PhoneCallIn.loginByOneKeyLogin(mContext as Activity, true)) {
return return
}
} }
if (mContext is AppCompatActivity && !TextUtils.isEmpty(doctorId)) { if (mContext is AppCompatActivity && !TextUtils.isEmpty(doctorId)) {
PhoneCallIn.startChat(mContext as AppCompatActivity, doctorId!!, 0x001, 0) PhoneCallIn.startChat(mContext as AppCompatActivity, doctorId!!, 0x001, 0)
......
...@@ -254,21 +254,22 @@ class ConfideHomeRecommendView(var view: IConfideHomeContract.View, context: Con ...@@ -254,21 +254,22 @@ class ConfideHomeRecommendView(var view: IConfideHomeContract.View, context: Con
return return
} }
var i = 0 var i = 0
for (tag in bodyBean.confidedTag!!) { val sb = StringBuilder()
for (tag in bodyBean.confidedTag) {
if (i > 4) break if (i > 4) break
var params = LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, dp16) sb.append(tag).append(" | ")
params.setMargins(0, 0, dp4, 0)
var textView = TextView(context)
textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 10f)
textView.setTextColor(Color.parseColor("#808080"))
textView.gravity = Gravity.CENTER
textView.setPadding(dp3, 0, dp3, 0)
textView.setBackgroundResource(R.drawable.confide_bg_tag)
textView.layoutParams = params
textView.text = tag
flowlayout_tag.addView(textView)
i++ i++
} }
sb.setLength(sb.length - 3)
val params = LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, dp16)
params.setMargins(0, 0, dp4, 0)
val textView = TextView(context)
textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 12f)
textView.setTextColor(Color.parseColor("#9495A0"))
textView.gravity = Gravity.CENTER
textView.layoutParams = params
textView.text = sb.toString()
flowlayout_tag.addView(textView)
} }
/** /**
......
...@@ -84,7 +84,7 @@ internal class IntroAdapter( ...@@ -84,7 +84,7 @@ internal class IntroAdapter(
if (!ConfideNetworkUtil.isWifi(context)) { if (!ConfideNetworkUtil.isWifi(context)) {
val lastCheck = context.getSharedPreferences("temp_test", Context.MODE_PRIVATE).getLong(keySp, 0) val lastCheck = context.getSharedPreferences("temp_test", Context.MODE_PRIVATE).getLong(keySp, 0)
val duration = System.currentTimeMillis() - lastCheck val duration = System.currentTimeMillis() - lastCheck
if (duration < 1 * 60 * 1000) { if (duration < 24 * 60 * 60 * 1000) {
return return
} }
val dialog = CommonDialog.create(context) val dialog = CommonDialog.create(context)
...@@ -108,8 +108,11 @@ internal class IntroAdapter( ...@@ -108,8 +108,11 @@ internal class IntroAdapter(
.setLeftButton_color(R.color.platform_but_text_color_selected) .setLeftButton_color(R.color.platform_but_text_color_selected)
.setRightButton_color(R.color.platform_text_bright_color) .setRightButton_color(R.color.platform_text_bright_color)
.setRightClick("取消") { .setRightClick("取消") {
if (context is Activity) { for (entry in videoViews.entries) {
context.onBackPressed() val value = entry.value
if (value.canPause()) {
value.pause()
}
} }
} }
.setCancelAble(true) .setCancelAble(true)
......
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:endColor="#33000000"
android:startColor="#00000000" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"> <shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:bottomRightRadius="6dp"/> <corners android:bottomRightRadius="6dp"/>
<solid android:color="#BBC1CD" /> <solid android:color="#B3BBC1CD" />
</shape> </shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"> <shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:bottomRightRadius="6dp"/> <corners android:bottomRightRadius="6dp"/>
<solid android:color="#FF994B"/> <solid android:color="#CCFF994B"/>
</shape> </shape>
\ No newline at end of file
...@@ -5,9 +5,6 @@ ...@@ -5,9 +5,6 @@
<corners <corners
android:radius="8dp"/> android:radius="8dp"/>
<solid android:color="#eaffffff"/> <solid android:color="#ffffff"/>
<stroke android:width="0.5dp"
android:color="#cccccc"/>
</shape> </shape>
\ No newline at end of file
...@@ -4,4 +4,7 @@ ...@@ -4,4 +4,7 @@
<gradient <gradient
android:endColor="#48CC95" android:endColor="#48CC95"
android:startColor="#61CEAC" /> android:startColor="#61CEAC" />
<stroke
android:width="1dp"
android:color="#69FFFFFF" />
</shape> </shape>
\ No newline at end of file
...@@ -4,4 +4,7 @@ ...@@ -4,4 +4,7 @@
<gradient <gradient
android:endColor="#BBC1CD" android:endColor="#BBC1CD"
android:startColor="#D5D6D7" /> android:startColor="#D5D6D7" />
<stroke
android:width="1dp"
android:color="#69FFFFFF" />
</shape> </shape>
\ No newline at end of file
...@@ -4,4 +4,7 @@ ...@@ -4,4 +4,7 @@
<gradient <gradient
android:endColor="#FF994B" android:endColor="#FF994B"
android:startColor="#F6B37F" /> android:startColor="#F6B37F" />
<stroke
android:width="1dp"
android:color="#69FFFFFF" />
</shape> </shape>
\ No newline at end of file
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
app:shapeBg="@{0x26000000}" app:shapeBg="@{0x26000000}"
app:shapeRadius="@{15}" app:shapeRadius="@{15}"
app:shapeStrokeWidth="@{1}" app:shapeStrokeWidth="@{1}"
app:shapeStrokeColor="@{0xFFFFFFFF}" /> app:shapeStrokeColor="@{0x69FFFFFF}" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
</layout> </layout>
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
android:id="@+id/quick_consult_card" android:id="@+id/quick_consult_card"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:layout_marginLeft="15dp" android:layout_marginLeft="15dp"
android:layout_marginRight="15dp" android:layout_marginRight="15dp"
...@@ -31,6 +30,7 @@ ...@@ -31,6 +30,7 @@
android:orientation="horizontal" android:orientation="horizontal"
android:paddingLeft="@dimen/platform_dp_8" android:paddingLeft="@dimen/platform_dp_8"
android:paddingTop="1dp" android:paddingTop="1dp"
android:elevation="2dp"
android:paddingBottom="1dp" android:paddingBottom="1dp"
android:paddingRight="@dimen/platform_dp_8" android:paddingRight="@dimen/platform_dp_8"
android:visibility="gone" android:visibility="gone"
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:cardElevation="0dp" app:cardElevation="0dp"
app:cardCornerRadius="6dp" app:cardCornerRadius="6dp"
android:layout_marginTop="@dimen/platform_dp_15" android:layout_marginTop="@dimen/platform_dp_24"
android:layout_marginStart="@dimen/platform_dp_15" android:layout_marginStart="@dimen/platform_dp_15"
android:id="@+id/img_bg" android:id="@+id/img_bg"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
...@@ -162,10 +162,11 @@ ...@@ -162,10 +162,11 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="3dp" android:layout_marginTop="3dp"
android:layout_marginRight="16dp"
android:text="50元/25分钟" android:text="50元/25分钟"
android:textSize="@dimen/platform_sp_12" android:textSize="@dimen/platform_sp_12"
app:layout_constraintStart_toEndOf="@id/flowlayout_tag" app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@+id/ll_confide_data"/> app:layout_constraintTop_toBottomOf="@+id/ll_confide_data" />
<TextView <TextView
android:id="@+id/tv_content" android:id="@+id/tv_content"
...@@ -183,6 +184,7 @@ ...@@ -183,6 +184,7 @@
<FrameLayout <FrameLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="8dp"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
> >
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/rl_confide_title_layout" android:id="@+id/rl_confide_title_layout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="48dp" android:layout_height="48dp"
...@@ -42,44 +41,44 @@ ...@@ -42,44 +41,44 @@
android:layout_width="40dp" android:layout_width="40dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:layout_marginBottom="2dp"
android:drawableTop="@drawable/ic_action_confide_order" android:drawableTop="@drawable/ic_action_confide_order"
android:drawablePadding="4dp" android:drawablePadding="4dp"
android:gravity="center" android:gravity="center"
android:text="订单" android:text="订单"
android:textColor="@color/_9" android:textColor="@color/_9"
android:textSize="7sp" android:textSize="8sp"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintRight_toLeftOf="@+id/img_customer" app:layout_constraintRight_toLeftOf="@+id/img_customer"/>
app:layout_constraintTop_toTopOf="parent" />
<TextView <TextView
android:id="@+id/img_customer" android:id="@+id/img_customer"
android:layout_width="40dp" android:layout_width="40dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:layout_marginBottom="2dp"
android:drawableTop="@drawable/ic_action_confide_customer" android:drawableTop="@drawable/ic_action_confide_customer"
android:drawablePadding="4dp" android:drawablePadding="4dp"
android:gravity="center" android:gravity="center"
android:text="客服" android:text="客服"
android:textColor="@color/_9" android:textColor="@color/_9"
android:textSize="7sp" android:textSize="8sp"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintRight_toLeftOf="@+id/img_help" app:layout_constraintRight_toLeftOf="@+id/img_help" />
app:layout_constraintTop_toTopOf="parent" />
<TextView <TextView
android:id="@+id/img_help" android:id="@+id/img_help"
android:layout_width="40dp" android:layout_width="40dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:layout_marginBottom="2dp"
android:drawableTop="@drawable/ic_action_confide_help" android:drawableTop="@drawable/ic_action_confide_help"
android:drawablePadding="4dp" android:drawablePadding="4dp"
android:gravity="center" android:gravity="center"
android:text="帮助" android:text="帮助"
android:textColor="@color/_9" android:textColor="@color/_9"
android:textSize="7sp" android:textSize="8sp"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintRight_toRightOf="parent" app:layout_constraintRight_toRightOf="parent" />
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
</RelativeLayout> </RelativeLayout>
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent" app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="@+id/tvName" app:layout_constraintTop_toTopOf="@+id/tvName"
tools:visibility="gone" /> tools:visibility="visible" />
<SeekBar <SeekBar
android:id="@+id/seekbar" android:id="@+id/seekbar"
...@@ -203,6 +203,7 @@ ...@@ -203,6 +203,7 @@
android:textColor="@color/white" android:textColor="@color/white"
android:textSize="13sp" android:textSize="13sp"
app:layout_constraintBottom_toBottomOf="@+id/tvName" app:layout_constraintBottom_toBottomOf="@+id/tvName"
android:layout_marginBottom="1dp"
app:layout_constraintLeft_toRightOf="@+id/tvName" app:layout_constraintLeft_toRightOf="@+id/tvName"
tools:text="tag|tag|tag" /> tools:text="tag|tag|tag" />
......
...@@ -40,7 +40,7 @@ class H5JsBean { ...@@ -40,7 +40,7 @@ class H5JsBean {
var isFromQingShu = 0//是否是从专家倾述主页跳转私聊界面 0: 不是 1:是 var isFromQingShu = 0//是否是从专家倾述主页跳转私聊界面 0: 不是 1:是
var docHead: String? = null//聊天头像 var docHead: String? = null//聊天头像
var doctorId: Int = 0//医生id var doctorId: Int = 0//医生id
var confideId: String?=null//医生id var confidedId: String?=null//医生id
var listenerId: Int = 0 var listenerId: Int = 0
var orderStatus: Int = 0 var orderStatus: Int = 0
var orderStatusDesc: String? = null var orderStatusDesc: String? = null
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment