You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
116 lines
3.7 KiB
116 lines
3.7 KiB
5 years ago
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
|
||
|
<title>收款方式</title>
|
||
|
<!--REM自适应布局JS-->
|
||
|
<script src="../../../js/base/rem-layout.js"></script>
|
||
|
<link rel="stylesheet" type="text/css" href="../../../../lib/css/mui.min.css">
|
||
|
<link href="../../../../lib/css/basic.css" rel="stylesheet" />
|
||
|
<link rel="stylesheet" type="text/css" href="../../../css/base.css" />
|
||
|
<script src="../../../../lib/js/mui.min.js"></script>
|
||
|
<script src="../../../../lib/js/vue.js"></script>
|
||
|
<script src="../../../../lib/js/app.js"></script>
|
||
|
<script src="../../../js/my/my_ajax.js"></script>
|
||
|
<script src="../../../js/user/user_language.js"></script>
|
||
|
<script src="../../../js/user/user_ajax.js"></script>
|
||
|
</head>
|
||
|
<style type="text/css">
|
||
|
.mui-content {
|
||
|
margin: 0px;
|
||
|
}
|
||
|
|
||
|
[v-cloak] {
|
||
|
display: none;
|
||
|
}
|
||
|
</style>
|
||
|
|
||
|
<body>
|
||
|
<div id="data-info">
|
||
|
<header class="mui-bar mui-bar-nav app-header ">
|
||
|
<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
|
||
|
<h1 class="mui-title">{{dataBase.c2cUserPayTitle}}</h1>
|
||
|
</header>
|
||
|
<div class="mui-content">
|
||
|
<ul id="gear-list" class="mui-table-view app-table-view app-table-view-darkly jurisdiction-ul">
|
||
|
<li class="mui-table-view-cell">
|
||
|
<a class="view-herf mui-navigate-right" view-id="mine/html/user/pay/save_user_pay_wx.html" view-url="save_user_pay_wx.html">
|
||
|
{{dataBase.c2cUserPayWXText}}
|
||
|
<label class="app-table-cell-lable-right" v-if="isWx">{{dataBase.c2cNotBoundText}}</label>
|
||
|
</a>
|
||
|
</li>
|
||
|
<li class="mui-table-view-cell">
|
||
|
<a class="view-herf mui-navigate-right" view-id="mine/html/user/pay/save_user_pay_zfb.html" view-url="save_user_pay_zfb.html">
|
||
|
{{dataBase.c2cUserPayZFBText}}
|
||
|
<label class="app-table-cell-lable-right" v-if="isZfb">{{dataBase.c2cNotBoundText}}</label>
|
||
|
</a>
|
||
|
</li>
|
||
|
<li class="mui-table-view-cell">
|
||
|
<a class="view-herf mui-navigate-right" view-id="mine/html/user/pay/save_user_pay_yhk.html" view-url="save_user_pay_yhk.html">
|
||
|
{{dataBase.c2cUserPayYHKText}}
|
||
|
<label class="app-table-cell-lable-right" v-if="isYhk">{{dataBase.c2cNotBoundText}}</label>
|
||
|
</a>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
|
||
|
</html>
|
||
|
<script type="text/javascript">
|
||
|
function isPay(array, payInt) {
|
||
|
if(array != null) {
|
||
|
for(var i = 0; i < array.length; i++) {
|
||
|
if(array[i] == payInt) {
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
var bodyData = new Vue({
|
||
|
el: '#data-info',
|
||
|
data: {
|
||
|
dataBase: dataBase, // 页面文字渲染
|
||
|
userPay: JSON.parse(localStorage.getItem("user_pay_key") || "[]"),
|
||
|
|
||
|
},
|
||
|
computed: {
|
||
|
isWx: function() {
|
||
|
return isPay(this.userPay, this.dataBase.userPayCode.wx);
|
||
|
},
|
||
|
isZfb: function() {
|
||
|
return isPay(this.userPay, this.dataBase.userPayCode.zfb);
|
||
|
},
|
||
|
isYhk: function() {
|
||
|
return isPay(this.userPay, this.dataBase.userPayCode.yhk);
|
||
|
}
|
||
|
}
|
||
|
})
|
||
|
|
||
|
mui("#gear-list").on('tap', '.view-herf', function() {
|
||
|
if(Object.is(JSON.stringify(app.getEthWalletInfoLocalStorage()), "{}")) {
|
||
|
mui.toast("您还未创建托管钱包!");
|
||
|
app.openWin("../../../../html/wakuang/html/eth/add_eth_wallet.html","wakuang/html/eth/add_eth_wallet.html");
|
||
|
} else {
|
||
|
var viewId = this.getAttribute('view-id');
|
||
|
var viewUrl = this.getAttribute('view-url');
|
||
|
app.openWin(viewUrl,viewId);
|
||
|
}
|
||
|
})
|
||
|
|
||
|
function saveUserPayData() {
|
||
|
console.log(JSON.stringify(ajaxJs.AJAX_SELECTPAYARRAY_USERLPAY));
|
||
|
ajaxJs.ajaxUtil({
|
||
|
obj: ajaxJs.AJAX_SELECTPAYARRAY_USERLPAY,
|
||
|
end: function(data) {
|
||
|
bodyData.userPay = data.data;
|
||
|
localStorage.setItem("user_pay_key", JSON.stringify(data.data));
|
||
|
}
|
||
|
})
|
||
|
}
|
||
|
saveUserPayData();
|
||
|
</script>
|