|
|
@@ -16,7 +16,9 @@ import com.yingyangfly.baselib.ext.getScaleAnimation
|
|
|
import com.yingyangfly.baselib.ext.toast
|
|
|
import com.yingyangfly.baselib.mvvm.BaseMVVMActivity
|
|
|
import com.yingyangfly.baselib.router.RouterUrlCommon
|
|
|
+import com.yingyangfly.baselib.utils.GsonUtil
|
|
|
import com.yingyangfly.baselib.utils.JumpUtil
|
|
|
+import com.yingyangfly.baselib.utils.User
|
|
|
|
|
|
/**
|
|
|
* 服务套餐
|
|
|
@@ -42,6 +44,7 @@ class ServicePackageActivity :
|
|
|
val dialog = PurchaseServicesDialog()
|
|
|
dialog.setPackageBean(it.id, it.price, it.packageName, it.packageType)
|
|
|
dialog.show(supportFragmentManager, "purchaseServicesDialog")
|
|
|
+ reportLog("购买套餐" + GsonUtil.GsonString(it))
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -111,4 +114,24 @@ class ServicePackageActivity :
|
|
|
return true
|
|
|
}
|
|
|
|
|
|
+ override fun onResume() {
|
|
|
+ super.onResume()
|
|
|
+ reportLog("进入服务套餐页面")
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 阿里云日志上报
|
|
|
+ */
|
|
|
+ private fun reportLog(msg: String) {
|
|
|
+ runOnUiThread {
|
|
|
+ val log = com.aliyun.sls.android.producer.Log()
|
|
|
+ log.putContent(
|
|
|
+ "服务套餐页面日志", msg
|
|
|
+ )
|
|
|
+ log.putContent("患者id", User.getUserId())
|
|
|
+ log.putContent("患者姓名", User.getName())
|
|
|
+ sendLog(log)
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|