1.3 KiB
1.3 KiB
云朵小店 (yunduoxd)
云朵小店店主端
Install the dependencies
yarn
# or
npm install
Start the app in development mode (hot-code reloading, error reporting, etc.)
quasar dev
Build the app for production
quasar build
Customize the configuration
See Configuring quasar.config.js.
解决http图片无法加载问题
修改jingcai-buyer-app/src-cordova/platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemWebViewEngine.java initWebViewSettings方法中添加如下
private void initWebViewSettings() {
webView.setInitialScale(0);
webView.setVerticalScrollBarEnabled(false);
// Enable JavaScript
final WebSettings settings = webView.getSettings();
settings.setJavaScriptEnabled(true);
settings.setJavaScriptCanOpenWindowsAutomatically(true);
settings.setLayoutAlgorithm(LayoutAlgorithm.NORMAL);
settings.setMixedContentMode(WebSettings.MIXED_CONTENT_COMPATIBILITY_MODE);
// **********这里开始添加如下三行代码
//允许混合内容 解决部分手机 加载不出https请求里面的http下的图片
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
settings.setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_ALLOW);
}
...
}