card.html
4.29 KB
1
2
3
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
<!DOCTYPE html>
<html lang="en">
<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">
<title>收款账户</title>
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/layer.css">
<link rel="stylesheet" href="css/index.css?v=2019041702">
<script src="lib/fsize.js"></script>
<style>
.layui-layer-ico {
display: none !important;
}
.layui-layer{
box-shadow: none !important;
}
.yourclass{
background: rgba(0,0,0,0) !important;
border-radius: 0.4rem !important;
}
.layui-layer-page .layui-layer-content{
border-radius: 0.4rem !important;
}
.yourclass2{
border-radius: 0rem !important;
background: rgba(0,0,0,0) !important;
}
.yourclass2 .layui-layer-content{
border-radius: 0rem !important;
}
</style>
</head>
<body>
<div style="background: rgb(245,245,245);height: 0.15rem;"></div>
<div style="display: block" class="card-bg">
<div class="card-box">
<p class="card-box-name"></p>
<p class="card-box-id">**** **** **** <span></span></p>
</div>
<div style="text-align:center">
<button class="card-btn">更换银行卡</button>
</div>
</div>
</body>
<script src="lib/jquery-3.1.1.min.js"></script>
<script src="layer-v3.1.0/layer/layer.js"></script>
<script>
// $ip = 'http://test.api.lvdou66.com/';
$ip = 'https://zhibo.lvdou66.com/';
//$ip = 'https://zhibo.lvdou66.com/87server/'
// $ip = 'https://zhibo.lvdou66.com/';
cdn = 'http://zhibocdn.ishuaji.cn/comm';
var bbb = location.href;
var data = url_get_params(bbb)
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;
}
//ajax设置默认参数
$.ajaxSetup({
global: false,
type: 'post',
data: {
uid:localStorage.uid,
token:localStorage.token
},
dataType:"JSON"
})
var obj = {
"cid": 11,
"reqCode": new Date().getTime(),
"data": {
msg:"修改导航栏",
titleName:"收款账户",
color:'#000000',
background:'#ffffff'
}
}
var obj2 = JSON.stringify(obj);
appCollaboration(obj2)
var rightTopObj = {
"cid": 13,
"reqCode": new Date().getTime(),
"data": {
'msg':'添加右上角图标',
'function':'more()',
show:0
}
}
var rightTop = JSON.stringify(rightTopObj);
appCollaboration(rightTop)
$.ajax({
url:$ip+'account/client/withdraw/bankmanage.html',
success: function (data) {
console.log(data);
$(".card-box-name").text(data.bank);
$(".card-box-id span").text(data.cardnum)
sessionStorage.name=data.name;
}
})
$(".card-btn").on("click", function () {
sessionStorage.change=1
setTimeout(function () {
window.location.href='bind.html';
},300)
})
$(".card-box").on("click", function () {
window.location.href='withdraw.html'
})
function appCollaboration(msg) {
var ua = window.navigator.userAgent.toLowerCase();
try{
if (/iphone|ipad|ipod/.test(ua)) {
window.webkit.messageHandlers.appCollaboration.postMessage(msg);
}else if(/android/.test(ua)){
window.yazhai.appCollaboration(msg);
}
}catch (e){}
}
//客户端回调结果
function appCallback(msg) {
console.log(msg);
}
</script>
</html>