This commit is contained in:
2020-09-01 17:26:05 +08:00
parent 1e89c362a3
commit 1d1176026e
7 changed files with 190 additions and 55 deletions

View File

@@ -68,6 +68,7 @@
<!-- </intent-filter> -->
</activity>
<activity android:name=".view.webview.XfiveWebActivity" />
<activity android:name=".view.webview.WebActivitytwo" />
<activity
android:name=".main.activity.mine.MessageNoticeActivity"
android:screenOrientation="portrait" />

View File

@@ -1,53 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>Document</title>
<meta name="Generator" content="Cocoa HTML Writer">
<meta name="CocoaVersion" content="1894.6">
<style type="text/css">
li.li1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px 'Songti SC'; color: #000000}
ul.ul1 {list-style-type: disc}
</style>
</head>
<body>
<ul class="ul1">
<li class="li1">七月七尊重并保护所有使用服务用户的个人隐私权。为了给您提供更准确、更有个性化的服务,七月七会按照本隐私权政策的规定使用和披露您的个人信息。但七月七将以高度的勤勉、审慎义务对待这些信息。除本隐私权政策另有规定外,在未征得您事先许可的情况下,七月七不会将这些信息对外披露或向第三方提供。七月七会不时更新本隐私权政策。 您在同意七月七服务使用协议之时,即视为您已经同意本隐私权政策全部内容。本隐私权政策属于七月七服务使用协议不可分割的一部分。<span class="Apple-converted-space"> </span></li>
<li class="li1">1. 适用范围<span class="Apple-converted-space"> </span></li>
<li class="li1">a) 在您注册七月七帐号时,您根据七月七要求提供的个人注册信息;<span class="Apple-converted-space"> </span></li>
<li class="li1">b) 在您使用七月七网络服务或访问七月七平台网页时七月七自动接收并记录的您的浏览器和计算机上的信息包括但不限于您的IP地址、浏览器的类型、使用的语言、访问日期和时间、软硬件特征信息及您需求的网页记录等数据<span class="Apple-converted-space"> </span></li>
<li class="li1">c)七月七通过合法途径从商业伙伴处取得的用户个人数据。<span class="Apple-converted-space"> </span></li>
<li class="li1">您了解并同意,以下信息不适用本隐私权政策:<span class="Apple-converted-space"> </span></li>
<li class="li1">a) 您在使用七月七平台提供的搜索服务时输入的关键字信息;<span class="Apple-converted-space"> </span></li>
<li class="li1">b) 七月七收集到的您在七月七发布的有关信息数据,包括但不限于参与活动、成交信息及评价详情;<span class="Apple-converted-space"> </span></li>
<li class="li1">c) 违反法律规定或违反七月七规则行为及家捷送已对您采取的措施。<span class="Apple-converted-space"> </span></li>
<li class="li1">2. 信息使用<span class="Apple-converted-space"> </span></li>
<li class="li1">a)七月七不会向任何无关第三方提供、出售、出租、分享或交易您的个人信息,除非事先得到您的许可,或该第三方和七月七(含七月七关联公司)单独或共同为您提供服务,且在该服务结束后,其将被禁止访问包括其以前能够访问的所有这些资料。<span class="Apple-converted-space"> </span></li>
<li class="li1">b)七月七亦不允许任何第三方以任何手段收集、编辑、出售或者无偿传播您的个人信息。任何七月七平台用户如从事上述活动,一经发现,七月七有权立即终止与该用户的服务协议。<span class="Apple-converted-space"> </span></li>
<li class="li1">c) 为服务用户的目的,七月七可能通过使用您的个人信息,向您提供您感兴趣的信息,包括但不限于向您发出产品和服务信息,或者与七月七合作伙伴共享信息以便他们向您发送有关其产品和服务的信息(后者需要您的事先同意)。<span class="Apple-converted-space"> </span></li>
<li class="li1">3. 信息披露<span class="Apple-converted-space"> </span></li>
<li class="li1">在如下情况下,七月七将依据您的个人意愿或法律的规定全部或部分的披露您的个人信息:<span class="Apple-converted-space"> </span></li>
<li class="li1">a) 经您事先同意,向第三方披露;<span class="Apple-converted-space"> </span></li>
<li class="li1">b) 为提供您所要求的产品和服务,而必须和第三方分享您的个人信息;<span class="Apple-converted-space"> </span></li>
<li class="li1">c) 根据法律的有关规定,或者行政或司法机构的要求,向第三方或者行政、司法机构披露;</li>
<li class="li1">d) 如您出现违反中国有关法律、法规或者七月七服务协议或相关规则的情况,需要向第三方披露; <span class="Apple-converted-space"> </span></li>
<li class="li1">e) 如您是适格的知识产权投诉人并已提起投诉,应被投诉人要求,向被投诉人披露,以便双方处理可能的权利纠纷;</li>
<li class="li1">f) 在七月七平台上创建的某一交易中,如交易任何一方履行或部分履行了交易义务并提出信息披露请求的,七月七有权决定向该用户提供其交易对方的联络方式等必要信息,以促成交易的完成或纠纷的解决。 <span class="Apple-converted-space"> </span></li>
<li class="li1">g) 其它七月七根据法律、法规或者网站政策认为合适的披露。 <span class="Apple-converted-space"> </span></li>
<li class="li1">4. 信息存储和交换 <span class="Apple-converted-space"> </span></li>
<li class="li1">七月七收集的有关您的信息和资料将保存在七月七及(或)其关联公司的服务器上,这些信息和资料可能传送至您所在国家、地区或七月七收集信息和资料所在地的境外并在境外被访问、存储和展示。<span class="Apple-converted-space"> </span></li>
<li class="li1">5. Cookie的使用<span class="Apple-converted-space"> </span></li>
<li class="li1">a) 在您未拒绝接受cookies的情况下七月七会在您的计算机上设定或取用cookies以便您能登录或使用依赖于cookies的七月七平台服务或功能。七月七使用cookies可为您提供更加周到的个性化服务包括推广服务。<span class="Apple-converted-space"> </span></li>
<li class="li1">b) 您有权选择接受或拒绝接受cookies。您可以通过修改浏览器设置的方式拒绝接受cookies。但如果您选择拒绝接受cookies则您可能无法登录或使用依赖于cookies的七月七网络服务或功能。<span class="Apple-converted-space"> </span></li>
<li class="li1">c) 通过七月七所设cookies所取得的有关信息将适用本政策。 <span class="Apple-converted-space"> </span></li>
<li class="li1">6. 信息安全 <span class="Apple-converted-space"> </span></li>
<li class="li1">a) 七月七帐号均有安全保护功能,请妥善保管您的用户名及密码信息。七月七将通过对用户密码进行加密等安全措施确保您的信息不丢失,不被滥用和变造。尽管有前述安全措施,但同时也请您注意在信息网络上不存在“完善的安全措施”。 <span class="Apple-converted-space"> </span></li>
<li class="li1">b) 在使用七月七网络服务进行网上交易时,您不可避免的要向交易对方或潜在的交易对方披露自己的个人信息,如联络方式或者邮政地址。请您妥善保护自己的个人信息,仅在必要的情形下向他人提供。如您发现自己的个人信息泄密,尤其是七月七用户名及密码发生泄露,请您立即联络七月七客服,以便七月七采取相应措施。</li>
<li class="li1">7.本隐私政策的更改</li>
<li class="li1">(a)如果决定更改隐私政策,我们会在本政策中、本公司网站中以及我们认为适当的位置发布这些更改,以便您了解我们如何收集、使用您的个人信息,哪些人可以访问这些信息,以及在什么情况下我们会透露这些信息。</li>
<li class="li1">(b)本公司保留随时修改本政策的权利,因此请经常查看。如对本政策作出重大更改,本公司会通过网站通知的形式告知。</li>
<li class="li1">方披露自己的个人信息,如联络方式或者邮</li>
</ul>
</body>
</html>

View File

@@ -74,7 +74,6 @@ public class QuestionsFragment extends BaseTreeFragment<QuestionsContract.View,
@Override
protected int getFragmentLayoutId() {
return R.layout.fragment_questions;
}
@Override

View File

@@ -18,6 +18,7 @@ import com.fenghoo.seven.main.my.entity.loginInfoBean;
import com.fenghoo.seven.utils.GlideTools;
import com.fenghoo.seven.utils.ToolsUtils;
import com.fenghoo.seven.utils.checkVersionsUtils.ProfileSpUtils;
import com.fenghoo.seven.view.webview.WebActivitytwo;
import com.fenghoo.seven.view.webview.XfiveWebActivity;
import com.fenghoo.seven.widget.CircleImageView;
import com.fenghoo.seven.widget.ItemView;
@@ -157,7 +158,10 @@ public class MyFragment
switch (view.getId()) {
case R.id.item_my_twitter:
XfiveWebActivity.runActivity(getActivity(), "隐私政策", "http://www.fenghoo.cn/public/statement/statement");
XfiveWebActivity.runActivity(getActivity(), "隐私政策", "http://www.fenghoo.cn/public/statement/7");
// XfiveWebActivity.runActivity(getActivity(), "隐私政策", "http://192.168.1.3/public/statement/statement");
// WebActivitytwo.runActivity(getActivity(), "隐私政策", "http://192.168.1.3/public/statement/statement");
// webView.loadUrl("file:///android_asset/h5Text0.html"); //加载assets文件中的H5页面
break;
}

View File

@@ -0,0 +1,106 @@
package com.fenghoo.seven.view.webview;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.fenghoo.seven.R;
import com.fenghoo.seven.base.BaseActivity;
public class WebActivitytwo extends BaseActivity implements View.OnClickListener {
public final static String URL = "url";
public final static String TITLE = "title";
private WebView webView;
private ProgressBar pb;
private RelativeLayout mLayTopLeftTv;
private TextView mLayTopTitle;
private TextView mRight;
private ImageView mIvCode;
private ProgressBar mPb;
private WebView mWebView;
public static void runActivity(Context context, String title, String url) {
Intent intent = new Intent(context, WebActivitytwo.class);
intent.putExtra(URL, url);
intent.putExtra(TITLE, title);
context.startActivity(intent);
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_webtwo);
String url = getIntent().getStringExtra(URL);
String title = getIntent().getStringExtra(TITLE);
initView();
pb.setMax(100);
WebSettings webSettings = webView.getSettings();
webSettings.setDomStorageEnabled(true);//主要是这句
webSettings.setJavaScriptEnabled(true);//启用js
webSettings.setBlockNetworkImage(false);//解决图片不显示
webSettings.setJavaScriptCanOpenWindowsAutomatically(true);
webSettings.setLoadsImagesAutomatically(true);
webSettings.setAppCacheEnabled(true);
webSettings.setCacheMode(WebSettings.LOAD_DEFAULT);
// webView.getSettings().setJavaScriptEnabled(true);
webSettings.setSupportZoom(true);
webSettings.setBuiltInZoomControls(true);
webView.setWebChromeClient(new WebChromeClient() {
@Override
public void onProgressChanged(WebView view, int newProgress) {
pb.setProgress(newProgress);
if (newProgress >= 100) {
pb.setVisibility(View.GONE);
}
}
});
webView.setWebViewClient(new WebViewClient() {
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
view.loadUrl(url);
return true;
}
});
webView.loadUrl(url);
}
private void initView() {
webView = (WebView) findViewById(R.id.webView);
webView.setOnClickListener(this);
pb = (ProgressBar) findViewById(R.id.pb);
mLayTopLeftTv = (RelativeLayout) findViewById(R.id.layTop_left_tv);
mLayTopLeftTv.setOnClickListener(this);
mLayTopTitle = (TextView) findViewById(R.id.layTop_title);
mRight = (TextView) findViewById(R.id.right);
mIvCode = (ImageView) findViewById(R.id.iv_code);
mPb = (ProgressBar) findViewById(R.id.pb);
mWebView = (WebView) findViewById(R.id.webView);
mLayTopTitle.setText("云观店");
}
@Override
public void onClick(View v) {
switch (v.getId()) {
default:
break;
case R.id.webView:
break;
case R.id.layTop_left_tv:
finish();
break;
}
}
}

View File

@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2016 jeasonlzy(廖子尧)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@android:id/background">
<shape>
<gradient
android:angle="270"
android:centerColor="#ff5a5d5a"
android:centerY="0.75"
android:endColor="#ff747674"
android:startColor="#ff9d9e9d"/>
</shape>
</item>
<item android:id="@android:id/secondaryProgress">
<clip>
<shape>
<gradient
android:angle="270"
android:centerColor="#a046801b"
android:centerY="0.75"
android:endColor="#a046c01b"
android:startColor="#a046c01b"/>
</shape>
</clip>
</item>
<item android:id="@android:id/progress">
<clip>
<shape>
<gradient
android:angle="270"
android:centerColor="#46bb1b"
android:centerY="0.75"
android:endColor="#46cc1b"
android:startColor="#46cc1b"/>
</shape>
</clip>
</item>
</layer-list>

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<include layout="@layout/title_top" />
<ProgressBar
android:id="@+id/pb"
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:indeterminate="false"
android:minHeight="3dp"
android:progressDrawable="@drawable/progress_bar_states"/>
<WebView
android:id="@+id/webView"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</LinearLayout>