Commit c6810392 authored by 王雪伟's avatar 王雪伟

[提交人]:王雪伟

[提交简述] :小象省钱
[实现方案] :加入客服链接
parent 2f470410
...@@ -197,7 +197,7 @@ public class NetConfig { ...@@ -197,7 +197,7 @@ public class NetConfig {
public static String WEB_URL_ABOUT_US = "https://newspool.zhangxinhulian.com/sspapiNovel/su/custom/xingyunmohe/aboutMe.html?version=" + Constant.Param.vn + "&appName=小象省钱&company=北京志信博文科技发展有限公司"; public static String WEB_URL_ABOUT_US = "https://newspool.zhangxinhulian.com/sspapiNovel/su/custom/xingyunmohe/aboutMe.html?version=" + Constant.Param.vn + "&appName=小象省钱&company=北京志信博文科技发展有限公司";
public static String WEB_URL_CUSTOMER_SERVICE = "https://1568685.s4.udesk.cn/im_client/?web_plugin_id=25351"; public static String WEB_URL_CUSTOMER_SERVICE = "https://1568685.s4.udesk.cn/im_client/?web_plugin_id=35245";
public static String WEB_URL_ZENGZHI_SERVICE = "https://newspool.zhangxinhulian.com/sspapiNovel/su/custom/xingyunmohe/xxsq_zz_server.html"; public static String WEB_URL_ZENGZHI_SERVICE = "https://newspool.zhangxinhulian.com/sspapiNovel/su/custom/xingyunmohe/xxsq_zz_server.html";
public static String WEB_URL_BUYER_KNOW = "https://newspool.zhangxinhulian.com/sspapiNovel/su/custom/xingyunmohe/buyerKnow.html?version=" + Constant.Param.vn + "&appName=幸运魔盒&company=北京志信博文科技发展有限公司"; public static String WEB_URL_BUYER_KNOW = "https://newspool.zhangxinhulian.com/sspapiNovel/su/custom/xingyunmohe/buyerKnow.html?version=" + Constant.Param.vn + "&appName=幸运魔盒&company=北京志信博文科技发展有限公司";
public static String WEB_URL_WEEK_RULE = "https://newspool.zhangxinhulian.com/sspapiNovel/su/custom/xingyunmohe/week_activity_rule.html"; public static String WEB_URL_WEEK_RULE = "https://newspool.zhangxinhulian.com/sspapiNovel/su/custom/xingyunmohe/week_activity_rule.html";
......
...@@ -155,6 +155,9 @@ class SplashActivity : BaseActivity(), SplashContract.View { ...@@ -155,6 +155,9 @@ class SplashActivity : BaseActivity(), SplashContract.View {
.compose(RxSchedulers.observableIO2Main()) .compose(RxSchedulers.observableIO2Main())
.subscribe(object : BaseObserver<AppInEntity>() { .subscribe(object : BaseObserver<AppInEntity>() {
override fun onSuccess(result: AppInEntity?) { override fun onSuccess(result: AppInEntity?) {
if (!result?.kefu_url.isNullOrEmpty()){
NetConfig.H5.WEB_URL_CUSTOMER_SERVICE = result?.kefu_url
}
Constant.Switch.isOpenLogin = result?.login.equals("1") Constant.Switch.isOpenLogin = result?.login.equals("1")
Constant.Switch.isOpenPayTips = result?.risk_open.equals("1") Constant.Switch.isOpenPayTips = result?.risk_open.equals("1")
NetConfig.H5.WEB_URL_H5_PAY = result?.pay_h5_url NetConfig.H5.WEB_URL_H5_PAY = result?.pay_h5_url
......
...@@ -14,6 +14,7 @@ import com.zxbw.modulemain.contract.HomeContract ...@@ -14,6 +14,7 @@ import com.zxbw.modulemain.contract.HomeContract
import com.zxbw.modulemain.presenter.HomePresenter import com.zxbw.modulemain.presenter.HomePresenter
import com.zxhl.cms.common.Constant import com.zxhl.cms.common.Constant
import com.zxhl.cms.common.FragmentAdapter import com.zxhl.cms.common.FragmentAdapter
import com.zxhl.cms.common.NetConfig
import com.zxhl.cms.common.base.BaseFragment import com.zxhl.cms.common.base.BaseFragment
import com.zxhl.cms.net.ApiClient import com.zxhl.cms.net.ApiClient
import com.zxhl.cms.net.RxSchedulers import com.zxhl.cms.net.RxSchedulers
...@@ -22,6 +23,7 @@ import com.zxhl.cms.net.callback.BaseObserver ...@@ -22,6 +23,7 @@ import com.zxhl.cms.net.callback.BaseObserver
import com.zxhl.cms.net.model.box.AppInEntity import com.zxhl.cms.net.model.box.AppInEntity
import com.zxhl.cms.net.model.box.TabEntity import com.zxhl.cms.net.model.box.TabEntity
import com.zxhl.cms.net.model.qy.HomeBannerEntity import com.zxhl.cms.net.model.qy.HomeBannerEntity
import com.zxhl.cms.utils.JumpUtils
import com.zxhl.cms.utils.OnRecycleItemClickListener import com.zxhl.cms.utils.OnRecycleItemClickListener
import com.zxhl.cms.utils.Utils import com.zxhl.cms.utils.Utils
import kotlinx.android.synthetic.main.activity_layout_tb_goods_detail.* import kotlinx.android.synthetic.main.activity_layout_tb_goods_detail.*
...@@ -61,7 +63,7 @@ class HomeFragment : BaseFragment(), HomeContract.View { ...@@ -61,7 +63,7 @@ class HomeFragment : BaseFragment(), HomeContract.View {
showToast("搜索") showToast("搜索")
} }
id_img_kefu.setOnClickListener { id_img_kefu.setOnClickListener {
showToast("客服") JumpUtils.webJump("客服", NetConfig.H5.WEB_URL_CUSTOMER_SERVICE)
} }
val config = SettingPreference.getConfig(); val config = SettingPreference.getConfig();
......
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