Commit 113866b8 by wukun

20230705需求

parent b1b03e71
......@@ -45,21 +45,21 @@ public class Constants {
/**
* dev环境配置.
*/
// public static String ENVIROMENT = "debug";
// public static String PHOTO = "dev";
// public static int LOG_LEVEL = LogUtils.LEVEL_ALL;
// public static String BASE_URL = "http://47.94.101.239:3112";
// public static String WEB_SOP = "http://47.94.101.239:9004/#/sop";
// public static String CHECK_MULTI_WEB_SOP = "http://47.94.101.239:9004/#/manyServiceResult";
// public static String MULTI_WEB_SOP = "http://47.94.101.239:9004/#/manySop";
// public static String WEB_SOP_DETAIL = "http://47.94.101.239:9004/#/sopdetail";
// public static String WEB_ZHI_SHI = "http://47.94.101.239:9004/#/detail";
// public static final String UP_PHOTO = "/file/uploadMore?targetPath=dev/sp/mobile/android/business/checkApply";
// public static final String UP_VIDEO = "/file/uploadVideoOne?targetPath=dev/video";
// public static boolean IS_DEBUG = true;
// public static String VIDEO_SHARE_URL = "http://uat.kf.ai:9099/#/shareVideo?type=_type&id="; //uat 学习视频分享链接 type(课程: course 直播: live)
// public static int XLR_PID = 239; //小绿人商家id
// public static String SCHEME_9099 = "http://dev.kf.ai:9099/#/";
public static String ENVIROMENT = "debug";
public static String PHOTO = "dev";
public static int LOG_LEVEL = LogUtils.LEVEL_ALL;
public static String BASE_URL = "http://47.94.101.239:3112";
public static String WEB_SOP = "http://47.94.101.239:9004/#/sop";
public static String CHECK_MULTI_WEB_SOP = "http://47.94.101.239:9004/#/manyServiceResult";
public static String MULTI_WEB_SOP = "http://47.94.101.239:9004/#/manySop";
public static String WEB_SOP_DETAIL = "http://47.94.101.239:9004/#/sopdetail";
public static String WEB_ZHI_SHI = "http://47.94.101.239:9004/#/detail";
public static final String UP_PHOTO = "/file/uploadMore?targetPath=dev/sp/mobile/android/business/checkApply";
public static final String UP_VIDEO = "/file/uploadVideoOne?targetPath=dev/video";
public static boolean IS_DEBUG = true;
public static String VIDEO_SHARE_URL = "http://uat.kf.ai:9099/#/shareVideo?type=_type&id="; //uat 学习视频分享链接 type(课程: course 直播: live)
public static int XLR_PID = 239; //小绿人商家id
public static String SCHEME_9099 = "http://dev.kf.ai:9099/#/";
/**
......@@ -85,21 +85,21 @@ public class Constants {
/**
* 正式环境.
*/
public static String ENVIROMENT = "release";
public static String PHOTO = "online";
public static int LOG_LEVEL = LogUtils.LEVEL_OFF;
public static String BASE_URL = "https://mobile.kf.ai";
public static String WEB_SOP = "https://sop.kf.ai/#/sop";
public static String WEB_SOP_DETAIL = "https://sop.kf.ai/#/sopdetail";
public static String WEB_ZHI_SHI = "https://sop.kf.ai/#/detail";
public static String CHECK_MULTI_WEB_SOP = "https://sop.kf.ai/#/manyServiceResult";
public static String MULTI_WEB_SOP = "https://sop.kf.ai/#/manySop";
public static final String UP_PHOTO = "/file/uploadMore?targetPath=online/sp/mobile/android/business/checkApply";
public static final String UP_VIDEO = "/file/uploadVideoOne?targetPath=online/video";
public static boolean IS_DEBUG = false;
public static String VIDEO_SHARE_URL = "http://app.dl.kf.ai/ext/#/shareVideo?type=_type&id="; //学习视频分享链接 type(课程: course 直播: live)
public static int XLR_PID = 1936; //小绿人商家id
public static String SCHEME_9099 = "http://app.dl.kf.ai/ext/#/";
// public static String ENVIROMENT = "release";
// public static String PHOTO = "online";
// public static int LOG_LEVEL = LogUtils.LEVEL_OFF;
// public static String BASE_URL = "https://mobile.kf.ai";
// public static String WEB_SOP = "https://sop.kf.ai/#/sop";
// public static String WEB_SOP_DETAIL = "https://sop.kf.ai/#/sopdetail";
// public static String WEB_ZHI_SHI = "https://sop.kf.ai/#/detail";
// public static String CHECK_MULTI_WEB_SOP = "https://sop.kf.ai/#/manyServiceResult";
// public static String MULTI_WEB_SOP = "https://sop.kf.ai/#/manySop";
// public static final String UP_PHOTO = "/file/uploadMore?targetPath=online/sp/mobile/android/business/checkApply";
// public static final String UP_VIDEO = "/file/uploadVideoOne?targetPath=online/video";
// public static boolean IS_DEBUG = false;
// public static String VIDEO_SHARE_URL = "http://app.dl.kf.ai/ext/#/shareVideo?type=_type&id="; //学习视频分享链接 type(课程: course 直播: live)
// public static int XLR_PID = 1936; //小绿人商家id
// public static String SCHEME_9099 = "http://app.dl.kf.ai/ext/#/";
/**
......
......@@ -1008,7 +1008,7 @@ C) 在甲方使用大鱼平台服务过程中产生的业务数据,客户数
<string name="find_course">查找课程</string>
<array name="learn_top_tab_item">
<item>公开课</item>
<item>经验交流</item>
<!--<item>经验交流</item>-->
<item>直播</item>
<item>考试</item>
</array>
......
......@@ -5,8 +5,8 @@ buildscript {
ext.build_tools_version = "29.0.2"
ext.min_sdk_version = 21
ext.target_sdk_version = 29
ext.version_code = 313
ext.verson_name = "3.1.3"
ext.version_code = 314
ext.verson_name = "3.1.4"
ext.gradle_version = '4.0.1'
ext.isReleaseMinify = false
ext.isDebugMinify = false
......
......@@ -43,7 +43,6 @@ import java.util.concurrent.TimeUnit;
import cn.jzvd.JzvdStd;
import io.reactivex.Observable;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.functions.Consumer;
import io.reactivex.schedulers.Schedulers;
public class HomeLearnFragment extends BaseFragment<SImplePresenter, FragmentHomeLearnBinding> {
......@@ -110,7 +109,7 @@ public class HomeLearnFragment extends BaseFragment<SImplePresenter, FragmentHom
private void initTabPage() {
list_fragments = new ArrayList<>();
list_fragments.add(CommonLearnFragment.newInstance(1));
list_fragments.add(CommonLearnFragment.newInstance(4));
// list_fragments.add(CommonLearnFragment.newInstance(4));
list_fragments.add(new LiveListFragment());
// list_fragments.add(CommonLearnFragment.newInstance(3));
webFragment = CommeWebViewFragment.newInstance();
......@@ -135,10 +134,10 @@ public class HomeLearnFragment extends BaseFragment<SImplePresenter, FragmentHom
}
mTabNumTv = tab.getCustomView().findViewById(R.id.tabtext);
mTabTextTv = tab.getCustomView().findViewById(R.id.tabicon);
if (temp == 2) {
if (temp == 1) {
mTabNumTv.setTextColor(getResources().getColor(R.color.common_red));
mTabTextTv.setTextColor(getResources().getColor(R.color.common_red));
} else if (temp == 4) {
} else if (temp == 3) {
mTabTextTv.setTextColor(getResources().getColor(R.color.bg_button));
} else {
mTabNumTv.setTextColor(getResources().getColor(R.color.bg_button));
......@@ -154,7 +153,7 @@ public class HomeLearnFragment extends BaseFragment<SImplePresenter, FragmentHom
return;
}
int temp = tab.getPosition();
if (temp != 4) {
if (temp != 3) {
mTabNumTv.setTextColor(getResources().getColor(R.color.cl_tab_init));
}
mTabTextTv.setTextColor(getResources().getColor(R.color.cl_tab_init));
......@@ -173,17 +172,17 @@ public class HomeLearnFragment extends BaseFragment<SImplePresenter, FragmentHom
// EventBus.getDefault().post(new LearnTabNumEvent(1));
int[] tabNum;
if (tabBean != null) {
tabNum = new int[]{tabBean.getTotalProviderCourses(), tabBean.getTotalEngineerCourses(), tabBean.getLives(), tabBean.getPaperNum(), tabBean.getPublishes()};
tabNum = new int[]{tabBean.getTotalProviderCourses(), tabBean.getLives(), tabBean.getPaperNum(), tabBean.getPublishes()};
// tabNum = new int[]{99, 999, 9999, 99999, 999999};
} else {
tabNum = new int[]{0, 0, 0, 0, 0};
tabNum = new int[]{0, 0, 0, 0};
}
if (isFirstAddTab) {
mBind.tabLearn.removeAllTabs();
mBind.tabLearn.addTab(mBind.tabLearn.newTab().setCustomView(CreatTab(0, tabNum[0], tabDesc[0])));
mBind.tabLearn.addTab(mBind.tabLearn.newTab().setCustomView(CreatTab(1, tabNum[1], tabDesc[1])));
mBind.tabLearn.addTab(mBind.tabLearn.newTab().setCustomView(CreatTab(2, tabNum[2], tabDesc[2])));
mBind.tabLearn.addTab(mBind.tabLearn.newTab().setCustomView(CreatTab(3, tabNum[3], tabDesc[3])));
// mBind.tabLearn.addTab(mBind.tabLearn.newTab().setCustomView(CreatTab(3, tabNum[3], tabDesc[3])));
mBind.tabLearn.addTab(mBind.tabLearn.newTab().setCustomView(CreateLearnTab()));
isFirstAddTab = false;
} else {
......
......@@ -111,7 +111,8 @@
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:gravity="center_vertical"
android:orientation="horizontal">
android:orientation="horizontal"
android:visibility="gone">
<TextView
android:id="@+id/tv_component"
......@@ -177,7 +178,8 @@
android:layout_margin="10dp"
android:focusable="true"
android:focusableInTouchMode="true"
android:orientation="horizontal">
android:orientation="horizontal"
android:visibility="gone">
<ImageView
android:id="@+id/iv_avatar"
......@@ -216,7 +218,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp" />
android:layout_marginRight="10dp"
android:visibility="gone"/>
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</com.scwang.smartrefresh.layout.SmartRefreshLayout>
......
......@@ -89,7 +89,8 @@
android:layout_alignParentBottom="true"
android:layout_marginRight="30dp"
android:layout_marginBottom="50dp"
android:src="@drawable/icon_add_blue" />
android:src="@drawable/icon_add_blue"
android:visibility="gone"/>
</RelativeLayout>
</layout>
\ No newline at end of file
......@@ -185,6 +185,21 @@ public class MultiOrderDetailFragment extends BaseFragment<SImplePresenter, Frag
mBind.customerAcceptance.setVisibility(View.GONE);
}
mBind.tvTakeOrder.setVisibility(detail.getStatus() == 1 ? View.VISIBLE : View.GONE);
if (detail.getStatus() == 1){
mBind.customerName.setVisibility(View.GONE);
mBind.tvCustomerName.setVisibility(View.GONE);
mBind.customerSignature.setVisibility(View.GONE);
mBind.tvCustomerMobile.setVisibility(View.GONE);
mBind.customerMoblie.setVisibility(View.GONE);
mBind.tvContactTel.setVisibility(View.GONE);
}else{
mBind.customerName.setVisibility(View.VISIBLE);
mBind.tvCustomerName.setVisibility(View.VISIBLE);
mBind.customerSignature.setVisibility(View.VISIBLE);
mBind.tvCustomerMobile.setVisibility(View.VISIBLE);
mBind.customerMoblie.setVisibility(View.VISIBLE);
mBind.tvContactTel.setVisibility(View.VISIBLE);
}
mBind.customerAcceptance.setOnClickListener(v -> {
UserInfo info = UserManager.getInstance().getUser();
Bundle bundle = new Bundle();
......
......@@ -69,6 +69,21 @@ public class OrderDetaillsFragment extends DataBindingFragment<FragmentOrderData
public void initDataView(OrderDetail dataBean) {
mBind.setItem(dataBean);
if (dataBean.getStatus() == 1){
mBind.twoTextThree.setVisibility(View.GONE);
mBind.tvCustomerName.setVisibility(View.GONE);
mBind.customerSignature.setVisibility(View.GONE);
mBind.twoTextFour.setVisibility(View.GONE);
mBind.tvContactMode.setVisibility(View.GONE);
mBind.tvContactTel.setVisibility(View.GONE);
}else{
mBind.twoTextThree.setVisibility(View.VISIBLE);
mBind.tvCustomerName.setVisibility(View.VISIBLE);
mBind.customerSignature.setVisibility(View.VISIBLE);
mBind.twoTextFour.setVisibility(View.VISIBLE);
mBind.tvContactMode.setVisibility(View.VISIBLE);
mBind.tvContactTel.setVisibility(View.VISIBLE);
}
mBind.tvOrderState.setText(getStaus(dataBean.getStatus()));
mBind.tvLookMore.setOnClickListener(o -> lookMore());
mBind.tvServerLookMore.setOnClickListener(o -> lookRMore());
......
......@@ -128,7 +128,8 @@
android:text="留言"
android:textColor="@color/cl_home_title_text_color"
android:textSize="14sp"
android:textStyle="bold" />
android:textStyle="bold"
android:visibility="gone"/>
<LinearLayout
android:layout_width="match_parent"
......@@ -136,7 +137,8 @@
android:layout_alignParentBottom="true"
android:layout_margin="10dp"
android:background="@color/cl_white"
android:orientation="horizontal">
android:orientation="horizontal"
android:visibility="gone">
<ImageView
android:id="@+id/iv_avatar"
......@@ -173,7 +175,8 @@
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rl_component"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
android:layout_height="wrap_content"
android:visibility="gone"/>
</LinearLayout>
......
......@@ -34,8 +34,8 @@
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true">
<TextView
......@@ -306,9 +306,9 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/rl_info_server"
android:layout_marginBottom="5dp"
android:layout_marginLeft="@dimen/dp_13"
android:layout_marginTop="@dimen/dp_13"
android:layout_marginBottom="5dp"
android:orientation="horizontal">
<TextView
......@@ -425,11 +425,11 @@
android:id="@+id/customer_signature"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_below="@+id/tv_company_name"
android:layout_alignParentRight="true"
android:layout_marginLeft="19dp"
android:layout_marginRight="@dimen/dp_15"
android:layout_marginTop="@dimen/dp_15"
android:layout_marginRight="@dimen/dp_15"
android:layout_toRightOf="@+id/tv_customer_name"
android:gravity="right"
android:text="@string/check_signature"
......@@ -833,9 +833,9 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/tv_pay_type"
android:layout_marginBottom="10dp"
android:layout_marginLeft="@dimen/dp_10"
android:layout_marginTop="@dimen/dp_13"
android:layout_marginBottom="10dp"
android:layout_toRightOf="@id/tv_pay_state"
android:ellipsize="end"
android:maxLines="2"
......
......@@ -144,7 +144,8 @@
android:layout_marginTop="10dp"
android:layout_weight="1"
android:background="@color/cl_white"
android:orientation="vertical">
android:orientation="vertical"
android:visibility="gone">
<TextView
android:id="@+id/tv_component"
......
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 sign in to comment