Browse Source

no message

master
lh 8 years ago
parent
commit
816535b362
6 changed files with 26 additions and 7 deletions
  1. +1
    -1
      app/src/main/java/com/qhclh/ytzh/home/MyApplication.java
  2. +1
    -1
      app/src/main/java/com/qhclh/ytzh/home/RpcUrl.java
  3. +6
    -1
      app/src/main/java/com/qhclh/ytzh/home/SetUrlActivity.java
  4. +2
    -1
      app/src/main/java/com/qhclh/ytzh/login/LoginActivity.java
  5. +15
    -3
      app/src/main/res/layout/act_login.xml
  6. +1
    -0
      app/src/main/res/values/colors.xml

+ 1
- 1
app/src/main/java/com/qhclh/ytzh/home/MyApplication.java View File

@ -25,7 +25,7 @@ public class MyApplication extends LitePalApplication {
private final String NAME ="ytzh"; private final String NAME ="ytzh";
static LastLoginInfo mLoginInfo; static LastLoginInfo mLoginInfo;
private static MyApplication instance; private static MyApplication instance;
String url= RpcUrl.BaseAppUrl;
// String url= RpcUrl.BaseAppUrl;
ServerConfig config; ServerConfig config;
private List<Activity> activityList = new LinkedList<Activity>(); private List<Activity> activityList = new LinkedList<Activity>();


+ 1
- 1
app/src/main/java/com/qhclh/ytzh/home/RpcUrl.java View File

@ -7,7 +7,7 @@ public class RpcUrl {
///< 正式服务器地址 ///< 正式服务器地址
// public static String BaseAppUrl = "http://47.104.88.50/B3/"; // public static String BaseAppUrl = "http://47.104.88.50/B3/";
///< 外网测试 ///< 外网测试
public static String BaseAppUrl = "http://221.1.97.114:86/B3/";
// public static String BaseAppUrl = "http://221.1.97.114:86/B3/";
public static String DayProductRpc_Query = "/MainSystem/B3_ZhongHui/Rpcs/DayProductRpc/Query"; public static String DayProductRpc_Query = "/MainSystem/B3_ZhongHui/Rpcs/DayProductRpc/Query";
public static String DayProductRpc_Query_canshu = "/MainSystem/B3UnitedInfos/Rpcs/RpcQueryObj"; public static String DayProductRpc_Query_canshu = "/MainSystem/B3UnitedInfos/Rpcs/RpcQueryObj";


+ 6
- 1
app/src/main/java/com/qhclh/ytzh/home/SetUrlActivity.java View File

@ -33,7 +33,12 @@ public class SetUrlActivity extends BaseActivity {
protected void initView() { protected void initView() {
config = new ServerConfig(this); config = new ServerConfig(this);
ConfigUtil.Fill(config); ConfigUtil.Fill(config);
et_url.setText(config.getServerUri());
if (config.getServerUri()!=null && !"".equals(config.getServerUri())) {
et_url.setText(config.getServerUri());
}else {
et_url.setText("http://47.104.88.50/B3/");
}
System.out.println("aaa+++++++++++"+config.getServerUri());
} }
@Override @Override


+ 2
- 1
app/src/main/java/com/qhclh/ytzh/login/LoginActivity.java View File

@ -5,6 +5,7 @@ import android.view.KeyEvent;
import android.view.View; import android.view.View;
import android.widget.Button; import android.widget.Button;
import android.widget.EditText; import android.widget.EditText;
import android.widget.TextView;
import com.qhclh.ytzh.R; import com.qhclh.ytzh.R;
import com.qhclh.ytzh.base.BaseActivity; import com.qhclh.ytzh.base.BaseActivity;
@ -41,7 +42,7 @@ public class LoginActivity extends BaseActivity {
Button login_sure; Button login_sure;
@BindView(R.id.shezhiurl) @BindView(R.id.shezhiurl)
Button shezhiurl;
TextView shezhiurl;
private LoginUserConfig config = new LoginUserConfig(this); private LoginUserConfig config = new LoginUserConfig(this);
private ServerConfig sconfig = new ServerConfig(this); private ServerConfig sconfig = new ServerConfig(this);


+ 15
- 3
app/src/main/res/layout/act_login.xml View File

@ -19,8 +19,8 @@
android:layout_width="100dp" android:layout_width="100dp"
android:layout_height="100dp" android:layout_height="100dp"
android:layout_below="@id/login_bg" android:layout_below="@id/login_bg"
android:layout_marginTop="-50dp"
android:layout_centerHorizontal="true" android:layout_centerHorizontal="true"
android:layout_marginTop="-50dp"
android:src="@mipmap/ic_launcher_round" /> android:src="@mipmap/ic_launcher_round" />
</RelativeLayout> </RelativeLayout>
@ -83,11 +83,23 @@
android:layout_marginTop="@dimen/dp_20" android:layout_marginTop="@dimen/dp_20"
android:background="@drawable/denglu_3x" /> android:background="@drawable/denglu_3x" />
<Button
<View
android:layout_width="1dp"
android:layout_height="0dp"
android:layout_weight="2" />
<TextView
android:id="@+id/shezhiurl" android:id="@+id/shezhiurl"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:text="设置url" android:text="设置url"
android:layout_height="wrap_content" />
android:textColor="@color/blue05b0f9"
android:textSize="@dimen/text_size_18" />
<View
android:layout_width="1dp"
android:layout_height="0dp"
android:layout_weight="1" />
</LinearLayout> </LinearLayout>

+ 1
- 0
app/src/main/res/values/colors.xml View File

@ -38,4 +38,5 @@
<color name="perpod26ee4">#d26ee4</color> <color name="perpod26ee4">#d26ee4</color>
<color name="greydp">#dbdbdb</color> <color name="greydp">#dbdbdb</color>
<color name="blue05b0f9">#05b0f9</color>
</resources> </resources>

Loading…
Cancel
Save