Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
136 commits
Select commit Hold shift + click to select a range
e30c835
fix:try fix shop order
ColdBrando May 4, 2019
cb50def
fix:try fix shop order
ColdBrando May 4, 2019
1a79de9
fix:try fix shop order
ColdBrando May 4, 2019
38e4675
fix:try fix shop order comment
ColdBrando May 4, 2019
19e2c91
fix:try fix shop order comment
ColdBrando May 4, 2019
7667dea
fix:try fix shop order detail
ColdBrando May 4, 2019
d204814
Merge branch 'feature_userinfo' into master
ColdBrando May 4, 2019
22939ec
fix:try fix invite
ColdBrando May 4, 2019
be9d6d8
fix:try fix shoplist
ColdBrando May 4, 2019
6c0605b
remove unused code
ColdBrando May 4, 2019
9435585
fix:try fix shop order
ColdBrando May 4, 2019
92ed0b5
fix:try fix order
ColdBrando May 4, 2019
9304857
提交精选模块
May 5, 2019
3bc7419
fix home page crash
ColdBrando May 5, 2019
d50a35f
fix home bugs
ColdBrando May 5, 2019
40c9df3
banner
ColdBrando May 5, 2019
212e802
fix home bugs
ColdBrando May 5, 2019
fe45cb3
fix home bugs;
ColdBrando May 5, 2019
9d8d4a5
add http
ColdBrando May 5, 2019
f2d4c5b
fix bug
ColdBrando May 5, 2019
0a54a35
fix bug
ColdBrando May 5, 2019
cd20007
fix bug
ColdBrando May 5, 2019
758f5b5
fix bug
ColdBrando May 5, 2019
b893b8b
fix bug
ColdBrando May 5, 2019
998aa68
fix bug
ColdBrando May 5, 2019
e4add31
fix bug
ColdBrando May 5, 2019
ff865e3
fix bug
ColdBrando May 5, 2019
c37defd
fix order detail
ColdBrando May 5, 2019
eb2d149
fix order detail
ColdBrando May 6, 2019
b54b72b
fix some bloc
ColdBrando May 6, 2019
2c2a376
fix some padding
ColdBrando May 6, 2019
b986772
fix order bugs
ColdBrando May 6, 2019
d461352
fix order bugs
ColdBrando May 6, 2019
5767f15
fix rxjava
ColdBrando May 6, 2019
a7e6569
fix rxjava
ColdBrando May 6, 2019
edd3453
fix rxjava
ColdBrando May 6, 2019
23df8e7
fix rxjava
ColdBrando May 6, 2019
3df6974
fix rxjava
ColdBrando May 6, 2019
4fd0507
add login code interceptor
May 6, 2019
d201a6e
fix snapshot
ColdBrando May 6, 2019
c877183
fix toast
ColdBrando May 6, 2019
529e250
fix home progress
ColdBrando May 6, 2019
863d819
fix category empty data
ColdBrando May 6, 2019
6f20021
fix snapshot
ColdBrando May 6, 2019
8901402
fix snapshot
ColdBrando May 6, 2019
299bb77
fix snapshot
ColdBrando May 6, 2019
8de467c
fix snapshot
ColdBrando May 6, 2019
5416fde
fix snapshot
ColdBrando May 6, 2019
0954f35
fix bug
ColdBrando May 6, 2019
0f9d8d2
fix bug
ColdBrando May 6, 2019
c638d47
fix bug
ColdBrando May 6, 2019
c1dfc3e
fix bug
ColdBrando May 6, 2019
81475d9
fix bug
ColdBrando May 6, 2019
99fb029
fix bug
ColdBrando May 6, 2019
72db7fb
fix bug
ColdBrando May 6, 2019
f3161ea
fix bug
ColdBrando May 6, 2019
63e4666
replace placeHolder
ColdBrando May 6, 2019
47c7a9f
fix category image
ColdBrando May 6, 2019
a287b8f
fix bug
ColdBrando May 6, 2019
3d1f203
fix bug
ColdBrando May 6, 2019
8b1e943
fix bug
ColdBrando May 6, 2019
91d6883
fix bug
ColdBrando May 6, 2019
daa9196
fix bug
ColdBrando May 6, 2019
2ed4d3b
fix bug
ColdBrando May 6, 2019
ba630b9
fix bug
ColdBrando May 6, 2019
287ddd4
fix bug
ColdBrando May 6, 2019
4920052
fix bug
ColdBrando May 6, 2019
d706ec8
fix bug
ColdBrando May 6, 2019
c7a1c6c
fix bug
ColdBrando May 6, 2019
ee56923
fix bug
ColdBrando May 6, 2019
c199db7
add home category
ColdBrando May 7, 2019
2b539a7
fix bug
ColdBrando May 7, 2019
2aa82bc
fix bug
ColdBrando May 7, 2019
e510a59
fix bug
ColdBrando May 7, 2019
4f2b54b
fix bug
ColdBrando May 7, 2019
ea05231
更换图标
May 7, 2019
f458cc7
重新生成.g文件
May 7, 2019
a226904
修改我的页面间距
May 7, 2019
ae66903
fix bug
ColdBrando May 8, 2019
efb0a58
Merge remote-tracking branch 'origin/master'
ColdBrando May 8, 2019
d7a98ef
feat: add sms time countDown
ColdBrando May 8, 2019
edc464d
fix bug
ColdBrando May 8, 2019
44fad2b
add error status widget
ColdBrando May 8, 2019
0d37aa2
fix snapError
ColdBrando May 8, 2019
c0c89dd
add 401 code check
ColdBrando May 8, 2019
52a5535
新增VIP和我的钱包页
May 8, 2019
003f8e0
Merge remote-tracking branch 'origin/master'
May 8, 2019
3fc48f4
delete
ColdBrando May 9, 2019
3e45031
1
ColdBrando May 9, 2019
e095793
Merge pull request #2 from Bistua/feature_userinfo
ColdBrando May 9, 2019
b652337
Merge pull request #3 from Bistua/feature/wym_bloc
ColdBrando May 9, 2019
6e0a9de
提交 新版 我的页面
May 9, 2019
c64a2cf
调整"我的"页面
May 9, 2019
cee34a6
add promotion special http api
ColdBrando May 9, 2019
393fb24
Merge branch 'master' of https://github.com/Bistua/flutter_shop
ColdBrando May 9, 2019
5869e0c
add 首页优惠
ColdBrando May 9, 2019
d45693c
add special
ColdBrando May 9, 2019
b6e90b5
fix padding
ColdBrando May 9, 2019
83ae486
修正sku购物车bug和下单流程
May 9, 2019
97f590b
修改订单列表操作回调问题
MrWangChong May 10, 2019
d2433c5
修改订单确认组件版本
MrWangChong May 10, 2019
16b4d6e
update .gitignore
ColdBrando May 10, 2019
3f98ecd
fix home spacial padding
ColdBrando May 10, 2019
b50f10f
fix:home
ColdBrando May 10, 2019
3c90958
fix cart icon margin
ColdBrando May 10, 2019
d551ffe
fix order list go order
ColdBrando May 10, 2019
f9234a5
remove a progress
ColdBrando May 12, 2019
cd0a726
提交配置信息
May 11, 2019
84cd460
搜索模块修复
May 12, 2019
55215de
fix search page
ColdBrando May 12, 2019
56b5771
fix all error status
ColdBrando May 12, 2019
231f7d1
Merge remote-tracking branch 'origin/master'
ColdBrando May 12, 2019
e6cfa99
fix all error status
ColdBrando May 12, 2019
f35b0a5
fix product list position and padding
ColdBrando May 12, 2019
d06796c
session过期处理的方案:1.没有用户信息的数据是不允许打开任何和用户有关的东西,默认跳转至登录页面
May 12, 2019
2edcb5a
fix bugs
ColdBrando May 12, 2019
7b81f47
fix bugs
ColdBrando May 12, 2019
e1c3d8d
提交订单组件版本
May 12, 2019
dd39966
fix bugs
ColdBrando May 12, 2019
f59d7ba
fix bugs
ColdBrando May 12, 2019
7cd5e5d
add try catch
ColdBrando May 12, 2019
d6f55d8
fix padding
ColdBrando May 13, 2019
6593d34
fix home error widget
ColdBrando May 13, 2019
dedf838
划分购物车和立即下单
May 13, 2019
6e58849
提交配置版本
May 13, 2019
504ae0c
修正下单和购物车底层逻辑
May 14, 2019
5ee6fe9
收藏测试提交代码
MrWangChong May 14, 2019
db60994
replace android x
ColdBrando May 14, 2019
6e7bbfe
add qq 客服
ColdBrando May 14, 2019
1d3ae67
排序增加动效
ColdBrando May 14, 2019
b93c215
重新添加ignore
ColdBrando May 14, 2019
ed1d3d7
重新添加ignore
ColdBrando May 14, 2019
31c5a89
移除多余备份
ColdBrando May 14, 2019
a8bad50
vip充值成功
ColdBrando May 14, 2019
9453a10
提交地址
May 14, 2019
ff1ca5b
修正用户登录模块 ,vip模块
May 15, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 18 additions & 19 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


apply plugin: 'com.android.application'
android {
signingConfigs {
Expand All @@ -17,7 +15,7 @@ android {
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
signingConfig signingConfigs.config
multiDexEnabled true
}
Expand Down Expand Up @@ -46,41 +44,42 @@ android {
dependencies {
implementation project(':flutter')
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'androidx.multidex:multidex:2.0.0'
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
androidTestImplementation 'androidx.test:runner:1.1.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
//系统全局配置模块
implementation 'com.bristua.framework:appconfig:2.0.0-SNAPHOST'
implementation 'com.bristua.framework:component_manager:2.0.0-SNAPHOST'
//https模块
implementation 'com.bristua.framework:https:2.0.1-SNAPHOST'
//路由模块

implementation 'com.bristua.framework:brouter:2.0.0-SNAPHOST'
//配置通用api 能力
implementation 'com.bristua.framework:common_api:2.0.0-SNAPHOST'
//配置shareprefense
implementation 'com.bristua.framework:sp_manager:1.0.4-SNAPHOST'
//全局APP Context
implementation 'com.bristua.framework:context:2.0.0-SNAPHOST'
implementation 'com.ft.business.interceptor:response:1.1.2-SNAPHOST'
implementation 'com.ft.business.component:user_login:6.1.1-SNAPHOST'
implementation 'com.ft.business.interceptor:response:1.2.2-SNAPHOST'
implementation 'com.ft.business.component:user_login:6.1.4-SNAPHOST'
implementation 'com.ft.business.component:invite:1.0.0-SNAPHOST'
implementation 'com.ft.business.component:user_pay:1.1.2-SNAPHOST'
implementation 'com.ft.business.component:enviroment:1.0.8-SNAPHOST'
implementation 'com.ft.business.component:shop_cart:1.2.6-SNAPHOST'
implementation 'com.ft.business.component:shop_sku:1.0.5-SNAPHOST'
implementation 'com.ft.business.component:address:1.1.1-SNAPHOST'
implementation 'com.ft.business.component:order:1.0.9-SNAPHOST'
implementation 'com.ft.business.component:order_list:1.0.0-SNAPHOST'
implementation 'com.ft.business.component:shop_cart:1.4.6-SNAPHOST'
implementation 'com.ft.business.component:shop_sku:1.0.6-SNAPHOST'
implementation 'com.ft.business.component:address:1.1.4-SNAPHOST'
implementation 'com.ft.business.component:order:1.3.4-SNAPHOST'
implementation 'com.ft.business.component:order_list:1.0.3-SNAPHOST'
implementation 'com.ft.business.component:evaluate:1.0.1-SNAPHOST'
implementation 'com.ft.business.component:collection:1.0.1-SNAPHOST'
implementation 'com.ft.business.component:product:1.0.5-SNAPHOST'
implementation 'com.ft.business.component:rebate:1.0.8-SNAPHOST'
implementation 'com.ft.business.component:collection:1.0.2-SNAPHOST'
implementation 'com.ft.business.component:product:1.1.1-SNAPHOST'
implementation 'com.ft.business.component:rebate:1.0.9-SNAPHOST'
implementation 'com.bristua.framework:logger:1.0.4-SNAPHOST'
implementation 'com.bristua.framework:ssl_cert:1.0.5-SNAPHOST'
implementation 'com.ft.business.component:category:1.0.8-SNAPHOST'
implementation 'com.ft.business.component:category:1.0.9-SNAPHOST'
implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:5.3.1'
annotationProcessor 'com.nd.sdp.android.serviceloader:service-loader-compiler-app:1.0.9'
implementation 'com.nd.sdp.android.serviceloader:service-loader:1.0.9'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.ym.flutter.ftshop;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import androidx.test.InstrumentationRegistry;
import androidx.test.runner.AndroidJUnit4;

import org.junit.Test;
import org.junit.runner.RunWith;
Expand Down
25 changes: 14 additions & 11 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.bristua.flutter.ftshop">

<application
android:name="com.bristua.flutter.ftshop.AppApplication"
android:name=".AppApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:networkSecurityConfig="@xml/network_security_config"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<!--9.0问题-->
<uses-library android:name="org.apache.http.legacy" android:required="false" />
android:theme="@style/AppTheme"
>
<activity android:name=".WebActivity"></activity>
<!-- 9.0问题 -->
<uses-library
android:name="org.apache.http.legacy"
android:required="false" />

<activity
android:name="com.bristua.flutter.ftshop.VideoActivity"
android:name=".VideoActivity"
android:theme="@style/DarkAppTheme">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
Expand All @@ -26,17 +32,15 @@
android:host="video"
android:scheme="flutterhost" />
</intent-filter>

</activity>

<activity android:name="com.bristua.flutter.ftshop.MainActivity">
<activity android:name=".MainActivity"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<activity
android:name=".wxapi.WXEntryActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
Expand All @@ -46,8 +50,7 @@
android:name=".WXAwakenActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:exported="true"
android:theme="@android:style/Theme.Translucent.NoTitleBar" />
<!-- 微信支付回调 -->
android:theme="@android:style/Theme.Translucent.NoTitleBar" /> <!-- 微信支付回调 -->
<activity
android:name=".wxapi.WXPayEntryActivity"
android:exported="true"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.bristua.flutter.ftshop;
import android.app.Application;
import android.support.multidex.MultiDexApplication;
import androidx.multidex.MultiDexApplication;

import com.bristua.flutter.ftshop.app.AppVMachine;
import com.bristua.flutter.ftshop.exception.VMachineException;
Expand Down
15 changes: 4 additions & 11 deletions app/src/main/java/com/bristua/flutter/ftshop/MainActivity.java
Original file line number Diff line number Diff line change
@@ -1,22 +1,15 @@
package com.bristua.flutter.ftshop;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import androidx.annotation.Nullable;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;

import android.view.ViewGroup;
import android.widget.FrameLayout;

import com.alibaba.fastjson.JSON;
import com.bristua.flutter.ftshop.plugin.PluginDelegate;
import com.bristua.flutter.ftshop.plugin.PluginProvider;
import com.bristua.flutter.ftshop.wxapi.WXCode;
import com.bristua.framework.define.IFlutterResult;
import com.bristua.framework.router.BRouter;
import com.bristua.ft.component.CategoryConstant;
import com.bristua.ft.component.userlogin.UserLoginConstant;
import com.bristua.ft.protocol.Protocol;

import io.flutter.facade.Flutter;
import io.flutter.view.FlutterView;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.bristua.flutter.ftshop;

import android.support.v7.app.AppCompatActivity;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;

public class VideoActivity extends AppCompatActivity {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import androidx.annotation.Nullable;
import android.widget.Toast;

import com.alibaba.fastjson.JSON;
Expand Down
131 changes: 131 additions & 0 deletions app/src/main/java/com/bristua/flutter/ftshop/WebActivity.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
package com.bristua.flutter.ftshop;

import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.JsResult;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import android.widget.TextView;

public class WebActivity extends AppCompatActivity {
WebView webView;
String url = "";
TextView titleView;
LinearLayout mLayout;
ProgressBar progressBar;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_web);
url = getIntent().getStringExtra("url");
Log.e("web", url);
mLayout = findViewById(R.id.mLayout);
titleView = findViewById(R.id.titleView);
progressBar =findViewById(R.id.progressBar);
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
webView = new WebView(getApplicationContext());
webView.setLayoutParams(params);
mLayout.addView(webView);


//声明WebSettings子类
WebSettings webSettings = webView.getSettings();

//如果访问的页面中要与Javascript交互,则webview必须设置支持Javascript
webSettings.setJavaScriptEnabled(true);
// 若加载的 html 里有JS 在执行动画等操作,会造成资源浪费(CPU、电量)
// 在 onStop 和 onResume 里分别把 setJavaScriptEnabled() 给设置成 false 和 true 即可


//设置自适应屏幕,两者合用
webSettings.setUseWideViewPort(true); //将图片调整到适合webview的大小
webSettings.setLoadWithOverviewMode(true); // 缩放至屏幕的大小

//缩放操作
webSettings.setSupportZoom(true); //支持缩放,默认为true。是下面那个的前提。
webSettings.setBuiltInZoomControls(true); //设置内置的缩放控件。若为false,则该WebView不可缩放
webSettings.setDisplayZoomControls(false); //隐藏原生的缩放控件

//其他细节操作
webSettings.setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK); //关闭webview中缓存
webSettings.setAllowFileAccess(true); //设置可以访问文件
webSettings.setJavaScriptCanOpenWindowsAutomatically(true); //支持通过JS打开新窗口
webSettings.setLoadsImagesAutomatically(true); //支持自动加载图片
webSettings.setDefaultTextEncodingName("utf-8");//设置编码格式


webSettings.setCacheMode(WebSettings.LOAD_DEFAULT);//根据cache-control决定是否从网络上取数据。


webSettings.setDomStorageEnabled(true); // 开启 DOM storage API 功能
webSettings.setDatabaseEnabled(true); //开启 database storage API 功能
webSettings.setAppCacheEnabled(true);//开启 Application Caches 功能

webView.setWebChromeClient(new WebChromeClient() {
@Override
public void onReceivedTitle(WebView view, String title) {
titleView.setText(title);
}

@Override
public void onProgressChanged(WebView view, int newProgress) {
if (newProgress < 100) {
progressBar.setVisibility(View.VISIBLE);
progressBar.setProgress(newProgress);
} else {
progressBar.setVisibility(View.GONE);
}
}

@Override
public boolean onJsAlert(WebView view, String url, String message, final JsResult result) {
new AlertDialog.Builder(WebActivity.this)
.setTitle("JsAlert")
.setMessage(message)
.setPositiveButton("OK", (dialog, which) -> result.confirm())
.setCancelable(false)
.show();
return true;
}

@Override
public boolean onJsConfirm(WebView view, String url, String message, final JsResult result) {
new AlertDialog.Builder(WebActivity.this)
.setTitle("JsConfirm")
.setMessage(message)
.setPositiveButton("OK", (dialog, which) -> result.confirm())
.setNegativeButton("Cancel", (dialog, which) -> result.cancel())
.setCancelable(false)
.show();
// 返回布尔值:判断点击时确认还是取消
// true表示点击了确认;false表示点击了取消;
return true;
}


});
webView.loadUrl(url);

}

@Override
protected void onDestroy() {
if (webView != null) {
webView.loadDataWithBaseURL(null, "", "text/html", "utf-8", null);
webView.clearHistory();

((ViewGroup) webView.getParent()).removeView(webView);
webView.destroy();
webView = null;
}
super.onDestroy();
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package com.bristua.flutter.ftshop.app;

import android.app.Application;
import android.content.Context;
import android.os.Handler;
import android.support.annotation.Nullable;
import androidx.annotation.Nullable;

import com.bristua.bristua.sp.ShareprefenseImpl;
import com.bristua.flutter.ftshop.R;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.bristua.flutter.ftshop.exception;

import android.support.annotation.Nullable;
import androidx.annotation.Nullable;

/**
* 虚拟机异常
Expand Down
Loading