diff --git a/cm_utils/src/main/java/com/sucstepsoft/cm_utils/constant/PathConfig.java b/cm_utils/src/main/java/com/sucstepsoft/cm_utils/constant/PathConfig.java index b7ca8ae..7f8d4d1 100755 --- a/cm_utils/src/main/java/com/sucstepsoft/cm_utils/constant/PathConfig.java +++ b/cm_utils/src/main/java/com/sucstepsoft/cm_utils/constant/PathConfig.java @@ -110,6 +110,7 @@ public class PathConfig { public static final String PATH_MODULE_MAIN_CHOOSE_CITY = "/modulemain/activity/choosecity";//选择城市 public static final String PATH_MODULE_MAIN_NEWS_WEB = "/modulemain/activity/newsweb";//连接新闻页 + public static final String PATH_MODULE_MAIN_NEWS_DETAIL_INTERFACE = "/modulemain/activity/newsInterface";//新闻详情页面-接口方式 //======================Map================================================== public static final String PATH_MODULE_MAP_NAVIGATION = "/modulemap/activity/navigation";//地图 public static final String PATH_MODULE_MAP_SHOW_ICON = "/modulemap/activity/showicon";//文化地图 @@ -251,7 +252,7 @@ public class PathConfig { public static final String DID_EDU = "e18d7126-f3b0-49cb-aeee-070e54889942";//学历 public static final String DID_NATIVE = "";//籍贯 public static final String DID_SEX = "90f09612-9deb-4229-8d73-d6a865056cde";//性别 - public static final String DID_NATION = "61f86a5a-22b2-4d14-8cdb-46d3cd2bd864";//民族 + public static final String DID_NATION = "039dca8f-7639-41fa-993b-34f8bbc3a3d5";//民族 public static final String DID_ADDRESS = "";//地址 public static final String DID_SERVICE_AREA = "761d8633-3c2f-4e92-b32d-fb50d3dc07b7";//服务区域 public static final String DID_SERVICE_TYPE = "a223b308-014a-4e89-93fa-035a564e7fda";//服务类别 @@ -273,4 +274,5 @@ public class PathConfig { public static final String PATH_MODULE_SHOP_ACTIVITY_SHOP_MINE_ORDER = "/moduleshop/activity/shopOrderList";//我的订单 public static final String PATH_MODULE_SHOP_ACTIVITY_SHOP_MINE_ORDER_DETAIL = "/moduleshop/activity/shopOrderDetail";//我的订单 public static final String PATH_MODULE_SHOP_ACTIVITY_SHOP_ADD_ADDRESS = "/moduleshop/activity/shopAddAddress";//新增收货地 + } diff --git a/cm_utils/src/main/java/com/sucstepsoft/cm_utils/core/retrofit_net/BaseUrlApi.java b/cm_utils/src/main/java/com/sucstepsoft/cm_utils/core/retrofit_net/BaseUrlApi.java index 674c3ee..0fa5106 100755 --- a/cm_utils/src/main/java/com/sucstepsoft/cm_utils/core/retrofit_net/BaseUrlApi.java +++ b/cm_utils/src/main/java/com/sucstepsoft/cm_utils/core/retrofit_net/BaseUrlApi.java @@ -9,7 +9,7 @@ import com.sucstepsoft.cm_utils.constant.PathConfig; */ public class BaseUrlApi { - // public static final String IP_URL = "http://v3.xzszwhy.cn/";/* 测试IP */ + // public static final String IP_URL = "http://v3.xzszwhy.cn/";/* 测试IP */ public static final String IP_URL = "http://192.168.0.120:8081/";/* 测试IP */ public static final String BASE_SYSTEM_IP = "http://192.168.0.120:8081/xzszwhy/";/*测试IP*/ @@ -54,6 +54,8 @@ public class BaseUrlApi { public static final String BASE_PLACE_IP = BASE_SYSTEM_IP;/* 场馆 */ public static final String BASE_VOLUNTEER_IP = BASE_SYSTEM_IP;/* 志愿者 */ public static final String BASE_LIVE_IP = IP_URL + "live/"; + + public static final String BASE_BIG_DATA = "http://v3.xzszwhy.cn/" + "module/";//大数据接口 public static final String BASE_LIVE_URL = BASE_SYSTEM_IP;//直播回放视频url public static final String BASE_CULTURAL_SHARE = BASE_SYSTEM_IP;/* 文化分享 */ public static final String BASE_LEGACY_IP = BASE_SYSTEM_IP;//非遗数据库 @@ -67,7 +69,8 @@ public class BaseUrlApi { // public static final String BASE_NEWS_DETAIL = "http://192.168.0.104/";//新闻 - public static final String BASE_NEWS_DETAIL = IP_URL;//新闻 + // public static final String BASE_NEWS_DETAIL = IP_URL;//新闻 + public static final String BASE_NEWS_DETAIL = "http://192.168.0.120:80/";//新闻 // public static final String BASE_IMG_URL = BASE_IP + "route/file/download/true/"; // GET /app/appversion/downloadapp/{appVersionId} public static final String APP_DOWNLOAD_URL = BASE_URL + "app/appversion/download/" + PathConfig.APP_VERSION_ID; diff --git a/cm_utils/src/main/java/com/sucstepsoft/cm_utils/core/retrofit_net/conver/BaseUrlInterceptor.java b/cm_utils/src/main/java/com/sucstepsoft/cm_utils/core/retrofit_net/conver/BaseUrlInterceptor.java index 5d92b2d..c87843b 100755 --- a/cm_utils/src/main/java/com/sucstepsoft/cm_utils/core/retrofit_net/conver/BaseUrlInterceptor.java +++ b/cm_utils/src/main/java/com/sucstepsoft/cm_utils/core/retrofit_net/conver/BaseUrlInterceptor.java @@ -46,6 +46,8 @@ public class BaseUrlInterceptor implements Interceptor { newBaseUrl = HttpUrl.parse(BaseUrlApi.BASE_CULTURAL_SHARE); } else if ("shop".equals(headerValue)) { newBaseUrl = HttpUrl.parse(BaseUrlApi.BASE_SHOP_IP); + }else if("bigdata".equals(headerValue)){ + newBaseUrl = HttpUrl.parse(BaseUrlApi.BASE_BIG_DATA); } else { newBaseUrl = oldHttpUrl; } diff --git a/cm_utils/src/main/java/com/sucstepsoft/cm_utils/core/widget/base/BannerImageTextAllAdapter.java b/cm_utils/src/main/java/com/sucstepsoft/cm_utils/core/widget/base/BannerImageTextAllAdapter.java new file mode 100755 index 0000000..698f151 --- /dev/null +++ b/cm_utils/src/main/java/com/sucstepsoft/cm_utils/core/widget/base/BannerImageTextAllAdapter.java @@ -0,0 +1,54 @@ +package com.sucstepsoft.cm_utils.core.widget.base; + +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; + +import com.bumptech.glide.Glide; +import com.bumptech.glide.load.engine.DiskCacheStrategy; +import com.bumptech.glide.request.RequestOptions; +import com.sucstepsoft.cm_utils.R; +import com.sucstepsoft.cm_utils.core.beans.BaseImageBean; +import com.sucstepsoft.cm_utils.utils.ConvertUtils; +import com.youth.banner.adapter.BannerAdapter; + +import java.util.List; + +/** + * 作者: adam + * 日期: 2020/6/10 - 5:51 PM + * 邮箱: itgaojian@163.com + * 描述: + */ +public class BannerImageTextAllAdapter extends BannerAdapter { + + public BannerImageTextAllAdapter(List datas) { + super(datas); + + } + + @Override + public BannerTextHolder onCreateHolder(ViewGroup parent, int viewType) { + View itemView = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_banner_text_all, parent, false); + return new BannerTextHolder(itemView); + } + + @Override + public void onBindView(BannerTextHolder holder, BaseImageBean data, int position, int size) { + RoundedCornersTransform roundedCornersTransform = new RoundedCornersTransform(holder.itemView.getContext(), ConvertUtils.dp2px(2)); + roundedCornersTransform.setNeedCorner(false, false, false, false); + RequestOptions options = new RequestOptions() + .error(R.drawable.ic_img_default_banner) + .placeholder(R.drawable.ic_img_default_banner) + .transform(roundedCornersTransform) + .skipMemoryCache(false) + .diskCacheStrategy(DiskCacheStrategy.RESOURCE) + .fitCenter(); + Glide.with(holder.itemView.getContext()) + .asBitmap() + .load(data.getImgUrl()) + .apply(options) + .into(holder.mIvCover); + holder.mTvName.setText(data.getName()); + } +} diff --git a/cm_utils/src/main/res/layout/item_banner_text_all.xml b/cm_utils/src/main/res/layout/item_banner_text_all.xml new file mode 100755 index 0000000..f47a645 --- /dev/null +++ b/cm_utils/src/main/res/layout/item_banner_text_all.xml @@ -0,0 +1,26 @@ + + + + + + + \ No newline at end of file diff --git a/modulecultural/src/main/res/layout/activity_register_volunteer_single.xml b/modulecultural/src/main/res/layout/activity_register_volunteer_single.xml index a61732d..6d6a119 100755 --- a/modulecultural/src/main/res/layout/activity_register_volunteer_single.xml +++ b/modulecultural/src/main/res/layout/activity_register_volunteer_single.xml @@ -1,8 +1,6 @@ @@ -261,78 +259,6 @@ android:hint="请选择从业状况" /> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -347,7 +273,9 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" - android:orientation="horizontal"> + android:gravity="right" + android:orientation="horizontal" + android:paddingRight="20dp"> - - - - - - - + android:layout_marginLeft="10dp" + android:layout_marginRight="10dp" + android:background="@color/gray_line_deep" /> + android:text="服务区域:" /> - + + android:layout_marginLeft="10dp" + android:layout_marginRight="10dp" + android:background="@color/gray_line_deep" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/modulecultural/src/main/res/layout/activity_register_volunteer_team.xml b/modulecultural/src/main/res/layout/activity_register_volunteer_team.xml index 1f33e79..a631f01 100755 --- a/modulecultural/src/main/res/layout/activity_register_volunteer_team.xml +++ b/modulecultural/src/main/res/layout/activity_register_volunteer_team.xml @@ -1,7 +1,5 @@ @@ -21,9 +19,18 @@ + + + + @@ -53,6 +69,7 @@ android:hint="请选择团队成员" /> + + android:drawablePadding="10dp" + android:gravity="right" + android:hint="请选择所属区域" + android:paddingRight="0dp" /> - + + + diff --git a/modulecultural/src/main/res/layout/activity_vounteer_publish.xml b/modulecultural/src/main/res/layout/activity_vounteer_publish.xml index ee955d5..04bf13c 100755 --- a/modulecultural/src/main/res/layout/activity_vounteer_publish.xml +++ b/modulecultural/src/main/res/layout/activity_vounteer_publish.xml @@ -22,9 +22,19 @@ + android:drawablePadding="10dp" + android:gravity="right" + android:hint="请选择活动区域" + android:paddingRight="0dp" /> + + + + + + + + - + + + - + + + @@ -114,10 +169,18 @@ + + + + + android:drawablePadding="10dp" + android:gravity="right" + android:hint="请选择开始时间" + android:paddingRight="0dp" /> + + + android:drawablePadding="10dp" + android:gravity="right" + android:hint="请选择结束时间" + android:paddingRight="0dp" /> + + + android:gravity="right" + android:orientation="horizontal" + android:paddingRight="10dp"> + + @@ -199,22 +302,32 @@ + android:drawablePadding="10dp" + android:gravity="right" + android:hint="请选择志愿者团队" + android:paddingRight="0dp" /> - + + + + android:layout_marginTop="5dp" /> 10dp 10dp 1 - @drawable/shape_bottom_line + 5dp + 5dp + 5dp + 5dp + 13sp + + + + + + +