123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <!-- <meta name="viewport" content="width=device-width,initial-scale=1"> -->
- <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
- <meta content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;" name="viewport">
- <meta content="yes" name="apple-mobile-web-app-capable">
- <meta content="black" name="apple-mobile-web-app-status-bar-style">
- <meta content="telephone=no" name="format-detection">
- <link rel="stylesheet" href="../wy/css/base.css" />
- <link rel="stylesheet" href="../wy/css/pagerz.css" />
- <script type="text/javascript" src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
- <script type="text/javascript" src="../wy/js/tuil.js?tl=201905101440"></script>
- <style>
- #major {
- background: url(../wy/img/btnBg.png) no-repeat;
- }
-
- .main {
- padding: 0 0 3rem 0;
- box-sizing: border-box;
- width: 100%;
- background: url(../wy/img/bg_20190304.jpg);
- background-repeat: repeat-y;
- background-size: 100% 100%;
- }
-
- iframe {
- /*position:absolute;*/
- position: fixed;
- top: 0;
- margin: 0;
- padding: 0;
- left: 0;
- width: 100%;
- height: 100%;
- -webkit-overflow-scrolling: touch;
- border: 0px;
- }
-
- .gx {
- display: inline-block;
- color: #bcbcbc;
- margin-top: 1rem;
- font-size: 0.875rem;
- margin-top: 0px;
- margin-bottom: 16px;
- margin-left: 20px;
- }
-
- .gx input {
- width: 0.8rem;
- height: 0.8rem;
- appearance: none;
- -webkit-appearance: none;
- border-radius: 50%;
- margin-right: 0.375rem;
- padding: 0;
- border: 2px solid #ffffff;
- pointer-events: none;
- vertical-align: middle;
- }
-
- .index_wrap {
- font-size: 0.875rem;
- }
-
- .tips_header {
- background: url(../wy/img/noticeBg.png) no-repeat;
- background-size: 100% 100%;
- padding: 1rem 0;
- }
-
- .info {
- color: #FFF;
- font-size: 0.75rem;
- text-align: center;
- }
-
- .info a {
- font-size: 1rem;
- color: #d42ac3;
- }
-
- checked .chose_yes {
- background: #d42ac3;
- }
-
- checked .chose_no {
- background: #bcbcbc;
- }
-
- .alab {
- text-decoration: none
- }
- </style>
- <title>网易娱乐免流包9元6G专属流量 网易游戏享不停</title>
- </head>
- <body id="bo">
- <input type="hidden" id="useraccount_wy" value="" />
- <input type="hidden" id="fog_wy" />
- <input type="hidden" id="sendsms_order_wy" />
- <div class="main">
- <div class="banner" style="margin-bottom: 20px;">
- <img src="./img/bg_3.png" />
- </div>
- <!--
- <div class="gx">
- <input type="checkbox" checked="checked" class="chose_yes"/>我已阅读下方服务说明
- </div>
- -->
- <div class="btn122">
- <input type="button" id="major" value="立即开通" class="btn">
- </div>
- <div class="line"></div>
- <div class="tips">
- <script type="text/javascript">
- if (getUrlParam("use") != "") {
- document.write("<p class='info'>若您已订购,请<a onclick=\"gotoUrl('wy/activate')\">点击激活</a></p>");
- }
- </script>
- <div class="tips_header">
- <span>温馨提示</span>
- </div>
- <ul>
- <li class="tips_item">
- <div class="num">1.</div> <span>符合订购约定的中国联通手机4G、5G(除4G冰激凌套餐、4G、5G冰激凌套餐副卡等)用户订购,智慧沃家成员用户、主副卡用户订购该产品,仅限该成员使用,其他成员不可共享。手机套餐中流量资费、流量使用规则另有规定的按照手机套餐执行;</span></li>
- <li class="tips_item">
- <div class="num">2.</div> <span>定向流量适用范围包含:成功订购且已激活的用户,仅限当月访问网易游戏系列《决战!平安京》《非人学园》APP产生的国内定向流量;</span></li>
- <li class="tips_item">
- <div class="num">3.</div> <span>定向流量适用范围不包含:下载游戏、更新游戏、游戏内语音系统、游戏内各类广告图、浏览游戏内置网页(攻略等地方)等,观看直播、上传和下载第三方视频、浏览客户端内第三方链接、广告内容(广告的视频、图片、文字);</span></li>
- <li class="tips_item">
- <div class="num">4.</div> <span>产品资费9元/月,按自然月扣费,订购成功后立即生效,次月自动续订;如需退订该产品,可在本退订页面手动退订,退订后次月生效,流量可使用到当月月末,退订当月不可重复订购;</span></li>
- <li class="tips_item">
- <div class="num">5.</div> <span>达量限速套餐用户订购当前定向流量产品,包内定向流量不提升原套餐限速阈值和网速,不能作为限速后解限的加速包使用,依然执行基础套餐限速阈值的约定。</span></li>
- <li class="tips_item">
- <div class="num">6.</div> <span>请在UNINET、3GNET 、WONET手机接入点环境下访问使用,其他接入点将无法正常使用定向流量;</span></li>
- <li class="tips_item">
- <div class="num">7.</div> <span>如您已成功订购流量包,点此<a id="tiu" style="color: #266cd6">退订</a>;</span></li>
- <li class="tips_item">
- <div class="num">8.</div> <span>关于产品使用过程中有任何疑问可咨询联通客服:10010;</span></li>
- <li class="tips_item">
- <div class="num">9.</div> <span>对我们有任何意见和建议,点此<a class="alab" href="https://account.bol.wo.cn/v2/feedback?clientId=directflow2018072301" style="color: #266cd6">反馈</a>;</span></li>
- </ul>
- </div>
- </div>
- </body>
- <script>
- $('#major').unbind('click').on('click',
- function() {
- if (getUrlParam("use") == "") {
- alert("未获取到账户信息,无法订购!")
- return ""; //无账户信息时无法订购
- }
- $("#major").attr('disabled', true);
- //$("body").css("overflow", "hidden");
- var $iframe = $('<iframe id="uniauthframe" src="https://cap.chinaunicom.cn/CAP-AUTH/?_=148040518646"></iframe>')
- var params = {
- "PRODUCT_ID": "6500001800",
- "PRODUCT_NAME": "网易互娱定向流量包",
- "PRODUCT_PRICE": "9.00元",
- "CLIENT_ID": "",
- "CLIENT": "3",
- "SERVICE_ID": "",
- "AUTH_NO": "",
- "CLIENT_SECRET": "",
- "VERSION": "1.0",
- "SERVICE_PHONE": "",
- "THEME": "",
- "PRODUCT_BASE": "0",
- "PRODUCT_TYPE": "1"
- }
- $iframe
- .on(
- 'load',
- function() {
- $
- .ajax({
- url: getRootPath() + "-s1api" + "/ini/clientsecret",
- dataType: "JSON",
- method: "GET",
- success: function(data) {
- params.CLIENT_ID = data.client_id;
- params.AUTH_NO = data.auth_no;
- params.CLIENT_SECRET = data.client_secret;
- $('#uniauthframe')[0].contentWindow
- .postMessage(
- JSON
- .stringify(params),
- "https://cap.chinaunicom.cn/CAP-AUTH/")
- }
- })
- })
- $('body').append($iframe);
- //监听统一认证结果
- window.addEventListener('message', function(e) {
- var data = JSON.parse(e.data);
- $('html,body').addClass('ovfHiden');
- switch (data.RSP.RSP_CODE) {
- case "0000": //处理成功
- $('iframe').remove();
- order(data, 'wy');
- break;
- case "0001": //auth_no无效 (入参流水)
- $("#major").attr('disabled', false);
- break;
- case "0003": //client_id不存在 (注册id存在问题)
- $("#major").attr('disabled', false);
- break;
- case "4444": //服务暂时不可用(系统忙/系统队列满)
- $("#major").attr('disabled', false);
- break;
- case "9001": //关闭H5认证页面
- $("#major").attr('disabled', false);
- $('iframe').remove();
- break;
- }
- }, false);
- })
- $('#tiu').unbind('click').on('click', function() {
- showCancelReasonPage().done(function(cancelReason) {
- doShowCancelPage(cancelReason)
- })
- })
- function showCancelReasonPage() {
- var reasonUrl;
- var baseUrl;
- if (window.location.href.indexOf("https://800.wo.cn/orderchannel") >= 0) {
- reasonUrl = "https://800.wo.cn/orderchannel/public/libs/cancelreason/index.html";
- baseUrl = "https://800.wo.cn/";
- } else if (window.location.href.indexOf("https://800.wo.cn/festivalchannel") >= 0) {
- reasonUrl = "https://800.wo.cn/festivalchannel/public/libs/cancelreason/index.html";
- baseUrl = "https://800.wo.cn/";
- } else if (window.location.href.indexOf("http://localhost") >= 0) {
- reasonUrl = "http://localhost:8088/orderchannel/public/libs/cancelreason/index.html";
- baseUrl = "http://localhost:8088/";
- } else if (window.location.href.indexOf("http://127.0.0.1") >= 0) {
- reasonUrl = "http://127.0.0.1:8088/orderchannel/public/libs/cancelreason/index.html";
- baseUrl = "http://127.0.0.1:8088/";
- } else if (window.location.href.indexOf("http://100.0.4.69:3344") >= 0) {
- reasonUrl = "http://100.0.4.69:3344/orderchannel/public/libs/cancelreason/index.html";
- baseUrl = "http://100.0.4.69:3344/";
- } else if (window.location.href.indexOf("http://100.0.4.69:8282") >= 0) {
- reasonUrl = "http://100.0.4.69:8282/orderchannel/public/libs/cancelreason/index.html";
- baseUrl = "http://100.0.4.69:8282/";
- } else {
- reasonUrl = "https://operation1.bol.wo.cn/orderchannel/public/libs/cancelreason/index.html";
- baseUrl = "https://operation1.bol.wo.cn/";
- }
- window.$capoverlay = $('<div class="overlay" style="z-index: 0; background-color: rgba(0,0,0,0.4);"></div>');
- $capoverlay.appendTo($(document.body));
- $("body").css("overflow", "hidden");
- var $iframe;
- if ($('#reasonIframe').length >= 1) {
- $iframe = $('#reasonIframe').attr('src', reasonUrl);
- } else {
- $iframe = $('<iframe id="reasonIframe" src="' + reasonUrl + '"></iframe>');
- $('body').append($iframe);
- }
- $iframe.css({
- width: "100%",
- height: "100%",
- position: "fixed",
- top: 0,
- left: 0,
- margin: 0,
- padding: 0,
- "-webkit-overflow-scrolling": "touch",
- border: "0px",
- "z-index": 111,
- });
- var def = $.Deferred();
- function messageListener(event) {
- var data = JSON.parse(event.data);
- $iframe.remove();
- $capoverlay.remove();
- $("body").css("overflow", "auto");
- window.removeEventListener('message', messageListener);
- if (data.eventtype != 'close') {
- def.resolve(data)
- } else {
- def.reject(data)
- }
- }
- window.addEventListener('message', messageListener);
- return def;
- }
- function doShowCancelPage(cancelReason) {
- var k = JSON.stringify(cancelReason)
- window.localStorage.setItem('kye', k)
- gotoUrl('wy/cancel')
- }
- </script>
- <script src="//account.bol.wo.cn/static/js-sdk/wolog/WoAnalytics.js"></script>
- <script src="//account.bol.wo.cn/static/js-sdk/wolog/HtmlPageVisitor.js"></script>
- <script type="text/javascript" src="../wy/js/order.js"></script>
- <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
- <script type="text/javascript" src="../wy/js/wechatxc.min.js"></script>
- <script type="text/javascript">
- var vis = "2019/04/22/09/53-1"
- function show() {
- alert("vis=" + vis + "---use=" + getUrlParam("use"));
- }
- </script>
- </html>
|