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

libai / footseen-large-website

  • 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
  • footseen-large-website
  • reg
  • index.html
Find file
Normal viewHistoryPermalink
index.html 34.6 KB
Newer Older
libai's avatar
测试
592f551e
 
libai committed 2 years ago
1 2 3 4 5 6 7 8 9 10 11 12 13
<!DOCTYPE html>
<html lang="en">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-QT401FZZ2K"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-QT401FZZ2K');
</script>
<head>
    <meta charset="utf-8" />
libai's avatar
测试
fcb4ae7e
 
libai committed 2 years ago
14
    <meta  data-hid="viewport" name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5, minimum-scale=1">
libai's avatar
测试
b838b35c
 
libai committed 2 years ago
15 16
    <meta name="renderer" content="webkit">
    <meta name="applicable-device" content="pc">
libai's avatar
测试
592f551e
 
libai committed 2 years ago
17 18 19 20 21
    <title>footseen-用戶儲值-腳控足控天堂-超激情美女主播視訊</title>
    <meta name="keywords" content="footseen,foot live,激情美女視訊,激情美女影片,腳控足控,絲足,裸足,美腿,絲襪,黑絲,台灣UU聊天室,swag,視訊聊天室,live173,uplive,vklive,nonolive,foot rub,foot fetish">
    <meta name="description" content="footseen,腳控足控天堂,絲足美腿視訊影片,台灣足控第一高效約會軟體,免費影片立即觀看,在線美女激情互動,成人視訊線上體驗,徹底釋放你的慾望。">
    <link rel="stylesheet" href="../css/base.css">
    <link rel="stylesheet" href="../css/layer.css">
libai's avatar
测试
cbb01200
 
libai committed 2 years ago
22
    <link rel="stylesheet" href="../css/login.css?v=2022073003">
libai's avatar
测试
592f551e
 
libai committed 2 years ago
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
    <link rel="stylesheet" href="css/index.css?v=20220630">
    <script src="https://accounts.google.com/gsi/client" async defer></script>
    <script src="https://www.footseen.xyz/lib/hello.js"></script>
    <script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js"></script>
</head>

<body style="background: #F0F1F4;">
    <div class="neck-nav">
        <div class="neck-nav-content">
            <a href="https://www.footseen.xyz/index.html"><img class="logo" src="../images/logo.png" alt=""></a>
            <div class="nav-login-big-box">
                <!-- <div style="display: none;" class=nav-login-btn>登入/註冊</div>
                <div style="display: none;" class="nav-login">
                    <img class="nav-login-face" src="" alt="">
                    <div class="nav-login-more">
                        <div class="nav-login-more-jiao"></div>
                        <div class="nav-login-more-top">
                            <img class="login-more-top-face" src="" alt="">
                            <p class="login-more-top-p1">主播暱稱預留</p>
                            <p class="login-more-top-p2">ID:246524</p>
                        </div>
                        <div class="login-more-content-box">
                            <div data-type="1">用戶中心</div>
                            <div data-type="2">儲值中心</div>
                            <div data-type="3">我的追蹤</div>
                            <div data-type="4">登出</div>
                        </div>
                    </div>
                </div> -->
            </div>
        </div>
    </div>
    <div class="m-box">
        <div style="height: 60px;"></div>
        <h2 class="reg-h2"><div class="line"></div>線上充值</h2>
        <div class="reg-box">
            <div class="reg-content">
                <div class="reg-box-top">
                    <div style="display: none" class="my-reg-box">
                        <img class="reg-face" src="images/face.png" alt="">
                        <div class="reg-top-text1">用戶暱稱預留</div>
                        <div class="reg-top-text2">Footseen ID:123456</div>
                        <div class="reg-top-text3">為他人儲值</div>
                        <div class="reg-top-diamond-box">
                            <div class="diamond-box-text1"><img src="images/diamond.png" alt=""> 寶石餘額</div>
                            <div class="diamond-box-text2"></div>
                        </div>
                    </div>
                    <div style="display: none;" class="other-reg-box">
                        <input class="other-input" placeholder="請輸入Footseen ID" type="text">
                        <input style="width: 0;height:0" type="text">
                        <div class="other-btn1">確認賬號</div>
                        <div class="other-btn2">取消</div>
                    </div>
                    <div style="display:none" class="help-reg-box">
                        <img class="reg-face" src="images/face.png" alt="">
                        <div class="reg-top-text1">用戶暱稱預留</div>
                        <div class="reg-top-text2">Footseen ID:123456</div>
                        <div class="reg-top-text3">為他人儲值</div>
                    </div>
                </div>
                <div class="reg-title">儲值方式</div>
                <ul class="reg-ul clearfix">
                    <li data-type="GLOCASH_PAY"><img class="click-icon" src="images/click.png" alt=""><img class="pay-icon" src="images/play1.png" alt=""></li>
                    <li data-type="PAYMENTWALL"><img class="click-icon" src="images/click.png" alt=""><img class="pay-icon" src="images/play2.png" alt=""></li>
                    <li data-type="ALIPAY"><img class="click-icon" src="images/click.png" alt=""><img class="pay-icon" src="images/play3.png" alt=""></li>
                    <li data-type="WECHATPAY"><img class="click-icon" src="images/click.png" alt=""><img class="pay-icon" src="images/play4.png" alt=""></li>
                    <li data-type="LINE_PAY"><img class="click-icon" src="images/click.png" alt=""><img class="pay-icon" src="images/play5.png" alt=""></li>
                    <li data-type="TW_PAY"><img class="click-icon" src="images/click.png" alt=""><img class="pay-icon" src="images/play6.png" alt=""></li>
                    <li data-type="MOLPAY"><img class="click-icon" src="images/click.png" alt=""><img class="pay-icon" src="images/play7.png" alt=""></li>
                    <li data-type="CODAPAY_PAYATM"><img class="click-icon" src="images/click.png" alt=""><img class="pay-icon" src="images/play8.png" alt=""></li>
                    <li data-type="CODAPAY_PAYWALLET"><img class="click-icon" src="images/click.png" alt=""><img class="pay-icon" src="images/play9.png" alt=""></li>
                    <li data-type="GASHP99PAY"><img class="click-icon" src="images/click.png" alt=""><img class="pay-icon" src="images/play10.png" alt=""></li>
                </ul>
                <div style="display:none;" class="gash-type-box">
                    <div class="reg-title">選擇方式</div>
                    <ul class="gash-ul clearfix">
                        <li data-type="COPGAM02"><img class="click-icon" src="images/click.png">gash點數卡</li>
                        <li data-type="COPGAM09"><img class="click-icon" src="images/click.png">gash會員賬號</li>
                        <li data-type="BNK82201"><img class="click-icon" src="images/click.png">一般3d信用卡</li>
                        <li data-type="TELCHT05"><img class="click-icon" src="images/click.png">中華電信手機839(三合一)</li>
                        <li data-type="TELCHT06"><img class="click-icon" src="images/click.png">中華電信Hinet(三合一)</li>
                        <li data-type="TELCHT07"><img class="click-icon" src="images/click.png">中華電信市話(三合一)</li>
                        <li data-type="TELFET01"><img class="click-icon" src="images/click.png">傳遠電信一般型</li>
                        <li data-type="TELTCC01"><img class="click-icon" src="images/click.png">台灣大哥大一般型</li>
                        <li data-type="TELSON04"><img class="click-icon" src="images/click.png">亞太電信手機</li>
                    </ul>
                </div>
                <div class="reg-title">儲值金額</div>
                <ul class="money-ul clearfix">
                    <!-- <li>
                        <p class="money-li-p1"><img src="images/diamond.png">100</p>
                        <p class="money-li-p2">$10</p>
                    </li> -->
                </ul>
                <div class="reg-next-btn">下一步</div>
                <div style="height: 30px;"></div>
            </div>
            <div style="display:none;" class="reg-information">
                <p class="information-p">*僅在第一次信用卡支付時填寫</p>
                <div class="information-name-box">
                    <p class="name-tips1">姓</p>
                    <p class="name-tips2">名</p>
                    <input class="name-input1" placeholder="請輸入姓" type="text">
                    <input class="name-input2" placeholder="請輸入名" type="text">
                </div>
                <div class="information-phone-box">
                    <p>手機號碼</p>
                    <input oninput="value=value.replace(/[^\d]/g,'')" class="phone-input"  placeholder="格式 : 國家號碼+號碼,例如8861234567890" type="text">
                </div>
                <div class="information-emall-box">
                    <p>電子郵件</p>
                    <input class="emall-input" placeholder="請輸入電子郵件" type="text">
                </div>
                <div class="information-btn1">上一步</div>
                <div class="information-btn2">下一步</div>
            </div>
            <div style="display:none;" class="reg-qrcode">
                <span>←</span>
                <p class="mCodeTitle">請使用支付寶掃描二維碼進行支付</p>
                <p id="qrcode" class="mCodeImg"></p>
                <p class="mCodeMoney">支付金額:<span>¥10</span></p>
                <p class="mCodeText">為確保安全,請盡快完成支付</p>
            </div>
        </div>
        <div style="height: 55px;"></div>
    </div>
    <div class="login-content">

    </div>
    <div class="mCenterCon4"></div>
    <input style="width:0;height:0" placeholder="輸入搜索內容" type="text">
</body>
<script src="../lib/jquery-3.1.1.min.js"></script>
<script src="../layer-v3.1.0/layer/layer.js"></script>
libai's avatar
测试
3aced290
 
libai committed 2 years ago
158
<script src="../lib/default.js?v='2022091301'"></script>
libai's avatar
测试
fe414b85
 
libai committed 2 years ago
159
<script src="../lib/login.js?v=2022091501"></script>
libai's avatar
测试
592f551e
 
libai committed 2 years ago
160 161 162
<script src="../lib/qrcode.min.js"></script>
<script>
$(function(){
libai's avatar
测试
ed59f820
 
libai committed 2 years ago
163 164 165 166 167 168 169 170 171 172 173
    $.ajax({
        url:$ip+'activeLog/webActive',
        data:{
            activeType:4,
            pageID:localStorage.canvasCode,
         
        },
        success:function(data){
            sessionStorage.stat2=1
        }
    })
libai's avatar
测试
592f551e
 
libai committed 2 years ago
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
    var regUid=0
    var flag
    var go = false;
    sessionStorage.money=0
    sessionStorage.rid=0
    loginGo()
    $(".nav-tag").attr("target","_self")
    $(".reg-li").addClass("neck-nav-li-click")
    var f1 = setInterval(function () {
		try {
			if (go) {
				document.form1.submit()
			}
		} catch (msg) {

		}

	}, 2000)
    if(localStorage.uid!=undefined){
        $(".my-reg-box").show()
        $.ajax({
            url:$ip+'user/queryUserBaseInfo',
            data:{
                uid:localStorage.uid,
                token:localStorage.token,
                // //,
                pageID:localStorage.canvasCode,
            },
            success:function(data){
libai's avatar
测试
713614cd
 
libai committed 2 years ago
203
                // //console.log('获取用户基本信息',data)
libai's avatar
测试
592f551e
 
libai committed 2 years ago
204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225
                if(data.code!=1){
                    layer.msg(data.msg)
                    window.localStorage.removeItem("uid")
                    window.localStorage.removeItem("token")
                    $(".nav-login-btn").show()
                    return;
                }
                $(".reg-top-text1").text(data.userData.nickname)
                $(".my-reg-box .reg-face").attr("src","https://zhibocdn.yabolive.net/comm"+data.userData.face+"?x-oss-process=image/resize,w_88")
                $(".my-reg-box .reg-top-text2").text("Footseen ID:"+data.userData.uid+"")
                regUid=localStorage.uid
            }
        })
        $.ajax({
            url:$ip+'gift/getUserDiamondNum',
            data:{
                uid:localStorage.uid,
                token:localStorage.token,
                // pass: true,
                pageID: localStorage.canvasCode
            },
            success:function(data){
libai's avatar
测试
713614cd
 
libai committed 2 years ago
226
                //console.log('剩余寶石数',data)
libai's avatar
测试
592f551e
 
libai committed 2 years ago
227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251
                $(".diamond-box-text2").text(data.diamond_num)
              
            }
        })
       
    }
    else{
        $(".my-reg-box").hide()
        $(".other-reg-box").show()
        $(".other-btn2").hide()
    }
    $(".reg-top-text3").on("click",function(){
        $(".help-reg-box").hide()
        $(".my-reg-box").hide()
        $(".other-reg-box").show()
    })
    $(".other-btn2").on("click",function(){
        $(".other-reg-box").hide()
        $(".my-reg-box").show()
    })
    $(".other-btn1").on("click",function(){
        $.ajax({
	    	url:'https://webserver.yabolive.net/user/getUser.html',
	    	data: {
	    		uid:$(".other-input").val(),
libai's avatar
测试
fb1d8ba9
 
libai committed 2 years ago
252
                os: 'pc_web',
libai's avatar
测试
53a3fb1e
 
libai committed 2 years ago
253
                cid: 'Web_footseen',
libai's avatar
测试
592f551e
 
libai committed 2 years ago
254 255 256 257
                vest: 0,
                lang: 2,
	    	},
	    	success: function (data) {
libai's avatar
测试
713614cd
 
libai committed 2 years ago
258
                //console.log('id獲取用戶信息',data)
libai's avatar
测试
592f551e
 
libai committed 2 years ago
259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333
                if(data.code!=1){
                    layer.msg("輸入賬號有誤,請重新輸入")
                }
                $(".reg-face").attr("src","https://zhibocdn.yabolive.net/comm"+data.data.faceimg+"?x-oss-process=image/resize,w_88")
                $(".reg-top-text1").text(data.data.nickName)
                $(".reg-top-text2").text('Footseen ID:'+data.data.uid)
                regUid=data.data.uid
                $(".other-reg-box").hide()
                $(".help-reg-box").show()
	    	}
	    })
    })
    $(".reg-ul li").on("click",function(){
        var _self=$(this)
        if(_self.attr("data-type")=='GLOCASH_PAY'){
            if(regUid==0){
                layer.msg("請輸入您的ID號")
                return;
            }
            getUserInfo(regUid)
        }
        if(_self.attr("data-type")=='PAYMENTWALL'){
            if(regUid==0){
                layer.msg("請輸入您的ID號")
                return;
            }
            getUserInfo(regUid)
        }
        sessionStorage.money=0
        sessionStorage.rid=0
        $(".reg-ul li").removeClass("reg-li-click")
        _self.addClass("reg-li-click")
        if(_self.attr("data-type")!='GASHP99PAY')getRecharge(_self.attr("data-type"))
        $(".gash-type-box").hide()
        sessionStorage.pay=_self.attr("data-type")
        if(_self.attr("data-type")=='GASHP99PAY'){
            $(".gash-type-box").show()
            $(".money-ul").html('');
        }
    })
    $(".gash-ul li").on("click",function(){
        $(".gash-ul li").removeClass("gash-li-click")
        var _self=$(this)
        _self.addClass("gash-li-click")
        sessionStorage.select=_self.attr("data-type")
        getGashRecharge()
    })
    $(".information-btn1").on("click",function(){
        $(".reg-information").hide()
        $(".reg-content").show()
    })
    $(".information-btn2").on("click",function(){
        if(sessionStorage.pay=='PAYMENTWALL'){
            getPaymentWall()
        }
        if(sessionStorage.pay=='GLOCASH_PAY'){
            getGlocash()
        }
       
    })
    $(".reg-next-btn").on("click",function(){
        if(sessionStorage.money==0){
            layer.msg("請選擇您的儲值金額")
            return;
        }
        if(regUid==0){
            layer.msg("請輸入您的footseen ID")
            return;
        }
        submitPayment()
    })
    function getGashRecharge(){
        $.ajax({
            url:'https://webserver.yabolive.net/setting/getRecharge.html',
            data:{
libai's avatar
测试
fb1d8ba9
 
libai committed 2 years ago
334
                os: 'pc_web',
libai's avatar
测试
592f551e
 
libai committed 2 years ago
335 336 337
                paytype: 'GASHP99PAY',
                vest: 0,
                lang: 2,
libai's avatar
测试
53a3fb1e
 
libai committed 2 years ago
338
                cid: 'Web_footseen'
libai's avatar
测试
592f551e
 
libai committed 2 years ago
339 340
            },
            success:function(data){
libai's avatar
测试
713614cd
 
libai committed 2 years ago
341
                //console.log('gash充值點',data)
libai's avatar
测试
592f551e
 
libai committed 2 years ago
342 343 344 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 375 376 377 378
                var html=[];
                var list=data.data
                for(var i=0;i<data.data.length;i++){
                    if(sessionStorage.select == "BNK82201" || sessionStorage.select == "TELTCC01"){
                        if(list[i].price[0].price > 10000)continue;
                    }
                    if(sessionStorage.select == "TELCHT05" || sessionStorage.select == 'TELCHT06' || sessionStorage.select == 'TELCHT07' ){
                        if(list[i].price[0].price > 2000)continue;
                    }
                    if(sessionStorage.select == "TELSON04" ){
                        if(list[i].price[0].price > 1000)continue;
                    }
                    if(sessionStorage.select == "TELFET01"){
                        if(list[i].price[0].price > 3000)continue;
                    }
                    html+='<li data-money="' + list[i].price[0].price + '" data-rid="' + list[i].price[0].rid + '">';
                    html+='<p class="money-li-p1"><img src="images/diamond.png">'+list[i].diamond+'</p>';
                    html+='<p class="money-li-p2">'+list[i].price[0].currency+''+list[i].price[0].price+'</p>';
                    html+='<img class="click-icon" src="images/click.png" alt="">';
                    html+='</li>';
                }
                $(".money-ul").html(html);
                $(".money-ul li").unbind("click").on("click",function(){
                    $(".money-ul li").removeClass("money-li-click")
                    $(this).addClass("money-li-click")
                    var money = $(this).attr('data-money') * 100;
    	            var rid = $(this).attr('data-rid');
    	            sessionStorage.money = money;
    	            sessionStorage.rid = rid;
                })
            }
        })
    }
    function getUserInfo(uid) {
	    $.ajax({
    		url:'https://webserver.yabolive.net/pay/checkAsiaBillFirst.html',
    		data: {
libai's avatar
测试
fb1d8ba9
 
libai committed 2 years ago
379
                os: 'pc_web',
libai's avatar
测试
53a3fb1e
 
libai committed 2 years ago
380
                cid: 'Web_footseen',
libai's avatar
测试
592f551e
 
libai committed 2 years ago
381 382 383 384 385
                vest: 0,
                lang: 2,
    			uid: uid,
    		},
    		success: function (res) {
libai's avatar
测试
713614cd
 
libai committed 2 years ago
386
                //console.log(res)
libai's avatar
测试
592f551e
 
libai committed 2 years ago
387 388 389 390 391 392 393 394 395 396 397 398 399 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 427 428 429 430 431 432 433 434 435 436 437 438 439
    			if (res.code == 0) {
    				flag = false;
    			} else if (res.code == 1) {
    				flag = true;
    				sessionStorage.firstName = res.entity.firstName;
    				sessionStorage.lastName = res.entity.lastName;
    				sessionStorage.email = res.entity.email;
    				sessionStorage.phone = res.entity.phone;
    			}
    		}
    	})
    }
    function getPaymentWall() {
	    var name1 = $('.name-input1').val();
	    if (!name1 && name1.length == 0) {
	    	layer.msg('請填寫姓');
	    	return false;
	    }
	    var name2 = $('.name-input2').val();
	    if (!name2 && name2.length == 0) {
	    	layer.msg('請填寫名');
	    	return false;
	    }
	    var tel = $('.phone-input').val();
	    if (!tel && tel.length == 0) {
	    	layer.msg('請填寫電話號碼');
	    	return false;
	    }
	    var email = $('.emall-input').val().replace(/(^\s*)|(\s*$)/g, "");
	    if (!email && email.length == 0) {
	    	layer.msg('請填寫正確的郵箱');
	    	return false;
	    }
	    var reg = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
	    if (!reg.test(email)) {
	    	layer.msg('請填寫正確的郵箱');
	    	return false;
	    }
	    $.ajax({
	    	url: "https://webserver.yabolive.net/pay/getPaymentWall.html",
	    	data: {
	    		uid: regUid,
	    		country: '86',
	    		rid: sessionStorage.rid,
	    		amount: sessionStorage.money,
	    		returnUrl: 'https://firefly.live/h5pay/phonepay/paySuccess.html?lang=2',
	    		failureUrl: 'https://firefly.live/h5pay/phonepay/payFail.html?lang=2',
	    		firstName: name2,
	    		lastName: name1,
	    		email: email,
	    		phone: tel,
	    		product: "賬戶儲值",
	    		payType: sessionStorage.pay,
libai's avatar
测试
fb1d8ba9
 
libai committed 2 years ago
440
                os: 'pc_web',
libai's avatar
测试
53a3fb1e
 
libai committed 2 years ago
441
                cid: 'Web_footseen',
libai's avatar
测试
592f551e
 
libai committed 2 years ago
442 443 444 445
                vest: 0,
                lang: 2,
	    	},
	    	success: function (res) {
libai's avatar
测试
16e47a66
 
libai committed 2 years ago
446
                var _self=$(this)
libai's avatar
测试
592f551e
 
libai committed 2 years ago
447
	    		if (res.code == 1) {
libai's avatar
测试
16e47a66
 
libai committed 2 years ago
448 449
                    window.location.href='https://firefly.live/footseenPay/index.html?goUrl='+_self[0].url
	    			// window.location.href = res.url;
libai's avatar
测试
592f551e
 
libai committed 2 years ago
450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478
	    		} else {
	    			layer.msg(res.msg);
	    		}
	    	}
	    })
    }
    function getGlocash() {
    	var email = $('.emall-input').val().replace(/(^\s*)|(\s*$)/g, "");
    	if (!email && email.length == 0) {
    		layer.msg(langList[langType].text29);
    		return false;
    	}
    	var reg = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
    	if (!reg.test(email)) {
    		layer.msg(langList[langType].text29);
    		return false;
    	}
    	$.ajax({
	    	url: "https://webserver.yabolive.net/pay/toGloCashPay.html",
	    	data: {
	    		uid: regUid,
	    		country: '86',
	    		rid: sessionStorage.rid,
	    		amount: sessionStorage.money,
	    		returnUrl: 'https://firefly.live/h5pay/phonepay/paySuccess.html?lang=2',
	    		failureUrl: 'https://firefly.live/h5pay/phonepay/payFail.html?lang=2',
	    		email: email,
	    		product: "賬戶儲值",
	    		payType: sessionStorage.pay,
libai's avatar
测试
fb1d8ba9
 
libai committed 2 years ago
479
                os: 'pc_web',
libai's avatar
测试
53a3fb1e
 
libai committed 2 years ago
480
                cid: 'Web_footseen',
libai's avatar
测试
592f551e
 
libai committed 2 years ago
481 482 483 484
                vest: 0,
                lang: 2,
	    	},
    		success: function (res) {
libai's avatar
测试
16e47a66
 
libai committed 2 years ago
485
                var _self=$(this)
libai's avatar
测试
592f551e
 
libai committed 2 years ago
486
    			if (res.code == 1) {
libai's avatar
测试
16e47a66
 
libai committed 2 years ago
487 488
    				// window.location.href = res.url;
                    window.location.href='https://firefly.live/footseenPay/index.html?goUrl='+_self[0].url
libai's avatar
测试
592f551e
 
libai committed 2 years ago
489 490 491 492 493 494 495 496 497 498
    			} else {
    				layer.msg(res.msg);
    			}
    		}
    	})
    }
    function getRecharge(e){
        $.ajax({
            url:'https://webserver.yabolive.net/setting/getRecharge.html',
            data:{
libai's avatar
测试
fb1d8ba9
 
libai committed 2 years ago
499
                os: 'pc_web',
libai's avatar
测试
53a3fb1e
 
libai committed 2 years ago
500
                cid: 'Web_footseen',
libai's avatar
测试
592f551e
 
libai committed 2 years ago
501 502 503 504 505
                vest:0,
                lang:2,
                paytype:e
            },
            success:function(data){
libai's avatar
测试
713614cd
 
libai committed 2 years ago
506
                //console.log('儲值金額',data)
libai's avatar
测试
592f551e
 
libai committed 2 years ago
507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548
                var html=[];
                for(var i=0;i<data.data.length;i++){
                    var list=data.data[i]
                    html+='<li data-money="' + list.price[0].price + '" data-rid="' + list.price[0].rid + '">';
                    html+='<p class="money-li-p1"><img src="images/diamond.png">'+list.diamond+'</p>';
                    html+='<p class="money-li-p2">'+list.price[0].currency+''+list.price[0].price+'</p>';
                    html+='<img class="click-icon" src="images/click.png" alt="">';
                    html+='</li>';
                }
                $(".money-ul").html(html)
                $(".money-ul li").unbind("click").on("click",function(){
                    $(".money-ul li").removeClass("money-li-click")
                    $(this).addClass("money-li-click")
                    var money = $(this).attr('data-money') * 100;
    	            var rid = $(this).attr('data-rid');
    	            sessionStorage.money = money;
    	            sessionStorage.rid = rid;
      
                })
            
            }
        })
    }
    function submitPayment() {
    	switch (sessionStorage.pay) {
    		case "PAYMENTWALL":
    			if (flag) {
    				$.ajax({
    					url:"https://webserver.yabolive.net/pay/getPaymentWall.html",
    					data: {
    						uid: regUid,
    						country: '86',
    						rid: sessionStorage.rid,
    						amount: sessionStorage.money,
                            returnUrl: 'https://firefly.live/h5pay/phonepay/paySuccess.html?lang=2',
	    		            failureUrl: 'https://firefly.live/h5pay/phonepay/payFail.html?lang=2',
    						firstName: sessionStorage.firstName || '',
    						lastName: sessionStorage.lastName || '',
    						email: sessionStorage.email || '',
    						phone: sessionStorage.phone || '',
    						product: "賬戶儲值",
    						payType: sessionStorage.pay,
libai's avatar
测试
fb1d8ba9
 
libai committed 2 years ago
549
                            os: 'pc_web',
libai's avatar
测试
53a3fb1e
 
libai committed 2 years ago
550
                            cid: 'Web_footseen',
libai's avatar
测试
592f551e
 
libai committed 2 years ago
551 552 553 554
                            vest: 0,
                            lang: 2,
    					},
    					success: function (res) {
libai's avatar
测试
16e47a66
 
libai committed 2 years ago
555
                            var _self=$(this)
libai's avatar
测试
592f551e
 
libai committed 2 years ago
556
    						if (res.code == 1) {
libai's avatar
测试
16e47a66
 
libai committed 2 years ago
557 558
    							// window.location.href = res.url;
                                window.location.href='https://firefly.live/footseenPay/index.html?goUrl='+_self[0].url
libai's avatar
测试
592f551e
 
libai committed 2 years ago
559 560 561 562 563 564 565 566 567 568 569 570 571 572 573
    						} else {
    							layer.msg(res.msg);
    						}
    					}
    				})
    			} else {
                    $(".reg-content").hide()
                    $(".reg-information").show()
                    if(sessionStorage.pay=="PAYMENTWALL"){
                        $(".information-name-box").show()
                        $(".information-phone-box").show()
                    }
    			}
    			break;
    		case "GLOCASH_PAY":
libai's avatar
测试
47a97fec
 
libai committed 2 years ago
574 575 576 577 578 579 580 581 582
    		    if (flag) {
    		    	$.ajax({
    		    		url:"https://webserver.yabolive.net/pay/toGloCashPay.html",
    		    		type: "POST",
    		    		data: {
    		    			uid: regUid,
    		    			country: '86',
    		    			rid: sessionStorage.rid,
    		    			amount: sessionStorage.money,
libai's avatar
测试
592f551e
 
libai committed 2 years ago
583
                            returnUrl: 'https://firefly.live/h5pay/phonepay/paySuccess.html?lang=2',
libai's avatar
测试
47a97fec
 
libai committed 2 years ago
584 585 586 587
	    	                failureUrl: 'https://firefly.live/h5pay/phonepay/payFail.html?lang=2',
    		    			email: sessionStorage.email || '',
    		    			product: "賬戶儲值",
    		    			payType: sessionStorage.pay,
libai's avatar
测试
fb1d8ba9
 
libai committed 2 years ago
588
                            os: 'pc_web',
libai's avatar
测试
53a3fb1e
 
libai committed 2 years ago
589
                            cid: 'Web_footseen',
libai's avatar
测试
592f551e
 
libai committed 2 years ago
590 591
                            vest: 0,
                            lang: 2,
libai's avatar
测试
47a97fec
 
libai committed 2 years ago
592 593
    		    		},
    		    		success: function (res) {
libai's avatar
测试
16e47a66
 
libai committed 2 years ago
594
                            var _self=$(this)
libai's avatar
测试
47a97fec
 
libai committed 2 years ago
595 596
    		    			if (res.code == 1) {
    		    				// window.location.href = res.url;
libai's avatar
测试
16e47a66
 
libai committed 2 years ago
597
                                window.location.href='https://firefly.live/footseenPay/index.html?goUrl='+_self[0].url
libai's avatar
测试
592f551e
 
libai committed 2 years ago
598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629
    						} else {
    							layer.msg(res.msg);
    						}
    					}
    				})
    			} else {
                    $(".reg-content").hide()
                    $(".reg-information").show()
                    if(sessionStorage.pay=="GLOCASH_PAY"){
                        $(".information-name-box").hide()
                        $(".information-phone-box").hide()
                    }
    			}
    			break;
    		case "LINE_PAY":
    		case "TW_PAY":
    		case "JKO_PAY":
    			$.ajax({
    				url:"https://webserver.yabolive.net/pay/getPaymentWall.html",
    				data: {
    					uid: regUid,
    					country: '86',
    					rid: sessionStorage.rid,
    					amount: sessionStorage.money,
                        returnUrl: 'https://firefly.live/h5pay/phonepay/paySuccess.html?lang=2',
	    	        	failureUrl: 'https://firefly.live/h5pay/phonepay/payFail.html?lang=2',
    					firstName: sessionStorage.firstName || '',
    					lastName: sessionStorage.lastName || '',
    					email: sessionStorage.email || '',
    					phone: sessionStorage.phone || '',
    					product: "賬戶儲值",
    					payType: sessionStorage.pay,
libai's avatar
测试
fb1d8ba9
 
libai committed 2 years ago
630
                        os: 'pc_web',
libai's avatar
测试
53a3fb1e
 
libai committed 2 years ago
631
                        cid: 'Web_footseen',
libai's avatar
测试
592f551e
 
libai committed 2 years ago
632 633 634 635
                        vest: 0,
                        lang: 2,
    				},
    				success: function (res) {
libai's avatar
测试
4f3a6e70
 
libai committed 2 years ago
636
                        var _self=$(this)
libai's avatar
测试
592f551e
 
libai committed 2 years ago
637
    					if (res.code == 1) {
libai's avatar
测试
096c58b3
 
libai committed 2 years ago
638
                            // console.log(_self[0].url)
libai's avatar
测试
4f3a6e70
 
libai committed 2 years ago
639
                            window.location.href='https://firefly.live/footseenPay/index.html?goUrl='+_self[0].url
libai's avatar
测试
d436b8eb
 
libai committed 2 years ago
640
    						// window.location.href = res.url;
libai's avatar
测试
592f551e
 
libai committed 2 years ago
641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659
    					} else {
    						layer.msg(res.msg);
    					}
    				}
    			})
    			break;
    		case "MOLPAY":
    			$.ajax({
    				url:'https://webserver.yabolive.net/pay/getPayPreid.html',
    				data: {
    					'uid': regUid,
    					"product": "賬戶儲值",
    					"country": "86",
    					"rid": sessionStorage.rid,
    					"payType": sessionStorage.pay,
    					"payTypeSub": "NATIVE",
    					"amount": sessionStorage.money,
    					"extend": "0",
    					"returnUrl": "http://www.firefly.live/phonepay/payend.html",
libai's avatar
测试
fb1d8ba9
 
libai committed 2 years ago
660
                        os: 'pc_web',
libai's avatar
测试
53a3fb1e
 
libai committed 2 years ago
661
                        cid: 'Web_footseen',
libai's avatar
测试
592f551e
 
libai committed 2 years ago
662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681
                        vest: 0,
                        lang: 2,
    				},
    				success: function (res) {
    					window.location.href = res.payInfo.url
    				}
    			})
    			break;
    		case "CODAPAY_PAYATM":
    			$.ajax({
    				url:"https://webserver.yabolive.net/pay/getCodaPay.html",
    				data: {
    					'uid': regUid,
    					'product': "賬戶儲值",
    					'country': "86",
    					'rid': sessionStorage.rid,
    					'payType': sessionStorage.pay,
    					'paymentType': 220,
    					'payTypeSub': "NAVITE",
    					'amount': sessionStorage.money,
libai's avatar
测试
fb1d8ba9
 
libai committed 2 years ago
682
                        os: 'pc_web',
libai's avatar
测试
53a3fb1e
 
libai committed 2 years ago
683
                        cid: 'Web_footseen',
libai's avatar
测试
592f551e
 
libai committed 2 years ago
684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705
                        vest: 0,
                        lang: 2,
    				},
    				async: true,
    				success: function (res) {
    					window.location.href = 'https://airtime.codapayments.com/airtime/begin?type=220&txn_id=' + res.result;
    				}

    			});
    			break;
    		case "CODAPAY_PAYWALLET":
    			$.ajax({
    				url:"https://webserver.yabolive.net/pay/getCodaPay.html",
    				data: {
    					'uid': regUid,
    					'product': "賬戶儲值",
    					'country': "86",
    					'rid': sessionStorage.rid,
    					'payType': sessionStorage.pay,
    					'paymentType': 223,
    					'payTypeSub': "NAVITE",
    					'amount': sessionStorage.money,
libai's avatar
测试
fb1d8ba9
 
libai committed 2 years ago
706
                        os: 'pc_web',
libai's avatar
测试
53a3fb1e
 
libai committed 2 years ago
707
                        cid: 'Web_footseen',
libai's avatar
测试
592f551e
 
libai committed 2 years ago
708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730
                        vest: 0,
                        lang: 2,
    				},
    				async: true,
    				success: function (res) {
    					window.location.href = 'https://airtime.codapayments.com/airtime/begin?type=220&txn_id=' + res.result;
    				}

    			});
    			break;
    		case 'WECHATPAY':
    		case 'ALIPAY':
    			$.ajax({
    				url:"https://webserver.yabolive.net/pay/getPayPreid.html",
    				data: {
    					"uid": regUid,
    					"product": "賬戶儲值",
    					"country": "86",
    					"rid": sessionStorage.rid,
    					"payType": sessionStorage.pay,
    					"payTypeSub": "NATIVE",
    					"amount": sessionStorage.money,
    					"extend": "0",
libai's avatar
测试
fb1d8ba9
 
libai committed 2 years ago
731
                        os: 'pc_web',
libai's avatar
测试
482e5e71
 
libai committed 2 years ago
732
                        cid: 'Web_footseen',
libai's avatar
测试
592f551e
 
libai committed 2 years ago
733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752
                        vest: 0,
                        lang: 2,
    				},
    				success: function (res) {
    					if (res.code == 1) {
    						$('.mCodeMoney span').html('¥'+sessionStorage.money/100+'');
    						if (sessionStorage.pay == 'ALIPAY') {
    							$(".mCodeTitle").text('請使用支付寶掃描二維碼進行支付')
    						} else if (sessionStorage.pay == 'WECHATPAY') {
                                $(".mCodeTitle").text('請使用微信掃描二維碼進行支付')
    						}
    						var codeUrl = res.payInfo.code_url;
                            $(".reg-content").hide()
                            $(".reg-qrcode").show()
                            $(".reg-qrcode span").unbind("click").on("click",function(){
                                $(".reg-qrcode").hide()
                                $(".reg-content").show()
                            })
    						$("#qrcode").children().remove();
    						new QRCode(document.getElementById("qrcode"), codeUrl);
libai's avatar
测试
fe8175b0
 
libai committed 2 years ago
753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770
                            myOrderId=res.orderId
                            setInterval(function(){
                                $.ajax({
                                    url:$ip+'setting/exchange/queryOrderStatus',
                                    data:{
                                        pageID:localStorage.canvasCode,
                                        orderId:myOrderId
                                    },
                                    success:function(data){
                                        if(data.orderStatus==1){
                                            layer.msg("储值成功!")
                                            setTimeout(function() {
                                                window.location.reload()
                                            }, 800);
                                        }
                                    }
                                })
                            },1500)
libai's avatar
测试
592f551e
 
libai committed 2 years ago
771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787
    					}
    				}
    			})
    			break;
    		case 'TW_ALI_CNY_PAY':
    			if ($('.mTopAmountBg.check').attr('data-type') == 2) {
    				$.ajax({
    					url:"https://webserver.yabolive.net/pay/getPayPreid.html",
    					data: {
    						"uid": regUid,
    						"product": "賬戶儲值",
    						"country": "86",
    						"rid": sessionStorage.rid,
    						"payType": 'ALIPAY',
    						"payTypeSub": "NATIVE",
    						"amount": sessionStorage.money,
    						"extend": "0",
libai's avatar
测试
fb1d8ba9
 
libai committed 2 years ago
788
                            os: 'pc_web',
libai's avatar
测试
53a3fb1e
 
libai committed 2 years ago
789
                            cid: 'Web_footseen',
libai's avatar
测试
592f551e
 
libai committed 2 years ago
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
                            vest: 0,
                            lang: 2,
    					},
    					success: function (res) {
    						if (res.code == 1) {
    							$('.mCodeMoney').html($('.mCon4PriceTitle').html());
    							$('.mCodeTitle').html(langList[langType].text30);

    							var codeUrl = res.payInfo.code_url;
    							$('.mCenterCant').addClass('hide');
    							$('.mCenterCant3').removeClass('hide');
    							$("#qrcode").children().remove();
    							new QRCode(document.getElementById("qrcode"), codeUrl);
    						}
    					}
    				})
    			} else {
    				$.ajax({
    					url:"https://webserver.yabolive.net/pay/getPaymentWall.html",
    					data: {
    						uid: regUid,
    						country: '86',
    						rid: sessionStorage.rid,
    						amount: sessionStorage.money,
                            returnUrl: 'https://firefly.live/h5pay/phonepay/paySuccess.html?lang=2',
	    		            failureUrl: 'https://firefly.live/h5pay/phonepay/payFail.html?lang=2',
    						product: "賬戶儲值",
    						payType: sessionStorage.pay,
libai's avatar
测试
fb1d8ba9
 
libai committed 2 years ago
818
                            os: 'pc_web',
libai's avatar
测试
53a3fb1e
 
libai committed 2 years ago
819
                            cid: 'Web_footseen',
libai's avatar
测试
592f551e
 
libai committed 2 years ago
820 821 822 823
                            vest: 0,
                            lang: 2,
    					},
    					success: function (res) {
libai's avatar
测试
16e47a66
 
libai committed 2 years ago
824
                            var _self=$(this)
libai's avatar
测试
592f551e
 
libai committed 2 years ago
825
    						if (res.code == 1) {
libai's avatar
测试
16e47a66
 
libai committed 2 years ago
826 827
    							// window.location.href = res.url;
                                window.location.href='https://firefly.live/footseenPay/index.html?goUrl='+_self[0].url
libai's avatar
测试
592f551e
 
libai committed 2 years ago
828 829 830 831 832 833 834 835 836 837 838 839 840
    						} else {
    							layer.msg(res.msg);
    						}
    					}
    				})
    			}
    			break;
    		case 'GASHP99PAY':
    			$.ajax({
    				url:'https://webserver.yabolive.net/pay/getGashP99Pay.html',
    				type: "POST",
    				dataType: 'text',
    				data: {
libai's avatar
测试
fb1d8ba9
 
libai committed 2 years ago
841
    					'os': 'pc_web',
libai's avatar
测试
53a3fb1e
 
libai committed 2 years ago
842
    					'cid': 'Web_footseen',
libai's avatar
测试
592f551e
 
libai committed 2 years ago
843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872
    					'vest': 0,
    					'lang': 2,
    					"uid": regUid,
    					'vest': '',
    					"product": "賬戶儲值",
    					"country": "86",
    					"rid": sessionStorage.rid,
    					"payType": sessionStorage.pay,
    					"payTypeSub": "h5",
    					"amount": sessionStorage.money,
    					"extend": sessionStorage.select,
    
    				},
    				success: function (res) {
    					var reg = /<head>[\s\S]*<\/body>/;
    					var str = [];
    					str += res.match(reg)[0];
    					go = true;
    					$(".m-box").html(str)

    				},
    				error: function (res) {
    				}
    			})
    			break;
    	}
    }
})
</script>
</html>