Commit eadcb01facf58b45bb69d23d1cf4cf5a6b08aace
Merge remote-tracking branch 'origin/master'
Showing
15 changed files
with
48 additions
and
19 deletions
app/src/main/java/com/example/modulepedometer/MyApp.java
| @@ -14,7 +14,7 @@ public class MyApp extends Application { | @@ -14,7 +14,7 @@ public class MyApp extends Application { | ||
| 14 | String userId = ""; | 14 | String userId = ""; |
| 15 | AppConfig.init(getApplicationContext(), BuildConfig.APP_ID, BuildConfig.APP_KEY, BuildConfig.APP_SCERET, | 15 | AppConfig.init(getApplicationContext(), BuildConfig.APP_ID, BuildConfig.APP_KEY, BuildConfig.APP_SCERET, |
| 16 | 0, BuildConfig.DEBUG, "", "", | 16 | 0, BuildConfig.DEBUG, "", "", |
| 17 | - userId, "", "", "", ""); | 17 | + userId, "", "", "", "","","",""); |
| 18 | initARouter(); | 18 | initARouter(); |
| 19 | //在使用SDK各组件之前初始化context信息,传入ApplicationContext | 19 | //在使用SDK各组件之前初始化context信息,传入ApplicationContext |
| 20 | SDKInitializer.initialize(getApplicationContext()); | 20 | SDKInitializer.initialize(getApplicationContext()); |
build.gradle
config.gradle
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/frame/view/TakePartView.java
| @@ -111,7 +111,7 @@ public class TakePartView implements MvpView { | @@ -111,7 +111,7 @@ public class TakePartView implements MvpView { | ||
| 111 | public void showEmpty(){ | 111 | public void showEmpty(){ |
| 112 | fragment.binding.empty.setVisibility(View.VISIBLE); | 112 | fragment.binding.empty.setVisibility(View.VISIBLE); |
| 113 | fragment.binding.refreshLayout.setVisibility(View.GONE); | 113 | fragment.binding.refreshLayout.setVisibility(View.GONE); |
| 114 | - fragment.binding.empty.show("还没有人参加哦", "", R.drawable.zhuangtai_kong); | 114 | + fragment.binding.empty.show("暂无参与", "", R.drawable.bmcg_tak); |
| 115 | } | 115 | } |
| 116 | 116 | ||
| 117 | 117 |
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/net/bean/MyRecordInfo.java
| @@ -100,6 +100,7 @@ public class MyRecordInfo { | @@ -100,6 +100,7 @@ public class MyRecordInfo { | ||
| 100 | private int signupNum; | 100 | private int signupNum; |
| 101 | private long start_time; | 101 | private long start_time; |
| 102 | private String title; | 102 | private String title; |
| 103 | + private String day; | ||
| 103 | private List<String> faceUrl; | 104 | private List<String> faceUrl; |
| 104 | 105 | ||
| 105 | public String getAddress() { | 106 | public String getAddress() { |
| @@ -158,6 +159,14 @@ public class MyRecordInfo { | @@ -158,6 +159,14 @@ public class MyRecordInfo { | ||
| 158 | this.title = title; | 159 | this.title = title; |
| 159 | } | 160 | } |
| 160 | 161 | ||
| 162 | + public String getDay() { | ||
| 163 | + return day; | ||
| 164 | + } | ||
| 165 | + | ||
| 166 | + public void setDay(String day) { | ||
| 167 | + this.day = day; | ||
| 168 | + } | ||
| 169 | + | ||
| 161 | public List<String> getFaceUrl() { | 170 | public List<String> getFaceUrl() { |
| 162 | return faceUrl; | 171 | return faceUrl; |
| 163 | } | 172 | } |
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/ui/activity/RunLineActivity.java
| @@ -23,7 +23,5 @@ public class RunLineActivity extends AppCompatActivity { | @@ -23,7 +23,5 @@ public class RunLineActivity extends AppCompatActivity { | ||
| 23 | setContentView(R.layout.activity_run_line); | 23 | setContentView(R.layout.activity_run_line); |
| 24 | 24 | ||
| 25 | getSupportFragmentManager().beginTransaction().replace(R.id.run_line_container, new RunLineFragment()).commit(); | 25 | getSupportFragmentManager().beginTransaction().replace(R.id.run_line_container, new RunLineFragment()).commit(); |
| 26 | -// getSupportFragmentManager().beginTransaction().replace(R.id.run_line_container, new CollRunningFinishFragment()).commit(); | ||
| 27 | - | ||
| 28 | } | 26 | } |
| 29 | } | 27 | } |
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/ui/activity/ShareRecordActivity.java
| @@ -14,6 +14,7 @@ import android.widget.RelativeLayout; | @@ -14,6 +14,7 @@ import android.widget.RelativeLayout; | ||
| 14 | import android.widget.TextView; | 14 | import android.widget.TextView; |
| 15 | 15 | ||
| 16 | import com.alibaba.android.arouter.launcher.ARouter; | 16 | import com.alibaba.android.arouter.launcher.ARouter; |
| 17 | +import com.cnlive.libs.base.arouter.QrService; | ||
| 17 | import com.cnlive.libs.base.util.StatusBarUtil; | 18 | import com.cnlive.libs.base.util.StatusBarUtil; |
| 18 | import com.cnlive.libs.base.util.StatusBarUtil2; | 19 | import com.cnlive.libs.base.util.StatusBarUtil2; |
| 19 | import com.cnlive.moudle.pedometer.utils.lib_permisshelper.PermissionsListener; | 20 | import com.cnlive.moudle.pedometer.utils.lib_permisshelper.PermissionsListener; |
| @@ -53,7 +54,7 @@ public class ShareRecordActivity extends AppCompatActivity { | @@ -53,7 +54,7 @@ public class ShareRecordActivity extends AppCompatActivity { | ||
| 53 | setContentView(R.layout.activity_share_record); | 54 | setContentView(R.layout.activity_share_record); |
| 54 | 55 | ||
| 55 | cord_name = findViewById(R.id.cord_name); | 56 | cord_name = findViewById(R.id.cord_name); |
| 56 | - cord_name.setText("我在" + getIntent().getStringExtra("raceTitle") + "中的最佳成绩"); | 57 | + cord_name.setText("我在中国网家家" + getIntent().getStringExtra("raceTitle") + "中的最佳成绩"); |
| 57 | ((TextView) findViewById(R.id.kilo_share)).setText(getIntent().getStringExtra("kilo")); | 58 | ((TextView) findViewById(R.id.kilo_share)).setText(getIntent().getStringExtra("kilo")); |
| 58 | ((TextView) findViewById(R.id.step_share)).setText(getIntent().getStringExtra("step")); | 59 | ((TextView) findViewById(R.id.step_share)).setText(getIntent().getStringExtra("step")); |
| 59 | ((TextView) findViewById(R.id.time_share)).setText(getIntent().getStringExtra("time")); | 60 | ((TextView) findViewById(R.id.time_share)).setText(getIntent().getStringExtra("time")); |
| @@ -97,9 +98,9 @@ public class ShareRecordActivity extends AppCompatActivity { | @@ -97,9 +98,9 @@ public class ShareRecordActivity extends AppCompatActivity { | ||
| 97 | } | 98 | } |
| 98 | }); | 99 | }); |
| 99 | 100 | ||
| 100 | -// QrService service= (QrService) ARouter.getInstance().build("/app/base/qrservice").navigation(this); | ||
| 101 | -// Bitmap bitmap= service.createQRNoIconBitmap("321212312312312",240); | ||
| 102 | -// ((ImageView) findViewById(R.id.down_img)).setImageBitmap(bitmap); | 101 | + QrService service= (QrService) ARouter.getInstance().navigation(QrService.class); |
| 102 | + Bitmap bitmap= service.createQRNoIconBitmap("http://apiwjj.cnlive.com/download/index.html",320); | ||
| 103 | + ((ImageView) findViewById(R.id.down_img)).setImageBitmap(bitmap); | ||
| 103 | } | 104 | } |
| 104 | 105 | ||
| 105 | private void share(){ | 106 | private void share(){ |
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/ui/adapter/MyRecordAdapter.java
| @@ -65,10 +65,11 @@ public class MyRecordAdapter extends RecyclerView.Adapter<MyRecordAdapter.MyView | @@ -65,10 +65,11 @@ public class MyRecordAdapter extends RecyclerView.Adapter<MyRecordAdapter.MyView | ||
| 65 | myViewHolder.join_person.initIconData(list.get(i).getFaceUrl()); | 65 | myViewHolder.join_person.initIconData(list.get(i).getFaceUrl()); |
| 66 | if(state.equals("0")){ | 66 | if(state.equals("0")){ |
| 67 | myViewHolder.day_num.setVisibility(View.VISIBLE); | 67 | myViewHolder.day_num.setVisibility(View.VISIBLE); |
| 68 | - myViewHolder.after_finish.setText("天后结束"); | ||
| 69 | - myViewHolder.day_num.setText("2"); | 68 | + myViewHolder.after_finish.setVisibility(View.GONE); |
| 69 | + myViewHolder.day_num.setText(list.get(i).getDay()); | ||
| 70 | }else { | 70 | }else { |
| 71 | myViewHolder.day_num.setVisibility(View.GONE); | 71 | myViewHolder.day_num.setVisibility(View.GONE); |
| 72 | + myViewHolder.after_finish.setVisibility(View.VISIBLE); | ||
| 72 | myViewHolder.after_finish.setText("已结束"); | 73 | myViewHolder.after_finish.setText("已结束"); |
| 73 | } | 74 | } |
| 74 | } | 75 | } |
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/ui/fragment/RegistrationInfoFragment.java
| @@ -41,6 +41,8 @@ public class RegistrationInfoFragment extends MvpBindingFragment<RegistrationInf | @@ -41,6 +41,8 @@ public class RegistrationInfoFragment extends MvpBindingFragment<RegistrationInf | ||
| 41 | } | 41 | } |
| 42 | 42 | ||
| 43 | public void commitInfo(){ | 43 | public void commitInfo(){ |
| 44 | - getPresenter().commitInfo(getActivity(),CommonInfo.getStreetId(getActivity()), "10514343","15210479774","",""); | 44 | + getPresenter().commitInfo(getActivity(),CommonInfo.getStreetId(getActivity()),"10514343","15210479774", |
| 45 | + binding.sexText.getText().toString().trim().equals("未选择")?"":binding.sexText.getText().toString().trim(), | ||
| 46 | + binding.birthday.getText().toString().trim().equals("未选择")?"":binding.birthday.getText().toString().trim()); | ||
| 45 | } | 47 | } |
| 46 | } | 48 | } |
moudle_pedometer/src/main/res/drawable-hdpi/bmcg_tak.png
0 → 100644
14.4 KB
moudle_pedometer/src/main/res/drawable-xhdpi/bmcg_tak.png
0 → 100644
16.3 KB
moudle_pedometer/src/main/res/drawable-xxhdpi/bmcg_tak.png
0 → 100644
31.4 KB
moudle_pedometer/src/main/res/layout/activity_share_record.xml
| @@ -258,8 +258,7 @@ | @@ -258,8 +258,7 @@ | ||
| 258 | android:id="@+id/down_img" | 258 | android:id="@+id/down_img" |
| 259 | android:layout_width="0dp" | 259 | android:layout_width="0dp" |
| 260 | android:layout_height="wrap_content" | 260 | android:layout_height="wrap_content" |
| 261 | - android:layout_weight="1" | ||
| 262 | - android:src="@drawable/erwe" /> | 261 | + android:layout_weight="1" /> |
| 263 | </LinearLayout> | 262 | </LinearLayout> |
| 264 | </RelativeLayout> | 263 | </RelativeLayout> |
| 265 | 264 |
moudle_pedometer/src/main/res/layout/fragment_registration_info.xml
| @@ -83,14 +83,23 @@ | @@ -83,14 +83,23 @@ | ||
| 83 | android:padding="15dp"> | 83 | android:padding="15dp"> |
| 84 | 84 | ||
| 85 | <TextView | 85 | <TextView |
| 86 | - android:id="@+id/sex_text" | 86 | + android:id="@+id/sex" |
| 87 | android:layout_width="wrap_content" | 87 | android:layout_width="wrap_content" |
| 88 | android:layout_height="wrap_content" | 88 | android:layout_height="wrap_content" |
| 89 | android:textColor="#333333" | 89 | android:textColor="#333333" |
| 90 | android:textSize="16sp" | 90 | android:textSize="16sp" |
| 91 | - android:text="性别(非必填) 未选择" | 91 | + android:text="性别(非必填) " |
| 92 | /> | 92 | /> |
| 93 | 93 | ||
| 94 | + <TextView | ||
| 95 | + android:id="@+id/sex_text" | ||
| 96 | + android:layout_width="wrap_content" | ||
| 97 | + android:layout_height="wrap_content" | ||
| 98 | + android:layout_toRightOf="@id/sex" | ||
| 99 | + android:text="未选择" | ||
| 100 | + android:textColor="#333333" | ||
| 101 | + android:textSize="16sp"/> | ||
| 102 | + | ||
| 94 | <ImageView | 103 | <ImageView |
| 95 | android:layout_width="8dp" | 104 | android:layout_width="8dp" |
| 96 | android:layout_height="13dp" | 105 | android:layout_height="13dp" |
| @@ -111,12 +120,22 @@ | @@ -111,12 +120,22 @@ | ||
| 111 | android:padding="15dp"> | 120 | android:padding="15dp"> |
| 112 | 121 | ||
| 113 | <TextView | 122 | <TextView |
| 123 | + android:id="@+id/birthday_t" | ||
| 124 | + android:layout_width="wrap_content" | ||
| 125 | + android:layout_height="wrap_content" | ||
| 126 | + android:textColor="#333333" | ||
| 127 | + android:textSize="16sp" | ||
| 128 | + android:text="生日(非必填) " | ||
| 129 | + /> | ||
| 130 | + | ||
| 131 | + <TextView | ||
| 114 | android:id="@+id/birthday" | 132 | android:id="@+id/birthday" |
| 115 | android:layout_width="wrap_content" | 133 | android:layout_width="wrap_content" |
| 116 | android:layout_height="wrap_content" | 134 | android:layout_height="wrap_content" |
| 135 | + android:layout_toRightOf="@id/birthday_t" | ||
| 117 | android:textColor="#333333" | 136 | android:textColor="#333333" |
| 118 | android:textSize="16sp" | 137 | android:textSize="16sp" |
| 119 | - android:text="生日(非必填) 未选择" | 138 | + android:text="未选择 " |
| 120 | /> | 139 | /> |
| 121 | 140 | ||
| 122 | <ImageView | 141 | <ImageView |
moudle_pedometer/src/main/res/values/strings.xml
| @@ -48,7 +48,7 @@ | @@ -48,7 +48,7 @@ | ||
| 48 | <string name="loc_open_gps">定位失败,建议您打开GPS!</string> | 48 | <string name="loc_open_gps">定位失败,建议您打开GPS!</string> |
| 49 | <string name="loc_open_wifi">定位失败,建议您打开Wi-Fi!</string> | 49 | <string name="loc_open_wifi">定位失败,建议您打开Wi-Fi!</string> |
| 50 | <string name="beijing">北京</string> | 50 | <string name="beijing">北京</string> |
| 51 | - <string name="goline">约跑线路</string> | 51 | + <string name="goline">线上赛事</string> |
| 52 | <string name="myactivity">我的活动</string> | 52 | <string name="myactivity">我的活动</string> |
| 53 | <string name="_123">123</string> | 53 | <string name="_123">123</string> |
| 54 | <string name="has_part">人已参与</string> | 54 | <string name="has_part">人已参与</string> |