lmw
2023-05-27 ff365ff4346d220edf2ec1d0041f2284befe3870
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package com.fanghua.driver.ui.mine
 
import com.fanghua.driver.R
import com.fanghua.driver.base.MyBaseActivity
import com.fanghua.driver.utils.MyUtils
import kotlinx.android.synthetic.main.activity_server_phone.*
import org.jetbrains.anko.toast
 
class ServerPhoneActivity: MyBaseActivity() {
    override fun setContentView() {
        setContentView(R.layout.activity_server_phone)
    }
 
    private val phone by lazy {
        intent.getStringExtra("phone")
    }
 
    override fun initView() {
        setTitleText("客服中心")
        tv_phone_two.text = phone
    }
 
    override fun setOnclick() {
        tv_phone_two.setOnClickListener {
            if (tv_phone_two.text.isEmpty()){
                toast("暂无客服电话")
                return@setOnClickListener
            }
            MyUtils.getInstans().CallPhone(this,phone)
        }
    }
}