Dev:
1、解决vivo市场反馈,系统17下崩溃问题(初步判断加密引起,但需要升级版本重新加密上传) 2、添加客服配置加载显示
This commit is contained in:
parent
0b84bdb904
commit
b06db40dc6
|
|
@ -31,7 +31,6 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
composeOptions {
|
composeOptions {
|
||||||
// 注意:Kotlin 1.8.x 以后建议检查与 Compose 编译器的版本兼容性
|
|
||||||
kotlinCompilerExtensionVersion = "1.4.8"
|
kotlinCompilerExtensionVersion = "1.4.8"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -39,8 +38,8 @@ android {
|
||||||
applicationId = "com.img.rabbit"
|
applicationId = "com.img.rabbit"
|
||||||
minSdk = 24
|
minSdk = 24
|
||||||
targetSdk = 36
|
targetSdk = 36
|
||||||
versionCode = 1
|
versionCode = 2
|
||||||
versionName = "1.0.0"
|
versionName = "1.0.1"
|
||||||
multiDexEnabled = true
|
multiDexEnabled = true
|
||||||
|
|
||||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ class UserInfoEntity(
|
||||||
val name: String = "",
|
val name: String = "",
|
||||||
val phone: String = "",
|
val phone: String = "",
|
||||||
val role: String = "",
|
val role: String = "",
|
||||||
|
val show_contact_menu: Boolean = false,
|
||||||
val temp: Boolean = true,
|
val temp: Boolean = true,
|
||||||
val unionid: String = "",
|
val unionid: String = "",
|
||||||
val user_id: String = "",
|
val user_id: String = "",
|
||||||
|
|
|
||||||
|
|
@ -402,62 +402,64 @@ fun MineScreen(
|
||||||
Color(0x4DBBBBBB)
|
Color(0x4DBBBBBB)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
Row(
|
if(userInfo?.show_contact_menu == true){
|
||||||
modifier = Modifier
|
Row(
|
||||||
.fillMaxWidth()
|
|
||||||
.height(52.dp)
|
|
||||||
.clickable(
|
|
||||||
indication = null,
|
|
||||||
interactionSource = remember { MutableInteractionSource() }
|
|
||||||
) {
|
|
||||||
if (!generalViewModel.api.isWXAppInstalled) {
|
|
||||||
CenterToast.show("未安装微信客户端")
|
|
||||||
}else if(userInfo != null){
|
|
||||||
viewModel.requestServiceLink(generalViewModel.api)
|
|
||||||
}
|
|
||||||
},
|
|
||||||
verticalAlignment = Alignment.CenterVertically
|
|
||||||
) {
|
|
||||||
Image(
|
|
||||||
painter = painterResource(id = R.mipmap.ic_mine_service),
|
|
||||||
contentDescription = null,
|
|
||||||
contentScale = ContentScale.FillWidth,
|
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.wrapContentSize()
|
.fillMaxWidth()
|
||||||
.padding(start = 12.dp)
|
.height(52.dp)
|
||||||
)
|
.clickable(
|
||||||
Box(
|
indication = null,
|
||||||
modifier = Modifier.weight(1f)
|
interactionSource = remember { MutableInteractionSource() }
|
||||||
){
|
) {
|
||||||
Text(
|
if (!generalViewModel.api.isWXAppInstalled) {
|
||||||
text = "在线客服",
|
CenterToast.show("未安装微信客户端")
|
||||||
fontSize = 14.sp,
|
}else if(userInfo != null){
|
||||||
fontWeight = FontWeight.Bold,
|
viewModel.requestServiceLink(generalViewModel.api)
|
||||||
color = Color(0xFF1A1A1A),
|
}
|
||||||
|
},
|
||||||
|
verticalAlignment = Alignment.CenterVertically
|
||||||
|
) {
|
||||||
|
Image(
|
||||||
|
painter = painterResource(id = R.mipmap.ic_mine_service),
|
||||||
|
contentDescription = null,
|
||||||
|
contentScale = ContentScale.FillWidth,
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.wrapContentSize()
|
.wrapContentSize()
|
||||||
.padding(start = 8.dp)
|
.padding(start = 12.dp)
|
||||||
|
)
|
||||||
|
Box(
|
||||||
|
modifier = Modifier.weight(1f)
|
||||||
|
){
|
||||||
|
Text(
|
||||||
|
text = "在线客服",
|
||||||
|
fontSize = 14.sp,
|
||||||
|
fontWeight = FontWeight.Bold,
|
||||||
|
color = Color(0xFF1A1A1A),
|
||||||
|
modifier = Modifier
|
||||||
|
.wrapContentSize()
|
||||||
|
.padding(start = 8.dp)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
Image(
|
||||||
|
painter = painterResource(id = R.mipmap.ic_arrow_right),
|
||||||
|
contentDescription = null,
|
||||||
|
contentScale = ContentScale.FillWidth,
|
||||||
|
modifier = Modifier
|
||||||
|
.wrapContentSize()
|
||||||
|
.padding(end = 12.dp) // 改为end padding
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Box(
|
||||||
Image(
|
|
||||||
painter = painterResource(id = R.mipmap.ic_arrow_right),
|
|
||||||
contentDescription = null,
|
|
||||||
contentScale = ContentScale.FillWidth,
|
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.wrapContentSize()
|
.fillMaxWidth()
|
||||||
.padding(end = 12.dp) // 改为end padding
|
.height(0.5.dp)
|
||||||
|
.padding(horizontal = 12.dp)
|
||||||
|
.background(
|
||||||
|
Color(0x4DBBBBBB)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
Box(
|
|
||||||
modifier = Modifier
|
|
||||||
.fillMaxWidth()
|
|
||||||
.height(0.5.dp)
|
|
||||||
.padding(horizontal = 12.dp)
|
|
||||||
.background(
|
|
||||||
Color(0x4DBBBBBB)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
Row(
|
Row(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue