Commit b126dd0a by 洪国微

咨询ui调整及倾诉axb增加参数

parents e4159e8f f00da74a
...@@ -42,8 +42,10 @@ ext { ...@@ -42,8 +42,10 @@ ext {
ydlPublishVersion = [ ydlPublishVersion = [
// -------------- 业务模块 -------------- // -------------- 业务模块 --------------
//第三步 若干 //第三步 若干
"m-confide" : "0.0.19",
"m-consultant" : "0.0.29", "m-confide" : "0.0.20",
"m-consultant" : "0.0.33",
"m-course" : "0.0.17", "m-course" : "0.0.17",
"m-fm" : "0.0.15", "m-fm" : "0.0.15",
"m-muse" : "0.0.11", "m-muse" : "0.0.11",
......
...@@ -12,11 +12,14 @@ class ConnectParamJava : BaseCommand { ...@@ -12,11 +12,14 @@ class ConnectParamJava : BaseCommand {
var id: String = "0" //倾诉id var id: String = "0" //倾诉id
var type: String = "1" //1 走AxB 2双呼 3声网 var type: String = "1" //1 走AxB 2双呼 3声网
var callType:Int? = null //
constructor() : super() constructor() : super()
constructor(id: String, type: String) : super() { constructor(id: String, type: String, callType: Int?) : super() {
this.id = id this.id = id
this.type = type this.type = type
this.callType = callType
} }
} }
...@@ -6,7 +6,6 @@ import com.yidianling.common.tools.ToastUtil ...@@ -6,7 +6,6 @@ import com.yidianling.common.tools.ToastUtil
import com.yidianling.consultant.dialog.ConsultAssistantDialog import com.yidianling.consultant.dialog.ConsultAssistantDialog
import com.yidianling.consultant.model.SearchApi import com.yidianling.consultant.model.SearchApi
import com.yidianling.consultant.router.ConsultantIn import com.yidianling.consultant.router.ConsultantIn
import com.yidianling.consultant.router.ConsultantRouterImp
import io.reactivex.Observable import io.reactivex.Observable
import io.reactivex.android.schedulers.AndroidSchedulers import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.schedulers.Schedulers import io.reactivex.schedulers.Schedulers
...@@ -41,12 +40,9 @@ class ConsultAssistantDialogUtils private constructor() { ...@@ -41,12 +40,9 @@ class ConsultAssistantDialogUtils private constructor() {
} }
} }
"doctor_list" -> { "doctor_list" -> {
if (ConsultantIn.getUserImpl().getUserInfo()?.user_type == 1
) {
shouldShowDialog(activity, origin) shouldShowDialog(activity, origin)
} }
} }
}
} }
...@@ -77,7 +73,9 @@ class ConsultAssistantDialogUtils private constructor() { ...@@ -77,7 +73,9 @@ class ConsultAssistantDialogUtils private constructor() {
fun showFromYdlHome(activity: Activity) { fun showFromYdlHome(activity: Activity) {
consultAssistantDialogFromHomePage?.dismiss() consultAssistantDialogFromHomePage?.dismiss()
consultAssistantDialogFromHomePage = null consultAssistantDialogFromHomePage = null
consultAssistantDialogFromHomePage = ConsultAssistantDialog(activity, object : ConsultAssistantDialog.OnConsultAssistantClickListener { consultAssistantDialogFromHomePage = ConsultAssistantDialog(
activity,
object : ConsultAssistantDialog.OnConsultAssistantClickListener {
override fun onClickAction() { override fun onClickAction() {
//获取用户uid //获取用户uid
getConsultAssistantUid(activity) getConsultAssistantUid(activity)
...@@ -124,12 +122,14 @@ class ConsultAssistantDialogUtils private constructor() { ...@@ -124,12 +122,14 @@ class ConsultAssistantDialogUtils private constructor() {
fun showDialog(activity: Activity) { fun showDialog(activity: Activity) {
consultAssistantDialog?.dismiss() consultAssistantDialog?.dismiss()
consultAssistantDialog = null consultAssistantDialog = null
consultAssistantDialog = ConsultAssistantDialog(activity, object : ConsultAssistantDialog.OnConsultAssistantClickListener { consultAssistantDialog = ConsultAssistantDialog(
activity,
object : ConsultAssistantDialog.OnConsultAssistantClickListener {
override fun onClickAction() { override fun onClickAction() {
// 咨询师列表页面且未登录情况下,跳转登录页面 // 咨询师列表页面且未登录情况下,跳转登录页面
if (expertSearchPageHasShown && !ConsultantIn.isLogin()) { if (expertSearchPageHasShown && !ConsultantIn.isLogin()) {
ConsultantIn.toLogin(activity) ConsultantIn.toLogin(activity)
}else { } else {
//获取用户uid //获取用户uid
getConsultAssistantUid(activity) getConsultAssistantUid(activity)
} }
......
...@@ -3,6 +3,6 @@ ...@@ -3,6 +3,6 @@
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
tools:ignore="MissingDefaultResource"> tools:ignore="MissingDefaultResource">
<corners android:radius="16dp" /> <corners android:radius="90dp" />
<solid android:color="@color/platform_color_F7F7F7" /> <solid android:color="@color/platform_color_F7F7F7" />
</shape> </shape>
\ No newline at end of file
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@color/white"
android:orientation="vertical"> android:orientation="vertical">
<include <include
......
...@@ -39,7 +39,6 @@ ...@@ -39,7 +39,6 @@
android:layout_alignBottom="@+id/cvHead" android:layout_alignBottom="@+id/cvHead"
app:srcCompat="@drawable/consultant_online_yue" app:srcCompat="@drawable/consultant_online_yue"
tools:visibility="visible" tools:visibility="visible"
android:layout_marginBottom="@dimen/platform_dp_05"
android:visibility="gone"/> android:visibility="gone"/>
...@@ -51,9 +50,7 @@ ...@@ -51,9 +50,7 @@
android:scaleType="centerCrop" android:scaleType="centerCrop"
android:layout_alignBottom="@+id/cvHead" android:layout_alignBottom="@+id/cvHead"
app:srcCompat="@drawable/consultant_online_server" app:srcCompat="@drawable/consultant_online_server"
android:layout_marginLeft="@dimen/platform_dp_2"
tools:visibility="visible" tools:visibility="visible"
android:layout_marginBottom="@dimen/platform_dp_05"
android:visibility="gone"/> android:visibility="gone"/>
...@@ -99,8 +96,7 @@ ...@@ -99,8 +96,7 @@
android:layout_height="@dimen/platform_dp_12" android:layout_height="@dimen/platform_dp_12"
android:layout_marginRight="4dp" android:layout_marginRight="4dp"
android:scaleType="centerCrop" android:scaleType="centerCrop"
tools:background="@drawable/consultant_service_free" tools:background="@drawable/consultant_service_free" />
android:layout_marginStart="@dimen/platform_dp_4" />
<!--新驻图标--> <!--新驻图标-->
<ImageView <ImageView
android:id="@+id/imgNewEnter" android:id="@+id/imgNewEnter"
...@@ -108,8 +104,7 @@ ...@@ -108,8 +104,7 @@
android:layout_height="@dimen/platform_dp_12" android:layout_height="@dimen/platform_dp_12"
android:layout_marginRight="4dp" android:layout_marginRight="4dp"
android:scaleType="fitCenter" android:scaleType="fitCenter"
tools:background="@drawable/consultant_new_enter" tools:background="@drawable/consultant_new_enter" />
android:layout_marginStart="@dimen/platform_dp_4" />
<!--优质图标--> <!--优质图标-->
<ImageView <ImageView
android:id="@+id/imgAbilityLevel" android:id="@+id/imgAbilityLevel"
...@@ -118,7 +113,6 @@ ...@@ -118,7 +113,6 @@
android:layout_marginRight="4dp" android:layout_marginRight="4dp"
android:scaleType="fitCenter" android:scaleType="fitCenter"
tools:background="@drawable/consultant_expert_search_shixi" tools:background="@drawable/consultant_expert_search_shixi"
android:layout_marginStart="@dimen/platform_dp_4"
android:visibility="gone"/> android:visibility="gone"/>
</LinearLayout> </LinearLayout>
......
...@@ -12,11 +12,13 @@ ...@@ -12,11 +12,13 @@
android:id="@+id/scroll" android:id="@+id/scroll"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical"> android:orientation="vertical">
<!--筛选框--> <!--筛选框-->
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
...@@ -68,10 +70,6 @@ ...@@ -68,10 +70,6 @@
android:text="@string/platform_filter"/> android:text="@string/platform_filter"/>
</LinearLayout> </LinearLayout>
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:cardElevation="0.5dp">
<LinearLayout <LinearLayout
android:id="@+id/lin_filter2" android:id="@+id/lin_filter2"
android:layout_width="match_parent" android:layout_width="match_parent"
...@@ -80,7 +78,11 @@ ...@@ -80,7 +78,11 @@
android:paddingBottom="10dp" android:paddingBottom="10dp"
android:orientation="horizontal"> android:orientation="horizontal">
</LinearLayout> </LinearLayout>
</android.support.v7.widget.CardView>
<View
android:layout_width="match_parent"
android:layout_height="6dp"
android:background="@drawable/consult_fillter_bg"/>
</LinearLayout> </LinearLayout>
...@@ -94,7 +96,7 @@ ...@@ -94,7 +96,7 @@
android:id="@+id/viewSep2" android:id="@+id/viewSep2"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
android:background="@color/platform_divide_color" android:background="@color/transparent"
/> />
<android.support.v4.widget.SwipeRefreshLayout <android.support.v4.widget.SwipeRefreshLayout
...@@ -171,7 +173,6 @@ ...@@ -171,7 +173,6 @@
android:id="@+id/viewDim" android:id="@+id/viewDim"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_below="@id/viewSep2"
android:background="#40000000" android:background="#40000000"
android:visibility="invisible"/> android:visibility="invisible"/>
</RelativeLayout> </RelativeLayout>
......
...@@ -30,9 +30,10 @@ ...@@ -30,9 +30,10 @@
android:orientation="horizontal"> android:orientation="horizontal">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="12dp"
android:layout_height="match_parent" android:layout_height="12dp"
android:layout_marginLeft="12dp" android:layout_marginLeft="12dp"
android:layout_gravity="center_vertical"
android:src="@drawable/consultant_icon_search_zixun" /> android:src="@drawable/consultant_icon_search_zixun" />
<TextView <TextView
......
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