123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta content="width=device-width,height=device-height,maximum-scale=1.0,user-scalable=no" name="viewport">
- <meta content="yes" name="apple-mobile-web-app-capable">
- <meta content="black" name="apple-mobile-web-app-status-bar-style">
- <meta content="telephone=no" name="format-detection">
- <title>联通头条流量包</title>
- <link rel="stylesheet" href="../tt/css/base.css">
- <link rel="stylesheet" href="../tt/css/pagerz.css">
- <script type="text/javascript" src="../public/libs/jquery-min.js"></script>
- </head>
- <body>
- <h1>今日头条定向流量包</h1>
- <input type="button" id="subscribe9" value="连续包月订购"><br><br>
- <input type="button" id="order9" value="当月月包订购">
- <h1>抖音定向流量权益包</h1>
- <input type="button" id="subscribe15" value="连续包月订购"><br><br>
- <input type="button" id="order15" value="当月月包订购">
- <h1>支付跳转测试</h1>
- <input type="text" id="link" style="width: 100%">
- <input type="button" value="跳转" id="go">
- <script type="text/javascript">
- $(function() {
- $("#subscribe9").on('click', function() {
- console.log(1)
- });
- $("#order9").on('click', function() {
- console.log(2)
- });
- $("#subscribe15").on('click', function() {
- console.log(3)
- });
- $("#order15").on('click', function() {
- console.log(4)
- });
- function orderBack() {
- function orderBack(stockcode, cpid) {
- var param = {
- "fes": query.fes,
- "sou": query.sou,
- "fog": product.fog,
- "userid": user.userid
- }
- if (!!stockcode && stockcode != '') {
- param.stockcode = stockcode;
- }
- return $.ajax({
- url: root + "-s1api" + '/backward/nanyanorder',
- type: "POST",
- contentType: "application/json",
- data: JSON.stringify(param)
- });
- }
- orderBack().then(function(response) {
- // console.log(response)
- compnt.hideLoading();
- var data = response;
- switch (data.resultCode) {
- case "0000":
- // compnt.showAlert('领取成功');
- // window.location.reload();
- // alert(data.web_url + '&redirect_url=' + encodeURIComponent(window.location.href + '&tradeno=' + data.out_trade_no));
- data.tradedate = unicom.getNowFormatDate();
- data.userid = unicom.user.userid;
- pay(data);
- break;
- default:
- compnt.showAlert(response.errorInfo);
- break;
- }
- }).fail(function(data) {
- compnt.hideLoading();
- })
- }
- $('#go').on('click', function() {
- if ($('#link').val() == null || $('#link').val() == '') {
- alert('请输入网址')
- }
- window.location.href = $('#link').val();
- });
- })
- </script>
- </body>
- </html>
|