Commit 6b5d66a0 by dabai

http 替换成 https

parent 22fa4b63
......@@ -298,176 +298,7 @@
}
})
// $(".login-btn").on("click", function () {
// if(btnOk==true){
// if(sessionStorage.pay=="PAYPALPAY") {
// $.ajax({
// url:$ip+"/pay/getPayPreid.html",
// type:"post",
// data:{
// 'cid':"web_gw",
// 'os':"h5",
// lang:sessionStorage.lang,
// 'uid':sessionStorage.uid,
// 'product':"橙钻充值",
// 'country':"86",
// 'rid':rid,
// 'payType':sessionStorage.pay,
// 'payTypeSub':"NAVITE",
// 'amount':money*100,
// 'extend':"0",
// },
// success: function (msg) {
// var data =JSON.parse(msg);
//// $.cookie('oid',data.orderId,{expires:1});
// sessionStorage.oid=data.orderId;
// key=data.payInfo.key;
// var html1=[];
// html1+="<div style=' text-align: center;margin-top: 1.7rem;' class='paypalpay'>";
// html1+="<div id=paypal-button-container></div>";
// html1+="</div>";
// $(".paypal").html(html1);
// paypal.Button.render({
//
// env: 'production', // sandbox | production
//
// // PayPal Client IDs - replace with your own
// // Create a PayPal app: https://developer.paypal.com/developer/applications/create
// client: {
// production:key,
//// production: '<insert production client id>'
// },
// style: {
// color: 'gold',
// size: 'large',
// shape:'rect',
// locale:'zh_US',
//
// },
// // Show the buyer a 'Pay Now' button in the checkout flow
// commit: true,
//
// // payment() is called when the button is clicked
// payment: function(data, actions) {
//
//
//
// // Make a call to the REST api to create the payment
// return actions.payment.create({
// payment: {
// transactions: [
// {
// amount: { total: money, currency: 'USD' },
// custom: sessionStorage.oid,
// }
// ]
// }
// });
// },
//
// // onAuthorize() is called when the buyer approves the payment
// onAuthorize: function(data, actions) {
//
// // Make a call to the REST api to execute the payment
// return actions.payment.execute().then(function() {
// setInterval(function () {
// window.location.href='payend.html';
// },100)
//
// });
// }
//
// }, '#paypal-button-container');
// }
// })
// }
// else if(sessionStorage.pay=="ALIPAY"){
// $.ajax({
// url:$ip+"/pay/getPayPreid.html",
// type:"post",
// data:{
// 'cid':"web_gw",
// 'os':"h5",
// lang:sessionStorage.lang,
// 'uid':sessionStorage.uid,
// 'product':"橙钻充值",
// 'country':"86",
// 'rid':rid,
// 'payType':sessionStorage.pay,
// 'payTypeSub':"H5",
// 'amount':money*100,
// 'extend':"http://www.yabolive.tv/phonepay/payend.html",
// },
// success: function (msg) {
// console.log(msg);
// var data =JSON.parse(msg);
//// $.cookie('oid',data.orderId,{expires:1});
// sessionStorage.oid=data.orderId;
// var html=[];
// console.log(data);
// html+=data.payInfo.h5
// $(".alipay").html(html);
// }
// })
// }
// else if(sessionStorage.pay=="WECHATPAY"){
// $.ajax({
// url:$ip+"/pay/getPayPreid.html",
// type:"post",
// data:{
// 'cid':"web_gw",
// 'os':"h5",
// lang:sessionStorage.lang,
// 'uid':sessionStorage.uid,
// 'product':"橙钻充值",
// 'country':"86",
// 'rid':rid,
// 'payType':sessionStorage.pay,
// 'payTypeSub':"MWEB",
// 'amount':money*100,
// 'extend':"http://www.yabolive.tv/phonepay/payend.html",
// },
// success: function (msg) {
// var data = JSON.parse(msg);
//// $.cookie('oid',data.orderId,{expires:1});
// sessionStorage.oid=data.orderId;
// var url =data.payInfo.mweb_url;
// window.location.href=url;
// }
//
// })
// }
// else if(sessionStorage.pay=='MOLPAY'){
// $.ajax({
// url:"https://webserver.yabolive.net/pay/getPayPreid.html",
// type: "post",
// data: {
// 'cid':"web_gw",
// 'os':"h5",
// lang:sessionStorage.lang,
// "uid": sessionStorage.uid,
// "product": "橙钻货币充值",
// "country": "86",
// "rid": rid,
// "lang": 2,
// "payType": sessionStorage.pay,
// "payTypeSub": "H5",
// "amount": money*100,
// "extend": "0",
// "returnUrl":"http://www.firefly.live/phonepay/payend.html",
// },
// success: function (msg) {
// var data=JSON.parse(msg);
// console.log(data);
// window.location.href=data.payInfo.url;
// }
// })
// }
// }else{
// layer.msg(langList[langType].select);
// }
//
// })
$(".payfor-ul").on("click", function () {
if(sessionStorage.pay=='PAYPALPAY'){
$(".paypal").html('<button class="login-btn">下一步</button>')
......
......@@ -296,176 +296,7 @@
}
})
// $(".login-btn").on("click", function () {
// if(btnOk==true){
// if(sessionStorage.pay=="PAYPALPAY") {
// $.ajax({
// url:$ip+"/pay/getPayPreid.html",
// type:"post",
// data:{
// 'cid':"web_gw",
// 'os':"h5",
// lang:sessionStorage.lang,
// 'uid':sessionStorage.uid,
// 'product':"橙钻充值",
// 'country':"86",
// 'rid':rid,
// 'payType':sessionStorage.pay,
// 'payTypeSub':"NAVITE",
// 'amount':money*100,
// 'extend':"0",
// },
// success: function (msg) {
// var data =JSON.parse(msg);
//// $.cookie('oid',data.orderId,{expires:1});
// sessionStorage.oid=data.orderId;
// key=data.payInfo.key;
// var html1=[];
// html1+="<div style=' text-align: center;margin-top: 1.7rem;' class='paypalpay'>";
// html1+="<div id=paypal-button-container></div>";
// html1+="</div>";
// $(".paypal").html(html1);
// paypal.Button.render({
//
// env: 'production', // sandbox | production
//
// // PayPal Client IDs - replace with your own
// // Create a PayPal app: https://developer.paypal.com/developer/applications/create
// client: {
// production:key,
//// production: '<insert production client id>'
// },
// style: {
// color: 'gold',
// size: 'large',
// shape:'rect',
// locale:'zh_US',
//
// },
// // Show the buyer a 'Pay Now' button in the checkout flow
// commit: true,
//
// // payment() is called when the button is clicked
// payment: function(data, actions) {
//
//
//
// // Make a call to the REST api to create the payment
// return actions.payment.create({
// payment: {
// transactions: [
// {
// amount: { total: money, currency: 'USD' },
// custom: sessionStorage.oid,
// }
// ]
// }
// });
// },
//
// // onAuthorize() is called when the buyer approves the payment
// onAuthorize: function(data, actions) {
//
// // Make a call to the REST api to execute the payment
// return actions.payment.execute().then(function() {
// setInterval(function () {
// window.location.href='payend.html';
// },100)
//
// });
// }
//
// }, '#paypal-button-container');
// }
// })
// }
// else if(sessionStorage.pay=="ALIPAY"){
// $.ajax({
// url:$ip+"/pay/getPayPreid.html",
// type:"post",
// data:{
// 'cid':"web_gw",
// 'os':"h5",
// lang:sessionStorage.lang,
// 'uid':sessionStorage.uid,
// 'product':"橙钻充值",
// 'country':"86",
// 'rid':rid,
// 'payType':sessionStorage.pay,
// 'payTypeSub':"H5",
// 'amount':money*100,
// 'extend':"http://www.yabolive.tv/phonepay/payend.html",
// },
// success: function (msg) {
// console.log(msg);
// var data =JSON.parse(msg);
//// $.cookie('oid',data.orderId,{expires:1});
// sessionStorage.oid=data.orderId;
// var html=[];
// console.log(data);
// html+=data.payInfo.h5
// $(".alipay").html(html);
// }
// })
// }
// else if(sessionStorage.pay=="WECHATPAY"){
// $.ajax({
// url:$ip+"/pay/getPayPreid.html",
// type:"post",
// data:{
// 'cid':"web_gw",
// 'os':"h5",
// lang:sessionStorage.lang,
// 'uid':sessionStorage.uid,
// 'product':"橙钻充值",
// 'country':"86",
// 'rid':rid,
// 'payType':sessionStorage.pay,
// 'payTypeSub':"MWEB",
// 'amount':money*100,
// 'extend':"http://www.yabolive.tv/phonepay/payend.html",
// },
// success: function (msg) {
// var data = JSON.parse(msg);
//// $.cookie('oid',data.orderId,{expires:1});
// sessionStorage.oid=data.orderId;
// var url =data.payInfo.mweb_url;
// window.location.href=url;
// }
//
// })
// }
// else if(sessionStorage.pay=='MOLPAY'){
// $.ajax({
// url:"https://webserver.yabolive.net/pay/getPayPreid.html",
// type: "post",
// data: {
// 'cid':"web_gw",
// 'os':"h5",
// lang:sessionStorage.lang,
// "uid": sessionStorage.uid,
// "product": "橙钻货币充值",
// "country": "86",
// "rid": rid,
// "lang": 2,
// "payType": sessionStorage.pay,
// "payTypeSub": "H5",
// "amount": money*100,
// "extend": "0",
// "returnUrl":"http://www.firefly.live/phonepay/payend.html",
// },
// success: function (msg) {
// var data=JSON.parse(msg);
// console.log(data);
// window.location.href=data.payInfo.url;
// }
// })
// }
// }else{
// layer.msg(langList[langType].select);
// }
//
// })
$(".payfor-ul").on("click", function () {
if(sessionStorage.pay=='PAYPALPAY'){
$(".paypal").html('<button class="login-btn">下一步</button>')
......
......@@ -299,176 +299,7 @@
}
})
// $(".login-btn").on("click", function () {
// if(btnOk==true){
// if(sessionStorage.pay=="PAYPALPAY") {
// $.ajax({
// url:$ip+"/pay/getPayPreid.html",
// type:"post",
// data:{
// 'cid':"web_gw",
// 'os':"h5",
// lang:sessionStorage.lang,
// 'uid':sessionStorage.uid,
// 'product':"橙钻充值",
// 'country':"86",
// 'rid':rid,
// 'payType':sessionStorage.pay,
// 'payTypeSub':"NAVITE",
// 'amount':money*100,
// 'extend':"0",
// },
// success: function (msg) {
// var data =JSON.parse(msg);
//// $.cookie('oid',data.orderId,{expires:1});
// sessionStorage.oid=data.orderId;
// key=data.payInfo.key;
// var html1=[];
// html1+="<div style=' text-align: center;margin-top: 1.7rem;' class='paypalpay'>";
// html1+="<div id=paypal-button-container></div>";
// html1+="</div>";
// $(".paypal").html(html1);
// paypal.Button.render({
//
// env: 'production', // sandbox | production
//
// // PayPal Client IDs - replace with your own
// // Create a PayPal app: https://developer.paypal.com/developer/applications/create
// client: {
// production:key,
//// production: '<insert production client id>'
// },
// style: {
// color: 'gold',
// size: 'large',
// shape:'rect',
// locale:'zh_US',
//
// },
// // Show the buyer a 'Pay Now' button in the checkout flow
// commit: true,
//
// // payment() is called when the button is clicked
// payment: function(data, actions) {
//
//
//
// // Make a call to the REST api to create the payment
// return actions.payment.create({
// payment: {
// transactions: [
// {
// amount: { total: money, currency: 'USD' },
// custom: sessionStorage.oid,
// }
// ]
// }
// });
// },
//
// // onAuthorize() is called when the buyer approves the payment
// onAuthorize: function(data, actions) {
//
// // Make a call to the REST api to execute the payment
// return actions.payment.execute().then(function() {
// setInterval(function () {
// window.location.href='payend.html';
// },100)
//
// });
// }
//
// }, '#paypal-button-container');
// }
// })
// }
// else if(sessionStorage.pay=="ALIPAY"){
// $.ajax({
// url:$ip+"/pay/getPayPreid.html",
// type:"post",
// data:{
// 'cid':"web_gw",
// 'os':"h5",
// lang:sessionStorage.lang,
// 'uid':sessionStorage.uid,
// 'product':"橙钻充值",
// 'country':"86",
// 'rid':rid,
// 'payType':sessionStorage.pay,
// 'payTypeSub':"H5",
// 'amount':money*100,
// 'extend':"http://www.yabolive.tv/phonepay/payend.html",
// },
// success: function (msg) {
// console.log(msg);
// var data =JSON.parse(msg);
//// $.cookie('oid',data.orderId,{expires:1});
// sessionStorage.oid=data.orderId;
// var html=[];
// console.log(data);
// html+=data.payInfo.h5
// $(".alipay").html(html);
// }
// })
// }
// else if(sessionStorage.pay=="WECHATPAY"){
// $.ajax({
// url:$ip+"/pay/getPayPreid.html",
// type:"post",
// data:{
// 'cid':"web_gw",
// 'os':"h5",
// lang:sessionStorage.lang,
// 'uid':sessionStorage.uid,
// 'product':"橙钻充值",
// 'country':"86",
// 'rid':rid,
// 'payType':sessionStorage.pay,
// 'payTypeSub':"MWEB",
// 'amount':money*100,
// 'extend':"http://www.yabolive.tv/phonepay/payend.html",
// },
// success: function (msg) {
// var data = JSON.parse(msg);
//// $.cookie('oid',data.orderId,{expires:1});
// sessionStorage.oid=data.orderId;
// var url =data.payInfo.mweb_url;
// window.location.href=url;
// }
//
// })
// }
// else if(sessionStorage.pay=='MOLPAY'){
// $.ajax({
// url:"https://webserver.yabolive.net/pay/getPayPreid.html",
// type: "post",
// data: {
// 'cid':"web_gw",
// 'os':"h5",
// lang:sessionStorage.lang,
// "uid": sessionStorage.uid,
// "product": "橙钻货币充值",
// "country": "86",
// "rid": rid,
// "lang": 2,
// "payType": sessionStorage.pay,
// "payTypeSub": "H5",
// "amount": money*100,
// "extend": "0",
// "returnUrl":"http://www.firefly.live/phonepay/payend.html",
// },
// success: function (msg) {
// var data=JSON.parse(msg);
// console.log(data);
// window.location.href=data.payInfo.url;
// }
// })
// }
// }else{
// layer.msg(langList[langType].select);
// }
//
// })
$(".payfor-ul").on("click", function () {
if(sessionStorage.pay=='PAYPALPAY'){
$(".paypal").html('<button class="login-btn">下一步</button>')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment