Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

libai / footsen

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • footsen
  • footseen
  • phonepay
  • applepay.html
Find file
Normal viewHistoryPermalink
applepay.html 25.9 KB
Newer Older
dabai's avatar
footseen h5 移植
6161a8cd
 
dabai committed 5 years ago
1 2 3
<!DOCTYPE html>
<html lang="en">

agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
	<meta content="telephone=no" name="format-detection">
	<meta name="wap-font-scale" content="no">
	<script src="../lib/fsize.js"></script>
	<script src="../lib/jquery-3.1.1.min.js"></script>
	<title></title>
	<link rel="stylesheet" href="../css/iosSelect2.css">
	<link rel="stylesheet" href="../css/base.css">
	<link rel="stylesheet" href="../css/fireflyPay.css?v='20191120'">
	<link rel="stylesheet" href="../css/background.css" />
	<style>
		.glyphicon {
			background: url(../img/right.png)no-repeat;
			background-size: 100% 100%;
			display: inline-block;
			width: 0.6rem;
			height: 0.6rem;
			margin-top: 0.4rem;
		}

		.big-zuan-box {
			background: #FFF0F7;
			position: relative;
			display: none;
			width: 9.04rem;
			height: 3.306rem;
			margin: 0 auto .666rem;
			overflow: hidden;
			border-radius: 0.32rem;
			-webkit-border-radius: 0.32rem;
			-moz-border-radius: 0.32rem;
		}

		.big-money {
			width: 100%;
			text-align: center;
			font-size: 0.666rem;
			color: #FF57A0;
			height: 1.2rem;
			line-height: 1.2rem;
			font-weight: bold;
			position: absolute;
			left: 0;
			top: .8rem;
		}

		.big-money img {
			width: 0.44rem;
			height: 0.506rem;
			vertical-align: middle;
			margin-top: -.1rem;
			margin-right: 0.066rem;
		}

		.L-En .g-credit-En {
			width: 5rem !important;
		}

		.L-En .g-Point-En {
			width: 4.4rem !important;
		}

		.L-En .g-member-En {
			width: 5.5rem !important;
		}

		.L-En .g-phone-En {
			width: 5.8rem !important;
		}

		.p-w {
			background: #FFF;
			padding-top: .707rem;
		}

		.apple-ul li {
			background: #FFF;
			margin-bottom: 0;
		}


		.apple-ul li.visapay img {
			width: auto;
			height: .8rem;
		}

		.apple-ul li.alipay img {
			width: 2.6rem;
		}

		.apple-ul li.molpay img {
			width: 2.3rem;
		}

		.apple-ul li.gash-Point img,
		.apple-ul li.gash-member img,
		.apple-ul li.gash-credit img,
		.apple-ul li.gash-phone img {
			width: 3.3rem;
		}

		.apple-ul li.gash-Point img {
			width: 3rem;
		}

		.apple-ul li.gash-member img {
			width: 3.4rem;
		}

		.apple-ul li.gash-credit img {
			width: 3.6rem;
		}

		.apple-ul li.gash-phone img {
			width: 3.8rem;
		}

		.apple-ul li.payatm img {
			width: 2.786rem;
		}

		.apple-ul li.gopay img {
			width: 4.106rem;
		}

		.apple-ul li.alfama img {
			width: 3.5rem;
		}

		.apple-ul li.paywallet img {
			width: 6rem;
		}

		.apple-ul li.gash-Point img.en {
			width: 5.5rem !important;
		}

		.apple-ul li.gash-member img.en {
			width: 5.5rem !important;
		}

		.apple-ul li.gash-credit img.en {
			width: 3.8rem !important;
		}

		.apple-ul li.gash-phone img.en {
			width: 8rem !important;
		}

		.apple-ul li.weipay img.en {
			width: 3.5rem;
		}

agan's avatar
添加h5支付
77bcf9af
 
agan committed 2 years ago
161 162 163 164 165 166
		.apple-ul li.danapay img,
		.apple-ul li.newgopay img,
		.apple-ul li.ovopay img {
			width: 2rem;
		}

agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237
		.userInfo {
			position: absolute;
			left: 0;
			width: 50%;
			top: 2.4rem;
			height: .733rem;
			line-height: .733rem;
			font-size: 0;
			overflow: hidden;
			text-overflow: ellipsis;
			white-space: nowrap;
		}

		.userInfo img {
			width: .533rem;
			height: .533rem;
			vertical-align: middle;
			margin-top: -.25rem;
			margin-left: .373rem;
			border-radius: 50%;
			-webkit-border-radius: 50%;
			-moz-border-radius: 50%;
		}

		.userInfo span {
			font-size: .3rem;
			color: #666;
			display: inline-block;
		}

		.userInfo .userName {
			color: #333;
			margin: 0 0.066133rem;
		}

		.siteInfo {
			position: absolute;
			right: .373rem;
			width: 3.8rem;
			top: 2.4rem;
			height: .733rem;
			line-height: .733rem;
			font-size: 0;
			overflow: hidden;
			text-overflow: ellipsis;
			white-space: nowrap;
			text-align: right;
			font-size: 0.32rem;
			color: #333;
			overflow: hidden;
			text-overflow: ellipsis;
			white-space: nowrap;
		}

		.siteInfo img {
			width: 0.213rem;
			height: 0.266rem;
			vertical-align: middle;
			margin-right: 0.066rem;
			margin-top: -.05rem;
		}

		.bigRecord {
			color: #333;
			font-size: 0.32rem;
			position: absolute;
			right: .3rem;
			top: .2rem;
		}

		.apple-ul li.linepay img {
dabai's avatar
footseen 台湾支付
591d7700
 
dabai committed 5 years ago
238 239
			width: 2.4rem;
		}
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
240 241

		.apple-ul li.jkopay img {
dabai's avatar
footseen 台湾支付
591d7700
 
dabai committed 5 years ago
242
			width: 2.4rem;
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
243

dabai's avatar
footseen 台湾支付
591d7700
 
dabai committed 5 years ago
244
		}
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
245 246

		.p-w .apple-ul li.wpay {
dabai's avatar
wpay 支付 去除
9c936b8a
 
dabai committed 5 years ago
247 248
			display: none !important;
		}
dabai's avatar
visa 储值
5525cec4
 
dabai committed 4 years ago
249

agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
250 251 252 253 254 255 256 257 258 259 260 261 262 263
		.ios-select-widget-box header.iosselect-header {
			background-color: #FFF;
		}

		.ios-select-widget-box header.iosselect-header a {
			color: #E53985;
		}

		.bigRecord {
			color: #333;
			font-size: 0.32rem;
			position: absolute;
			right: .3rem;
			top: .2rem;
dabai's avatar
visa 储值
5525cec4
 
dabai committed 4 years ago
264 265 266
		}

		.apple-ul li.newvisapay img {
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
267 268 269 270 271 272 273 274 275 276 277
			width: 2.4rem;
		}

		.apple-ul li.newvisapay img {
			width: auto;
			height: .6rem;
		}

		.p-w .apple-ul li.jkopay {
			display: none !important;
		}
agan's avatar
右上角客服圖標
c32702c4
 
agan committed 3 years ago
278

agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
279
		/* 暂时屏蔽visa */
agan's avatar
暂时屏蔽visa
edafad25
 
agan committed 2 years ago
280
		.newvisapay{
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
281
			display: none !important;
agan's avatar
暂时屏蔽visa
edafad25
 
agan committed 2 years ago
282
		}
agan's avatar
添加头部
78c2a71d
 
agan committed 2 years ago
283 284 285 286 287 288 289

		.mHead {
			width: 10rem;
			height: 1rem;
			position: relative;
			background: #fff;
			display: none;
agan's avatar
修改
44909d79
 
agan committed 2 years ago
290
			margin: 0 auto;
agan's avatar
添加头部
78c2a71d
 
agan committed 2 years ago
291 292 293 294 295
		}

		.closeBtn {
			width: 0.64rem;
			height: 0.64rem;
agan's avatar
添加文字
3433ca22
 
agan committed 2 years ago
296
			padding-left: 0.64rem;
agan's avatar
添加头部
78c2a71d
 
agan committed 2 years ago
297 298 299 300 301
			background: url(../img/back.png) no-repeat;
			background-size: contain;
			position: absolute;
			top: 0.18rem;
			left: 0.32rem;
agan's avatar
添加文字
3433ca22
 
agan committed 2 years ago
302
			font-size: 0.32rem;
agan's avatar
修改bug
9d0d1968
 
agan committed 2 years ago
303 304 305
			line-height: 0.64rem;
			;
			white-space: nowrap;
agan's avatar
添加头部
78c2a71d
 
agan committed 2 years ago
306 307 308 309 310 311 312
		}

		.closeBtn>a {
			width: 100%;
			height: 100%;
			display: block;
		}
agan's avatar
xg
870ef790
 
agan committed a year ago
313 314 315 316 317

		.apple-ul .payermax img{
			width: auto;
			height: 0.6rem;
		}
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
318 319 320 321
	</style>
</head>

<body>
agan's avatar
添加头部
78c2a71d
 
agan committed 2 years ago
322
	<div class="mHead">
agan's avatar
修改
5693e455
 
agan committed 2 years ago
323
		<div class="closeBtn"><a class="mClose" href="javascript:window.opener=null;window.open('','_self');window.close();">關閉</a>
agan's avatar
修改bug
9d0d1968
 
agan committed 2 years ago
324
		</div>
agan's avatar
添加头部
78c2a71d
 
agan committed 2 years ago
325
	</div>
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
326 327 328 329 330 331
	<div class="p-w">
		<div class='big-zuan-box'>
			<p class="big-money"><img src="../img/smallzuan.png" alt="">--</p>
			<div class="userInfo"></div>
			<div class="siteInfo"></div>
			<span class="bigRecord"></span>
dabai's avatar
footseen h5 移植
6161a8cd
 
dabai committed 5 years ago
332
		</div>
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
333 334 335 336 337
		<ul class="apple-ul"></ul>
	</div>

</body>
<script src="../js/iosSelect.js"></script>
agan's avatar
xg
9fcf98d0
 
agan committed a year ago
338
<script src="../lib/payLangchange.js?v=202405091637"></script>
agan's avatar
修改
6b64f518
 
agan committed 2 years ago
339
<script type="text/javascript" src="https://app.ixiulive.com/static/layer-v3.1.0/layer/layer.js"></script>
agan's avatar
xg
9fcf98d0
 
agan committed a year ago
340
<script src="../js/phonepay.js?v=202405091637"></script>
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
341 342 343
<script>
	$('title').text(langList[langType].paytitle);
	$('.bigRecord').text(langList[langType].payrecord);
agan's avatar
修改
0e2366d7
 
agan committed 2 years ago
344
	$('.mClose').html(langList[langType].close);
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374
	var $url = 'https://www.footseen.com/footseen';
	//var $url = 'http://ceshi.yabolive.tv/footseen'; 

	var country = {
		'AE': "WPAY",
		'AF': "WPAY",
		'DJ': "WPAY",
		'DZ': "WPAY",
		'EG': "WPAY",
		'ER': "WPAY",
		'IQ': "WPAY",
		'JO': "WPAY",
		'KM': "WPAY",
		'KW': "WPAY",
		'LB': "WPAY",
		'LY': "WPAY",
		'MA': "WPAY",
		'MR': "WPAY",
		'OM': "WPAY",
		'PS': "WPAY",
		'QA': "WPAY",
		'SA': "WPAY",
		'SD': "WPAY",
		'TD': "WPAY",
		'TN': "WPAY",
		'YE': "WPAY",
	}

	var bbb = location.href;
	var data = url_get_params(bbb)
agan's avatar
修改bug
43e9b87c
 
agan committed 2 years ago
375
	var mOs = data.os || 'WEB';
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
376

agan's avatar
右上角客服圖標
c32702c4
 
agan committed 3 years ago
377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392
	if (getRequest().appversion >= 7300) {
		$(".recording").hide();
		var obj = {
			"cid": 29,
			"reqCode": new Date().getTime(),
			"data": {
				"msg": "h5网页右上角显示图标",
				"info": [
					{
						"imgUrl": 'https://app.ixiulive.com/static/app/img/3_1.png?v=202204011725',
						"explain": langList[langType].upright4,
						"cid": "15",
						"reqCode": new Date().getTime(),
						"data": {
							"urls": [
								{
agan's avatar
修改
392edfb4
 
agan committed 3 years ago
393
									"url": $url + '/Nesting/recording/gem.html' + window.location.search,
agan's avatar
右上角客服圖標
c32702c4
 
agan committed 3 years ago
394 395 396 397 398
									"title": langList[langType].dew18,
									"rightBtnImageURL": '',
									"rightBtnClickURL": ''
								},
								{
agan's avatar
修改
392edfb4
 
agan committed 3 years ago
399
									"url": $url + '/Nesting/recording/dew.html' + window.location.search,
agan's avatar
右上角客服圖標
c32702c4
 
agan committed 3 years ago
400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426
									"title": langList[langType].dewExchangeTitle3,
									"rightBtnImageURL": '',
									"rightBtnClickURL": ''
								}
							],
							"select": 1,
							"titleColor": "",
							"titleSelectedColor": "",
							"titleBackground": '',

						}
					},
					{
						"imgUrl": 'https://app.ixiulive.com/static/app/img/kf.png',
						"explain": langList[langType].upright2,
						"cid": "4",
						"data": {
							"msg": langList[langType].upright7,
							'title': langList[langType].upright6,
							"customerLayer": "1",
							"uid": "1001",
							"face": "https://zhibocdn.yabolive.net/comm/img/appicon/yqzx_icon_v1.png?x-oss-process=image/resize,h_100,w_100",
							"nickname": langList[langType].upright6,
						}
					},

				]
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
427 428
			}
		}
agan's avatar
右上角客服圖標
c32702c4
 
agan committed 3 years ago
429 430
		var obj2 = JSON.stringify(obj);
		appCollaboration(obj2)
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
431 432
	}

dabai's avatar
footseen h5 移植
6161a8cd
 
dabai committed 5 years ago
433

agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
434
	sessionStorage.token = data.token;//k
dabai's avatar
footseen h5 移植
6161a8cd
 
dabai committed 5 years ago
435 436 437
	//    if(sessionStorage.kkk!='undefined')sessionStorage.uid = data.uid;
	//    //t
	//    sessionStorage.kkk = data.token;//k
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
438
	sessionStorage.appversion = data.appversion;
agan's avatar
添加头部
78c2a71d
 
agan committed 2 years ago
439 440 441
	if (data.os == 'h5') {
		$('.mHead').show();
	}
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465
	function url_get_params(url_path) {
		var url = url_path;
		var theRequest = new Object();
		if (url.indexOf("?") != -1) {
			var str = url.substr(url.indexOf("?") + 1);
			strs = str.split("&");
			for (var i = 0; i < strs.length; i++) {
				theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
			}
		}
		return theRequest;
	}
	var url = window.location.href;
	//   var strst = 'http://yabolive.com/archive/recharge.html?uid=1564864&pkg=ios.yabolive&version=100&lang=2';
	//   console.log(url.split('uid=')[1].split('&')[0]);
	var reg = /uid=([0-9]+)/;
	try {
		sessionStorage.uid = url.match(reg)[1];
		sessionStorage.bbb = url.match(reg)[1];
	} catch (error) {

	}
	//获取当前用户地区

agan's avatar
修改
44909d79
 
agan committed 2 years ago
466
	if (sessionStorage.appversion && sessionStorage.uid) {
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
467 468 469 470 471
		$(".big-zuan-box").show();
		$.ajax({
			url: $ip + '/user/getUserInfo.html',
			type: "post",
			data: {
agan's avatar
修改跳转
93ed1928
 
agan committed 2 years ago
472
				os: mOs,
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512
				cid: "web_gw",
				lang: sessionStorage.lang,
				uid: sessionStorage.uid,
				token: sessionStorage.token
			},
			success: function (msg) {
				var data = JSON.parse(msg)

				$(".big-money").html('<img src="../img/big-zuan.png" alt="">' + data.data.diamond);
				var str = '';
				str += '<img src="' + cdn + data.data.faceimg + '?x-oss-process=image/resize,w_81"/>';
				str += '<span class="userName">' + data.data.nickName + '</span>';
				str += '<span>(' + data.data.uid + ')</span>';
				$('.userInfo').html(str);
			}
		})
		$(".big-zuan-box span").on("click", function () {
			var obj = {
				"cid": 15,
				"reqCode": new Date().getTime(),
				"data": {
					"urls": [
						{
							"url": $url + '/Nesting/recording/consum.html' + window.location.search,
							"title": langList[langType].dewconsumTitle,
							"rightBtnImageURL": '',
							"rightBtnClickURL": ''
						},
						{
							"url": $url + '/Nesting/recording/money.html' + window.location.search,
							"title": langList[langType].dewmoneyTitle,
							"rightBtnImageURL": '',
							"rightBtnClickURL": ''
						}
					],
					"select": 1,
					"titleColor": "#808080",
					"titleSelectedColor": "#EA287E",
					"titleBackground": '#FFFFFF',

dabai's avatar
footseen h5 移植
6161a8cd
 
dabai committed 5 years ago
513 514
				}
			}
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
515 516 517 518 519 520 521 522 523 524 525 526 527 528 529
			console.log(obj)
			var obj2 = JSON.stringify(obj);
			appCollaboration(obj2);
		})
		getRegion();
	} else {
		getLangRegion('OTHER');
	}

	function getRegion() {
		$.ajax({
			type: "POST",
			url: $ip + "/setting/getCountryTranslation.html",
			async: true,
			data: {
agan's avatar
修改跳转
93ed1928
 
agan committed 2 years ago
530
				os: mOs,
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551
				cid: "web_gw",
				lang: sessionStorage.lang,
				uid: sessionStorage.uid,
				token: sessionStorage.token
			},
			success: function (data) {
				var res = JSON.parse(data);
				var code = '';
				var flag = false;

				$('.siteInfo').html('<img src="../img/site.png"/>' + res.countryName).attr('data-id', res.countryCode);

				if (res.countryCode == 'TW' || res.countryCode == 'MY' || res.countryCode == 'ID' || res.countryCode == 'IN') {
					code = res.countryCode
				} else if (!country[res.countryCode]) {
					code = 'OTHER';
				} else {
					code = 'WPAY';
				}
				getLangRegion(code)

dabai's avatar
footseen h5 移植
6161a8cd
 
dabai committed 5 years ago
552
			}
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
553 554 555
		});
	}
	function goPayDetail() {
agan's avatar
修改跳转
235d2efc
 
agan committed 2 years ago
556
		var mOsStr = data.osStr || getNavigatorStr();
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
557 558
		$(".gash-Point").on("click", function () {
			sessionStorage.pay = "GASHP99PAY";
agan's avatar
添加头部
78c2a71d
 
agan committed 2 years ago
559 560
			if (sessionStorage.uid != undefined) window.location.href = "gash-for.html" + window.location.search;
			else window.location.href = "login.html" + window.location.search;
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
561 562 563 564
			sessionStorage.select = 'COPGAM02';
		})
		$(".gash-member").on("click", function () {
			sessionStorage.pay = "GASHP99PAY";
agan's avatar
添加头部
78c2a71d
 
agan committed 2 years ago
565 566
			if (sessionStorage.uid != undefined) window.location.href = "gash-for.html" + window.location.search;
			else window.location.href = "login.html" + window.location.search;
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
567 568 569 570
			sessionStorage.select = 'COPGAM09';
		})
		$(".gash-credit").on("click", function () {
			sessionStorage.pay = "GASHP99PAY";
agan's avatar
添加头部
78c2a71d
 
agan committed 2 years ago
571 572
			if (sessionStorage.uid != undefined) window.location.href = "gash-for.html" + window.location.search;
			else window.location.href = "login.html" + window.location.search;
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
573 574 575 576
			sessionStorage.select = 'BNK82201';
		})
		$(".gash-phone").on("click", function () {
			sessionStorage.pay = "GASHP99PAY";
agan's avatar
添加头部
78c2a71d
 
agan committed 2 years ago
577
			window.location.href = "gash-phone.html" + window.location.search;
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
578 579 580 581 582
			//        sessionStorage.select='gashPhone';
		})

		$(".Paypal").on("click", function () {
			sessionStorage.pay = "PAYPALPAY";
agan's avatar
添加头部
78c2a71d
 
agan committed 2 years ago
583 584
			if (sessionStorage.uid != undefined) window.location.href = 'payfor-new.html' + window.location.search;
			else window.location.href = "login.html" + window.location.search;
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
585 586 587 588 589 590 591

		})
		$(".alipay").on("click", function () {
			//				sessionStorage.pay = 'TW_ALI_CNY_PAY'
			//				if(sessionStorage.uid != undefined)window.location.href ='https://www.firefly.live/footseen/phonepay/paymentAlipay.html?uid='+sessionStorage.uid+'&lang='+sessionStorage.lang+'&cidStr='+sessionStorage.cidStr+'&osStr='+getNavigatorStr();
			//				else window.location.href = 'login.html';
			sessionStorage.pay = "ALIPAY";
agan's avatar
添加头部
78c2a71d
 
agan committed 2 years ago
592 593
			if (sessionStorage.uid != undefined) window.location.href = "payfor-new.html" + window.location.search;
			else window.location.href = 'login.html' + window.location.search;
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
594 595 596
		})
		$(".weipay").on("click", function () {
			sessionStorage.pay = "WECHATPAY";
agan's avatar
修改跳转
235d2efc
 
agan committed 2 years ago
597
			if (sessionStorage.uid != undefined) window.location.href = 'http://web.yazhaiyabo.com/footseen/wechatpay/payfor-new.html?uid=' + sessionStorage.uid + '&token=' + sessionStorage.token + '&lang=' + sessionStorage.lang + '&pay=' + sessionStorage.pay + '&payStatus=' + sessionStorage.payStatus + '&cidStr=' + sessionStorage.cidStr + '&osStr=' + mOsStr + '&os=' + data.os;
agan's avatar
添加头部
78c2a71d
 
agan committed 2 years ago
598
			else window.location.href = 'login.html' + window.location.search;
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
599 600 601
		})
		$(".molpay").on("click", function () {
			sessionStorage.pay = "MOLPAY";
agan's avatar
添加头部
78c2a71d
 
agan committed 2 years ago
602 603
			if (sessionStorage.uid != undefined) window.location.href = "molpay.html" + window.location.search;
			else window.location.href = 'login.html' + window.location.search;
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
604 605 606 607 608
		})
		//payatm
		$('.payatm').on('click', function () {
			sessionStorage.pay = 'CODAPAY_PAYATM';
			sessionStorage.payType = '220';
agan's avatar
添加头部
78c2a71d
 
agan committed 2 years ago
609 610
			if (sessionStorage.uid != undefined) window.location.href = 'idpay.html' + window.location.search;
			else window.location.href = 'login.html' + window.location.search
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
611 612 613 614 615
		})
		//gopay
		$('.gopay').on('click', function () {
			sessionStorage.pay = 'CODAPAY_GOPAY';
			sessionStorage.payType = '227';
agan's avatar
添加头部
78c2a71d
 
agan committed 2 years ago
616 617
			if (sessionStorage.uid != undefined) window.location.href = 'idpay.html' + window.location.search;
			else window.location.href = 'login.html' + window.location.search
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
618 619 620 621 622
		})
		//alfama
		$('.alfama').on('click', function () {
			sessionStorage.pay = 'CODAPAY_ALFAMA';
			sessionStorage.payType = '221';
agan's avatar
添加头部
78c2a71d
 
agan committed 2 years ago
623 624
			if (sessionStorage.uid != undefined) window.location.href = 'idpay.html' + window.location.search;
			else window.location.href = 'login.html' + window.location.search
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
625 626 627 628 629
		})
		//paywallet
		$('.paywallet').on('click', function () {
			sessionStorage.pay = 'CODAPAY_PAYWALLET';
			sessionStorage.payType = '223';
agan's avatar
添加头部
78c2a71d
 
agan committed 2 years ago
630 631
			if (sessionStorage.uid != undefined) window.location.href = 'idpay.html' + window.location.search;
			else window.location.href = 'login.html' + window.location.search;
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
632 633 634 635 636
		})
		//wpay 阿拉伯支付
		$('.wpay').on('click', function () {
			sessionStorage.pay = "WPAY";
			sessionStorage.gofrom = data.gofrom;
agan's avatar
添加头部
78c2a71d
 
agan committed 2 years ago
637 638
			if (sessionStorage.uid != undefined) window.location.href = 'wpay.html' + window.location.search;
			else window.location.href = 'login.html' + window.location.search;
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
639 640 641 642
		})

		$('.visapay').on('click', function () {
			sessionStorage.pay = "PAYMENTWALL";
agan's avatar
修改跳转
235d2efc
 
agan committed 2 years ago
643
			if (sessionStorage.uid != undefined) window.location.href = 'https://firefly.live/footseen/phonepay/visapay.html?uid=' + sessionStorage.uid + '&lang=' + sessionStorage.lang + '&pay=' + sessionStorage.pay + '&cidStr=' + sessionStorage.cidStr + '&osStr=' + mOsStr + '&os=' + data.os;
agan's avatar
添加头部
78c2a71d
 
agan committed 2 years ago
644
			else window.location.href = 'login.html' + window.location.search;
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
645 646 647 648
		})
		//linepay
		$('.linepay').on('click', function () {
			sessionStorage.pay = 'LINE_PAY';
agan's avatar
修改跳转
235d2efc
 
agan committed 2 years ago
649
			if (sessionStorage.uid != undefined) window.location.href = 'https://firefly.live/footseen/phonepay/visapay.html?uid=' + sessionStorage.uid + '&lang=' + sessionStorage.lang + '&pay=' + sessionStorage.pay + '&cidStr=' + sessionStorage.cidStr + '&osStr=' + mOsStr + '&os=' + data.os;
agan's avatar
添加头部
78c2a71d
 
agan committed 2 years ago
650
			else window.location.href = 'login.html' + window.location.search;
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
651 652 653 654
		})
		//taiwanpay
		$('.taiwanpay').on('click', function () {
			sessionStorage.pay = 'TW_PAY';
agan's avatar
修改跳转
235d2efc
 
agan committed 2 years ago
655
			if (sessionStorage.uid != undefined) window.location.href = 'https://firefly.live/footseen/phonepay/visapay.html?uid=' + sessionStorage.uid + '&lang=' + sessionStorage.lang + '&pay=' + sessionStorage.pay + '&cidStr=' + sessionStorage.cidStr + '&osStr=' + mOsStr + '&os=' + data.os;
agan's avatar
添加头部
78c2a71d
 
agan committed 2 years ago
656
			else window.location.href = 'login.html' + window.location.search;
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
657 658 659 660
		})
		//jkopay
		$('.jkopay').on('click', function () {
			sessionStorage.pay = 'JKO_PAY';
agan's avatar
修改跳转
235d2efc
 
agan committed 2 years ago
661
			if (sessionStorage.uid != undefined) window.location.href = 'https://firefly.live/footseen/phonepay/visapay.html?uid=' + sessionStorage.uid + '&lang=' + sessionStorage.lang + '&pay=' + sessionStorage.pay + '&cidStr=' + sessionStorage.cidStr + '&osStr=' + mOsStr + '&os=' + data.os;
agan's avatar
添加头部
78c2a71d
 
agan committed 2 years ago
662
			else window.location.href = 'login.html' + window.location.search;
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
663 664 665 666 667
		})

		//新visa
		$('.newvisapay').on('click', function () {
			sessionStorage.pay = "GLOCASH_PAY";
agan's avatar
修改跳转
235d2efc
 
agan committed 2 years ago
668
			if (sessionStorage.uid != undefined) window.location.href = 'https://firefly.live/footseen/phonepay/newvisapay.html?uid=' + sessionStorage.uid + '&token=' + sessionStorage.token + '&lang=' + sessionStorage.lang + '&pay=' + sessionStorage.pay + '&cidStr=' + sessionStorage.cidStr + '&osStr=' + mOsStr + '&os=' + data.os;
agan's avatar
添加头部
78c2a71d
 
agan committed 2 years ago
669
			else window.location.href = 'login.html' + window.location.search;
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
670
		})
agan's avatar
添加h5支付
77bcf9af
 
agan committed 2 years ago
671

agan's avatar
xg
bd2fb7d1
 
agan committed a year ago
672 673 674 675 676 677
		$('.payermax').on('click', function () {
			sessionStorage.pay = "PAYERMAX_PAY";
			if (sessionStorage.uid != undefined) window.location.href = 'https://firefly.live/footseen/phonepay/payermax.html?uid=' + sessionStorage.uid + '&token=' + sessionStorage.token + '&lang=' + sessionStorage.lang + '&pay=' + sessionStorage.pay + '&cidStr=' + sessionStorage.cidStr + '&osStr=' + mOsStr + '&os=' + data.os;
			else window.location.href = 'login.html' + window.location.search;
		})

agan's avatar
添加h5支付
77bcf9af
 
agan committed 2 years ago
678
		$('.danapay').on('click', function () {
agan's avatar
放开三种支付
2993cf58
 
agan committed 2 years ago
679
			
agan's avatar
添加h5支付
77bcf9af
 
agan committed 2 years ago
680 681
			sessionStorage.pay = 'DANA_PAY';
			sessionStorage.payType = '240';
agan's avatar
修改
849b9316
 
agan committed 2 years ago
682
			if (sessionStorage.uid != undefined) window.location.href = 'https://firefly.live/footseen/phonepay/danapay.html?uid=' + sessionStorage.uid + '&token=' + sessionStorage.token + '&lang=' + sessionStorage.lang + '&pay=' + sessionStorage.pay + '&cidStr=' + sessionStorage.cidStr + '&osStr=' + mOsStr + '&os=' + data.os;
agan's avatar
添加h5支付
77bcf9af
 
agan committed 2 years ago
683 684 685 686 687 688
			else window.location.href = 'login.html';
		})

		$('.newgopay').on('click', function () {
			sessionStorage.pay = 'GO_PAY';
			sessionStorage.payType = '227';
agan's avatar
修改
849b9316
 
agan committed 2 years ago
689
			if (sessionStorage.uid != undefined) window.location.href = 'https://firefly.live/footseen/phonepay/newgopay.html?uid=' + sessionStorage.uid + '&token=' + sessionStorage.token + '&lang=' + sessionStorage.lang + '&pay=' + sessionStorage.pay + '&cidStr=' + sessionStorage.cidStr + '&osStr=' + mOsStr + '&os=' + data.os;
agan's avatar
添加h5支付
77bcf9af
 
agan committed 2 years ago
690 691 692 693 694 695
			else window.location.href = 'login.html';
		})

		$('.ovopay').on('click', function () {
			sessionStorage.pay = 'OVO_PAY';
			sessionStorage.payType = '230';
agan's avatar
修改
849b9316
 
agan committed 2 years ago
696
			if (sessionStorage.uid != undefined) window.location.href = 'https://firefly.live/footseen/phonepay/ovopay.html?uid=' + sessionStorage.uid + '&token=' + sessionStorage.token + '&lang=' + sessionStorage.lang + '&pay=' + sessionStorage.pay + '&cidStr=' + sessionStorage.cidStr + '&osStr=' + mOsStr + '&os=' + data.os;
agan's avatar
添加h5支付
77bcf9af
 
agan committed 2 years ago
697 698
			else window.location.href = 'login.html';
		})
agan's avatar
xg
935996f7
 
agan committed a year ago
699 700 701

		$('.ilivepay').on('click', function () {
			sessionStorage.pay = 'ILIVEPAY';
agan's avatar
xg
29c24cb6
 
agan committed a year ago
702
			if (sessionStorage.uid != undefined) window.location.href = "payfor-new.html" + window.location.search;
agan's avatar
xg
935996f7
 
agan committed a year ago
703 704
			else window.location.href = 'login.html';
		})
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
705 706 707 708 709 710 711 712 713
	}

	function getLangRegion(code) {
		var langStr = '';
		for (var i = 0; i < payOrder[code].length; i++) {
			langStr += '<li class="' + payList[payOrder[code][i]].name + '">';
			langStr += '	<img src="' + payList[payOrder[code][i]].img + '" alt="">';
			langStr += '	<span class="glyphicon"></span>';
			langStr += '</li>';
dabai's avatar
footseen h5 移植
6161a8cd
 
dabai committed 5 years ago
714
		}
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
715 716 717 718 719 720
		$('.apple-ul').html(langStr);


		goPayDetail();
		if (langType != 0) {
			$('.weipay img,.gash-Point img,.gash-member img,.gash-credit img,.gash-phone img').addClass('en');
dabai's avatar
footseen h5 移植
6161a8cd
 
dabai committed 5 years ago
721
		}
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787
	}
	selectCountry()
	function selectCountry() {
		var showDom = document.querySelector('.siteInfo');// 绑定一个触发元素
		showDom.addEventListener('click', function () {  // 添加监听事件
			var val = showDom.dataset['id'];             // 获取元素的data-id属性值
			var title = showDom.dataset['value'];        // 获取元素的data-value属性值
			var arrList = [
				{ 'id': 'TW', 'value': '台灣' },
				{ 'id': 'MY', 'value': 'Malaysia' },
				{ 'id': 'ID', 'value': 'Indonisia' },
				{ 'id': 'CN', 'value': '中国' },
				{ 'id': 'IN', 'value': 'India' },
				{ 'id': 'VN', 'value': 'Việt nam' },
				{ 'id': 'AF', 'value': 'أفغانستان' },
				{ 'id': 'DZ', 'value': 'الجزائر' },
				{ 'id': 'BH', 'value': 'البحرين' },
				{ 'id': 'TD', 'value': 'تشاد' },
				{ 'id': 'KM', 'value': 'جزر القمر' },
				{ 'id': 'DJ', 'value': 'جيبوتي' },
				{ 'id': 'EG', 'value': 'مصر' },
				{ 'id': 'ER', 'value': 'إريتريا' },
				{ 'id': 'IQ', 'value': 'العراق' },
				{ 'id': 'JO', 'value': 'الأردن' },
				{ 'id': 'KW', 'value': 'الكويت' },
				{ 'id': 'LB', 'value': 'لبنان' },
				{ 'id': 'LY', 'value': 'ليبيا' },
				{ 'id': 'MR', 'value': 'موريتانيا' },
				{ 'id': 'MA', 'value': 'المغرب' },
				{ 'id': 'OM', 'value': 'عمان' },
				{ 'id': 'PS', 'value': 'فلسطين' },
				{ 'id': 'QA', 'value': 'قطر' },
				{ 'id': 'SA', 'value': 'المملكة العربية السعودية' },
				{ 'id': 'SD', 'value': 'سودان' },
				{ 'id': 'TN', 'value': 'تونس' },
				{ 'id': 'AE', 'value': 'الإمارات العربية المتحدة' },
				{ 'id': 'YE', 'value': 'يمني' },
				{ 'id': 'OTHER', 'value': '其他' },
			]
			// 实例化组件
			var example = new IosSelect(1,               // 第一个参数为级联层级,演示为1
				[arrList],
				{
					container: '.container',             // 容器class
					itemHeight: 40,                      // 每个元素的高度
					itemShowCount: 5,                    // 每一列显示元素个数,超出将隐藏
					oneLevelId: val,                     // 第一级默认值
					callback: function (selectOneObj) {  // 用户确认选择后的回调函数

						showDom.innerHTML = '<img src="../img/site.png"/>' + selectOneObj.value;
						showDom.dataset['id'] = selectOneObj.id;
						showDom.dataset['value'] = selectOneObj.value;
						var countryCode = selectOneObj.id;
						var flag = false;

						if (selectOneObj.id == 'TW' || selectOneObj.id == 'MY' || selectOneObj.id == 'ID' || selectOneObj.id == 'IN') {
							countryCode = selectOneObj.id
						} else if (!country[selectOneObj.id]) {
							countryCode = 'OTHER';
						} else {
							countryCode = 'WPAY';
						}

						getLangRegion(countryCode);
					}
				});
dabai's avatar
footseen h5 移植
6161a8cd
 
dabai committed 5 years ago
788
		});
agan's avatar
去除visa
dc59de0b
 
agan committed 3 years ago
789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862
	}

	var len = len || 32;
	var chars = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz0123456789';
	var maxPos = chars.length;
	var pwd = '';
	for (var i = 0; i < len; i++) {
		pwd += chars.charAt(Math.floor(Math.random() * maxPos));
	}

	var rechargeCid = '';
	if (sessionStorage.cid == undefined || sessionStorage.cid == 'undefined') {
		rechargeCid = 'cid';
	}
	$.ajax({
		url: $ip + '/stat/toRecharge.html',
		type: "post",
		data: {
			os: "h5",
			cid: rechargeCid,
			lang: sessionStorage.lang,
			uid: sessionStorage.uid,
			appversion: sessionStorage.appversion,
			driverid: pwd,
			token: sessionStorage.kkk
		},
		success: function (res) {

		}
	});

	function getNavigator() {
		var sUserAgent = navigator.userAgent.toLowerCase();
		var bIsIpad = sUserAgent.match(/ipad/i) == "ipad";
		var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os";
		var bIsMidp = sUserAgent.match(/midp/i) == "midp";
		var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4";
		var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb";
		var bIsAndroid = sUserAgent.match(/android/i) == "android";
		var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce";
		var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile";
		if (!(bIsIpad || bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM)) {
			return 'pc';
		}
		else if (bIsAndroid) {
			return 'android';
		} else if (bIsIphoneOs || bIsIpad) {
			return 'ios';
		}
	}

	function appCollaboration(msg) {
		var sUserAgent = navigator.userAgent.toLowerCase();
		var bIsIpad = sUserAgent.match(/ipad/i) == "ipad";
		var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os";
		var bIsMidp = sUserAgent.match(/midp/i) == "midp";
		var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4";
		var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb";
		var bIsAndroid = sUserAgent.match(/android/i) == "android";
		var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce";
		var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile";
		if (!(bIsIpad || bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM)) {
		}
		else if (bIsAndroid) {
			window.yazhai.appCollaboration(msg);
		} else if (bIsIphoneOs || bIsIpad) {
			window.webkit.messageHandlers.appCollaboration.postMessage(msg);
		}
	}
	//客户端回调结果
	function appCallback(msg) {
		console.log(msg);
	}
</script>
dabai's avatar
footseen h5 移植
6161a8cd
 
dabai committed 5 years ago
863 864

</html>