1
This commit is contained in:
231
application/index/view/user/account.html
Executable file
231
application/index/view/user/account.html
Executable file
@ -0,0 +1,231 @@
|
||||
{include file="public/header" nav="我的"}
|
||||
<script type="text/javascript" src="__ROOT__/static/wap/js/jquery-1.9.1.min.js"></script>
|
||||
<script type="text/javascript" src="__ROOT__/static/wap/js/order.js"></script>
|
||||
<script type="text/javascript" src="__ROOT__/static/wap/js/function.js"></script>
|
||||
<script type="text/javascript" src="__ROOT__/static/wap/js/base64.js"></script>
|
||||
<script type="text/javascript">
|
||||
var Base64 = new Base64();
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="__ROOT__/static/wap/css/ionic.css">
|
||||
<link rel="stylesheet" type="text/css" href="__ROOT__/static/wap/css/style.css">
|
||||
<style type="text/css">
|
||||
|
||||
body{
|
||||
font-size: 14px !important;
|
||||
}
|
||||
.box .footer {
|
||||
|
||||
}
|
||||
.box .footer > div a i {
|
||||
margin-bottom:-.9rem !important;
|
||||
width: 1.4rem !important;
|
||||
height: 1.4rem !important;
|
||||
background-size: auto 1.5rem !important;
|
||||
}
|
||||
|
||||
.box .footer > div a span {
|
||||
font-size: .6rem !important;
|
||||
margin-top: 14px !important
|
||||
}
|
||||
.ismimi *{
|
||||
color:#a5b7d3!important;
|
||||
}
|
||||
.account_head .a{
|
||||
display:block;
|
||||
}
|
||||
.account_head .b{
|
||||
display:none;
|
||||
}
|
||||
.ismimi .a{
|
||||
display:none;
|
||||
}
|
||||
.ismimi .b{
|
||||
display:block;
|
||||
}
|
||||
</style>
|
||||
<div id="app">
|
||||
<div class="box">
|
||||
<div class="">
|
||||
<div class="account">
|
||||
<div class="account_title">
|
||||
我的账户
|
||||
</div>
|
||||
<div class="account_head">
|
||||
<div class="top">
|
||||
<div class="top_left">
|
||||
<div class="tl1">账户总资产 CNH</div>
|
||||
<span class="tl2" id="qianqian">{$user.money}</span>
|
||||
<span class="refresh">刷新</span>
|
||||
</div>
|
||||
<div class="top_right mimi">
|
||||
<img src="/static/wap/images/icon_eye.png" alt="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="down">
|
||||
<div class="it">
|
||||
<h5>账户盈亏</h5>
|
||||
<h6 class="a">0</h6>
|
||||
<h6 class="b">*****</h6>
|
||||
</div>
|
||||
<div class="it">
|
||||
<h5>持仓金额</h5>
|
||||
<h6 class="a">0</h6>
|
||||
<h6 class="b">*****</h6>
|
||||
</div>
|
||||
<div class="it">
|
||||
<h5>可用资金</h5>
|
||||
<h6 class="a">{$user.money}</h6>
|
||||
<h6 class="b">*****</h6>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="account_list">
|
||||
<ul>
|
||||
<li><a href="/index/user/recharge_record"><img src="/static/wap/images/ch6.png" alt="" ><span>充值记录</span></a></li>
|
||||
<li><a href="/index/user/recharge" class=""><img src="/static/wap/images/ch5.png" alt=""><span>充值</span></a></li>
|
||||
<li><a href="/index/user/cash" class=""><img src="/static/wap/images/ch4.png" alt=""><span>提现</span></a></li>
|
||||
<li><a href="/index/user/cash_record"><img src="/static/wap/images/ch4.png" alt="" ><span>提现记录</span></a></li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><a href="/index/user/hold" class=""><img src="/static/wap/images/ch3.png" alt=""><span>历史委托</span></a></li>
|
||||
<li><a href="/index/user/fund" class=""><img src="/static/wap/images/ch2.png" alt=""><span>账单</span></a></li>
|
||||
<li><a onClick="window.open('{:getInfo('service')}','_blank');" class=""><img src="/static/wap/images/ch1.png" alt=""><span>客服</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="accound_tabs">
|
||||
|
||||
<ion-nav-view class="view-container" nav-view-transition="ios" nav-view-direction="none" nav-swipe="">
|
||||
<ion-tabs class="tabs-icon-top navbar pane tabs-bottom tabs-standard" abstract="true" nav-view="active" style="opacity: 1; transform: translate3d(0%, 0px, 0px);">
|
||||
<ion-nav-view name="tab-history" class="view-container tab-content" nav-view="active" nav-view-transition="ios" nav-view-direction="swap" nav-swipe="">
|
||||
<ion-view view-title="" hide-nav-bar="false" class="pane" state="tab.history" nav-view="active" style="opacity: 1; transform: translate3d(0%, 0px, 0px);">
|
||||
<ion-nav-buttons side="right" class="hide"></ion-nav-buttons>
|
||||
<ion-content class="trade_history scroll-content ionic-scroll scroll-content-false has-tabs" scroll="false">
|
||||
<header>
|
||||
<article class="left-table" onclick="change_category(0)" class="active" style="">
|
||||
<p class="chicangmingxi">持仓明细(0)</p>
|
||||
</article>
|
||||
<article class="right-table" onclick="change_category(1)">
|
||||
<p class="lishimingxi">历史明细(0)</p>
|
||||
</article>
|
||||
</header>
|
||||
<div class="trade_history_list slider" style="visibility: visible;overflow:scroll">
|
||||
<div class="slider-slides" ng-transclude="">
|
||||
<ion-slide class="slider-slide slider-left" data-index="0" style="width: 100%px; left: 0px; transition-duration: 0ms; transform: translate(0px, 0px) translateZ(0px);">
|
||||
|
||||
|
||||
<!-- <div class="empty">-->
|
||||
<!-- <img src="/static/wap/images/empty.png" alt="">-->
|
||||
<!-- <p>您暂无任何持仓</p>-->
|
||||
<!-- </div>-->
|
||||
|
||||
|
||||
|
||||
<ul>
|
||||
</ul>
|
||||
</ion-slide>
|
||||
<ion-slide class="slider-slide slider-right" data-index="1" style=" left: 0px; top: -100%;transition-duration: 0ms; transform: translate(414px, 0px) translateZ(0px);">
|
||||
<ul class="uls" style="font-size: 14px !important;">
|
||||
</ul>
|
||||
</ion-slide>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-backdrop ng-hide">
|
||||
<div class="modal-backdrop-bg"></div>
|
||||
<div class="modal-wrapper" ng-transclude="">
|
||||
<ion-modal-view class="order-modal modal slide-in-up ng-enter active ng-enter-active">
|
||||
<ion-header-bar class="order-modal-header bar bar-header">
|
||||
<h1 class="title lishimingxi" style="left: 54px; right: 54px;"></h1>
|
||||
<div class="close" ng-click="close_order_modal.hide()">
|
||||
<i class="icon ion-ios-close-empty"></i>
|
||||
</div>
|
||||
</ion-header-bar>
|
||||
<ion-content class="order-modal-content scroll-content ionic-scroll has-header">
|
||||
<div class="scroll" style="transform: translate3d(0px, 0px, 0px) scale(1);">
|
||||
<ul class="list">
|
||||
<li class="item item-input">
|
||||
<span class="input-label" aria-label="商品" id="_label-0">商品</span>
|
||||
<span class="input-content ng-binding ptitle"></span>
|
||||
</li>
|
||||
<li class="item item-input">
|
||||
<span class="input-label" aria-label="成交价" id="_label-2">成交价</span>
|
||||
<span class="input-content ng-binding buyprice"></span>
|
||||
</li>
|
||||
<li class="item item-input">
|
||||
<span class="input-label" aria-label="结算价" id="_label-3">结算价</span>
|
||||
<span class="input-content ng-binding sellprice"></span>
|
||||
</li>
|
||||
<li class="item item-input">
|
||||
<span class="input-label" aria-label="手续费" id="_label-4">手续费</span>
|
||||
<span class="input-content ng-binding">0</span>
|
||||
</li>
|
||||
<li class="item item-input">
|
||||
<span class="input-label" aria-label="盈亏" id="_label-5">盈亏</span>
|
||||
<span class="input-content ng-binding rise ploss" style="">
|
||||
0.00
|
||||
</span>
|
||||
</li>
|
||||
<li class="item item-input">
|
||||
<span class="input-label" aria-label="成交时间" id="_label-6">成交时间</span>
|
||||
<span class="input-content ng-binding buytime"></span>
|
||||
</li>
|
||||
<li class="item item-input">
|
||||
<span class="input-label" aria-label="结算时间" id="_label-7">结算时间</span>
|
||||
<span class="input-content ng-binding selltime"></span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="scroll-bar scroll-bar-v">
|
||||
<div class="scroll-bar-indicator scroll-bar-fade-out" style="transform: translate3d(0px, 0px, 0px) scaleY(1); height: 0px; transform-origin: center bottom 0px;"></div>
|
||||
</div>
|
||||
</ion-content>
|
||||
<div class="button-bar">
|
||||
<a class="button button-dark" onclick="close_order_modal()">关闭</a>
|
||||
</div>
|
||||
|
||||
</ion-modal-view>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ion-content>
|
||||
</ion-view>
|
||||
</ion-nav-view>
|
||||
</ion-tabs>
|
||||
</ion-nav-view>
|
||||
|
||||
<div class="backdrop"></div>
|
||||
<div class="ionic_toast">
|
||||
<div class="toast_section" ng-class="ionicToast.toastClass" ng-style="ionicToast.toastStyle" ng-click="hideToast()" style="display: none; opacity: 0;">
|
||||
<span class="ionic_toast_close"><i class="ion-android-close toast_close_icon"></i></span><span ng-bind-html="ionicToast.toastMessage" class="ng-binding"></span></div>
|
||||
</div>
|
||||
</div>
|
||||
{include file="public/footer" menu='account'}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
var charturl = '/index/user/getchart.html';
|
||||
$.get(charturl, function(_res) {
|
||||
var res = jQuery.parseJSON(Base64.decode(_res));
|
||||
$.each(res, function(k, v) {
|
||||
$('.' + k).html(v);
|
||||
})
|
||||
$(".mimi").click(function(){
|
||||
$(".account_head").toggleClass("ismimi")
|
||||
})
|
||||
$(".refresh").click(function(){
|
||||
var qian = 10000.00;
|
||||
setTimeout(function(){
|
||||
$("#qianqian").text(qian)
|
||||
},3000)
|
||||
})
|
||||
})
|
||||
</script>
|
||||
<script type="text/javascript" src="__ROOT__/static/wap/js/hold.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
change_category(0)
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
100
application/index/view/user/add_card.html
Executable file
100
application/index/view/user/add_card.html
Executable file
@ -0,0 +1,100 @@
|
||||
{include file="public/header" nav="添加银行卡"}
|
||||
<link rel="stylesheet" type="text/css" href="__ROOT__/static/wap/css/tipmask.css">
|
||||
<link rel="stylesheet" type="text/css" href="__ROOT__/static/wap/css/box_pay.css">
|
||||
<div id="app">
|
||||
<div class="box">
|
||||
<div class="jun-content">
|
||||
<div class="f_box_addbank">
|
||||
<div class="t_header">
|
||||
<span><img src="__ROOT__/static/wap/images/goback.png" alt="" onClick="javascript:history.back()"></span>
|
||||
<span><i>添加银行卡</i></span>
|
||||
</div>
|
||||
<div class="f_content">
|
||||
<ul>
|
||||
<li>
|
||||
<label>姓名</label>
|
||||
<span><input type="text" name="name" id="name" value="" placeholder="输入姓名" onfocus="this.placeholder=''" onblur="this.placeholder='输入姓名'"></span>
|
||||
</li>
|
||||
{if condition="getInfo('bank') eq 0"}
|
||||
<li>
|
||||
<label>银行名称</label>
|
||||
<span><input type="text" name="bank" id="bank" value="" placeholder="输入银行名称" onfocus="this.placeholder=''" onblur="this.placeholder='输入银行名称'"></span>
|
||||
</li>
|
||||
<li>
|
||||
<label>开户行</label>
|
||||
<span><input type="text" name="area" id="area" value="" placeholder="输入银行卡开户行" onfocus="this.placeholder=''" onblur="this.placeholder='输入银行卡开户行'"></span>
|
||||
</li>
|
||||
{else/}
|
||||
<input type="hidden" name="bank" id="bank" value="">
|
||||
<input type="hidden" name="area" id="area" value="">
|
||||
{/if}
|
||||
<li>
|
||||
<label>银行卡号</label>
|
||||
<span><input type="text" name="account" id="account" value="" placeholder="输入银行卡号" onfocus="this.placeholder=''" onblur="this.placeholder='输入银行卡号'"></span>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="sure">
|
||||
<button id="sub_btn" type="button" class="el-button el-button--danger">确认绑定 </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{include file="public/footer" menu='user'}
|
||||
</div>
|
||||
</div>
|
||||
<div class="tipMask hide">
|
||||
<div class="cont">
|
||||
<p class="title">温馨提示</p>
|
||||
<p class="stitle contents"></p>
|
||||
<div id="msgBtn">
|
||||
<div class="confirm guanbi">确定</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<script type="text/javascript" src="__ROOT__/static/theme/index/js/jquery.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
$("#sub_btn").on("click", function () {
|
||||
var bank = $('#bank').val();
|
||||
var area = $('#area').val();
|
||||
var account = $('#account').val();
|
||||
if (account.length < 10) {
|
||||
msg("错误", "输入银行卡号", 1);
|
||||
return false;
|
||||
}
|
||||
var name = $('#name').val();
|
||||
if (name.length < 2) {
|
||||
msg("错误", "输入姓名", 1);
|
||||
return false;
|
||||
}
|
||||
var url = "/index/user/add_card";
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : url,
|
||||
data: {'bank':bank,'area':area,'account':account,'name':name},
|
||||
dataType : "json",
|
||||
success : function(result){
|
||||
if(result.code == 1){
|
||||
window.location.href = "/index/user/bank_card"
|
||||
}else{
|
||||
msg("提示",result.info,1);
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
})
|
||||
|
||||
function msg(title, content, type, url) {
|
||||
$(".contents").html(content);
|
||||
if (type == 1) {
|
||||
var btn = '<div class="confirm guanbi" onclick="$(\'.tipMask\').hide();">确定</div>';
|
||||
}
|
||||
else {
|
||||
var btn = '<div class="confirm guanbi" onclick="window.location.href=\'' + url + '\'">确定</div>';
|
||||
}
|
||||
$("#msgBtn").html(btn);
|
||||
$(".tipMask").show();
|
||||
}
|
||||
</script>
|
||||
</html>
|
||||
125
application/index/view/user/alipay.html
Executable file
125
application/index/view/user/alipay.html
Executable file
@ -0,0 +1,125 @@
|
||||
{include file="public/header1" nav="支付宝设置"}
|
||||
<style>
|
||||
.container {
|
||||
padding: 0 .4rem;
|
||||
}
|
||||
|
||||
.cont {
|
||||
padding: .4rem .6rem .6rem;
|
||||
border-radius: 10px;
|
||||
border: 1px solid #E9E9E9;
|
||||
position: relative;
|
||||
margin-top: .5rem;
|
||||
}
|
||||
|
||||
.cont .name {
|
||||
font-size: .34rem;
|
||||
line-height: 1;
|
||||
color: #4A4A4A;
|
||||
}
|
||||
|
||||
.cont .nunber {
|
||||
font-size: .3rem;
|
||||
line-height: .42rem;
|
||||
color: #4A4A4A;
|
||||
margin-top: .3rem;
|
||||
}
|
||||
|
||||
.cont .img {
|
||||
width: 1.02rem;
|
||||
height: .76rem;
|
||||
position: absolute;
|
||||
right: .2rem;
|
||||
bottom: .2rem;
|
||||
}
|
||||
|
||||
.container {
|
||||
padding: 0 .4rem .4rem;
|
||||
}
|
||||
|
||||
.input-group {
|
||||
width: 100%;
|
||||
padding-top: .4rem;
|
||||
border-bottom: 1px solid #E9E9E9;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.input-group .stitle {
|
||||
font-size: .28rem;
|
||||
line-height: .4rem;
|
||||
color: #323232;
|
||||
}
|
||||
|
||||
.input-group .in {
|
||||
margin-top: .3rem;
|
||||
padding-bottom: .1rem;
|
||||
}
|
||||
|
||||
.input-group .in:after {
|
||||
content: "";
|
||||
clear: both;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.input-group .in input {
|
||||
width: 100%;
|
||||
height: .5rem;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
font-size: .32rem;
|
||||
line-height: .5rem;
|
||||
float: left;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.input-group .in input::placeholder {
|
||||
color: #9B9B9B;
|
||||
}
|
||||
|
||||
.confirm {
|
||||
width: 100%;
|
||||
height: .86rem;
|
||||
background-color: #EF6F6C;
|
||||
border-radius: 4px;
|
||||
font-size: .26rem;
|
||||
color: #fff;
|
||||
line-height: .86rem;
|
||||
text-align: center;
|
||||
margin-top: .8rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="header">
|
||||
<a class="left" href="/index/user/index">
|
||||
<i class="iconfont icon-arrow-left"></i>
|
||||
</a>
|
||||
<div class="htitle">支付宝设置</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<form action="/index/user/alipay" method="post" id="subform">
|
||||
<div class="input-group">
|
||||
<div class="stitle">真实姓名</div>
|
||||
<div class="in"><input type="text" value="{$user.name}" class="name" name="name" disabled=""/></div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<div class="stitle">支付宝账号</div>
|
||||
<div class="in"><input type="text" name="alipay" value="{$user.alipay}" placeholder="输入支付宝账号"/></div>
|
||||
</div>
|
||||
<p style="font-size:.22rem;padding:20px 0 10px 0">绑定的支付宝必须与实名一致,否则将无法成功提现</p>
|
||||
{if condition="empty($user['alipay'])"}
|
||||
<div class="confirm">确认</div>
|
||||
{/if}
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
<script type="text/javascript" src="__ROOT__/static/theme/index/js/font.js"></script>
|
||||
<script type="text/javascript" src="__ROOT__/static/theme/index/js/jquery.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
$('.confirm').click(function () {
|
||||
$('#subform').submit();
|
||||
});
|
||||
})
|
||||
</script>
|
||||
</html>
|
||||
564
application/index/view/user/bank.html
Executable file
564
application/index/view/user/bank.html
Executable file
@ -0,0 +1,564 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport"
|
||||
content="width=device-width,minimum-scale=1,maximum-scale=1,initial-scale=1,user-scalable=no"/>
|
||||
<title>银行入款充值</title>
|
||||
<style>
|
||||
html, body {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: "微软雅黑";
|
||||
}
|
||||
|
||||
ul, li {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
p {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.hide {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.container {
|
||||
padding: 0 .4rem .4rem;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: .24rem;
|
||||
line-height: 1;
|
||||
color: #6E6E6E;
|
||||
}
|
||||
|
||||
.input-group {
|
||||
width: 100%;
|
||||
padding-top: .4rem;
|
||||
border-bottom: 1px solid #E9E9E9;
|
||||
}
|
||||
|
||||
.input-group .stitle {
|
||||
font-size: .24rem;
|
||||
line-height: .34rem;
|
||||
color: #BABABA;
|
||||
}
|
||||
|
||||
.input-group .in {
|
||||
margin-top: .38rem;
|
||||
padding-bottom: .14rem;
|
||||
border-bottom: 1px solid #E9E9E9;
|
||||
}
|
||||
|
||||
.input-group .in input {
|
||||
width: 100%;
|
||||
height: .34rem;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
font-size: .24rem;
|
||||
line-height: .34rem;
|
||||
outline: none;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.input-group .in input::placeholder {
|
||||
color: #9B9B9B;
|
||||
}
|
||||
|
||||
.input-group .in:after {
|
||||
content: "";
|
||||
clear: both;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* payModes CSS */
|
||||
.payModes {
|
||||
margin-top: .3rem;
|
||||
}
|
||||
|
||||
.payModes .pm-title {
|
||||
font-size: .24rem;
|
||||
line-height: .34rem;
|
||||
color: #6E6E6E;
|
||||
}
|
||||
|
||||
.payMode {
|
||||
margin-top: .08rem;
|
||||
padding-top: .36rem;
|
||||
padding-bottom: .26rem;
|
||||
border-bottom: 1px solid #E9E9E9;
|
||||
}
|
||||
|
||||
.payModes .list .payMode:last-child {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.payMode .left {
|
||||
width: .44rem;
|
||||
height: .44rem;
|
||||
margin-right: .2rem;
|
||||
line-height: 0;
|
||||
float: left;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.payMode img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.payMode .center {
|
||||
font-size: .28rem;
|
||||
line-height: .44rem;
|
||||
color: #262626;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.payMode .right {
|
||||
float: right;
|
||||
margin-top: .1rem;
|
||||
}
|
||||
|
||||
.payMode .right .checkbox {
|
||||
width: .4rem;
|
||||
height: .4rem;
|
||||
position: relative;
|
||||
float: left;
|
||||
margin-top: .02rem;
|
||||
}
|
||||
|
||||
.payMode .right .checkbox input {
|
||||
width: .4rem;
|
||||
height: .4rem;
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.payMode .right .checkbox label {
|
||||
width: .4rem;
|
||||
height: .4rem;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.payMode .right .checkbox input + label {
|
||||
background-image: url(../../img/icon/icon_untick.png);
|
||||
background-size: 100% 100%;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.payMode .right .checkbox input:checked + label {
|
||||
background-image: url(../../img/icon/icon_tick1.png);
|
||||
background-size: 100% 100%;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.payMode:after {
|
||||
content: "";
|
||||
clear: both;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.confirm {
|
||||
width: 100%;
|
||||
height: .98rem;
|
||||
background-color: #EF6F6C;
|
||||
border-radius: 4px;
|
||||
font-size: .32rem;
|
||||
color: #fff;
|
||||
line-height: .98rem;
|
||||
text-align: center;
|
||||
margin-top: .8rem;
|
||||
}
|
||||
|
||||
.header {
|
||||
display: none;
|
||||
width: 100%;
|
||||
height: .98rem;
|
||||
background-color: #fff;
|
||||
border-bottom: 1px solid rgba(0, 0, 0, 0.25);
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.header .back {
|
||||
width: .54rem;
|
||||
text-align: center;
|
||||
line-height: 0;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.header .back img {
|
||||
width: .18rem;
|
||||
height: .32rem;
|
||||
margin-top: .35rem;
|
||||
}
|
||||
|
||||
.header .h-title {
|
||||
font-size: .34rem;
|
||||
line-height: .98rem;
|
||||
color: #030303;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
html, body {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
font-family: "微软雅黑";
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
* {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
input {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.main {
|
||||
padding-top: 0 !important;
|
||||
}
|
||||
|
||||
.navlist {
|
||||
top: 0 !important;
|
||||
}
|
||||
|
||||
/* tipMask CSS */
|
||||
.tipMask {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(95, 95, 95, 0.3);
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
.tipMask .cont {
|
||||
width: 5.1rem;
|
||||
padding: .42rem .6rem .5rem;
|
||||
border-radius: 5px;
|
||||
background-color: #FFFFFF;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
margin-left: -3.15rem;
|
||||
margin-top: -1.8rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.tipMask .cont .title {
|
||||
font-size: .34rem;
|
||||
line-height: .48rem;
|
||||
color: #191919;
|
||||
}
|
||||
|
||||
.tipMask .cont .stitle {
|
||||
font-size: .3rem;
|
||||
line-height: .42rem;
|
||||
color: #606060;
|
||||
margin-top: .36rem;
|
||||
}
|
||||
|
||||
.tipMask .cont .confirm {
|
||||
width: 100%;
|
||||
height: .88rem;
|
||||
background-color: #EF6F6C;
|
||||
border-radius: 4px;
|
||||
font-size: .34rem;
|
||||
color: #fff;
|
||||
line-height: .88rem;
|
||||
text-align: center;
|
||||
margin-top: .5rem;
|
||||
}
|
||||
|
||||
.wrap {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-flex-flow: column;
|
||||
flex-flow: column;
|
||||
}
|
||||
|
||||
.main {
|
||||
padding-top: .98rem;
|
||||
background-color: #FAFAFA;
|
||||
-webkit-box-flex: 1;
|
||||
-webkit-flex: 1;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.bg {
|
||||
width: 100%;
|
||||
height: 3rem;
|
||||
background-color: #33B497;
|
||||
}
|
||||
|
||||
.top {
|
||||
width: 6.1rem;
|
||||
padding: 0 .4rem .6rem;
|
||||
border-radius: 10px;
|
||||
background-color: #fff;
|
||||
margin: 0 auto;
|
||||
margin-top: -1.8rem;
|
||||
}
|
||||
|
||||
.top .info {
|
||||
border-bottom: 1px solid #E9E9E9;
|
||||
padding-top: .4rem;
|
||||
}
|
||||
|
||||
.top .info .item {
|
||||
display: flex;
|
||||
display: -webkit-flex;
|
||||
font-size: .28rem;
|
||||
line-height: 1;
|
||||
color: #4A4A4A;
|
||||
padding-bottom: .5rem;
|
||||
}
|
||||
|
||||
.top .info .item .left {
|
||||
width: 2rem;
|
||||
}
|
||||
|
||||
.top .info .item .right {
|
||||
width: 4.1rem;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.top .info .item .right.money {
|
||||
color: #33B497;
|
||||
}
|
||||
|
||||
.top .imgBox {
|
||||
width: 5.9rem;
|
||||
height: 2.2rem;
|
||||
border-radius: 10px;
|
||||
line-height: 0;
|
||||
margin: 0 auto;
|
||||
margin-top: .4rem;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
.top .imgBox img {
|
||||
width: 100%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.top .upload {
|
||||
width: 3.54rem;
|
||||
height: .84rem;
|
||||
border-radius: 10px;
|
||||
background-color: #33B497;
|
||||
font-size: .28rem;
|
||||
line-height: .84rem;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
margin: 0 auto;
|
||||
margin-top: .4rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.top .upload input {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 1;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.notice {
|
||||
padding: .34rem;
|
||||
}
|
||||
|
||||
.notice .n-title {
|
||||
font-size: .28rem;
|
||||
line-height: 1;
|
||||
color: #4A4A4A;
|
||||
}
|
||||
|
||||
.notice .n-cont {
|
||||
font-size: .24rem;
|
||||
line-height: .4rem;
|
||||
color: #999999;
|
||||
margin-top: .2rem;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrap">
|
||||
<div class="header" style="display: block;">
|
||||
<div class="back">
|
||||
<a href="/index/user/index"> <img src="__ROOT__/static/theme/index/img/goback.png"></a>
|
||||
</div>
|
||||
<div class="h-title">银行入款充值</div>
|
||||
</div>
|
||||
<div class="main">
|
||||
<div class="bg" style="padding-top: .7rem;"></div>
|
||||
<div class="top">
|
||||
<div class="info">
|
||||
|
||||
<div class="item" style="padding-bottom: .3rem;">
|
||||
<div class="left"><b style="font-size: .4rem;">银行入款</b></div>
|
||||
<div class="right money" style="color:red;"><b style="font-size: .4rem;">{$money}元</b></div>
|
||||
|
||||
</div>
|
||||
<div style="color:#f666;text-align:center;font-size:.3rem;padding-bottom: .3rem;">
|
||||
此为我公司财务,请放心充值
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="left">收款银行:</div>
|
||||
<div class="right">
|
||||
{if condition="$type eq 'gz_bank'"}
|
||||
{:getInfo('gz_bank_type')}
|
||||
{/if}
|
||||
{if condition="$type eq 'alipay_bank'"}
|
||||
{:getInfo('alipay_bank_type')}
|
||||
{/if}
|
||||
{if condition="$type eq 'wx_bank'"}
|
||||
{:getInfo('wx_bank_type')}
|
||||
{/if}
|
||||
{if condition="$type eq 'bank'"}
|
||||
{:getInfo('pay_bank_type')}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="left">收款人:</div>
|
||||
<div class="right">
|
||||
{if condition="$type eq 'gz_bank'"}
|
||||
{:getInfo('gz_bank_name')}
|
||||
{/if}
|
||||
{if condition="$type eq 'wx_bank'"}
|
||||
{:getInfo('wx_bank_name')}
|
||||
{/if}
|
||||
{if condition="$type eq 'alipay_bank'"}
|
||||
{:getInfo('alipay_bank_name')}
|
||||
{/if}
|
||||
{if condition="$type eq 'bank'"}
|
||||
{:getInfo('pay_bank_name')}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="left">收款账号:</div>
|
||||
<div class="right">
|
||||
{if condition="$type eq 'gz_bank'"}
|
||||
{:getInfo('gz_bank_account')}
|
||||
{/if}
|
||||
{if condition="$type eq 'wx_bank'"}
|
||||
{:getInfo('wx_bank_account')}
|
||||
{/if}
|
||||
{if condition="$type eq 'alipay_bank'"}
|
||||
{:getInfo('alipay_bank_account')}
|
||||
{/if}
|
||||
{if condition="$type eq 'bank'"}
|
||||
{:getInfo('pay_bank_account')}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<form method="post" action="/index/user/bank" id="ifr">
|
||||
<input type="hidden" value="{$orderid}" name="orderid"/>
|
||||
<div class="info">
|
||||
<div class="item">
|
||||
<div class="left">付款人:</div>
|
||||
<div class="right"><input style="border: none;" type="text" name="name" id="name" value=""
|
||||
placeholder="请输入转账人姓名"/></div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="left">转账附言:</div>
|
||||
<div class="right"><input style="border: none;" type="text" name="reason" id="reason" value=""
|
||||
placeholder="请输入转账附言"/></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="upload">提交</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="notice">
|
||||
<div class="n-title">注意事项</div>
|
||||
<div class="n-cont">
|
||||
{if condition="$type eq 'gz_bank'"}
|
||||
{:getInfo('gz_bank')}
|
||||
{/if}
|
||||
{if condition="$type eq 'wx_bank'"}
|
||||
{:getInfo('wx_bank')}
|
||||
{/if}
|
||||
{if condition="$type eq 'alipay_bank'"}
|
||||
{:getInfo('alipay_bank')}
|
||||
{/if}
|
||||
{if condition="$type eq 'bank'"}
|
||||
{:getInfo('pay_bank')}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tipMask hide">
|
||||
<div class="cont">
|
||||
<p class="title">温馨提示</p>
|
||||
<p class="stitle contents"></p>
|
||||
<div id="msgBtn">
|
||||
<div class="confirm guanbi" style="background-color:#33B497;">确定</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<script type="text/javascript" src="__ROOT__/static/theme/index/js/font.js"></script>
|
||||
<script type="text/javascript" src="__ROOT__/static/theme/index/js/jquery.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
$('.upload').click(function () {
|
||||
var name = $("#name").val();
|
||||
var reason = $("#reason").val();
|
||||
if (name.length < 2) {
|
||||
msg("错误", "请输入付款人姓名!", 1);
|
||||
return false;
|
||||
}
|
||||
$("#ifr").submit();
|
||||
})
|
||||
});
|
||||
|
||||
function msg(title, content, type, url) {
|
||||
$(".contents").html(content);
|
||||
if (type == 1) {
|
||||
var btn = '<div class="confirm guanbi" style="background-color:#33B497;" onclick="$(\'.tipMask\').hide();">确定</div>';
|
||||
}
|
||||
else {
|
||||
var btn = '<div class="confirm guanbi" style="background-color:#33B497;" onclick="window.location.href=\'' + url + '\'">确定</div>';
|
||||
}
|
||||
$("#msgBtn").html(btn);
|
||||
$(".tipMask").show();
|
||||
}
|
||||
</script>
|
||||
</html>
|
||||
44
application/index/view/user/bank_card.html
Executable file
44
application/index/view/user/bank_card.html
Executable file
@ -0,0 +1,44 @@
|
||||
{include file="public/header" nav="银行卡管理"}
|
||||
<link rel="stylesheet" type="text/css" href="__ROOT__/static/wap/css/box_pay.css">
|
||||
<div id="app">
|
||||
<div class="box">
|
||||
<div class="jun-content">
|
||||
<div class="f_box_bank">
|
||||
<div class="t_header">
|
||||
<span><img src="__ROOT__/static/wap/images/goback.png" alt="" onClick="javascript:history.back()"></span>
|
||||
<span><i>银行卡管理</i></span>
|
||||
</div>
|
||||
<div class="f_content">
|
||||
{if condition="$bank"}
|
||||
{volist name="bank" id="b"}
|
||||
<ul class="f_withdraw">
|
||||
<li class="banklist">
|
||||
<span><img src="__ROOT__/static/wap/images/gb11.png" style="height:30px; position:relative; padding: 10px;" alt=""></span>
|
||||
<span>{$b.bank} ****{:substr($b['account'], strlen($b['account']) - 4, 4)} </span>
|
||||
<span>{$b.name}</span>
|
||||
<i data-myid="{$b.id}" class="awesome"></i>
|
||||
</li>
|
||||
</ul>
|
||||
{/volist}
|
||||
<div class="addbank">
|
||||
<a href="/index/user/add_card" class="">
|
||||
<button type="button" class="el-button el-button--danger" id="l_addBankBtn"><span>绑定银行卡</span>
|
||||
</button>
|
||||
</a>
|
||||
</div>
|
||||
<div class="addbank">
|
||||
<a href="{:getInfo('service')}" class="el-button el-button--danger" id="l_addBankBtn">
|
||||
修改银行卡请联系在线客服
|
||||
</a>
|
||||
</div>
|
||||
{else}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{include file="public/footer" menu='user'}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
156
application/index/view/user/cash.html
Executable file
156
application/index/view/user/cash.html
Executable file
@ -0,0 +1,156 @@
|
||||
{include file="public/header" nav="提现"}
|
||||
<link rel="stylesheet" type="text/css" href="__ROOT__/static/wap/css/tipmask.css">
|
||||
<link rel="stylesheet" type="text/css" href="__ROOT__/static/wap/css/box_pay.css">
|
||||
<style type="text/css">
|
||||
span {
|
||||
display: inline-block;
|
||||
}
|
||||
</style>
|
||||
<div id="app">
|
||||
<div class="box"><!---->
|
||||
<div class="jun-content">
|
||||
<div class="t_box_withdraw">
|
||||
<div class="t_header">
|
||||
<span><img src="__ROOT__/static/wap/images/goback.png" alt="" onClick="javascript:history.back()"></span>
|
||||
<span><i>提现</i></span>
|
||||
</div>
|
||||
<div class="t_con_withdraw">
|
||||
<div class="one">
|
||||
<div class="one1">可提现金额(元)</div>
|
||||
<div class="one2">
|
||||
<em>¥</em>
|
||||
<span>{$user['money']}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="two">
|
||||
<div class="two1">提现金额</div>
|
||||
<div class="two2">
|
||||
<em>¥</em>
|
||||
<input type="number" placeholder="请输入提现金额" id="money" onfocus="this.placeholder=''" oninput="xxoopp()" onblur="this.placeholder='请输入提现金额'">
|
||||
<label for="txsxf">手续费</label> <span id="txsxf">{$txsxf?$txsxf:'0'}%</span>
|
||||
</div>
|
||||
<div class="two3">单次提现金额最低 <span>{$cash_min?$cash_min:'0'}元</span></div>
|
||||
</div>
|
||||
<script>
|
||||
function xxoopp(){
|
||||
|
||||
console.log($("#money").val());
|
||||
var sxf1 = new BigNumber(0.01);
|
||||
var sxf2 = new BigNumber({$txsxf});
|
||||
var sxf3 = new BigNumber(sxf1.times(sxf2));
|
||||
var sxf4 = sxf3.times($("#money").val());
|
||||
$("#txsxf").val(sxf4);
|
||||
// alert(123);
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="item three">
|
||||
<label for="pwd">提现密码</label>
|
||||
<input type="password" placeholder="请输入提现密码" id="pwd" onfocus="this.placeholder=''" onblur="this.placeholder='请输入提现密码'">
|
||||
</div>
|
||||
<div class="item">
|
||||
<label>银行卡号</label>
|
||||
<div class="select">
|
||||
{if $bank}
|
||||
<select name="bank" id="bank" style="width: 100%;background: none;border: none;color: #fff;background: #111723;">
|
||||
<option value="{$bank.id}">{$bank.bank} ****{:substr($bank['account'], strlen($bank['account']) - 4, 4)}</option>
|
||||
</select>
|
||||
{else}
|
||||
<p style="line-height:30px;color:#fff;margin-top:6px;"><input type="hidden" name="bank" id="bank" value="0"><a href="/index/user/add_card" style="color:#edd33a">绑定银行卡</a>
|
||||
</p>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{if $bank}
|
||||
<div class="t_withdraw_btn">
|
||||
<button id="sub_btn" type="button">确认提交</button>
|
||||
</div>
|
||||
{else}
|
||||
<div class="t_withdraw_btn">
|
||||
<button id="sdtn" type="button">立即去绑定银行卡</button>
|
||||
</div>
|
||||
{/if}
|
||||
<span class="notice">
|
||||
<p>提示:</p>
|
||||
<p>1.提现限制:{$cash_min} - {$cash_max}</p>
|
||||
<p style="color:red;">2.提现时间:{$cash_start} - {$cash_end}</p>
|
||||
<p>3.若忘记提款密码,请<a target="_blank" href="{:getInfo('service')}" style="color:red;">点击找回</a></p>
|
||||
</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{include file="public/footer" menu='user'}
|
||||
</div>
|
||||
</div>
|
||||
<div class="tipMask hide">
|
||||
<div class="cont">
|
||||
<p class="title">温馨提示</p>
|
||||
<p class="stitle contents"></p>
|
||||
<div id="msgBtn">
|
||||
<div class="confirm guanbi">确定</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<script type="text/javascript" src="__ROOT__/static/theme/index/js/jquery.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
$("#sdtn").click(function(){
|
||||
var ulrs="/index/user/add_card";
|
||||
window.location.href =ulrs;
|
||||
});
|
||||
$('#withdraw').on('blur',function(){
|
||||
var withdraw = parseFloat($(this).val());
|
||||
var reg_par = (withdraw * 0/100).toFixed(2);
|
||||
$('#reg_par').val(reg_par>=0?reg_par:0);
|
||||
});
|
||||
$("#sub_btn").on("click", function () {
|
||||
var bank = $('#bank').val();
|
||||
var pwd = $("#pwd").val();
|
||||
var money = $("#money").val();
|
||||
if (money < {$cash_min}) {
|
||||
msg("错误", "最低提现金额为{$cash_min}元", 1);
|
||||
return false;
|
||||
}
|
||||
if (money > {$cash_max}) {
|
||||
msg("错误", "最高提现金额为{$cash_max}元", 1);
|
||||
return false;
|
||||
}
|
||||
if (pwd.length < 4) {
|
||||
msg("错误", "请输入交易密码", 1);
|
||||
return false;
|
||||
}
|
||||
var url = "/index/user/cash";
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : url,
|
||||
data: {'money':money,'pwd':pwd,'bank':bank},
|
||||
dataType : "json",
|
||||
success : function(result){
|
||||
if(result.code == 1){
|
||||
msg("提示",result.info,2,"/index/user/cash_record");
|
||||
}else{
|
||||
msg("提示",result.info,1);
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
})
|
||||
|
||||
function msg(title, content, type, url) {
|
||||
$(".contents").html(content);
|
||||
if (type == 1) {
|
||||
var btn = '<div class="confirm guanbi" onclick="$(\'.tipMask\').hide();">确定</div>';
|
||||
}
|
||||
else {
|
||||
var btn = '<div class="confirm guanbi" onclick="window.location.href=\'' + url + '\'">确定</div>';
|
||||
}
|
||||
$("#msgBtn").html(btn);
|
||||
$(".tipMask").show();
|
||||
}
|
||||
</script>
|
||||
</html>
|
||||
|
||||
|
||||
71
application/index/view/user/cash_record.html
Executable file
71
application/index/view/user/cash_record.html
Executable file
@ -0,0 +1,71 @@
|
||||
{include file="public/header" nav="提现记录"}
|
||||
<link rel="stylesheet" type="text/css" href="__ROOT__/static/wap/css/box_pay.css">
|
||||
|
||||
<div id="app">
|
||||
<div class="box"><!---->
|
||||
<div class="jun-content">
|
||||
<div class="f_box_accountrecord">
|
||||
<div class="t_header">
|
||||
<span><img src="__ROOT__/static/wap/images/goback.png" alt="" onClick="javascript:history.back()"></span>
|
||||
<span><i>提现记录</i></span>
|
||||
</div>
|
||||
<div class="t_box_accountrecord">
|
||||
{if count($cash) > 0}
|
||||
{volist name="cash" id="r"}
|
||||
<ul>
|
||||
<li>
|
||||
<span>时间:</span>
|
||||
<p>{$r.time}</p>
|
||||
</li>
|
||||
<li>
|
||||
<span>金额:</span>
|
||||
<p>¥{$r.money}</p>
|
||||
</li>
|
||||
<li>
|
||||
<span>手续费:</span>
|
||||
<p>{$r.sxfbfb}%</p>
|
||||
</li>
|
||||
<li>
|
||||
<span>实际到账:</span>
|
||||
<p>¥{$r.dzje}</p>
|
||||
</li>
|
||||
<li>
|
||||
<span>类型:</span>
|
||||
<p>{if condition="$r['bid'] eq 0"}支付宝提现{else}银行卡提现{/if}</p>
|
||||
</li>
|
||||
<li>
|
||||
<span>状态:</span>
|
||||
<p>
|
||||
{if condition="$r['status'] eq 0"}
|
||||
<span style="color: orange;">审核中</span>
|
||||
{/if}
|
||||
{if condition="$r['status'] eq 1"}
|
||||
<span style="color: green;">申请成功</span>
|
||||
{/if}
|
||||
{if condition="$r['status'] eq 2"}
|
||||
<span style="color: red;">申请失败</span>
|
||||
{/if}
|
||||
</p>
|
||||
</li>
|
||||
{if condition="$r['reaolae'] "}
|
||||
<li style="color:green">
|
||||
<span>拒绝原因:</span>
|
||||
<p>{$r.reaolae}</p>
|
||||
</li>
|
||||
{/if}
|
||||
</ul>
|
||||
{/volist}
|
||||
{else/}
|
||||
<div class="dataNo">
|
||||
<h3>没有更多数据了</h3>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{include file="public/footer" menu='user'}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
103
application/index/view/user/certification.html
Executable file
103
application/index/view/user/certification.html
Executable file
@ -0,0 +1,103 @@
|
||||
{include file="public/header" nav="实名认证"}
|
||||
<link rel="stylesheet" type="text/css" href="__ROOT__/static/wap/css/tipmask.css">
|
||||
<link rel="stylesheet" type="text/css" href="__ROOT__/static/wap/css/box_pay.css">
|
||||
<div id="app">
|
||||
<div class="box">
|
||||
<div class="jun-content">
|
||||
<div class="f_box_addbank">
|
||||
<div class="t_header">
|
||||
<span><img src="__ROOT__/static/wap/images/goback.png" alt="" onClick="javascript:history.back()"></span>
|
||||
<span><i>实名认证</i></span>
|
||||
</div>
|
||||
<div class="f_content">
|
||||
{if condition="$user['auth'] eq 1"}
|
||||
<div style="padding: 1rem;text-align: center;">
|
||||
<p><img class="img" src="/static/theme/index/img/icon_identity.png" alt=""/></p>
|
||||
</div>
|
||||
<ul>
|
||||
<li>
|
||||
<label>姓名</label>
|
||||
<span>{$user.name}</span>
|
||||
</li>
|
||||
<li>
|
||||
<label>身份证号</label>
|
||||
<span>{$user.idcard}</span>
|
||||
</li>
|
||||
</ul>
|
||||
{else /}
|
||||
<ul>
|
||||
<li>
|
||||
<label>姓名</label>
|
||||
<span><input type="text" name="name" id="name" value="" placeholder="输入姓名" onfocus="this.placeholder=''" onblur="this.placeholder='输入姓名'"></span>
|
||||
</li>
|
||||
<li>
|
||||
<label>身份证号</label>
|
||||
<span><input type="text" name="idcard" id="idcard" value="" placeholder="输入身份证号" onfocus="this.placeholder=''" onblur="this.placeholder='输入身份证号'"></span>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="sure">
|
||||
<button id="sub_btn" type="button" class="el-button el-button--danger">确认 </button>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{include file="public/footer" menu='user'}
|
||||
</div>
|
||||
</div>
|
||||
<div class="tipMask hide">
|
||||
<div class="cont">
|
||||
<p class="title">温馨提示</p>
|
||||
<p class="stitle contents"></p>
|
||||
<div id="msgBtn">
|
||||
<div class="confirm guanbi">确定</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<script type="text/javascript" src="__ROOT__/static/theme/index/js/jquery.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
$("#sub_btn").on("click", function () {
|
||||
var name = $("#name").val();
|
||||
var idcard = $("#idcard").val();
|
||||
|
||||
if (name.length < 2) {
|
||||
msg("错误", "输入姓名!", 1);
|
||||
return false;
|
||||
}
|
||||
if (idcard.length < 15) {
|
||||
msg("错误", "输入身份证号!", 1);
|
||||
return false;
|
||||
}
|
||||
var url = "/index/user/certification";
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : url,
|
||||
data: {'name':name,'idcard':idcard},
|
||||
dataType : "json",
|
||||
success : function(result){
|
||||
if(result.code == 1){
|
||||
window.location.href = "/index/user/index"
|
||||
}else{
|
||||
msg("提示",result.info,1);
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
})
|
||||
|
||||
function msg(title, content, type, url) {
|
||||
$(".contents").html(content);
|
||||
if (type == 1) {
|
||||
var btn = '<div class="confirm guanbi" onclick="$(\'.tipMask\').hide();">确定</div>';
|
||||
}
|
||||
else {
|
||||
var btn = '<div class="confirm guanbi" onclick="window.location.href=\'' + url + '\'">确定</div>';
|
||||
}
|
||||
$("#msgBtn").html(btn);
|
||||
$(".tipMask").show();
|
||||
}
|
||||
</script>
|
||||
</html>
|
||||
80
application/index/view/user/contract.html
Executable file
80
application/index/view/user/contract.html
Executable file
@ -0,0 +1,80 @@
|
||||
{include file="public/header" nav="合同"}
|
||||
<div class="mobile">
|
||||
<div class="othertop" style="background: #4f5ffa">
|
||||
<a class="goback" href="/index/user/index">
|
||||
<img src="__ROOT__/static/theme/index/img/goback.png" />
|
||||
</a>
|
||||
<div class="othertop-font">合同书</div>
|
||||
</div>
|
||||
<div class="header-nbsp"></div>
|
||||
<!-- 合同 -->
|
||||
<div class="contract_box">
|
||||
<h1 class="con_name">{:getInfo('webname')}投资合同书</h1>
|
||||
<p class="code">合同编号:{$invest['number']}</p>
|
||||
<p><label>甲方(投资方)</label>:{:getUserField($uid,'name')}</p>
|
||||
<p><label>乙方(管理方)</label>:{:getInfo('company')}</p>
|
||||
<p><label>丙方(担保方)</label>:{:getItemField($invest['pid'],'guarantee')}</p>
|
||||
<p>甲乙丙双方经友好协商,本着平等自愿、诚实信用的原则,就甲方使用乙方提供的本网站所有服务的</p>
|
||||
<p><label>有关事项达成如下协议:</label></p>
|
||||
<p>一、<label>理财投资明细</label></p>
|
||||
<table class="tablec">
|
||||
<tr>
|
||||
<td>产品名称</td>
|
||||
<td>{$invest.title}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>投资人姓名</td>
|
||||
<td>{:getUserField($uid,'name')}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>投资人身份证</td>
|
||||
<td>{:getUserField($uid,'idcard')}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>投入本金数额<br>(下称"甲方投资本金")</td>
|
||||
<td>{$invest.money}元</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>协议期(天)</td>
|
||||
<td>{$invest.day}天</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>预期收益率</td>
|
||||
<td>{$invest.rate}%</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>起息日</td>
|
||||
<td>{:date('Y-m-d',strtotime($invest['time']))}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>到期日</td>
|
||||
<td>{:date('Y-m-d',strtotime('+'.$invest['day'].' day',strtotime($invest['time'])))}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>应收本息(元)</td>
|
||||
<td>{:getInvestMoney($invest['id'])+$invest['money']}元</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>还款方式</td>
|
||||
<td>{$invest.type2}</td>
|
||||
</tr>
|
||||
</table>
|
||||
{:htmlspecialchars_decode(getInfo('contract'))}
|
||||
<div class="signature" style="margin:.5rem 0">
|
||||
<div class="Party">
|
||||
<p>甲方:{:getUserField($uid,'name')}</p>
|
||||
<span>{:date('Y年m月d日',strtotime($invest['time']))}</span>
|
||||
</div>
|
||||
<div class="Party" style="background: url('{:getInfo('seal_img')}') no-repeat top left 6px ;background-size:100px 100px;padding:25px 0">
|
||||
<p>乙方:{:getInfo('company')}</p>
|
||||
<span>{:date('Y年m月d日',strtotime($invest['time']))}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="Party" style="background: url('{:getInfo('safe_seal_img')}') no-repeat top left 36px ;background-size:100px 100px;padding:25px 0">
|
||||
<p>丙方:{:getItemField($invest['pid'],'guarantee')}</p>
|
||||
<span>{:date('Y年m月d日',strtotime($invest['time']))}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
55
application/index/view/user/details.html
Executable file
55
application/index/view/user/details.html
Executable file
@ -0,0 +1,55 @@
|
||||
{include file="public/header" nav="投资详情"}
|
||||
<div class="mobile">
|
||||
<div class="othertop" style="background: #4f5ffa">
|
||||
<a class="goback" href="javascript:history.back();">
|
||||
<img src="__ROOT__/static/theme/index/img/goback.png" />
|
||||
</a>
|
||||
<div class="othertop-font">投资详情</div>
|
||||
</div>
|
||||
<div class="header-nbsp"></div>
|
||||
<div class="contract_box deta">
|
||||
<div class="data_name">
|
||||
<span style="display: inline-block;width: 3rem;">投资金额:{$invest.money}元</span>
|
||||
<span style="display: inline-block;width: 3rem;">预期效益:{:getInvestMoney($invest['id'])}元</span><br/>
|
||||
<span style="display: inline-block;width: 3rem;">投资时间:{:date('Y-m-d',strtotime($invest['time']))}</span>
|
||||
<span style="display: inline-block;width: 3rem;">到期时间:{:date('Y-m-d',strtotime('+'.$invest['day'].' day',strtotime($invest['time'])))}</span><br/>
|
||||
<span>收益方式:{$invest.type2}</span>
|
||||
</div>
|
||||
<div class="table_auto">
|
||||
<table class="tablec">
|
||||
<tr>
|
||||
<th>期号</th>
|
||||
<th>应收本金</th>
|
||||
<th>应收利息</th>
|
||||
<th>应收时间</th>
|
||||
<th>收益时间</th>
|
||||
<th>应收总额</th>
|
||||
<th>已支付</th>
|
||||
<th>状态</th>
|
||||
</tr>
|
||||
{volist name="list" id="l"}
|
||||
<tr>
|
||||
<td>第{$l.num}期</td>
|
||||
<td>{$l.money2}</td>
|
||||
<td>{$l.money1}</td>
|
||||
<td>{$l.time1}</td>
|
||||
<td>
|
||||
<?php if($l['time2'] != '0000-00-00 00:00:00'){ echo $l['time1'];}else{echo '未完成';}?>
|
||||
</td>
|
||||
<td>{$l.pay1}</td>
|
||||
<td>{$l.pay2}</td>
|
||||
<td>
|
||||
{if condition="$l['status'] eq 1"}
|
||||
已完成
|
||||
{else/}
|
||||
未完成
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/volist}
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
182
application/index/view/user/extend.html
Executable file
182
application/index/view/user/extend.html
Executable file
@ -0,0 +1,182 @@
|
||||
{include file="public/header1" nav="推广记录"}
|
||||
|
||||
<style>
|
||||
.container {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-flex-flow: column;
|
||||
flex-flow: column;
|
||||
}
|
||||
|
||||
.main {
|
||||
flex: 1;
|
||||
padding: .4rem;
|
||||
background-color: #FAFAFA;
|
||||
}
|
||||
|
||||
.cont {
|
||||
padding: .3rem 0;
|
||||
border-radius: 22px;
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
|
||||
.cont .ctitle {
|
||||
padding: .25rem 0;
|
||||
font-size: .28rem;
|
||||
line-height: 1;
|
||||
color: #4A4A4A;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.cont .ctitle .item:first-child {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
padding: 0 .4rem;
|
||||
}
|
||||
|
||||
.cont .ctitle .item:last-child {
|
||||
width: 3.1rem;
|
||||
text-align: center;
|
||||
padding: 0 .4rem;
|
||||
}
|
||||
|
||||
.cont .name-time {
|
||||
padding: .25rem 0;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
font-size: .28rem;
|
||||
line-height: 1.6;
|
||||
color: #9B9B9B;
|
||||
}
|
||||
|
||||
.cont .name-time .name {
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
padding: 0 .4rem;
|
||||
}
|
||||
|
||||
.cont .name-time .time {
|
||||
width: 3.1rem;
|
||||
padding: 0 .4rem;
|
||||
}
|
||||
|
||||
.cont .line {
|
||||
width: 5.9rem;
|
||||
background-color: #F5F5F5;
|
||||
margin-top: .2rem;
|
||||
}
|
||||
|
||||
.cont .more {
|
||||
font-size: .24rem;
|
||||
line-height: .34rem;
|
||||
color: #999999;
|
||||
text-align: center;
|
||||
padding-top: .28rem;
|
||||
padding-bottom: .16rem;
|
||||
}
|
||||
|
||||
.main .cont .detail-status {
|
||||
font-size: .24rem;
|
||||
line-height: .34rem;
|
||||
color: #9B9B9B;
|
||||
}
|
||||
|
||||
.main .cont .detail-status .investDeatil {
|
||||
margin-left: 0.5rem;
|
||||
color: #FCCF61;
|
||||
padding-right: 1rem;
|
||||
}
|
||||
|
||||
.main .cont .detail-status .agreement {
|
||||
color: #57B8FF;
|
||||
}
|
||||
|
||||
.main .cont .detail-status .status {
|
||||
float: right;
|
||||
}
|
||||
.main .cont .detail-status { font-size: .24rem; line-height: .34rem; color: #9B9B9B;}
|
||||
.main .cont .detail-status .investDeatil { margin-left:0.5rem;color: #FCCF61; padding-right: 1rem;}
|
||||
.main .cont .detail-status .agreement { color: #57B8FF;}
|
||||
.main .cont .detail-status .status { float: right;}
|
||||
.item_box {
|
||||
border-bottom: 0.01rem solid #eee;
|
||||
padding-bottom: 0.2rem;
|
||||
background-color: #fff;
|
||||
}
|
||||
.item {
|
||||
width: 95%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin: 0rem auto 0.2rem;
|
||||
}
|
||||
.flex {
|
||||
display: flex;
|
||||
margin-top: 0.1rem;
|
||||
}
|
||||
.item1 {
|
||||
width: 95%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin: auto;
|
||||
}
|
||||
.time {
|
||||
color: #999;
|
||||
font-size: 0.25rem;
|
||||
}
|
||||
.flex a{
|
||||
color:#4f5ffa
|
||||
}
|
||||
.item .flex .title{
|
||||
width:220px;
|
||||
text-overflow :ellipsis;
|
||||
white-space :nowrap;
|
||||
overflow : hidden;
|
||||
}
|
||||
.more{
|
||||
font-size: .24rem;
|
||||
line-height: .34rem;
|
||||
color: #999999;
|
||||
text-align: center;
|
||||
padding-top: .28rem;
|
||||
padding-bottom: .16rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="header">
|
||||
<div class="left" onclick="window.history.back()">
|
||||
<i class="iconfont icon-arrow-left"></i>
|
||||
</div>
|
||||
<div class="htitle">推广记录</div>
|
||||
</div>
|
||||
{volist name="results" id="r"}
|
||||
<div class="item_box">
|
||||
<div class="item">
|
||||
<div class="flex">
|
||||
<p style="font-size: 0.3rem; color: black;">{$r.name|default='未实名'}({$r.phone})</p>
|
||||
</div>
|
||||
<p style="color: rgb(153, 153, 153);margin-top: 0.15rem; font-size: 0.25rem;">注册日期:{:date('Y-m-d',strtotime($r['time']))}</p>
|
||||
</div>
|
||||
<div class="item1">
|
||||
<p style="color: orange;font-size: 0.25rem;">
|
||||
充值金额:{$r.recharge} 元
|
||||
</p>
|
||||
<p style="color: green;font-size: 0.25rem;">
|
||||
提现金额:{$r.cash} 元
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{/volist}
|
||||
<div class="more">暂无更多记录</div>
|
||||
</body>
|
||||
<script type="text/javascript" src="__ROOT__/static/theme/index/js/font.js"></script>
|
||||
<script type="text/javascript" src="__ROOT__/static/theme/index/js/jquery.js"></script>
|
||||
</html>
|
||||
43
application/index/view/user/fund.html
Executable file
43
application/index/view/user/fund.html
Executable file
@ -0,0 +1,43 @@
|
||||
{include file="public/header" nav="资金明细"}
|
||||
<link rel="stylesheet" type="text/css" href="__ROOT__/static/wap/css/box_pay.css">
|
||||
<div id="app">
|
||||
<div class="box">
|
||||
<div class="jun-content">
|
||||
<div class="f_box_accountrecord">
|
||||
<div class="t_header">
|
||||
<span><img src="__ROOT__/static/wap/images/goback.png" alt="" onClick="javascript:history.back()"></span>
|
||||
<span><i>资金明细</i></span>
|
||||
</div>
|
||||
<div class="t_box_accountrecord">
|
||||
{if count($finance) > 0}
|
||||
{volist name="finance" id="f"}
|
||||
<ul>
|
||||
<li>
|
||||
<span>时间:</span>
|
||||
<p>{$f['time']}</p>
|
||||
</li>
|
||||
<li>
|
||||
<span>备注:</span>
|
||||
<p>{$f.reason}</p>
|
||||
</li>
|
||||
<li>
|
||||
<span>金额:</span>
|
||||
<p>{if condition="$f['type'] eq 1"}+{else /}-{/if}{$f.money}</p>
|
||||
</li>
|
||||
</ul>
|
||||
{/volist}
|
||||
{else/}
|
||||
<div class="dataNo">
|
||||
<h3>没有更多数据了</h3>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{include file="public/footer" menu='user'}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
166
application/index/view/user/hold.html
Executable file
166
application/index/view/user/hold.html
Executable file
@ -0,0 +1,166 @@
|
||||
{include file="public/header" nav="历史委托"}
|
||||
<style type="text/css">
|
||||
html{
|
||||
font-size: 120px;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
window.onload=function(){
|
||||
//设置适配rem
|
||||
var change_rem = ((window.screen.width > 450) ? 450 : window.screen.width)/375*100;
|
||||
document.getElementsByTagName("html")[0].style.fontSize=change_rem+"px";
|
||||
window.onresize = function(){
|
||||
change_rem = ((window.screen.width > 450) ? 450 : window.screen.width)/375*100;
|
||||
document.getElementsByTagName("html")[0].style.fontSize=change_rem+"px";
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<script type="text/javascript" src="__ROOT__/static/wap/js/jquery-1.9.1.min.js"></script>
|
||||
<script type="text/javascript" src="__ROOT__/static/wap/js/order.js"></script>
|
||||
<script type="text/javascript" src="__ROOT__/static/wap/js/function.js"></script>
|
||||
<script type="text/javascript" src="__ROOT__/static/wap/js/base64.js"></script>
|
||||
<script type="text/javascript">
|
||||
var Base64 = new Base64();
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="__ROOT__/static/wap/css/ionic.css">
|
||||
<link rel="stylesheet" type="text/css" href="__ROOT__/static/wap/css/style.css">
|
||||
<style type="text/css">
|
||||
.box .footer {
|
||||
height: 0.52rem;
|
||||
}
|
||||
.box .footer > div a i {
|
||||
width: .21rem !important;
|
||||
height: .21rem !important;
|
||||
margin-top: .08rem;
|
||||
}
|
||||
.box .footer > div a i {
|
||||
width: .586667rem;
|
||||
height: .586667rem;
|
||||
}
|
||||
|
||||
.box .footer > div a span {
|
||||
font-size: .12rem !important;
|
||||
margin-top: 3px !important
|
||||
}
|
||||
</style>
|
||||
<div id="app">
|
||||
<div class="box">
|
||||
<ion-nav-bar class="bar-stable headerbar nav-bar-container" nav-bar-transition="ios" nav-bar-direction="swap" nav-swipe="">
|
||||
<div class="nav-bar-block" nav-bar="active">
|
||||
<ion-header-bar class="bar-stable headerbar bar bar-header" align-title="center">
|
||||
<div class="title title-center header-item jiaoyilishi" style="transition-duration: 0ms; transform: translate3d(0px, 0px, 0px); left: 15px; right: 15px;">历史委托</div>
|
||||
</ion-header-bar>
|
||||
</div>
|
||||
</ion-nav-bar>
|
||||
<ion-nav-view class="view-container" nav-view-transition="ios" nav-view-direction="none" nav-swipe="">
|
||||
<ion-tabs class="tabs-icon-top navbar pane tabs-bottom tabs-standard" abstract="true" nav-view="active" style="opacity: 1; transform: translate3d(0%, 0px, 0px);">
|
||||
<ion-nav-view name="tab-history" class="view-container tab-content" nav-view="active" nav-view-transition="ios" nav-view-direction="swap" nav-swipe="">
|
||||
<ion-view view-title="" hide-nav-bar="false" class="pane" state="tab.history" nav-view="active" style="opacity: 1; transform: translate3d(0%, 0px, 0px);">
|
||||
<ion-nav-buttons side="right" class="hide"></ion-nav-buttons>
|
||||
<ion-content class="trade_history scroll-content ionic-scroll scroll-content-false has-header has-tabs" scroll="false">
|
||||
<header>
|
||||
<article class="left-table" onclick="change_category(0)" class="active" style="">
|
||||
<p class="chicangmingxi">持仓明细</p>
|
||||
</article>
|
||||
<article class="right-table" onclick="change_category(1)">
|
||||
<p class="lishimingxi">历史明细</p>
|
||||
</article>
|
||||
</header>
|
||||
<div class="trade_history_list slider" style="visibility: visible;overflow:scroll">
|
||||
<div class="slider-slides" ng-transclude="">
|
||||
<ion-slide class="slider-slide slider-left" data-index="0" style="width: 100%px; left: 0px; transition-duration: 0ms; transform: translate(0px, 0px) translateZ(0px);">
|
||||
<ul>
|
||||
</ul>
|
||||
</ion-slide>
|
||||
<ion-slide class="slider-slide slider-right" data-index="1" style=" left: 0px; top: -100%;transition-duration: 0ms; transform: translate(414px, 0px) translateZ(0px);">
|
||||
<ul class="uls">
|
||||
</ul>
|
||||
</ion-slide>
|
||||
</div>
|
||||
<div class="modal-backdrop ng-hide">
|
||||
<div class="modal-backdrop-bg"></div>
|
||||
<div class="modal-wrapper" ng-transclude="">
|
||||
<ion-modal-view class="order-modal modal slide-in-up ng-enter active ng-enter-active">
|
||||
<ion-header-bar class="order-modal-header bar bar-header">
|
||||
<h1 class="title lishimingxi" style="left: 54px; right: 54px;"></h1>
|
||||
<div class="close" ng-click="close_order_modal.hide()">
|
||||
<i class="icon ion-ios-close-empty"></i>
|
||||
</div>
|
||||
</ion-header-bar>
|
||||
<ion-content class="order-modal-content scroll-content ionic-scroll has-header">
|
||||
<div class="scroll" style="transform: translate3d(0px, 0px, 0px) scale(1);">
|
||||
<ul class="list">
|
||||
<li class="item item-input">
|
||||
<span class="input-label" aria-label="商品" id="_label-0">商品</span>
|
||||
<span class="input-content ng-binding ptitle"></span>
|
||||
</li>
|
||||
<li class="item item-input">
|
||||
<span class="input-label" aria-label="成交价" id="_label-2">成交价</span>
|
||||
<span class="input-content ng-binding buyprice"></span>
|
||||
</li>
|
||||
<li class="item item-input">
|
||||
<span class="input-label" aria-label="结算价" id="_label-3">结算价</span>
|
||||
<span class="input-content ng-binding sellprice"></span>
|
||||
</li>
|
||||
<li class="item item-input">
|
||||
<span class="input-label" aria-label="手续费" id="_label-4">手续费</span>
|
||||
<span class="input-content ng-binding">0</span>
|
||||
</li>
|
||||
<li class="item item-input">
|
||||
<span class="input-label" aria-label="盈亏" id="_label-5">盈亏</span>
|
||||
<span class="input-content ng-binding rise ploss" style="">
|
||||
0.00
|
||||
</span>
|
||||
</li>
|
||||
<li class="item item-input">
|
||||
<span class="input-label" aria-label="成交时间" id="_label-6">成交时间</span>
|
||||
<span class="input-content ng-binding buytime"></span>
|
||||
</li>
|
||||
<li class="item item-input">
|
||||
<span class="input-label" aria-label="结算时间" id="_label-7">结算时间</span>
|
||||
<span class="input-content ng-binding selltime"></span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="scroll-bar scroll-bar-v">
|
||||
<div class="scroll-bar-indicator scroll-bar-fade-out" style="transform: translate3d(0px, 0px, 0px) scaleY(1); height: 0px; transform-origin: center bottom 0px;"></div>
|
||||
</div>
|
||||
</ion-content>
|
||||
<div class="button-bar">
|
||||
<a class="button button-dark" onclick="close_order_modal()">关闭</a>
|
||||
</div>
|
||||
|
||||
</ion-modal-view>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ion-content>
|
||||
</ion-view>
|
||||
</ion-nav-view>
|
||||
</ion-tabs>
|
||||
</ion-nav-view>
|
||||
|
||||
<div class="backdrop"></div>
|
||||
<div class="ionic_toast">
|
||||
<div class="toast_section" ng-class="ionicToast.toastClass" ng-style="ionicToast.toastStyle" ng-click="hideToast()" style="display: none; opacity: 0;">
|
||||
<span class="ionic_toast_close"><i class="ion-android-close toast_close_icon"></i></span><span ng-bind-html="ionicToast.toastMessage" class="ng-binding"></span></div>
|
||||
</div>
|
||||
{include file="public/footer" menu='hold'}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<script type="text/javascript">
|
||||
var charturl = '/index/user/getchart.html';
|
||||
$.get(charturl, function(_res) {
|
||||
var res = jQuery.parseJSON(Base64.decode(_res));
|
||||
$.each(res, function(k, v) {
|
||||
$('.' + k).html(v);
|
||||
})
|
||||
})
|
||||
</script>
|
||||
<script type="text/javascript" src="__ROOT__/static/wap/js/hold.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
change_category(0)
|
||||
</script>
|
||||
</html>
|
||||
193
application/index/view/user/index.html
Executable file
193
application/index/view/user/index.html
Executable file
@ -0,0 +1,193 @@
|
||||
{include file="public/header" nav="我的"}
|
||||
<link rel="stylesheet" type="text/css" href="__ROOT__/static/theme/index/css/swiper.min.css"/>
|
||||
<div id="app">
|
||||
<div class="box">
|
||||
<div class="content" style="width:100%;">
|
||||
<div class="f_box_mine slide">
|
||||
<!-- <div class="t_header">-->
|
||||
<!-- <span><img src="/static/wap/images/goback.png" alt="" onClick="javascript:history.back()"></span> -->
|
||||
<!-- <span><i>个人中心</i></span>-->
|
||||
<!-- </div>-->
|
||||
<div class="f_mine_box">
|
||||
<div class="f_mine" style="">
|
||||
<div class="f_mine_head">
|
||||
<div class="img_cion">
|
||||
<img src="{:getInfo('app_img')}" alt="" class="f_mine_header" data-src="{:getInfo('app_img')}" lazy="loaded" style="width: 100px;height: 20px;">
|
||||
</div>
|
||||
<!-- <div class="name"><span>{$user.phone}</span></div>-->
|
||||
<div class="xinyong">
|
||||
<span>我的信用积分</span>
|
||||
</div>
|
||||
<div class="jindu">
|
||||
<span>/100</span>
|
||||
<div class="jindutiao"></div>
|
||||
</div>
|
||||
<!-- <div class="level"><span>{$userleveltile.name}</span></div>-->
|
||||
<!-- <div class="f_tab1">-->
|
||||
<!-- <span>-->
|
||||
<!-- <p>{$user.money}</p>-->
|
||||
<!-- <p>可用余额</p>-->
|
||||
<!-- </span>-->
|
||||
<!-- <span>-->
|
||||
<!-- <p>0.00</p>-->
|
||||
<!-- <p>已获赠金</p>-->
|
||||
<!-- </span>-->
|
||||
<!-- <span>-->
|
||||
<!-- <a href="/index/user/recharge" class="">-->
|
||||
<!-- 充值-->
|
||||
<!-- </a>-->
|
||||
<!-- </span> <span>-->
|
||||
<!-- <a href="/index/user/cash" class="">-->
|
||||
<!-- 提现-->
|
||||
<!-- </a>-->
|
||||
<!-- </span>-->
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
<div class="myslide">
|
||||
<div class="swiper-container">
|
||||
<div class="swiper-wrapper">
|
||||
<div class="swiper-slide">
|
||||
<img src="/static/wap/images/mys1.png" class="img-fluid" alt="">
|
||||
</div>
|
||||
<div class="swiper-slide">
|
||||
<img src="/static/wap/images/mys2.png" class="img-fluid" alt="">
|
||||
</div>
|
||||
<div class="swiper-slide">
|
||||
<img src="/static/wap/images/mys3.png" class="img-fluid" alt="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="f_mine_body">
|
||||
<div class="f_table">
|
||||
<!-- <div class="item" id="i2">-->
|
||||
<!-- <a href="/index/user/inquiries" class=""> <img src="/static/wap/images/icon_my_search@2x.png" alt="" class="i2" data-src="/static/wap/images/icon_my_search@2x.png" lazy="loaded">-->
|
||||
<!-- <p>平仓查询</p>-->
|
||||
<!-- </a>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="item" id="i3">-->
|
||||
<!-- <a href="/index/user/fund" class=""> <img src="/static/wap/images/icon_my_revenue_and_expenditure@2x.png" alt="" class="i3" data-src="/static/wap/images/icon_my_revenue_and_expenditure@2x.png" lazy="loaded">-->
|
||||
<!-- <p>收支明细</p>-->
|
||||
<!-- </a>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="item" id="i6">-->
|
||||
<!-- <a href="/index/index/notice" class=""> <img src="/static/wap/images/icon_my_announcement@2x.png" alt="" class="i6" data-src="/static/wap/images/icon_my_announcement@2x.png" lazy="loaded">-->
|
||||
<!-- <p>最新公告</p>-->
|
||||
<!-- </a>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="item" id="i7">-->
|
||||
<!-- <a href="/index/user/bank_card" class=""> <img src="/static/wap/images/icon_my_bank_card@2x.png" alt="" class="i7" data-src="/static/wap/images/icon_my_bank_card@2x.png" lazy="loaded">-->
|
||||
<!-- <p>银行卡</p>-->
|
||||
<!-- </a>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="item" id="i8">
|
||||
<a href="/index/user/recommend" class="">
|
||||
<img src="/static/wap/images/icon_my_agency@2x.png" alt="" class="i8" data-src="/static/wap/images/icon_my_agency@2x.png" lazy="loaded">
|
||||
<p>推广码</p>
|
||||
</a>
|
||||
</div>-->
|
||||
<!-- <div class="item" id="i9">-->
|
||||
<!-- <a onClick="window.open('{:getInfo('service')}','_blank');" class=""> <img src="/static/wap/images/icon_my_vouchers@2x.png" alt="" class="i9" data-src="/static/wap/images/icon_my_vouchers@2x.png" lazy="loaded">-->
|
||||
<!-- <p>在线客服</p>-->
|
||||
<!-- </a>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="item">-->
|
||||
<!-- <a href="/index/user/set_account" class=""> <img src="/static/wap/images/icon_my_cipher@2x.png" alt="" data-src="/static/wap/images/icon_my_cipher@2x.png" lazy="loaded">-->
|
||||
<!-- <p>账号安全</p>-->
|
||||
<!-- </a>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="item">-->
|
||||
<!-- <a href="/index/user/msg" class=""> {if $msg}-->
|
||||
<!-- <div style="position:relative;right:-23px;top:15px;background:red;width:20px;height:20px;line-height:20px;border-radius:15px;">{$msg}</div>-->
|
||||
<!-- {/if} <img src="/static/theme/index/img/xx.png" alt="" data-src="/static/theme/index/img/xx.png" lazy="loaded">-->
|
||||
<!-- <p>站内消息</p>-->
|
||||
<!-- </a>-->
|
||||
<!-- </div>-->
|
||||
<!--<div class="item">-->
|
||||
<!-- <a href="{:getInfo('app')}" class="">-->
|
||||
<!-- <img src="/static/theme/index/img/icon_index_11.png" alt="" data-src="/static/theme/index/img/icon_index_11.png" lazy="loaded">-->
|
||||
<!-- <p>APP下载</p>-->
|
||||
<!-- </a>-->
|
||||
<!--</div>-->
|
||||
<!-- <div class="item" id="i3">-->
|
||||
<!-- <a href="/index/user/recharge_record" class=""> <img src="/static/wap/images/icon_my_revenue_and_expenditure@2x.png" alt="" class="i3" data-src="/static/wap/images/icon_my_revenue_and_expenditure@2x.png" lazy="loaded">-->
|
||||
<!-- <p>充值记录</p>-->
|
||||
<!-- </a>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="item" id="i3">-->
|
||||
<!-- <a href="/index/user/cash_record" class=""> <img src="/static/wap/images/icon_my_revenue_and_expenditure@2x.png" alt="" class="i3" data-src="/static/wap/images/icon_my_revenue_and_expenditure@2x.png" lazy="loaded">-->
|
||||
<!-- <p>提现记录</p>-->
|
||||
<!-- </a>-->
|
||||
<!-- </div>-->
|
||||
<div class="item" id="i10">
|
||||
<a href="/index/user/verified" class=""> <img src="/static/wap/images/idcard.png" alt="" class="i3" data-src="/static/wap/images/idcard.png" lazy="loaded">
|
||||
<p>实名认证
|
||||
{if condition="$user['rz_status'] eq 0"}
|
||||
<span style="background-color:#919189;margin-left:20px"> 未认证 </span>
|
||||
{/if}
|
||||
|
||||
{if condition="$user['rz_status'] eq 1"}
|
||||
<span style="background-color:#CBC629;margin-left:20px"> 审核中 </span>
|
||||
{/if}
|
||||
{if condition="$user['rz_status'] eq 2"}
|
||||
<span style="background-color:#39E230;margin-left:20px"> 已认证 </span>
|
||||
{/if}
|
||||
{if condition="$user['rz_status'] eq 3"}
|
||||
<span style="background-color:#E2171C;margin-left:20px"> 未通过 </span>
|
||||
{/if}
|
||||
</p>
|
||||
</a>
|
||||
</div>
|
||||
<div class="item" id="i11">
|
||||
<a href="/index/user/set_account" class=""> <img src="/static/wap/images/my1.png" alt="" class="i3" data-src="/static/wap/images/icon_my_revenue_and_expenditure@2x.png" lazy="loaded">
|
||||
<p>密码修改</p>
|
||||
</a>
|
||||
</div>
|
||||
<div class="item" id="i12">
|
||||
<a onClick="window.open('{:getInfo('service')}','_blank');" class=""> <img src="/static/wap/images/my2.png" alt="" class="i3" data-src="/static/wap/images/icon_my_revenue_and_expenditure@2x.png" lazy="loaded">
|
||||
<p>在线客服</p>
|
||||
</a>
|
||||
</div>
|
||||
<div class="item" id="i13">
|
||||
<a href="/index/user/msg_view?id=1" class=""> <img src="/static/wap/images/my3.png" alt="" class="i3" data-src="/static/wap/images/icon_my_revenue_and_expenditure@2x.png" lazy="loaded">
|
||||
<p>隐私政策</p>
|
||||
</a>
|
||||
</div>
|
||||
<div class="item" id="i14">
|
||||
<a href="/index/user/msg_view?id=2" class=""> <img src="/static/wap/images/my4.png" alt="" class="i3" data-src="/static/wap/images/icon_my_revenue_and_expenditure@2x.png" lazy="loaded">
|
||||
<p>关于我们</p>
|
||||
</a>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div>
|
||||
<a href="/index/user/logout" class=""> <img src="/static/wap/images/my4.png" alt="" data-src="/static/wap/images/icon_my_pull_out@2x.png" lazy="loaded">
|
||||
<p>退出登录</p>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="jun-empty"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{include file="public/footer" menu='user'}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="__ROOT__/static/theme/index/js/swiper.min.js"></script>
|
||||
<script>
|
||||
|
||||
var swiper2 = new Swiper('.myslide .swiper-container', {
|
||||
loop: true,
|
||||
autoplay: {
|
||||
delay: 3000
|
||||
},
|
||||
slidesPerView:1,
|
||||
pagination: {
|
||||
el: '.swiper-pagination',
|
||||
},
|
||||
});
|
||||
</script>
|
||||
</body></html>
|
||||
45
application/index/view/user/inquiries.html
Executable file
45
application/index/view/user/inquiries.html
Executable file
@ -0,0 +1,45 @@
|
||||
{include file="public/header" nav="平仓查询"}
|
||||
<link rel="stylesheet" type="text/css" href="__ROOT__/static/wap/css/box_pay.css">
|
||||
<div id="app">
|
||||
<div class="box">
|
||||
<div class="jun-content">
|
||||
<div class="f_box_inquiries">
|
||||
<div class="t_header">
|
||||
<span><i>平仓查询</i></span>
|
||||
</div>
|
||||
<ul class="f_th" style="">
|
||||
<li>商品名称</li>
|
||||
<li>金额</li>
|
||||
<li>方向</li>
|
||||
<li>盈亏</li>
|
||||
</ul>
|
||||
<div class="f_table">
|
||||
{if count($list)}
|
||||
<div role="tablist" aria-multiselectable="true" class="el-collapse">
|
||||
{volist name="list" id="vo"}
|
||||
<div class="el-collapse-item">
|
||||
<div role="tab" aria-controls="el-collapse-content-1057" aria-describedby="el-collapse-content-1057">
|
||||
<div role="button" id="el-collapse-head-1057" tabindex="0" class="el-collapse-item__header">
|
||||
<i class="el-collapse-item__arrow el-icon-arrow-right"></i>
|
||||
<span>{$vo.ptitle}</span>
|
||||
<span>¥{$vo.fee}</span>
|
||||
<span>{$vo['ostyle']==0?'买涨':'买跌'}</span>
|
||||
<span>{$vo.ploss}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/volist}
|
||||
</div>
|
||||
{else/}
|
||||
<div class="dataNo">
|
||||
<h3>没有更多数据了</h3>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{include file="public/footer"}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
185
application/index/view/user/interest.html
Executable file
185
application/index/view/user/interest.html
Executable file
@ -0,0 +1,185 @@
|
||||
{include file="public/header1" nav="收益记录"}
|
||||
|
||||
<style>
|
||||
.container {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-flex-flow: column;
|
||||
flex-flow: column;
|
||||
}
|
||||
|
||||
.main {
|
||||
flex: 1;
|
||||
padding: .4rem;
|
||||
background-color: #FAFAFA;
|
||||
}
|
||||
|
||||
.cont {
|
||||
padding: .3rem 0;
|
||||
border-radius: 22px;
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
|
||||
.cont .ctitle {
|
||||
padding: .25rem 0;
|
||||
font-size: .28rem;
|
||||
line-height: 1;
|
||||
color: #4A4A4A;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.cont .ctitle .item:first-child {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
padding: 0 .4rem;
|
||||
}
|
||||
|
||||
.cont .ctitle .item:last-child {
|
||||
width: 3.1rem;
|
||||
text-align: center;
|
||||
padding: 0 .4rem;
|
||||
}
|
||||
|
||||
.cont .name-time {
|
||||
padding: .25rem 0;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
font-size: .28rem;
|
||||
line-height: 1.6;
|
||||
color: #9B9B9B;
|
||||
}
|
||||
|
||||
.cont .name-time .name {
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
padding: 0 .4rem;
|
||||
}
|
||||
|
||||
.cont .name-time .time {
|
||||
width: 3.1rem;
|
||||
padding: 0 .4rem;
|
||||
}
|
||||
|
||||
.cont .line {
|
||||
width: 5.9rem;
|
||||
background-color: #F5F5F5;
|
||||
margin-top: .2rem;
|
||||
}
|
||||
|
||||
.cont .more {
|
||||
font-size: .24rem;
|
||||
line-height: .34rem;
|
||||
color: #999999;
|
||||
text-align: center;
|
||||
padding-top: .28rem;
|
||||
padding-bottom: .16rem;
|
||||
}
|
||||
|
||||
.main .cont .detail-status {
|
||||
font-size: .24rem;
|
||||
line-height: .34rem;
|
||||
color: #9B9B9B;
|
||||
}
|
||||
|
||||
.main .cont .detail-status .investDeatil {
|
||||
margin-left: 0.5rem;
|
||||
color: #FCCF61;
|
||||
padding-right: 1rem;
|
||||
}
|
||||
|
||||
.main .cont .detail-status .agreement {
|
||||
color: #57B8FF;
|
||||
}
|
||||
|
||||
.main .cont .detail-status .status {
|
||||
float: right;
|
||||
}
|
||||
.main .cont .detail-status { font-size: .24rem; line-height: .34rem; color: #9B9B9B;}
|
||||
.main .cont .detail-status .investDeatil { margin-left:0.5rem;color: #FCCF61; padding-right: 1rem;}
|
||||
.main .cont .detail-status .agreement { color: #57B8FF;}
|
||||
.main .cont .detail-status .status { float: right;}
|
||||
.item_box {
|
||||
border-bottom: 0.01rem solid #eee;
|
||||
padding-bottom: 0.2rem;
|
||||
background-color: #fff;
|
||||
}
|
||||
.item {
|
||||
width: 95%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin: 0rem auto 0.2rem;
|
||||
}
|
||||
.flex {
|
||||
display: flex;
|
||||
margin-top: 0.1rem;
|
||||
}
|
||||
.item1 {
|
||||
width: 95%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin: auto;
|
||||
}
|
||||
.time {
|
||||
color: #999;
|
||||
font-size: 0.25rem;
|
||||
}
|
||||
.flex a{
|
||||
color:#4f5ffa
|
||||
}
|
||||
.item .flex .title{
|
||||
width:220px;
|
||||
text-overflow :ellipsis;
|
||||
white-space :nowrap;
|
||||
overflow : hidden;
|
||||
}
|
||||
.more{
|
||||
font-size: .24rem;
|
||||
line-height: .34rem;
|
||||
color: #999999;
|
||||
text-align: center;
|
||||
padding-top: .28rem;
|
||||
padding-bottom: .16rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="header">
|
||||
<div class="left" onclick="window.history.back()">
|
||||
<i class="iconfont icon-arrow-left"></i>
|
||||
</div>
|
||||
<div class="htitle">收益记录</div>
|
||||
</div>
|
||||
{volist name="interest" id="f"}
|
||||
<div class="item_box">
|
||||
<div class="item">
|
||||
<div class="flex">
|
||||
<p style="font-size: 0.28rem; color: black;">第{$f.num}期 {$f.title}</p>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<p style="font-size: 0.28rem; color: DarkOrange;">
|
||||
已完成
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item1">
|
||||
<div style="display: flex;">
|
||||
<p style="color: rgb(153, 153, 153); font-size: 0.25rem;">金额:</p>
|
||||
<p style="font-size: 0.25rem; color: green">{$f.pay2}元</p>
|
||||
</div>
|
||||
<p class="time">{:$f['time2']}</p>
|
||||
</div>
|
||||
</div>
|
||||
{/volist}
|
||||
<div class="more">暂无更多记录</div>
|
||||
</body>
|
||||
<script type="text/javascript" src="__ROOT__/static/theme/index/js/font.js"></script>
|
||||
<script type="text/javascript" src="__ROOT__/static/theme/index/js/jquery.js"></script>
|
||||
</html>
|
||||
185
application/index/view/user/invest.html
Executable file
185
application/index/view/user/invest.html
Executable file
@ -0,0 +1,185 @@
|
||||
{include file="public/header1" nav="投资记录"}
|
||||
|
||||
<style>
|
||||
.container {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-flex-flow: column;
|
||||
flex-flow: column;
|
||||
}
|
||||
|
||||
.main {
|
||||
flex: 1;
|
||||
padding: .4rem;
|
||||
background-color: #FAFAFA;
|
||||
}
|
||||
|
||||
.cont {
|
||||
padding: .3rem 0;
|
||||
border-radius: 22px;
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
|
||||
.cont .ctitle {
|
||||
padding: .25rem 0;
|
||||
font-size: .28rem;
|
||||
line-height: 1;
|
||||
color: #4A4A4A;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.cont .ctitle .item:first-child {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
padding: 0 .4rem;
|
||||
}
|
||||
|
||||
.cont .ctitle .item:last-child {
|
||||
width: 3.1rem;
|
||||
text-align: center;
|
||||
padding: 0 .4rem;
|
||||
}
|
||||
|
||||
.cont .name-time {
|
||||
padding: .25rem 0;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
font-size: .28rem;
|
||||
line-height: 1.6;
|
||||
color: #9B9B9B;
|
||||
}
|
||||
|
||||
.cont .name-time .name {
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
padding: 0 .4rem;
|
||||
}
|
||||
|
||||
.cont .name-time .time {
|
||||
width: 3.1rem;
|
||||
padding: 0 .4rem;
|
||||
}
|
||||
|
||||
.cont .line {
|
||||
width: 5.9rem;
|
||||
background-color: #F5F5F5;
|
||||
margin-top: .2rem;
|
||||
}
|
||||
|
||||
.cont .more {
|
||||
font-size: .24rem;
|
||||
line-height: .34rem;
|
||||
color: #999999;
|
||||
text-align: center;
|
||||
padding-top: .28rem;
|
||||
padding-bottom: .16rem;
|
||||
}
|
||||
|
||||
.main .cont .detail-status {
|
||||
font-size: .24rem;
|
||||
line-height: .34rem;
|
||||
color: #9B9B9B;
|
||||
}
|
||||
|
||||
.main .cont .detail-status .investDeatil {
|
||||
margin-left: 0.5rem;
|
||||
color: #FCCF61;
|
||||
padding-right: 1rem;
|
||||
}
|
||||
|
||||
.main .cont .detail-status .agreement {
|
||||
color: #57B8FF;
|
||||
}
|
||||
|
||||
.main .cont .detail-status .status {
|
||||
float: right;
|
||||
}
|
||||
.main .cont .detail-status { font-size: .24rem; line-height: .34rem; color: #9B9B9B;}
|
||||
.main .cont .detail-status .investDeatil { margin-left:0.5rem;color: #FCCF61; padding-right: 1rem;}
|
||||
.main .cont .detail-status .agreement { color: #57B8FF;}
|
||||
.main .cont .detail-status .status { float: right;}
|
||||
.item_box {
|
||||
border-bottom: 0.01rem solid #eee;
|
||||
padding-bottom: 0.2rem;
|
||||
background-color: #fff;
|
||||
}
|
||||
.item {
|
||||
width: 95%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin: 0rem auto 0.2rem;
|
||||
}
|
||||
.flex {
|
||||
display: flex;
|
||||
margin-top: 0.1rem;
|
||||
}
|
||||
.item1 {
|
||||
width: 95%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin: auto;
|
||||
}
|
||||
.time {
|
||||
color: #999;
|
||||
font-size: 0.25rem;
|
||||
}
|
||||
.flex a{
|
||||
color:#4f5ffa
|
||||
}
|
||||
.item .flex .title{
|
||||
width:220px;
|
||||
text-overflow :ellipsis;
|
||||
white-space :nowrap;
|
||||
overflow : hidden;
|
||||
}
|
||||
.more{
|
||||
font-size: .24rem;
|
||||
line-height: .34rem;
|
||||
color: #999999;
|
||||
text-align: center;
|
||||
padding-top: .28rem;
|
||||
padding-bottom: .16rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="header">
|
||||
<div class="left" onclick="window.history.back()">
|
||||
<i class="iconfont icon-arrow-left"></i>
|
||||
</div>
|
||||
<div class="htitle">投资记录</div>
|
||||
</div>
|
||||
{volist name="invest" id="f"}
|
||||
<div class="item_box">
|
||||
<div class="item">
|
||||
<div class="flex">
|
||||
<p style="font-size: 0.28rem; color: black;" class="title">{$f.title}</p>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<p style="font-size: 0.26rem; color: #333;">
|
||||
<a href="/index/user/contract?id={$f['id']}">查看合同</a> | <a href="/index/user/details?id={$f['id']}">查看详情</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item1">
|
||||
<div style="display: flex;">
|
||||
<p style="color: rgb(153, 153, 153); font-size: 0.25rem;">金额:</p>
|
||||
<p style="font-size: 0.25rem; color: green">{$f.money}元<span style="font-size: 0.26rem; color: DarkOrange;margin-left: .15rem;display:inline-block;line-height:.3rem">{:getInvestStatus($f['id'])}</span></p>
|
||||
</div>
|
||||
<p class="time">{:$f['time']}</p>
|
||||
</div>
|
||||
</div>
|
||||
{/volist}
|
||||
<div class="more">暂无更多记录</div>
|
||||
</body>
|
||||
<script type="text/javascript" src="__ROOT__/static/theme/index/js/font.js"></script>
|
||||
<script type="text/javascript" src="__ROOT__/static/theme/index/js/jquery.js"></script>
|
||||
</html>
|
||||
88
application/index/view/user/mall_contract.html
Executable file
88
application/index/view/user/mall_contract.html
Executable file
@ -0,0 +1,88 @@
|
||||
{include file="public/header" nav="合同"}
|
||||
<div class="mobile">
|
||||
<div class="othertop" style="background: #4f5ffa">
|
||||
<a class="goback" href="/index/user/index">
|
||||
<img src="__ROOT__/static/theme/index/img/goback.png" />
|
||||
</a>
|
||||
<div class="othertop-font">合同书</div>
|
||||
</div>
|
||||
<div class="header-nbsp"></div>
|
||||
<!-- 合同 -->
|
||||
<div class="contract_box">
|
||||
<h1 class="con_name">{:getInfo('webname')}投资合同书</h1>
|
||||
<p class="code">合同编号:{$invest['number']}</p>
|
||||
<p><label>甲方(投资方)</label>:{:getUserField($uid,'name')}</p>
|
||||
<p><label>乙方(管理方)</label>:{:getInfo('company')}</p>
|
||||
<p><label>丙方(担保方)</label>:{:getMallItemField($invest['pid'],'guarantee')}</p>
|
||||
<p>根据中华人民共和国有关法律、法规规定,本着平等、自愿、公平、互惠互利和诚实守信的原则,就乙方使用甲方平台提供的矿机租赁服务的有关事项达成如下协议:</p>
|
||||
<p>一、<label>服务内容与方式</label></p>
|
||||
<p>1.矿机租赁明细</p>
|
||||
<table class="tablec">
|
||||
<tr>
|
||||
<td>矿机名称</td>
|
||||
<td>{$invest.title}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>租赁人姓名</td>
|
||||
<td>{:getUserField($uid,'name')}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>租赁人身份证</td>
|
||||
<td>{:getUserField($uid,'idcard')}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>租赁份数</td>
|
||||
<td>{$invest.num}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>租赁单份保证金</td>
|
||||
<td>{$invest.money/$invest.num}元</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>租赁总保证金</td>
|
||||
<td>{$invest.money}元</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>租赁期限</td>
|
||||
<td>{$invest.day}天</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>租赁人日净收益</td>
|
||||
<td>{$invest.profit}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>租赁人总净收益</td>
|
||||
<td>{$invest.profit*$invest.day}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>矿机上线日期</td>
|
||||
<td>{:date('Y-m-d',strtotime($invest['time']))}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>矿机到期日期</td>
|
||||
<td>{:date('Y-m-d',strtotime('+'.$invest['day'].' day',strtotime($invest['time'])))}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>还款方式</td>
|
||||
<td>每日分配收益,保证金到期全额返还</td>
|
||||
</tr>
|
||||
</table>
|
||||
{:htmlspecialchars_decode(getInfo('contract_kj'))}
|
||||
<div class="signature" style="margin:.5rem 0">
|
||||
<div class="Party">
|
||||
<p>甲方:{:getUserField($uid,'name')}</p>
|
||||
<span>{:date('Y年m月d日',strtotime($invest['time']))}</span>
|
||||
</div>
|
||||
<div class="Party" style="background: url('{:getInfo('seal_img')}') no-repeat top left 6px ;background-size:100px 100px;padding:25px 0">
|
||||
<p>乙方:{:getInfo('company')}</p>
|
||||
<span>{:date('Y年m月d日',strtotime($invest['time']))}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="Party" style="background: url('{:getInfo('safe_seal_img')}') no-repeat top left 36px ;background-size:100px 100px;padding:25px 0">
|
||||
<p>丙方:{:getMallItemField($invest['pid'],'guarantee')}</p>
|
||||
<span>{:date('Y年m月d日',strtotime($invest['time']))}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
48
application/index/view/user/msg.html
Executable file
48
application/index/view/user/msg.html
Executable file
@ -0,0 +1,48 @@
|
||||
{include file="public/header" nav="站内信"}
|
||||
<link rel="stylesheet" type="text/css" href="__ROOT__/static/wap/css/box_pay.css">
|
||||
<div id="app">
|
||||
<div class="box">
|
||||
<div class="jun-content">
|
||||
<div class="f_box_bank">
|
||||
<div class="t_header">
|
||||
<span><img src="__ROOT__/static/wap/images/goback.png" alt="" onClick="javascript:history.back()"></span>
|
||||
<span><i>站内信</i></span>
|
||||
</div>
|
||||
<div class="f_content">
|
||||
{if count($msgtop) > 0 || count($msgfoot) > 0 }
|
||||
{volist name="msgtop" id="m"}
|
||||
<ul class="f_withdraw">
|
||||
<li class="banklist">
|
||||
<a class="item_box" href="/index/user/msg_view?id={$m['id']}">
|
||||
<span>{$m.title}</span>
|
||||
<span style="color: red;">未读</span>
|
||||
<span style="color: rgb(153, 153, 153);">类别: {if condition="$m['status'] lt 1"}公示{else/}私聊{/if}</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
{/volist}
|
||||
{volist name="msgfoot" id="m"}
|
||||
<ul class="f_withdraw">
|
||||
<li class="banklist">
|
||||
<a class="item_box" href="/index/user/msg_view?id={$m['id']}">
|
||||
<span>{$m.title}</span>
|
||||
<span style="color: green;">已读</span>
|
||||
<span style="color: rgb(153, 153, 153);">类别: {if condition="$m['status'] lt 1"}公示{else/}私聊{/if}</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
{/volist}
|
||||
{else/}
|
||||
<div class="dataNo">
|
||||
<h3>没有更多数据了</h3>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{include file="public/footer" menu='user'}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
25
application/index/view/user/msg_view.html
Executable file
25
application/index/view/user/msg_view.html
Executable file
@ -0,0 +1,25 @@
|
||||
{include file="public/header" nav="消息详情"}
|
||||
<link rel="stylesheet" type="text/css" href="__ROOT__/static/wap/css/box_pay.css">
|
||||
<div id="app">
|
||||
<div class="box">
|
||||
<div class="jun-content">
|
||||
<div class="t_box_pay">
|
||||
<div class="t_header">
|
||||
<!--<span><img src="__ROOT__/static/wap/images/goback.png" alt="" onClick="javascript:history.back()"></span> -->
|
||||
<span><i>{$msg.title}</i></span>
|
||||
</div>
|
||||
<div class="t_con_pay">
|
||||
<!--<div class="t_money" style="text-align: center;color: #fff;height: auto;margin-bottom: .333333rem;">{$msg.title}</div>-->
|
||||
<div style="background: #111723;border-top: .026667rem solid #000;color: #fff;padding: .333333rem;">
|
||||
{:htmlspecialchars_decode($msg['content'])}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{include file="public/footer" menu='user'}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
98
application/index/view/user/pwd_login.html
Executable file
98
application/index/view/user/pwd_login.html
Executable file
@ -0,0 +1,98 @@
|
||||
{include file="public/header" nav="设置密码"}
|
||||
<link rel="stylesheet" type="text/css" href="__ROOT__/static/wap/css/tipmask.css">
|
||||
<link rel="stylesheet" type="text/css" href="__ROOT__/static/wap/css/box_pay.css">
|
||||
<div id="app">
|
||||
<div class="box">
|
||||
<div class="jun-content">
|
||||
<div class="f_box_addbank">
|
||||
<div class="t_header">
|
||||
<span><img src="__ROOT__/static/wap/images/goback.png" alt="" onClick="javascript:history.back()"></span>
|
||||
<span><i>修改登录密码</i></span>
|
||||
</div>
|
||||
<div class="f_content">
|
||||
<ul>
|
||||
<li>
|
||||
<label>原登录密码</label>
|
||||
<span><input type="password" name="oldpwd" id="oldpwd" value="" placeholder="输入原登录密码" onfocus="this.placeholder=''" onblur="this.placeholder='输入原登录密码'"></span>
|
||||
</li>
|
||||
<li>
|
||||
<label>新登录密码</label>
|
||||
<span><input type="password" name="pwd" id="pwd" value="" placeholder="输入新登录密码" onfocus="this.placeholder=''" onblur="this.placeholder='输入新登录密码'"></span>
|
||||
</li>
|
||||
<li>
|
||||
<label>确认密码</label>
|
||||
<span><input type="password" name="pwd2" id="pwd2" value="" placeholder="输入确认密码" onfocus="this.placeholder=''" onblur="this.placeholder='输入确认密码'"></span>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="sure">
|
||||
<button id="sub_btn" type="button" class="el-button el-button--danger">确认 </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{include file="public/footer" menu='user'}
|
||||
</div>
|
||||
</div>
|
||||
<div class="tipMask hide">
|
||||
<div class="cont">
|
||||
<p class="title">温馨提示</p>
|
||||
<p class="stitle contents"></p>
|
||||
<div id="msgBtn">
|
||||
<div class="confirm guanbi">确定</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<script type="text/javascript" src="__ROOT__/static/theme/index/js/jquery.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
$("#sub_btn").on("click", function () {
|
||||
var oldpwd = $("#oldpwd").val();
|
||||
var pwd = $("#pwd").val();
|
||||
var pwd2 = $("#pwd2").val();
|
||||
if (oldpwd.length < 6 || oldpwd.length > 16) {
|
||||
msg("错误", "请输入6-16个字符的原登录密码!", 1);
|
||||
return false;
|
||||
}
|
||||
if (pwd.length < 6 || pwd.length > 16) {
|
||||
msg("错误", "请输入6-16个字符的新登录密码!", 1);
|
||||
return false;
|
||||
}
|
||||
if (pwd2.length < 6 || pwd2.length > 16) {
|
||||
msg("错误", "请再次输入6-16个字符的新登录密码!", 1);
|
||||
return false;
|
||||
}
|
||||
if (pwd != pwd2) {
|
||||
msg("错误", "两次密码不一致!", 1);
|
||||
return false;
|
||||
}
|
||||
var url = "/index/user/pwd_login";
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : url,
|
||||
data: {'pwd':pwd,'pwd2':pwd2,'oldpwd':oldpwd},
|
||||
dataType : "json",
|
||||
success : function(result){
|
||||
if(result.code == 1){
|
||||
window.location.href = "/index/user/index"
|
||||
}else{
|
||||
msg("提示",result.info,1);
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
})
|
||||
|
||||
function msg(title, content, type, url) {
|
||||
$(".contents").html(content);
|
||||
if (type == 1) {
|
||||
var btn = '<div class="confirm guanbi" onclick="$(\'.tipMask\').hide();">确定</div>';
|
||||
}
|
||||
else {
|
||||
var btn = '<div class="confirm guanbi" onclick="window.location.href=\'' + url + '\'">确定</div>';
|
||||
}
|
||||
$("#msgBtn").html(btn);
|
||||
$(".tipMask").show();
|
||||
}
|
||||
</script>
|
||||
</html>
|
||||
98
application/index/view/user/pwd_pay.html
Executable file
98
application/index/view/user/pwd_pay.html
Executable file
@ -0,0 +1,98 @@
|
||||
{include file="public/header" nav="设置密码"}
|
||||
<link rel="stylesheet" type="text/css" href="__ROOT__/static/wap/css/tipmask.css">
|
||||
<link rel="stylesheet" type="text/css" href="__ROOT__/static/wap/css/box_pay.css">
|
||||
<div id="app">
|
||||
<div class="box">
|
||||
<div class="jun-content">
|
||||
<div class="f_box_addbank">
|
||||
<div class="t_header">
|
||||
<span><img src="__ROOT__/static/wap/images/goback.png" alt="" onClick="javascript:history.back()"></span>
|
||||
<span><i>修改支付密码</i></span>
|
||||
</div>
|
||||
<div class="f_content">
|
||||
<ul>
|
||||
<li>
|
||||
<label>原支付密码</label>
|
||||
<span><input type="password" name="oldpwd" id="oldpwd" value="" placeholder="输入原支付密码" onfocus="this.placeholder=''" onblur="this.placeholder='输入原支付密码'"></span>
|
||||
</li>
|
||||
<li>
|
||||
<label>新支付密码</label>
|
||||
<span><input type="password" name="pwd" id="pwd" value="" placeholder="输入新支付密码" onfocus="this.placeholder=''" onblur="this.placeholder='输入新支付密码'"></span>
|
||||
</li>
|
||||
<li>
|
||||
<label>确认密码</label>
|
||||
<span><input type="password" name="pwd2" id="pwd2" value="" placeholder="再次输入密码" onfocus="this.placeholder=''" onblur="this.placeholder='再次输入密码'"></span>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="sure">
|
||||
<button id="sub_btn" type="button" class="el-button el-button--danger">确认 </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{include file="public/footer" menu='user'}
|
||||
</div>
|
||||
</div>
|
||||
<div class="tipMask hide">
|
||||
<div class="cont">
|
||||
<p class="title">温馨提示</p>
|
||||
<p class="stitle contents"></p>
|
||||
<div id="msgBtn">
|
||||
<div class="confirm guanbi">确定</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<script type="text/javascript" src="__ROOT__/static/theme/index/js/jquery.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
$("#sub_btn").on("click", function () {
|
||||
var oldpwd = $("#oldpwd").val();
|
||||
var pwd = $("#pwd").val();
|
||||
var pwd2 = $("#pwd2").val();
|
||||
if (oldpwd.length < 6 || oldpwd.length > 16) {
|
||||
msg("错误", "请输入6-16个字符的原交易密码!", 1);
|
||||
return false;
|
||||
}
|
||||
if (pwd.length < 6 || pwd.length > 16) {
|
||||
msg("错误", "请输入6-16个字符的新交易密码!", 1);
|
||||
return false;
|
||||
}
|
||||
if (pwd2.length < 6 || pwd2.length > 16) {
|
||||
msg("错误", "请再次输入6-16个字符的新交易密码!", 1);
|
||||
return false;
|
||||
}
|
||||
if (pwd != pwd2) {
|
||||
msg("错误", "两次密码不一致!", 1);
|
||||
return false;
|
||||
}
|
||||
var url = "/index/user/pwd_pay";
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : url,
|
||||
data: {'pwd':pwd,'pwd2':pwd2,'oldpwd':oldpwd},
|
||||
dataType : "json",
|
||||
success : function(result){
|
||||
if(result.code == 1){
|
||||
window.location.href = "/index/user/index"
|
||||
}else{
|
||||
msg("提示",result.info,1);
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
})
|
||||
|
||||
function msg(title, content, type, url) {
|
||||
$(".contents").html(content);
|
||||
if (type == 1) {
|
||||
var btn = '<div class="confirm guanbi" onclick="$(\'.tipMask\').hide();">确定</div>';
|
||||
}
|
||||
else {
|
||||
var btn = '<div class="confirm guanbi" onclick="window.location.href=\'' + url + '\'">确定</div>';
|
||||
}
|
||||
$("#msgBtn").html(btn);
|
||||
$(".tipMask").show();
|
||||
}
|
||||
</script>
|
||||
</html>
|
||||
146
application/index/view/user/recharge.html
Executable file
146
application/index/view/user/recharge.html
Executable file
@ -0,0 +1,146 @@
|
||||
{include file="public/header" nav="充值"}
|
||||
<link rel="stylesheet" type="text/css" href="__ROOT__/static/wap/css/tipmask.css">
|
||||
<link rel="stylesheet" type="text/css" href="__ROOT__/static/wap/css/box_pay.css">
|
||||
<div id="app">
|
||||
<div class="box"><!---->
|
||||
<div class="jun-content">
|
||||
<div class="t_box_pay">
|
||||
<div class="t_header">
|
||||
<span><img src="__ROOT__/static/wap/images/goback.png" alt="" onClick="javascript:history.back()"></span>
|
||||
<span><i>充值</i></span>
|
||||
</div>
|
||||
<div class="t_con_pay">
|
||||
<div class="t_money"><i></i>
|
||||
<label>温馨提示:点击收款账号和姓名可复制其内容</label>
|
||||
</div>
|
||||
<div class="payment">
|
||||
<ul>
|
||||
<li class="repeat_active">
|
||||
<i></i><span>开户银行:{:getInfo('pay_bank_type')}</span><i></i>
|
||||
</li>
|
||||
<li class="repeat_active">
|
||||
<i></i><span>开户网点:{:getInfo('pay_bank_type')}</span><i></i>
|
||||
</li>
|
||||
<li class="repeat_active">
|
||||
<i></i><span>收款账号:<p style="display: inline-block;" id="card">{:getInfo('pay_bank_account')}</p></span><i></i>
|
||||
</li>
|
||||
<li class="repeat_active">
|
||||
<i></i><span>收款姓名:<p style="display: inline-block;" id="name">{:getInfo('pay_bank_name')}</p></span><i></i>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="t_money"><i></i>
|
||||
<label>温馨提示:确认转账成功后再进行充值金额提交</label>
|
||||
</div>
|
||||
<div class="payment othermon">
|
||||
<ul>
|
||||
<li><span style="color: #fff;margin-left: .2rem">充值金额: </span><input type="text" id="money" value="" style="padding-left:5px;background: #181f2f;color:#fff"></li>
|
||||
<li><span style="color: #fff;margin-left: .2rem">存款姓名: </span><input type="text" id="truename" value="" style="padding-left:5px;background: #181f2f;color:#fff"></li>
|
||||
<li><span style="color: #fff;margin-left: .2rem">转账附言: </span><input type="text" id="reason" value="" style="padding-left:5px;background: #181f2f;color:#fff"></li>
|
||||
</ul>
|
||||
</div >
|
||||
<div class="t_pay_btn">
|
||||
<button id="sub_btn" value="" type="button">充值</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- {include file="public/footer" menu='recharge'}-->
|
||||
</div>
|
||||
</div>
|
||||
<div class="tipMask hide">
|
||||
<div class="cont">
|
||||
<p class="title">温馨提示</p>
|
||||
<p class="stitle contents"></p>
|
||||
<div id="msgBtn">
|
||||
<div class="confirm guanbi">确定</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<script type="text/javascript" src="__ROOT__/static/theme/index/js/layer.js"></script>
|
||||
<script type="text/javascript" src="__ROOT__/static/theme/index/js/clipboard.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var clipboard = new Clipboard('#card', {
|
||||
text: function() {
|
||||
return $('#card').text();
|
||||
}
|
||||
});
|
||||
if(Clipboard.isSupported()) {
|
||||
clipboard.on('success', function(e) {
|
||||
layer.msg('复制成功');
|
||||
});
|
||||
clipboard.on('error', function(e) {
|
||||
layer.msg('复制成功');
|
||||
console.log(e);
|
||||
});
|
||||
} else {
|
||||
layer.msg('您当前系统和浏览器内核不支持复制,请手动复制打开微信');
|
||||
}
|
||||
var clipboard2 = new Clipboard('#name', {
|
||||
text: function() {
|
||||
return $('#name').text();
|
||||
}
|
||||
});
|
||||
if(Clipboard.isSupported()) {
|
||||
clipboard2.on('success', function(e) {
|
||||
layer.msg('复制成功');
|
||||
});
|
||||
clipboard2.on('error', function(e) {
|
||||
layer.msg('复制成功');
|
||||
console.log(e);
|
||||
});
|
||||
} else {
|
||||
layer.msg('您当前系统和浏览器内核不支持复制,请手动复制打开微信');
|
||||
}
|
||||
|
||||
$(function () {
|
||||
$("#sub_btn").on("click", function () {
|
||||
var truename = $("#truename").val();
|
||||
var reason = $("#reason").val();
|
||||
var money = parseFloat($("#money").val()).toFixed(2);
|
||||
var auth = parseInt("{$user.auth}");
|
||||
|
||||
if (isNaN(money)) {
|
||||
msg("错误", "充值金额有误!", 1);
|
||||
return false;
|
||||
}
|
||||
if (money < {$min_recharge}) {
|
||||
msg("错误", "最低充值金额{$min_recharge}元!", 1);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (truename.length < 2) {
|
||||
msg("错误", "请输入付款人姓名!", 1);
|
||||
return false;
|
||||
}
|
||||
var url = "/index/user/recharge";
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : url,
|
||||
data: {money:money,type:'bank',truename:truename,reason:reason},
|
||||
dataType : "json",
|
||||
success : function(result){
|
||||
if(result.code == 1){
|
||||
msg("提示",result.info,2,"/index/user/recharge_record");
|
||||
}else{
|
||||
msg("提示",result.info,1);
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
})
|
||||
|
||||
function msg(title, content, type, url) {
|
||||
$(".contents").html(content);
|
||||
if (type == 1) {
|
||||
var btn = '<div class="confirm guanbi" onclick="$(\'.tipMask\').hide();">确定</div>';
|
||||
}
|
||||
else {
|
||||
var btn = '<div class="confirm guanbi" onclick="window.location.href=\'' + url + '\'">确定</div>';
|
||||
}
|
||||
$("#msgBtn").html(btn);
|
||||
$(".tipMask").show();
|
||||
}
|
||||
</script>
|
||||
</html>
|
||||
65
application/index/view/user/recharge_record.html
Executable file
65
application/index/view/user/recharge_record.html
Executable file
@ -0,0 +1,65 @@
|
||||
{include file="public/header" nav="充值记录"}
|
||||
<link rel="stylesheet" type="text/css" href="__ROOT__/static/wap/css/box_pay.css">
|
||||
|
||||
<div id="app">
|
||||
<div class="box"><!---->
|
||||
<div class="jun-content">
|
||||
<div class="f_box_accountrecord">
|
||||
<div class="t_header">
|
||||
<span><img src="__ROOT__/static/wap/images/goback.png" alt="" onClick="javascript:history.back()"></span>
|
||||
<span><i>充值记录</i></span>
|
||||
</div>
|
||||
<div class="t_box_accountrecord">
|
||||
{if count($recharge) > 0}
|
||||
{volist name="recharge" id="r"}
|
||||
<ul>
|
||||
<li>
|
||||
<span>时间:</span>
|
||||
<p>{$r.time}</p>
|
||||
</li>
|
||||
<li>
|
||||
<span>金额:</span>
|
||||
<p>¥{$r.money}</p>
|
||||
</li>
|
||||
<li>
|
||||
<span>类型:</span>
|
||||
<p>{$r.type}</p>
|
||||
</li>
|
||||
<li>
|
||||
<span>状态:</span>
|
||||
<p>
|
||||
{if condition="$r['status'] eq 0"}
|
||||
<span style="color: orange;">审核中</span>
|
||||
{/if}
|
||||
{if condition="$r['status'] eq 1"}
|
||||
<span style="color: green;">申请成功</span>
|
||||
{/if}
|
||||
{if condition="$r['status'] eq 2"}
|
||||
<span style="color: red;">申请失败</span>
|
||||
{/if}
|
||||
</p>
|
||||
</li>
|
||||
{if condition="$r['reaolae'] "}
|
||||
<li style="color:green">
|
||||
<span>拒绝原因:</span>
|
||||
<p>{$r.reaolae}</p>
|
||||
</li>
|
||||
{/if}
|
||||
</ul>
|
||||
{/volist}
|
||||
{else/}
|
||||
<div class="dataNo">
|
||||
<h3>没有更多数据了</h3>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{include file="public/footer" menu='user'}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
227
application/index/view/user/recommend.html
Executable file
227
application/index/view/user/recommend.html
Executable file
@ -0,0 +1,227 @@
|
||||
{include file="public/header1" nav="邀请朋友"}
|
||||
<style>
|
||||
.header {
|
||||
background: #FF6B6B;
|
||||
}
|
||||
|
||||
.header .left .icon-arrow-left {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.container {
|
||||
padding: 0;
|
||||
min-height: 100%;
|
||||
background: linear-gradient(to right, #3476fe, #34c7fe);
|
||||
position: relative;
|
||||
/*background-image: url(__ROOT__/static/theme/index/img/invite_4.png);
|
||||
background-size: 57%;
|
||||
background-repeat: no-repeat;
|
||||
background-position: right bottom;*/
|
||||
}
|
||||
|
||||
.top {
|
||||
padding: 0 .3rem;
|
||||
line-height: 0;
|
||||
background-image: url(__ROOT__/static/theme/index/img/invite_2.png);
|
||||
background-size: 61%;
|
||||
background-repeat: no-repeat;
|
||||
background-position-x: 1.45rem;
|
||||
}
|
||||
|
||||
.top .timg {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.top .code {
|
||||
width: 3.82rem;
|
||||
height: 3.82rem;
|
||||
margin: 0 auto;
|
||||
margin-top: .5rem;
|
||||
}
|
||||
|
||||
.top .code img {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.top .tip {
|
||||
font-size: .28rem;
|
||||
line-height: .4rem;
|
||||
color: #FFFFFF;
|
||||
margin-top: .26rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.top .saveCode {
|
||||
width: 5.1rem;
|
||||
height: 1.06rem;
|
||||
background-color: #FCCF61;
|
||||
border-radius: .55rem;
|
||||
font-size: .34rem;
|
||||
line-height: 1.06rem;
|
||||
color: #FFFFFF;
|
||||
text-align: center;
|
||||
margin: 0 auto;
|
||||
margin-top: .2rem;
|
||||
}
|
||||
|
||||
.inviteaward {
|
||||
margin: 0 .4rem;
|
||||
margin-top: .6rem;
|
||||
}
|
||||
|
||||
.inviteaward .iatop {
|
||||
height: .66rem;
|
||||
padding: 0 .3rem;
|
||||
background-color: #F6F6F6;
|
||||
border-top-left-radius: 6px;
|
||||
border-top-right-radius: 6px;
|
||||
}
|
||||
|
||||
.inviteaward .iatop .left {
|
||||
font-size: .3rem;
|
||||
line-height: .66rem;
|
||||
color: #3A3A3A;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.inviteaward .iatop .right {
|
||||
font-size: .24rem;
|
||||
line-height: .66rem;
|
||||
color: #9C999A;
|
||||
float: right;
|
||||
}
|
||||
|
||||
.inviteaward .iatop .right .icon-arrow-right {
|
||||
font-size: .24rem;
|
||||
line-height: .66rem;
|
||||
color: #979797;
|
||||
float: right;
|
||||
}
|
||||
|
||||
.inviteaward .list {
|
||||
height: .8rem;
|
||||
padding: .24rem 0;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
background-color: #FFF;
|
||||
border-bottom-left-radius: 6px;
|
||||
border-bottom-right-radius: 6px;
|
||||
}
|
||||
|
||||
.inviteaward .list .item {
|
||||
flex: 1;
|
||||
border-right: 1px solid #EEEEEE;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.inviteaward .list .item:last-child {
|
||||
border-right: 0;
|
||||
}
|
||||
|
||||
.inviteaward .list .item {
|
||||
font-size: .24rem;
|
||||
line-height: .72rem;
|
||||
color: #3A3A3A;
|
||||
}
|
||||
|
||||
.inviteaward .list .item .num {
|
||||
font-size: .72rem;
|
||||
line-height: .72rem;
|
||||
color: #FA493B;
|
||||
font-weight: bolder;
|
||||
letter-spacing: -6px;
|
||||
}
|
||||
|
||||
.inviteaward .list .item .unit {
|
||||
font-size: .24rem;
|
||||
line-height: .72rem;
|
||||
color: #FA493B;
|
||||
}
|
||||
|
||||
/* rule CSS */
|
||||
.rule {
|
||||
padding: 0 .4rem;
|
||||
margin-top: .4rem;
|
||||
font-size: 0;
|
||||
}
|
||||
|
||||
.rule .rtitle {
|
||||
display: inline-block;
|
||||
font-size: .24rem;
|
||||
line-height: .34rem;
|
||||
color: #FFFFFF;
|
||||
padding: .08rem .16rem;
|
||||
border-radius: .22rem;
|
||||
background-color: #FF9898;
|
||||
}
|
||||
|
||||
.rule .cont {
|
||||
margin-top: .4rem;
|
||||
padding-bottom: .56rem;
|
||||
}
|
||||
|
||||
.rule .cont p {
|
||||
font-size: .28rem;
|
||||
line-height: .4rem;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.rule .cont p span {
|
||||
font-size: .48rem;
|
||||
line-height: .6rem;
|
||||
color: #FFFFFF;
|
||||
font-weight: bolder;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<div class="left" onclick="window.history.back()">
|
||||
<i class="iconfont icon-arrow-left"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="top">
|
||||
<img src="__ROOT__/static/theme/index/img/invite_1.png" alt="" class="timg"/>
|
||||
<div class="code" id="qrcode">
|
||||
</div>
|
||||
<p class="tip">好友扫描二维码可直接注册</p>
|
||||
|
||||
<div class="saveCode" style="color:blue">您的邀请ID: {$user.phone}</div>
|
||||
</div>
|
||||
<div class="inviteaward">
|
||||
<div class="iatop">
|
||||
<div class="left">我的邀请奖励</div>
|
||||
<div class="right">
|
||||
<a href="/index/user/extend"><span>查看我的邀请</span></a>
|
||||
<i class="iconfont icon-arrow-right"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="rule">
|
||||
<div class="rtitle">邀请规则</div>
|
||||
<div class="cont">
|
||||
<p>1.本活动永久有效,欢迎参与</p>
|
||||
|
||||
<p>2.推荐名额可累计计算</p>
|
||||
|
||||
<p>3.满足条件后,请联系在线客服申请奖励</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<script type="text/javascript" src="__ROOT__/static/theme/index/js/font.js"></script>
|
||||
<script type="text/javascript" src="__ROOT__/static/theme/index/js/jquery.js"></script>
|
||||
<script type="text/javascript" src="__ROOT__/static/theme/index/js/qrcode.js"></script>
|
||||
<script type="text/javascript">
|
||||
var qrcode = new QRCode('qrcode', {
|
||||
text: "{$url}/index/login/reg?invite={$user.id}",
|
||||
width: '100',
|
||||
height: '100',
|
||||
colorDark: '#000000',
|
||||
colorLight: '#ffffff',
|
||||
correctLevel: QRCode.CorrectLevel.H
|
||||
});
|
||||
</script>
|
||||
</html>
|
||||
42
application/index/view/user/scan.html
Executable file
42
application/index/view/user/scan.html
Executable file
@ -0,0 +1,42 @@
|
||||
{include file="public/header" nav="充值"}
|
||||
{if condition="$_GET['type'] eq 'wechat'"}
|
||||
<div class="mobile" style="background-color: #00C800;">
|
||||
<div class="othertop">
|
||||
<a class="goback" href="/index/user/index">
|
||||
<img src="__ROOT__/static/theme/index/img/goback.png" />
|
||||
</a>
|
||||
<div class="othertop-font">微信扫码充值</div>
|
||||
</div>
|
||||
<div class="header-nbsp"></div>
|
||||
<div style="color:#fff;text-align: center;font-size: .4rem;padding: 20px 0;">
|
||||
微信充值 {$money} 元
|
||||
</div>
|
||||
<div style="width: 96%;padding: 0 2%;">
|
||||
<img src="{:getInfo('qr_wechat_img')}?k={:rand(1,99999)}" width="100%"/>
|
||||
</div>
|
||||
<div style="padding: .2rem .4rem .4rem;font-size: .32rem;color:#fff;line-height: .5rem;background-color: #00C800;">
|
||||
{:getInfo('qr_wechat')}
|
||||
</div>
|
||||
</div>
|
||||
{else/}
|
||||
<div class="mobile" style="background-color: #00A0E9;">
|
||||
<div class="othertop">
|
||||
<a class="goback" href="/index/user/index">
|
||||
<img src="__ROOT__/static/theme/index/img/goback.png" />
|
||||
</a>
|
||||
<div class="othertop-font">支付宝扫码充值</div>
|
||||
</div>
|
||||
<div class="header-nbsp"></div>
|
||||
<div style="color:#fff;text-align: center;font-size: .4rem;padding: 20px 0;">
|
||||
支付宝充值 {$money} 元
|
||||
</div>
|
||||
<div style="width: 96%;padding: 0 2%;">
|
||||
<img src="{:getInfo('qr_alipay_img')}?k={:rand(1,99999)}" width="100%"/>
|
||||
</div>
|
||||
<div style="padding:.2rem .4rem .4rem;font-size: .32rem;color:#fff;line-height: .5rem;background-color: #00A0E9;">
|
||||
{:getInfo('qr_alipay')}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</body>
|
||||
</html>
|
||||
38
application/index/view/user/set_account.html
Executable file
38
application/index/view/user/set_account.html
Executable file
@ -0,0 +1,38 @@
|
||||
{include file="public/header" nav="账户安全"}
|
||||
<link rel="stylesheet" type="text/css" href="__ROOT__/static/wap/css/box_pay.css">
|
||||
<div id="app">
|
||||
<div class="box">
|
||||
<div class="jun-content">
|
||||
<div class="f_box_bank">
|
||||
<div class="t_header">
|
||||
<span><img src="__ROOT__/static/wap/images/goback.png" alt="" onClick="javascript:history.back()"></span>
|
||||
<span><i>账户安全</i></span>
|
||||
</div>
|
||||
<div class="f_content">
|
||||
<div class="list">
|
||||
<div class="item">
|
||||
<span>用户名</span>
|
||||
<span class="right">{$user.phone}</span>
|
||||
</div>
|
||||
<div class="item">
|
||||
<a href="/index/user/pwd_login">
|
||||
<span>修改登录密码</span>
|
||||
<i class="iconfont icon-arrow-right"></i>
|
||||
</a>
|
||||
</div>
|
||||
<div class="item">
|
||||
<a href="/index/user/pwd_pay">
|
||||
<span>修改支付密码</span>
|
||||
<i class="iconfont icon-arrow-right"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{include file="public/footer" menu='user'}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
679
application/index/view/user/trade.html
Executable file
679
application/index/view/user/trade.html
Executable file
@ -0,0 +1,679 @@
|
||||
{include file="public/header" nav="交易中心"}
|
||||
<link rel="stylesheet" type="text/css" href="__ROOT__/static/theme/index/css/mine.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="__ROOT__/static/theme/index/css/footer.css"/>
|
||||
<script type="text/javascript" src="__ROOT__/static/theme/index/js/jquery.js"></script>
|
||||
<script type="text/javascript" src="__ROOT__/static/theme/index/js/font.js"></script>
|
||||
<script type="text/javascript" src="__ROOT__/static/theme/index/js/public.js"></script>
|
||||
<script src="__ROOT__/static/theme/index/js/autorem.js"></script>
|
||||
</head>
|
||||
<style type="text/css">
|
||||
.bar {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
z-index: 10;
|
||||
height: 45px;
|
||||
color: #fff;
|
||||
background: linear-gradient(to right, #3476fe, #34c7fe) !important;
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
}
|
||||
#alltit {
|
||||
position: absolute;
|
||||
z-index: 19;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
display: inline-block;
|
||||
line-height: 45px;
|
||||
font-size: 16px;
|
||||
color: #fff;
|
||||
}
|
||||
.page, .page-group {
|
||||
box-sizing: border-box;
|
||||
margin: 0 auto;
|
||||
background-color: #efefed;
|
||||
overflow: hidden;
|
||||
}
|
||||
#main_content {
|
||||
padding-bottom: 1rem;
|
||||
width: 100%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
img {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.btndlist {
|
||||
overflow: hidden;
|
||||
width: 94%;
|
||||
margin: 0 auto;
|
||||
background-color: #fff;
|
||||
}
|
||||
.btndlist .active {
|
||||
color: #0084FF;
|
||||
}
|
||||
.btndlist li {
|
||||
float: left;
|
||||
margin: 0 0.2rem;
|
||||
color: #000000;
|
||||
font-size: 14px;
|
||||
line-height: 0.8rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
.info-list {
|
||||
overflow: hidden;
|
||||
height: 90px;
|
||||
width: 94%;
|
||||
margin: 0 auto;
|
||||
margin-bottom: 10px;
|
||||
background-color: #4c586a;
|
||||
}
|
||||
#chart_line{
|
||||
width: 94%!important;
|
||||
}
|
||||
.paybox {
|
||||
position: fixed;
|
||||
width: 10rem;
|
||||
bottom: 0;
|
||||
height: 9.6rem;
|
||||
left: 50%;
|
||||
margin-left: -5rem;
|
||||
background-color: #f5f5f5;
|
||||
z-index: 21;
|
||||
border: 0.02666rem solid #dedede;
|
||||
box-sizing: border-box;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.paybox .title {
|
||||
width: 100%;
|
||||
height: 1.3rem;
|
||||
border-bottom: 0.02666rem solid #dedede;
|
||||
font: 0.44rem/1.3rem '微软雅黑';
|
||||
color: #333;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.paybox .title .c_lose {
|
||||
position: absolute;
|
||||
font: 0.7rem/1rem '微软雅黑';
|
||||
color: #000;
|
||||
top: 0;
|
||||
right: 0rem;
|
||||
width: 1.3rem;
|
||||
}
|
||||
|
||||
.paybox .passwordli {
|
||||
width: 86%;
|
||||
margin: 0.4rem auto;
|
||||
border: 0.02666rem solid #cacaca;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.paybox .passwordli li {
|
||||
height: 1rem;
|
||||
float: left;
|
||||
width: 16.66666%;
|
||||
box-sizing: border-box;
|
||||
border-right: 0.02666rem solid #dedede;
|
||||
text-align: center;
|
||||
font: 0.6rem/1rem '微软雅黑';
|
||||
}
|
||||
|
||||
.paybox .tit {
|
||||
font: 0.3rem/0.3rem '微软雅黑';
|
||||
color: #289c9c;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.paybox .passwordbtn {
|
||||
width: 100%;
|
||||
margin: 0.5rem auto;
|
||||
background-color: #fafafa;
|
||||
overflow: hidden;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.paybox .passwordbtn li {
|
||||
width: 33.33333%;
|
||||
float: left;
|
||||
height: 1.4rem;
|
||||
font: 0.5rem/1.4rem '微软雅黑';
|
||||
text-align: center;
|
||||
box-sizing: border-box;
|
||||
border-right: 0.02666rem solid #c6c6c6;
|
||||
border-bottom: 0.02666rem solid #c6c6c6;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.paybox .passwordbtn li:nth-child(3n) {
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
.paybox .passwordbtn li:nth-child(10),
|
||||
.paybox .passwordbtn li:nth-child(11),
|
||||
.paybox .passwordbtn li:nth-child(12) {
|
||||
border-bottom: none;
|
||||
background-color: #d2d5da;
|
||||
}
|
||||
|
||||
.paybox .passwordbtn li:nth-child(11) {
|
||||
background-color: #fafafa;
|
||||
}
|
||||
|
||||
.paybox .passwordbtn li:nth-child(12) {
|
||||
background: url("/static/theme/index/img/passdel.png") no-repeat center center/0.7rem 0.5rem;
|
||||
background-color: #d2d5da;
|
||||
}
|
||||
|
||||
.shade {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
background-color: rgba(0, 0, 0, 0.4);
|
||||
z-index: 20;
|
||||
display: none;
|
||||
}
|
||||
/* tipMask CSS */
|
||||
.tipMask {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(95, 95, 95, 0.3);
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
.tipMask .cont {
|
||||
width: 5.1rem;
|
||||
padding: .42rem .6rem .5rem;
|
||||
border-radius: 5px;
|
||||
background-color: #FFFFFF;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
margin-left: -3.15rem;
|
||||
margin-top: -1.8rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.tipMask .cont .title {
|
||||
font-size: .34rem;
|
||||
line-height: .48rem;
|
||||
color: #191919;
|
||||
}
|
||||
|
||||
.tipMask .cont .stitle {
|
||||
font-size: .3rem;
|
||||
line-height: .42rem;
|
||||
color: #606060;
|
||||
margin-top: .36rem;
|
||||
}
|
||||
|
||||
.tipMask .cont .confirm {
|
||||
width: 100%;
|
||||
height: .88rem;
|
||||
background-color: #EF6F6C;
|
||||
border-radius: 4px;
|
||||
font-size: .34rem;
|
||||
color: #fff;
|
||||
line-height: .88rem;
|
||||
text-align: center;
|
||||
margin-top: .5rem;
|
||||
}
|
||||
.hide {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<header class="bar bar-nav">
|
||||
<a id="alltit">交易中心</a>
|
||||
<a href="/index/user/fund" style="font-weight: normal!important;line-height:45px;padding: 0;padding-right: 0.4rem;font-size: 14px;float: right;position: relative;z-index:20;color: #fff;">交易明细</a>
|
||||
</header>
|
||||
<div class="page">
|
||||
<div class="content" id="main_content">
|
||||
<div style="width: 94%;margin: 1.2rem 3% 0 3%;background: #fff;padding-bottom:0;border-top-right-radius: 0.2rem;border-top-left-radius: 0.2rem">
|
||||
<div style="color: #333;font-size:18px;font-weight: bold;padding: 0.3rem 0.3rem 0;">BTC</div>
|
||||
<div style="font-size: 32px;color: #01BD8B;padding: 0 0.3rem;">
|
||||
<font class="BTCprice" style="color: rgb(245, 104, 103);">0.00</font>
|
||||
<span style="font-size:16px; color: rgb(245, 104, 103); margin-left: 0.3rem;" class="BTCudbfb">0.00%</span>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="btndlist">
|
||||
<a href="/index/user/trade?per=1">
|
||||
<li>分钟线</li>
|
||||
</a>
|
||||
<a href="/index/user/trade?per=60">
|
||||
<li>小时线</li>
|
||||
</a>
|
||||
<a href="/index/user/trade?per=1440">
|
||||
<li>日线</li>
|
||||
</a>
|
||||
</ul>
|
||||
<div id="chart_line" class="info-list" style="margin: 0 auto;border-bottom-left-radius: 0.2rem;border-bottom-right-radius: 0.2rem;padding:0.2rem 0;background-color: #fff">
|
||||
</div>
|
||||
<div style="width: 90%;padding: 0.3rem 2%;background-color: #fff;margin:0.25rem auto;border-radius: 5px">
|
||||
<span style="font-size: 14px;color: #000000;margin-left: 5px">BTC钱包</span>
|
||||
<span style="float: right;color: #333;font-size:15px;" class="confye">{$user.btc}</span>
|
||||
</div>
|
||||
<div style="width: 90%;padding: 0.2rem 2%;background-color: #fff;margin:0.25rem auto;border-radius: 5px">
|
||||
<input type="text" style="background-color: transparent;text-indent: 0.2rem;border:1px solid rgba(0,0,0,0.3);width: 4rem;height: 0.7rem;line-height:0.7rem;border:none;color: #000000;font-size: 14px" oninput="bindinput($(this))" placeholder="请输入出售数量" />
|
||||
<span button="" type="button" onclick="All($(this))" style="color: #0084FF;display:inline-block; border-radius:0.25rem ; text-align: center; float:right;font-size: 14px;font-weight: bold;margin-right: 0rem;line-height:0.6rem;cursor:pointer;font-weight: normal"> 全部出售 </span>
|
||||
</div>
|
||||
<div button="" id="confirm recharge" type="button" onclick="ajaxinput()" style="width: 94%!important;text-align:center; color:#fff;margin:0.5rem auto; height: 1rem; border-radius: 5px; line-height: 1rem; font-size: 14px;font-weight: bold;width: 100%;background: #F56867;">确认出售</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tipMask hide" style="z-index:999999999999999999">
|
||||
<div class="cont">
|
||||
<p class="title">温馨提示</p>
|
||||
<p class="stitle contents"></p>
|
||||
<div id="msgBtn">
|
||||
<div class="confirm guanbi">确定</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{include file="public/footer" menu='trade'}
|
||||
<script type="text/javascript" src="__ROOT__/static/theme/index/js/echarts.min.js"></script>
|
||||
<script>
|
||||
function msg(title, content, type, url) {
|
||||
$(".contents").html(content);
|
||||
if (type == 1) {
|
||||
var btn = '<div class="confirm guanbi" onclick="$(\'.tipMask\').hide();">确定</div>';
|
||||
}
|
||||
else {
|
||||
var btn = '<div class="confirm guanbi" onclick="window.location.href=\'' + url + '\'">确定</div>';
|
||||
}
|
||||
$("#msgBtn").html(btn);
|
||||
$(".tipMask").show();
|
||||
}
|
||||
|
||||
var buynum = '';
|
||||
function All(that) {
|
||||
that.prev('input').val($('.confye').text())
|
||||
buynum = $('.confye').text();
|
||||
}
|
||||
|
||||
function bindinput(that) {
|
||||
if (!that.val()) {
|
||||
buynum = '';
|
||||
return;
|
||||
} else {
|
||||
buynum = that.val().replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d\d\d\d\d\d\d\d).*$/, '$1$2.$3').replace(/^\./g, '');
|
||||
that.val(buynum)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function ajaxinput(){
|
||||
if (!buynum || buynum == 0) {
|
||||
msg("提示", "请输入出售数量!", 1);
|
||||
return
|
||||
}
|
||||
|
||||
if (buynum < 0.000001) {
|
||||
msg("提示", "BTC最小出售单位为0.00000100!", 1);
|
||||
return
|
||||
}
|
||||
$.ajax({
|
||||
url: "/index/user/tradeBTC",
|
||||
type: "post",
|
||||
data: { 'buynum': buynum},
|
||||
success: function (data) {
|
||||
if (data.code == 1) {
|
||||
msg("提示", "出售成功!", 1);
|
||||
window.location.href = '/index/user/index';
|
||||
} else {
|
||||
msg("错误", data.info, 1);
|
||||
}
|
||||
},
|
||||
error: function () {
|
||||
msg("错误", "网络异常!", 1);
|
||||
},
|
||||
comptele: function () {
|
||||
msg("错误", "网络异常!", 1);
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
var fontSize = $('html').attr('style').split(':')[1].split('px')[0];
|
||||
var PerIod_BTCdt = window.location.href.split('=')[1];
|
||||
var zoomStart = 94;
|
||||
if (!PerIod_BTCdt) {
|
||||
PerIod_BTCdt = 1;
|
||||
}
|
||||
if (PerIod_BTCdt == 1) {
|
||||
$('.btndlist a li').eq(0).addClass('active')
|
||||
}
|
||||
if (PerIod_BTCdt == 60) {
|
||||
$('.btndlist a li').eq(1).addClass('active')
|
||||
}
|
||||
if (PerIod_BTCdt == 1440) {
|
||||
//zoomStart = 0;
|
||||
$('.btndlist a li').eq(2).addClass('active')
|
||||
}
|
||||
// var PerIod_BTCdt = 60;
|
||||
$('#chart_line').css({
|
||||
width: fontSize * 9.3 + 'px',
|
||||
height: fontSize * 6 + 'px'
|
||||
});
|
||||
var dom = document.getElementById("chart_line");
|
||||
var KLineChart = echarts.init(dom);
|
||||
var app = {};
|
||||
var RiseColor = '#F56867';
|
||||
var RiseBorderColor = '#C14E48';
|
||||
var FallColor = '#01BD8B';
|
||||
var FallBorderColor = '#2D8288';
|
||||
var KLineTimes = {};
|
||||
var KLineDates = {};
|
||||
var KLineValues = {};
|
||||
var option = {
|
||||
tooltip: {
|
||||
trigger: 'axis',
|
||||
position: function(point, params, dom, rect, size) {
|
||||
// 鼠标坐标和提示框位置的参考坐标系是:以外层div的左上角那一点为原点,x轴向右,y轴向下
|
||||
// 提示框位置
|
||||
var x = 0; // x坐标位置
|
||||
var y = 0; // y坐标位置
|
||||
// 当前鼠标位置
|
||||
var pointX = point[0];
|
||||
var pointY = point[1];
|
||||
// 提示框大小
|
||||
var boxWidth = size.contentSize[0];
|
||||
var boxHeight = size.contentSize[1];
|
||||
// boxWidth > pointX 说明鼠标左边放不下提示框
|
||||
if (boxWidth > pointX) {
|
||||
x = 5;
|
||||
} else { // 左边放的下
|
||||
x = pointX - boxWidth;
|
||||
}
|
||||
// boxHeight > pointY 说明鼠标上边放不下提示框
|
||||
if (boxHeight > pointY) {
|
||||
y = 5;
|
||||
} else { // 上边放得下
|
||||
y = pointY - boxHeight;
|
||||
}
|
||||
return [x, y];
|
||||
},
|
||||
axisPointer: {
|
||||
type: 'cross'
|
||||
},
|
||||
formatter: function(params, ticket, callback) {
|
||||
var result = '时间: ' + params[0].name + "<br/>";
|
||||
params.forEach(function(item) {
|
||||
if (item.seriesName == "KLineValues") {
|
||||
result += item.marker + " " + '开盘价: ' + item.data[1] + '<br/>' +
|
||||
item.marker + " " + '最高价: ' + item.data[4] + '<br/>' +
|
||||
item.marker + " " + '最底价: ' + item.data[3] + '<br/>' +
|
||||
item.marker + " " + '收盘价: ' + item.data[2] + '<br/>';
|
||||
} else {
|
||||
result += item.marker + " " + item.seriesName + " : " + item.value.toString().substring(0, 7) + "</br>"; //item.marker + " " +
|
||||
}
|
||||
});
|
||||
return result;
|
||||
}
|
||||
},
|
||||
legend: {
|
||||
data: ['MA5', 'MA10', 'MA20'],
|
||||
textStyle: { //图例文字的样式
|
||||
color: '#7886B0'
|
||||
}
|
||||
},
|
||||
grid: {
|
||||
left: '15%',
|
||||
bottom: '12%',
|
||||
top: '10%',
|
||||
right: '6%'
|
||||
},
|
||||
xAxis: {
|
||||
type: 'category',
|
||||
data: KLineDates,
|
||||
scale: true,
|
||||
// boundaryGap: true,
|
||||
axisLabel: { //label文字设置
|
||||
color: '#7886B0'
|
||||
},
|
||||
axisLine: {
|
||||
onZero: false,
|
||||
lineStyle: {
|
||||
color: '#152451',
|
||||
width: 1, //这里是为了突出显示加上的
|
||||
}
|
||||
},
|
||||
axisTick: {
|
||||
// length:25
|
||||
},
|
||||
splitLine: {
|
||||
show: true,
|
||||
lineStyle: {
|
||||
color: ['#152451'],
|
||||
width: 1,
|
||||
type: 'solid'
|
||||
}
|
||||
},
|
||||
//axisLabel:{interval: 10},
|
||||
splitNumber: 10,
|
||||
//min: 'dataMin',
|
||||
//max: 'dataMax'
|
||||
},
|
||||
yAxis: {
|
||||
scale: true,
|
||||
axisLabel: { //label文字设置
|
||||
color: '#7886B0',
|
||||
},
|
||||
axisLine: {
|
||||
onZero: false,
|
||||
lineStyle: {
|
||||
color: '#152451',
|
||||
width: 1, //这里是为了突出显示加上的
|
||||
}
|
||||
},
|
||||
splitLine: {
|
||||
show: true,
|
||||
lineStyle: {
|
||||
color: ['#152451'],
|
||||
width: 1,
|
||||
type: 'solid'
|
||||
}
|
||||
}
|
||||
},
|
||||
dataZoom: [{
|
||||
type: 'inside',
|
||||
// start: (720 - 36) / 720 * 100,
|
||||
start: zoomStart,
|
||||
end: 100
|
||||
}, {
|
||||
show: false,
|
||||
type: 'slider',
|
||||
y: '90%',
|
||||
start: 98,
|
||||
end: 100
|
||||
}],
|
||||
series: [{
|
||||
name: 'KLineValues',
|
||||
type: 'candlestick',
|
||||
data: KLineValues,
|
||||
itemStyle: {
|
||||
normal: {
|
||||
color: RiseColor,
|
||||
color0: FallColor,
|
||||
borderColor: RiseBorderColor,
|
||||
borderColor0: FallBorderColor
|
||||
}
|
||||
},
|
||||
}, {
|
||||
name: 'MA5',
|
||||
type: 'line',
|
||||
data: [],
|
||||
symbol: 'none',
|
||||
smooth: true,
|
||||
lineStyle: {
|
||||
normal: {
|
||||
opacity: 1
|
||||
}
|
||||
},
|
||||
itemStyle: {
|
||||
normal: {
|
||||
color: "#F2E943",
|
||||
lineStyle: {
|
||||
width: 1, //设置线条粗细
|
||||
color: '#F2E943'
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
name: 'MA10',
|
||||
type: 'line',
|
||||
data: [],
|
||||
symbol: 'none',
|
||||
smooth: true,
|
||||
lineStyle: {
|
||||
normal: {
|
||||
opacity: 1
|
||||
}
|
||||
},
|
||||
itemStyle: {
|
||||
normal: {
|
||||
color: "#A3D276", //图例的颜色
|
||||
lineStyle: {
|
||||
width: 1, //设置线条粗细
|
||||
color: '#A3D276' //线的颜色
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
name: 'MA20',
|
||||
type: 'line',
|
||||
data: [],
|
||||
symbol: 'none',
|
||||
smooth: true,
|
||||
lineStyle: {
|
||||
normal: {
|
||||
opacity: 1
|
||||
}
|
||||
},
|
||||
itemStyle: {
|
||||
normal: {
|
||||
color: "#56AACC", //图例的颜色
|
||||
lineStyle: {
|
||||
width: 1, //设置线条粗细
|
||||
color: '#56AACC' //线的颜色
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
]
|
||||
};
|
||||
KLineChart.showLoading();
|
||||
if (option && typeof option === "object") {
|
||||
KLineChart.setOption(option, {
|
||||
notMerge: false,
|
||||
lazyUpdate: true,
|
||||
silent: false
|
||||
});
|
||||
}
|
||||
GetRealTimeDatas(720);
|
||||
KLineChart.hideLoading();
|
||||
$(function() {
|
||||
setInterval(function() {
|
||||
GetRealTimeDatas(2)
|
||||
}, 10000);
|
||||
});
|
||||
function CallMa(dayCount) {
|
||||
var result = [];
|
||||
for (var i = 0, len = KLineValues.length; i < len; i++) {
|
||||
if (i < dayCount) {
|
||||
result.push('-');
|
||||
continue;
|
||||
}
|
||||
var sum = 0;
|
||||
for (var j = 0; j < dayCount; j++) {
|
||||
sum += Number(KLineValues[i - j][1]);
|
||||
}
|
||||
sum = sum / dayCount;
|
||||
result.push(sum.toFixed(4));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
function GetRealTimeDatas(RequestNum) {
|
||||
$.ajax({
|
||||
url: "/index/index/MarketDatas",
|
||||
type: 'post',
|
||||
data: {
|
||||
'coin_id': 1,
|
||||
'period': PerIod_BTCdt,
|
||||
'coin_nums': RequestNum
|
||||
},
|
||||
datatype: 'json',
|
||||
success: function(data) {
|
||||
if (data.data.data.length > 0) {
|
||||
var temp = data.data;
|
||||
console.log(temp)
|
||||
if (temp.chg > 0) {
|
||||
$('.BTCprice,.BTCudbfb').css('color', 'rgb(245,104,103)');
|
||||
} else if (temp.chg < 0) {
|
||||
$('.BTCprice,.BTCudbfb').css('color', '#01BD8B');
|
||||
} else {
|
||||
$('.BTCprice,.BTCudbfb').css('color', '#000000');
|
||||
}
|
||||
$('.BTCprice').text(temp.lastprice);
|
||||
$('.BTCudbfb').text(temp.chg + '%');
|
||||
if (KLineValues.length > 0) {
|
||||
var i = 0;
|
||||
var len = temp.time.length;
|
||||
var time_len = KLineTimes.length;
|
||||
for (; i < len; i++) {
|
||||
if (KLineTimes[time_len - 1] <= temp.time[i]) {
|
||||
if (KLineTimes[time_len - 1] == temp.time[i]) {
|
||||
KLineTimes[time_len - 1] = temp.time[i];
|
||||
KLineDates[time_len - 1] = temp.date[i];
|
||||
KLineValues[time_len - 1] = temp.data[i];
|
||||
i++;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
for (; i < len; i++) {
|
||||
KLineTimes.push(temp.time[i]);
|
||||
KLineDates.push(temp.date[i]);
|
||||
KLineValues.push(temp.data[i]);
|
||||
KLineTimes.shift();
|
||||
KLineDates.shift();
|
||||
KLineValues.shift();
|
||||
}
|
||||
} else {
|
||||
KLineTimes = temp.time;
|
||||
KLineDates = temp.date;
|
||||
KLineValues = temp.data;
|
||||
}
|
||||
KLineChart.setOption({
|
||||
xAxis: {
|
||||
data: KLineDates
|
||||
},
|
||||
series: [{
|
||||
// 根据名字对应到相应的系列
|
||||
data: KLineValues
|
||||
}, {
|
||||
data: CallMa(5)
|
||||
}, {
|
||||
data: CallMa(10)
|
||||
}, {
|
||||
data: CallMa(20)
|
||||
}]
|
||||
});
|
||||
} else {
|
||||
/*layer.msg('加载数据失败!', {
|
||||
icon: 5,
|
||||
time: 2000
|
||||
});*/
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
244
application/index/view/user/verified.html
Executable file
244
application/index/view/user/verified.html
Executable file
@ -0,0 +1,244 @@
|
||||
{include file="public/header" nav="实名认证"}
|
||||
<link rel="stylesheet" type="text/css" href="__ROOT__/static/wap/css/tipmask.css">
|
||||
<link rel="stylesheet" type="text/css" href="__ROOT__/static/wap/css/box_pay.css">
|
||||
<script src="//code.jquery.com/jquery-3.3.1.min.js"></script>
|
||||
<style>
|
||||
.upload{
|
||||
width: 100%;
|
||||
height: 200px;
|
||||
overflow: hidden;
|
||||
background-color:transparent;
|
||||
}
|
||||
.myfile{
|
||||
/*opacity: 0;*/
|
||||
/*width:10px;*/
|
||||
/*display:hidden;*/
|
||||
display:none;
|
||||
}
|
||||
.myfile1{
|
||||
/*opacity: 0;*/
|
||||
/*width:10px;*/
|
||||
/*display:hidden;*/
|
||||
display:none;
|
||||
}
|
||||
</style>
|
||||
<div id="app">
|
||||
<div class="box">
|
||||
<div class="jun-content">
|
||||
<div class="f_box_addbank">
|
||||
<div class="t_header">
|
||||
<span><img src="__ROOT__/static/wap/images/goback.png" alt="" onClick="javascript:history.back()"></span>
|
||||
<span><i>实名认证</i></span>
|
||||
</div>
|
||||
<div class="f_content">
|
||||
<div style="padding: 1rem;text-align: center;">
|
||||
{if condition="$user['rz_status'] eq 0"}
|
||||
<p><img class="img" src="/static/wap/images/status_0.png" alt="" style="width:195px"/></p>
|
||||
{/if}
|
||||
{if condition="$user['rz_status'] eq 1"}
|
||||
<p><img class="img" src="/static/wap/images/status_1.png" alt="" style="width:195px"/></p>
|
||||
{/if}
|
||||
{if condition="$user['rz_status'] eq 2"}
|
||||
<p><img class="img" src="/static/wap/images/status_2.png" alt="" style="width:195px"/></p>
|
||||
{/if}
|
||||
{if condition="$user['rz_status'] eq 3"}
|
||||
<p><img class="img" src="/static/wap/images/status_3.png" alt="" style="width:195px"/></p>
|
||||
{/if}
|
||||
</div>
|
||||
{if condition="$user['rz_status'] eq 1 or $user['rz_status'] eq 2"}
|
||||
<ul>
|
||||
<li>
|
||||
<label>姓名</label>
|
||||
<span>{$user.name}</span>
|
||||
</li>
|
||||
<li>
|
||||
<label>身份证号</label>
|
||||
<span>{$user.idcard}</span>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="upload">
|
||||
<label for="myfile" style="margin-left: 2.5%;width:46%;position:relative;display:inline-block;">
|
||||
<img id="uploadAdd" style="width: 100%;height:100px;border-radius: 7px;" src="{$user.z_id_card}" alt="">
|
||||
</label>
|
||||
<label for="myfile1" style="margin-left: 3%;width:46%;relative;display:inline-block;">
|
||||
<img id="uploadAdd1" style="width:100%;height:100px;border-radius: 7px;" src="{$user.f_id_card}" alt="">
|
||||
</label>
|
||||
</div>
|
||||
<!--<div class="sure">-->
|
||||
<!-- <button id="sub_btn" type="button" class="el-button el-button--danger">确认 </button>-->
|
||||
<!--</div>-->
|
||||
{else /}
|
||||
<ul>
|
||||
<li>
|
||||
<label>姓名</label>
|
||||
<span><input type="text" name="name" id="name" value="" placeholder="输入姓名" onfocus="this.placeholder=''" onblur="this.placeholder='输入姓名'"></span>
|
||||
</li>
|
||||
<li>
|
||||
<label>身份证号</label>
|
||||
<span><input type="text" name="idcard" id="idcard" value="" placeholder="输入身份证号" onfocus="this.placeholder=''" onblur="this.placeholder='输入身份证号'"></span>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="upload">
|
||||
<label for="myfile" style="margin-left: 2.5%;width:46%">
|
||||
<img id="uploadAdd" style="width: 100%;height:100px;border-radius: 7px;" src="" alt="">
|
||||
<input type="file" name="myfile" id="myfile" class="myfile" onclick="handl(1)">
|
||||
<input type="hidden" id="z_id_card" name="z_id_card">
|
||||
</label>
|
||||
<label for="myfile1" style="margin-left: 3%;width:46%">
|
||||
<img id="uploadAdd1" style="width:100%;height:100px;border-radius: 7px;" src="" alt="">
|
||||
<input type="file" name="myfile1" id="myfile1" class="myfile1" onclick="handl(1)">
|
||||
<input type="hidden" id="f_id_card" name="f_id_card">
|
||||
</label>
|
||||
</div>
|
||||
<div class="sure">
|
||||
<button id="sub_btn" type="button" class="el-button el-button--danger">确认 </button>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{include file="public/footer" menu='user'}
|
||||
</div>
|
||||
</div>
|
||||
<div class="tipMask hide">
|
||||
<div class="cont">
|
||||
<p class="title">温馨提示</p>
|
||||
<p class="stitle contents"></p>
|
||||
<div id="msgBtn">
|
||||
<div class="confirm guanbi">确定</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<script type="text/javascript" src="__ROOT__/static/theme/index/js/jquery.js"></script>
|
||||
<script>
|
||||
let myfile = $('#myfile')
|
||||
let uoload_add=$('#uploadAdd')
|
||||
myfile.parent().css({
|
||||
'position': 'relative',
|
||||
'display': 'inline-block'
|
||||
})
|
||||
// myfile.css({
|
||||
// 'position': 'absolute',
|
||||
// 'left': '0',
|
||||
// 'right': '0',
|
||||
// 'top': '0',
|
||||
// 'bottom': '0',
|
||||
// 'opacity': '0'
|
||||
// })
|
||||
/**
|
||||
* @description: 封装fetch
|
||||
* @param {Object} FetchConfig fetch config
|
||||
* @return {Promise} fetch result
|
||||
*/
|
||||
const requestApi = ({
|
||||
url,
|
||||
method = 'POST',
|
||||
...fetchProps
|
||||
}) => {
|
||||
return fetch(url, {
|
||||
method,
|
||||
...fetchProps
|
||||
})
|
||||
//返回请求成功的结果
|
||||
.then(res => res && res.status === 200 && res.json())
|
||||
.catch(err => alert('未知错误'))
|
||||
.then(res => res)
|
||||
}
|
||||
const handleUploadFile = (formData = {}) =>
|
||||
requestApi({
|
||||
url: `/index/plugs/upload`,
|
||||
method: 'POST',
|
||||
body: formData
|
||||
})
|
||||
myfile.change(function() {
|
||||
let files = this.files[0]
|
||||
let formData = new FormData()
|
||||
formData.append('file', files) //这里面的'file'改成你需要的关键字
|
||||
console.log(formData);
|
||||
handleUploadFile(formData)
|
||||
.then(res => {
|
||||
console.log(res.url);
|
||||
uoload_add.attr('src',res.url)
|
||||
$('#z_id_card').val(res.url);
|
||||
}).catch(err => alert('出错'))
|
||||
})
|
||||
|
||||
let myfile1 = $('#myfile1');
|
||||
let uoload_add1=$('#uploadAdd1');
|
||||
myfile1.parent().css({
|
||||
'position': 'relative',
|
||||
'display': 'inline-block'
|
||||
})
|
||||
myfile1.change(function() {
|
||||
let files = this.files[0]
|
||||
let formData = new FormData()
|
||||
formData.append('file', files) //这里面的'file'改成你需要的关键字
|
||||
console.log(formData);
|
||||
handleUploadFile(formData)
|
||||
.then(res => {
|
||||
console.log(res.url);
|
||||
uoload_add1.attr('src',res.url)
|
||||
$('#f_id_card').val(res.url);
|
||||
}).catch(err => alert('出错'))
|
||||
})
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
let uoload_add=$('#uploadAdd')
|
||||
uoload_add.attr('src',"{$user['rz_status']>0 && $user['rz_status']<3&& $user['z_id_card']?$user['z_id_card']:'/static/wap/images/z_idcard.png'}")
|
||||
|
||||
let uoload_add1=$('#uploadAdd1')
|
||||
uoload_add1.attr('src',"{$user['rz_status']>0 && $user['rz_status']<3 && $user['f_id_card']?$user['f_id_card']:'/static/wap/images/f_idcard.png'}")
|
||||
$("#sub_btn").on("click", function () {
|
||||
var name = $("#name").val();
|
||||
var idcard = $("#idcard").val();
|
||||
var z_id_card = $("#z_id_card").val();
|
||||
var f_id_card = $("#f_id_card").val();
|
||||
if (name.length < 2) {
|
||||
msg("错误", "输入姓名!", 1);
|
||||
return false;
|
||||
}
|
||||
if (idcard.length < 15) {
|
||||
msg("错误", "输入身份证号!", 1);
|
||||
return false;
|
||||
}
|
||||
if (z_id_card.length < 1) {
|
||||
msg("错误", "上传身份证正面!", 1);
|
||||
return false;
|
||||
}
|
||||
if (f_id_card.length < 1) {
|
||||
msg("错误", "上传身份证反面!", 1);
|
||||
return false;
|
||||
}
|
||||
var url = "/index/user/verified";
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : url,
|
||||
data: {'name':name,'idcard':idcard,'z_id_card':z_id_card,'f_id_card':f_id_card},
|
||||
dataType : "json",
|
||||
success : function(result){
|
||||
if(result.code == 1){
|
||||
window.location.href = "/index/user/index"
|
||||
}else{
|
||||
msg("提示",result.info,1);
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
})
|
||||
|
||||
function msg(title, content, type, url) {
|
||||
$(".contents").html(content);
|
||||
if (type == 1) {
|
||||
var btn = '<div class="confirm guanbi" onclick="$(\'.tipMask\').hide();">确定</div>';
|
||||
}
|
||||
else {
|
||||
var btn = '<div class="confirm guanbi" onclick="window.location.href=\'' + url + '\'">确定</div>';
|
||||
}
|
||||
$("#msgBtn").html(btn);
|
||||
$(".tipMask").show();
|
||||
}
|
||||
</script>
|
||||
</html>
|
||||
148
application/index/view/user/wallet.html
Executable file
148
application/index/view/user/wallet.html
Executable file
@ -0,0 +1,148 @@
|
||||
{include file="public/header" nav="我的钱包"}
|
||||
<link rel="stylesheet" type="text/css" href="__ROOT__/static/theme/index/css/mine.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="__ROOT__/static/theme/index/css/footer.css"/>
|
||||
<script type="text/javascript" src="__ROOT__/static/theme/index/js/jquery.js"></script>
|
||||
<script type="text/javascript" src="__ROOT__/static/theme/index/js/font.js"></script>
|
||||
<script type="text/javascript" src="__ROOT__/static/theme/index/js/public.js"></script>
|
||||
</head>
|
||||
<style type="text/css">
|
||||
.bar {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
z-index: 10;
|
||||
height: 45px;
|
||||
color: #fff;
|
||||
background: linear-gradient(to right, #3476fe, #34c7fe) !important;
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
}
|
||||
#alltit {
|
||||
position: absolute;
|
||||
z-index: 19;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
display: inline-block;
|
||||
line-height: 45px;
|
||||
font-size: 16px;
|
||||
color: #fff;
|
||||
}
|
||||
.page, .page-group {
|
||||
box-sizing: border-box;
|
||||
margin: 0 auto;
|
||||
background-color: #efefed;
|
||||
overflow: hidden;
|
||||
}
|
||||
#main_content {
|
||||
padding-bottom: 1rem;
|
||||
width: 100%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
img {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.contentlist {
|
||||
overflow: hidden;
|
||||
width: 94%;
|
||||
margin: 150px auto;
|
||||
}
|
||||
.contentlist li {
|
||||
background-color: #fff;
|
||||
width: 49%;
|
||||
float: left;
|
||||
padding: 0.4rem 0;
|
||||
border-radius: 0.2rem;
|
||||
position: relative;
|
||||
margin-bottom: 0.2rem;
|
||||
}
|
||||
.contentlist li img {
|
||||
position: absolute;
|
||||
width: 28px;
|
||||
right: 0.22rem;
|
||||
top: 0.3rem;
|
||||
}
|
||||
.contentlist li .text1 {
|
||||
margin-left: .3rem;
|
||||
color: #000000;
|
||||
display: block;
|
||||
font-size: 14px;
|
||||
}
|
||||
.contentlist li .text2 {
|
||||
color: #000000;
|
||||
display: block;
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
margin-top: 0.2rem;
|
||||
margin-left: .3rem;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<header class="bar bar-nav">
|
||||
<a id="alltit">我的钱包</a>
|
||||
</header>
|
||||
<div class="page">
|
||||
<div class="content" id="main_content">
|
||||
<div style="width: 100%;height: 2rem;background: linear-gradient(to right, #3476FE, #34C7FE) !important;margin-bottom: 2.03rem;">
|
||||
</div>
|
||||
<div style="width:94%;margin: 0 3%;background:url('/static/theme/index/img/panbg.png') no-repeat center center;background-size: 100% 100%;height: 150px;position:absolute;top: 1.1rem;padding-top: 0.6rem;">
|
||||
<div style="font-size: 16px;color: #fff;margin-left: 0.4rem">账户余额(元)<img class="ybtn cur" src="/static/theme/index/img/yopen.png" style="width: 20px;margin-top:-0.05rem;margin-left: 0.1rem" alt=""></div>
|
||||
<div style="font-size: 28px;color: #fff;margin-left: 0.4rem;margin-top:0.1rem;">
|
||||
{$user.money}</div>
|
||||
<div style="width: 100%;overflow:hidden;position:absolute;bottom: 0.36rem">
|
||||
<a href="/index/user/recharge">
|
||||
<div style="float: left;width: 49.5%;text-align:center;font-size: 14px;color: #fff;border-right: 1px solid #fff">
|
||||
<img style="width: 25px;margin-top:-0.05rem;margin-right:0.1rem" src="/static/theme/index/img/czico.png" alt="">充值</div>
|
||||
</a>
|
||||
<a href="/index/user/cash">
|
||||
<div style="float:right;width: 50%;text-align:center;font-size: 14px;color: #fff">
|
||||
<img style="width: 25px;margin-top:-0.05rem;margin-right:0.1rem" src="/static/theme/index/img/txico.png" alt="">提现</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="contentlist">
|
||||
<li style="margin-right: 1%;">
|
||||
<img src="/static/theme/index/img/listico1.png" alt="">
|
||||
<span class="text1">矿机保证金</span>
|
||||
<span class="text2">{$kjbz}</span>
|
||||
</li>
|
||||
<li style="margin-left: 1%;">
|
||||
<img src="/static/theme/index/img/listico7.png" alt="">
|
||||
<span class="text1">合约保证金</span>
|
||||
<span class="text2">{$hybz}</span>
|
||||
</li>
|
||||
<li style="margin-right: 1%;">
|
||||
<img src="/static/theme/index/img/listico2.png" alt="">
|
||||
<span class="text1">BTC钱包</span>
|
||||
<span class="text2">{$user.btc}</span>
|
||||
</li>
|
||||
<li style="margin-left: 1%;">
|
||||
<img src="/static/theme/index/img/listico4.png" alt="">
|
||||
<span class="text1">BTC累计产量</span>
|
||||
<span class="text2">{$kjcl}</span>
|
||||
</li>
|
||||
<li style="margin-right: 1%;">
|
||||
<img src="/static/theme/index/img/listico3.png" alt="">
|
||||
<span class="text1">矿机收益</span>
|
||||
<span class="text2">{$kjsy}</span>
|
||||
</li>
|
||||
<li style="margin-left: 1%;">
|
||||
<img src="/static/theme/index/img/listico8.png" alt="">
|
||||
<span class="text1">合约收益</span>
|
||||
<span class="text2">{$hysy}</span>
|
||||
</li>
|
||||
<li style="margin-right: 1%;">
|
||||
<img src="/static/theme/index/img/listico5.png" alt="">
|
||||
<span class="text1">推荐奖励</span>
|
||||
<span class="text2">0.00</span>
|
||||
</li>
|
||||
<li>
|
||||
<img src="/static/theme/index/img/listico6.png" alt="">
|
||||
<span class="text1">获得积分</span>
|
||||
<span class="text2">{$user.integral}</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{include file="public/footer" menu='wallet'}
|
||||
</body>
|
||||
</html>
|
||||
244
application/index/view/user/yeb.html
Executable file
244
application/index/view/user/yeb.html
Executable file
@ -0,0 +1,244 @@
|
||||
{include file="public/header" nav="利息宝"}
|
||||
<script src="/static/plugs/layui/layui.all.js"></script>
|
||||
<div id="app">
|
||||
<div class="box">
|
||||
<div class="jun-content" style="height:100%">
|
||||
<div class="f_box_mine slide">
|
||||
<div class="t_header">
|
||||
<span><img src="/static/wap/images/goback.png" alt="" onClick="javascript:history.back()"></span>
|
||||
<span><i>利息宝</i></span>
|
||||
</div>
|
||||
<div style="display:block;position: relative;margin-top: 10px;background:#fff;border-radius:5px;width:96%;left:50%;transform:translate(-50%);">
|
||||
<div style="text-align:center;margin-top:30px;font-size:16px;color:gray;font-weight:700">总金额(元)</div>
|
||||
<div style="text-align:center;margin-top:10px;font-size:40px;font-weight:700">{$yuebaouc.balance}</div>
|
||||
<div style="text-align: center;"><small>可转出余额(元):{$yuebaouc.trans_balance}</small></div>
|
||||
<div style="margin-top:10px">
|
||||
<div style="display:inline-block;width:33%;text-align:center;color:gray">
|
||||
<div>昨天收益(元)</div>
|
||||
<div>{$yuebaouc.preprofit}</div>
|
||||
</div>
|
||||
<div style="display:inline-block;width:33%;text-align:center;color:gray">
|
||||
<div>累计收益(元)</div>
|
||||
<div>{$yuebaouc.totalprofit}</div>
|
||||
</div>
|
||||
<div style="display:inline-block;width:33%;text-align:center;color:gray">
|
||||
<div>昨天余额</div>
|
||||
<div>{$yuebaouc.prebalance}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="margin-top:10px">
|
||||
<div style="height:70px;text-align:center;line-height:70px">
|
||||
<button style="height:40px;width:120px;margin-right:10px;color:#fff;font-size:16px;background:#90ee90" onclick="document.getElementById('trans').style.display='block'">转出</button>
|
||||
<button style="height:40px;width:120px;margin-left:10px;font-size:16px;color:#fff;background:#f08080" onclick="document.getElementById('comformsaving').style.display='block'">转入</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="display:block;position:relative;margin-top:10px;background:#fff;border-radius:5px;width:96%;left:50%;transform:translate(-50%);overflow-y: scroll;padding-bottom: 50px;">
|
||||
<div style="height:35px;line-height:35px;padding:10px;text-align:center">
|
||||
<span style="display:inline-block;width:30%;height:30px;background:gray;line-height:30px;text-align:center;color:#fff;border-radius:5px;margin:0 5px" onclick="change(1)" id="btnlist">方案明细</span>
|
||||
<span style="display:inline-block;width:30%;height:30px;background:green;line-height:30px;text-align:center;color:#fff;border-radius:5px;margin:0 5px" onclick="change(2)" id="btndoing">进行中</span>
|
||||
<span style="display:inline-block;width:30%;height:30px;background:gray;line-height:30px;text-align:center;color:#fff;border-radius:5px;margin:0 5px" onclick="change(3)" id="btnclosed">已结束</span>
|
||||
</div>
|
||||
<div style="padding:10px;text-align:center" id="inprocess" >
|
||||
{foreach $doinglist as $key=>$vo}
|
||||
<div style="border-radius:5px;box-shadow:0 0 2px 1px;margin: 10px 0;">
|
||||
<div style="display:block;height:30px;line-height:30px">
|
||||
<span style="float:left;margin-left:10px">产品名称:{$vo.yebtitle}:{$vo.money}元</span>
|
||||
<span style="float:right;margin-right:10px">当前收益:{$vo.nowprofit}元</span></div>
|
||||
<div style="display:block;height:30px;line-height:30px">
|
||||
<span style="float:left;margin-left:10px">办理时间:{$vo.start_time}</span>
|
||||
<span style="float:right;margin-right:10px">状态:{$vo.status=='1'?'进行中':''}</span>
|
||||
</div>
|
||||
<div style="display:block;height:30px;line-height:30px">
|
||||
<span style="float:left;margin-left:10px">预计收益:{$vo.finishprofit}元</span>
|
||||
<span style="float:right;margin-right:10px"><button onclick="yebstop({$vo.id})">终止</button> / <button onclick="yebkeep({$vo.id})">续期</button></span>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
{empty name='$doinglist'}<span class="notdata">没有记录哦</span>{/empty}
|
||||
</div>
|
||||
<div style="padding:10px;text-align:center;display:none;" id="yeblists">
|
||||
{foreach $yuebao as $key=>$vo}
|
||||
<div style="border-radius:5px;box-shadow:0 0 2px 1px;margin: 10px 0;">
|
||||
<div style="display:block;height:30px;line-height:30px">
|
||||
<span style="float:left;margin-left:10px">产品名称:{$vo.title}</span>
|
||||
<span style="float:right;margin-right:10px">最低存款:{$vo.lowmoney}元</span></div>
|
||||
<div style="display:block;height:30px;line-height:30px">
|
||||
<span style="float:left;margin-left:10px">收益率:{$vo.lily}%</span>
|
||||
<span style="float:right;margin-right:10px">预期收益:{$vo.finishprofit}元</span>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
{empty name='$yuebao'}<span class="notdata">暂无更多</span>{/empty}
|
||||
</div>
|
||||
<div style="padding:10px;text-align:center;display:none;" id="yebclosed">
|
||||
{foreach $closedlist as $key=>$vo}
|
||||
<div style="border-radius:5px;box-shadow:0 0 2px 1px;margin: 10px 0;">
|
||||
<div style="display:block;height:30px;line-height:30px">
|
||||
<span style="float:left;margin-left:10px">产品名称:{$vo.yebtitle}:{$vo.money}元</span>
|
||||
<span style="float:right;margin-right:10px">累计收益:{$vo.nowprofit}元</span></div>
|
||||
<div style="display:block;height:30px;line-height:30px">
|
||||
<span style="float:left;margin-left:10px">办理时间:{$vo.start_time}</span>
|
||||
<span style="float:right;margin-right:10px">状态:已到期结算</span></div>
|
||||
<div style="display:block;height:30px;line-height:30px">
|
||||
<span style="float:left;margin-left:10px">结束时间:{$vo.end_time}</span>
|
||||
<span style="float:right;margin-right:10px"><button>重新购买</button></span></div>
|
||||
</div>
|
||||
{/foreach}
|
||||
{empty name='$closedlist'}<span class="notdata">没有记录哦</span>{/empty}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="display:none;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:300px;height:auto;background:#fff;border-radius:10px;box-shadow:0 0 5px 2px grey" id="trans">
|
||||
<div style="text-align:center;height:50px;line-height:50px;font-size:16px;font-weight:700;color:gray;border-bottom:1px solid #d3d3d3;background: lavender;">
|
||||
利息宝转出</div>
|
||||
<div style="text-align:center;height:50px;line-height:50px;font-size:16px;font-weight:700;color:gray;border-bottom:1px dotted #d3d3d3">
|
||||
<span style="float:left;margin-left:10px">可转出余额:</span><span style="float:right;margin-right:10px"><span id="trans_money">{$yuebaouc.trans_balance}</span> 元</span></div>
|
||||
<div style="text-align:center;height:50px;line-height:50px;font-size:16px;font-weight:700;color:gray;border-bottom:1px dotted #d3d3d3">
|
||||
<span style="float:left;margin-left:10px">转出金额:</span>
|
||||
<span style=""><input style="width:40%" name="trans_money" placeholder="请输入金额"><span onclick="$('input[name=trans_money]').val($('#trans_money').html())">全部转出</span></span></div>
|
||||
<div style="text-align:center;height:50px;line-height:50px;font-size:16px;font-weight:700;color:gray;border-bottom:1px dotted #d3d3d3">
|
||||
<button style="line-height: 30px;width: 60px;margin: 0 5px;background: #e87f7f;color: white;border-radius: 5px;" onclick="document.getElementById('trans').style.display='none'">取消</button>
|
||||
<button onclick="trans()" style="line-height: 30px;width: 60px;margin: 0 5px;background: #2fb52f;border-radius: 5px;color: white;">提交</button>
|
||||
</div>
|
||||
</div>
|
||||
<div style="display:none;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:300px;height:400px;background:#fff;border-radius:10px;box-shadow:0 0 5px 2px grey" id="comformsaving">
|
||||
<div style="text-align:center;height:50px;line-height:50px;font-size:16px;font-weight:700;color:gray;border-bottom:1px solid #d3d3d3;background: lavender;">
|
||||
办理利息宝存入</div>
|
||||
<div style="text-align:center;height:50px;line-height:50px;font-size:16px;font-weight:700;color:gray;border-bottom:1px dotted #d3d3d3">
|
||||
<span style="float:left;margin-left:10px">当前可用余额:</span><span style="float:right;margin-right:10px"><a id="mybalance" >{$userbalance}</a> 元</span></div>
|
||||
<div style="text-align:center;height:50px;line-height:50px;font-size:16px;font-weight:700;color:gray;border-bottom:1px dotted #d3d3d3">
|
||||
<span style="float:left;margin-left:10px">利息宝方案:</span>
|
||||
<span style="float:right;margin-right:10px;display:inline-block;width:150px;text-align:end">
|
||||
<select id="chooseid" style="width:120px;border:none">
|
||||
<option value="">请选择方案</option>
|
||||
{foreach $yuebao as $key=>$vo}
|
||||
<option id="op{$vo.id}" value="{$vo.id}" lily="{$vo.lily}" lowmoney="{$vo.lowmoney}" days="{$vo.days}">{$vo.title}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</span>
|
||||
</div>
|
||||
<div style="text-align:center;height:50px;line-height:50px;font-size:16px;font-weight:700;color:gray;border-bottom:1px dotted #d3d3d3">
|
||||
<span style="float:left;margin-left:10px">收益率:</span>
|
||||
<span id="hilily" style="float:right;margin-right:10px"></span></div>
|
||||
<div style="text-align:center;height:50px;line-height:50px;font-size:16px;font-weight:700;color:gray;border-bottom:1px dotted #d3d3d3">
|
||||
<span style="float:left;margin-left:10px">存入金额:</span>
|
||||
<span style=""><input style="width:40%" name="money" id="money" placeholder="请输入金额"><span onclick="allin()">全部转入</span></span></div>
|
||||
<div style="text-align:center;height:50px;line-height:50px;font-size:16px;font-weight:700;color:gray;border-bottom:1px dotted #d3d3d3"><button style="line-height: 30px;width: 60px;margin: 0 5px;background: #e87f7f;color: white;border-radius: 5px;" onclick="document.getElementById('comformsaving').style.display='none'">取消</button><button onclick="joinnow()" style="line-height: 30px;width: 60px;margin: 0 5px;background: #2fb52f;border-radius: 5px;color: white;">提交</button>
|
||||
</div>
|
||||
</div>
|
||||
{include file="public/footer" menu='yeb'}
|
||||
<!--<script src="http://v.maku.fun/jquery.js"></script>-->
|
||||
<script>
|
||||
function change(id){
|
||||
if(id==1){
|
||||
$('#btnlist').css('background','green');
|
||||
$('#btndoing').css('background','gray');
|
||||
$('#btnclosed').css('background','gray');
|
||||
$('#yeblists').css('display','block');
|
||||
$('#inprocess').css('display','none');
|
||||
$('#yebclosed').css('display','none');
|
||||
}
|
||||
if(id==2){
|
||||
$('#btnlist').css('background','gray');
|
||||
$('#btndoing').css('background','green');
|
||||
$('#btnclosed').css('background','gray');
|
||||
$('#yeblists').css('display','none');
|
||||
$('#inprocess').css('display','block');
|
||||
$('#yebclosed').css('display','none');
|
||||
}
|
||||
if(id==3){
|
||||
$('#btnlist').css('background','gray');
|
||||
$('#btndoing').css('background','gray');
|
||||
$('#btnclosed').css('background','green');
|
||||
$('#yeblists').css('display','none');
|
||||
$('#inprocess').css('display','none');
|
||||
$('#yebclosed').css('display','block');
|
||||
}
|
||||
}
|
||||
function trans() {
|
||||
var money = $('input[name=trans_money]').val();
|
||||
if (money == '') {
|
||||
layer.msg('请填写转出金额!');
|
||||
return;
|
||||
}
|
||||
$.ajax({
|
||||
url: 'yebtrans',
|
||||
type: 'post',
|
||||
data: {money: money},
|
||||
dataType: 'json',
|
||||
success: function (res) {
|
||||
layer.msg(res.msg);
|
||||
if (res.code === 200) {
|
||||
setTimeout('location.reload()', 1000);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
function joinnow(){
|
||||
var yebid=$('#chooseid').val();
|
||||
var money=$('#money').val();
|
||||
if(yebid=="" || money==""){layer.msg("请选择方案和填写金额");return;}
|
||||
$.ajax({
|
||||
type:'post',
|
||||
url:'yebjoinnow',
|
||||
dataType: "json",
|
||||
data: { yebid: yebid, money: money },
|
||||
success: function (res) {
|
||||
console.log(res);
|
||||
layer.msg(res);
|
||||
setTimeout(location.reload(),1000);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
$(document).ready(function(){
|
||||
$("#chooseid").change(function(){
|
||||
var selected=$(this).children('option:selected').val()
|
||||
// alert(selected);
|
||||
var lily=$('#op'+selected).attr('lily');
|
||||
$('#hilily').text(lily+"%");
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
function yebstop(id){
|
||||
$.ajax({
|
||||
type:'post',
|
||||
url:'yebstop',
|
||||
data:{id:id},
|
||||
dataType: "json",
|
||||
success: function (res) {
|
||||
console.log(res);
|
||||
layer.msg(res);
|
||||
setTimeout(location.reload(),1000);
|
||||
}
|
||||
});
|
||||
}
|
||||
function yebkeep(id){
|
||||
$.ajax({
|
||||
type:'post',
|
||||
url:'yebkeep',
|
||||
data:{id:id},
|
||||
dataType: "json",
|
||||
success: function (res) {
|
||||
console.log(res);
|
||||
layer.msg(res);
|
||||
setTimeout(location.reload(),1000);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
function allin(){
|
||||
var mybalance=$('#mybalance').text();
|
||||
$('#money').val(mybalance);
|
||||
}
|
||||
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user