左晓为主开发手持机充值管理机
zuoxiao
2025-03-07 0ec9693c39a910233fc186a8cefab9f61030df78
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package com.dayu.general.activity
 
import android.content.Intent
import android.os.Bundle
import com.dayu.general.bean.card.CardCommon
import com.dayu.general.databinding.ActivityNfcWriteGeBinding
 
/**
 * @author: zuo
 * @date: 2021/3/30
 * @description:写卡界面
 */
class NfcWreatActivity:BaseNfcActivity() {
 
    var binding:ActivityNfcWriteGeBinding? = null
 
    var cardType = ""
 
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = ActivityNfcWriteGeBinding.inflate(layoutInflater)
        setContentView(binding?.root)
        getInitData()
    }
 
    /**
     * 获取数据
     */
    private fun getInitData(){
        cardType= intent?.getStringExtra("cardType")?:""
    }
 
    private fun setTextData(){
        when(cardType){
            CardCommon.CHECK_CARD->{
                binding?.cardData?.text = "写用户卡"
            }
 
        }
    }
    override fun onNfcBack(intent: Intent?) {
        TODO("Not yet implemented")
 
 
 
 
    }
}