|
@@ -488,15 +488,16 @@
|
|
|
}
|
|
}
|
|
|
.direct-collection .content-box{
|
|
.direct-collection .content-box{
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
- height: 140px;
|
|
|
|
|
|
|
+ height: auto;
|
|
|
background-color: #fffbf6;
|
|
background-color: #fffbf6;
|
|
|
margin:10px 0 0 10px;
|
|
margin:10px 0 0 10px;
|
|
|
|
|
+ display: inline-block;
|
|
|
}
|
|
}
|
|
|
.direct-collection .content-box ul{
|
|
.direct-collection .content-box ul{
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
margin: 0 auto;
|
|
margin: 0 auto;
|
|
|
}
|
|
}
|
|
|
- .direct-collection .content-box ul li{
|
|
|
|
|
|
|
+ .direct-collection .content-box ul li.line{
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
float: left;
|
|
float: left;
|
|
|
height: 26px;
|
|
height: 26px;
|
|
@@ -504,17 +505,20 @@
|
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
|
margin-top: 14px;
|
|
margin-top: 14px;
|
|
|
}
|
|
}
|
|
|
- .direct-collection .content-box ul li span{
|
|
|
|
|
|
|
+ .direct-collection .content-box ul li.line:last-child{
|
|
|
|
|
+ margin-bottom: 10px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .direct-collection .content-box ul li.line span{
|
|
|
float: left;
|
|
float: left;
|
|
|
display: inline-block;
|
|
display: inline-block;
|
|
|
height: 26px;
|
|
height: 26px;
|
|
|
}
|
|
}
|
|
|
- .direct-collection .content-box ul li span.price{
|
|
|
|
|
|
|
+ .direct-collection .content-box ul li.line span.price{
|
|
|
position: relative;
|
|
position: relative;
|
|
|
width: 125px;
|
|
width: 125px;
|
|
|
margin: 0 36px 0 14px;
|
|
margin: 0 36px 0 14px;
|
|
|
}
|
|
}
|
|
|
- .direct-collection .content-box ul li span.price em{
|
|
|
|
|
|
|
+ .direct-collection .content-box ul li.line span.price em{
|
|
|
display: inline-block;
|
|
display: inline-block;
|
|
|
width: 21px;
|
|
width: 21px;
|
|
|
height: 26px;
|
|
height: 26px;
|
|
@@ -525,7 +529,16 @@
|
|
|
color: #fff;
|
|
color: #fff;
|
|
|
text-align: center;
|
|
text-align: center;
|
|
|
}
|
|
}
|
|
|
- .direct-collection .content-box ul li span.price input {
|
|
|
|
|
|
|
+ .direct-collection .content-box ul li.line span.price p{
|
|
|
|
|
+ width: 125px;
|
|
|
|
|
+ border: solid 1px #ffe8d6;
|
|
|
|
|
+ height: 26px;
|
|
|
|
|
+ display: inline-block;
|
|
|
|
|
+ background: #fff;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .direct-collection .content-box ul li.line span.price input {
|
|
|
width: 104px;
|
|
width: 104px;
|
|
|
height: 26px;
|
|
height: 26px;
|
|
|
padding: 0;
|
|
padding: 0;
|
|
@@ -533,55 +546,66 @@
|
|
|
float: right;
|
|
float: right;
|
|
|
border-radius: 0;
|
|
border-radius: 0;
|
|
|
text-align: center;
|
|
text-align: center;
|
|
|
- font-size: 12px;
|
|
|
|
|
|
|
+ font-size: 14px;
|
|
|
}
|
|
}
|
|
|
- .direct-collection .content-box ul li span.time{
|
|
|
|
|
- width: 125px;
|
|
|
|
|
|
|
+ .direct-collection .content-box ul li.line span.time{
|
|
|
|
|
+ width: 140px;
|
|
|
position: relative;
|
|
position: relative;
|
|
|
margin: 0 0 0 14px;
|
|
margin: 0 0 0 14px;
|
|
|
}
|
|
}
|
|
|
- .direct-collection .content-box ul li span:first-child{
|
|
|
|
|
|
|
+ .direct-collection .content-box ul li.line span.time p{
|
|
|
|
|
+ width: 125px;
|
|
|
|
|
+ border: solid 1px #ffe8d6;
|
|
|
|
|
+ height: 26px;
|
|
|
|
|
+ display: inline-block;
|
|
|
|
|
+ background: #fff;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .direct-collection .content-box ul li.line span:first-child{
|
|
|
margin-left: 14px;
|
|
margin-left: 14px;
|
|
|
}
|
|
}
|
|
|
- .direct-collection .content-box ul li span.time input{
|
|
|
|
|
|
|
+ .direct-collection .content-box ul li.line span.time input{
|
|
|
height: 26px;
|
|
height: 26px;
|
|
|
padding: 0;
|
|
padding: 0;
|
|
|
line-height: 26px;
|
|
line-height: 26px;
|
|
|
- text-align: center;
|
|
|
|
|
|
|
+ /*text-align: center;*/
|
|
|
font-size: 12px;
|
|
font-size: 12px;
|
|
|
border-radius: 0;
|
|
border-radius: 0;
|
|
|
|
|
+ padding-left: 5px;
|
|
|
}
|
|
}
|
|
|
- .direct-collection .content-box ul li span.time button.open {
|
|
|
|
|
|
|
+ .direct-collection .content-box ul li.line span.time button.open {
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
right: 4px;
|
|
right: 4px;
|
|
|
top: 1px;
|
|
top: 1px;
|
|
|
- width: 20px;
|
|
|
|
|
|
|
+ width: 18px;
|
|
|
height: 24px;
|
|
height: 24px;
|
|
|
- background: url(static/img/icon/icon-xiala.png) right no-repeat #fff !important;
|
|
|
|
|
|
|
+ background: url(static/img/icon/icon-xiala.png) right no-repeat transparent !important;
|
|
|
background-position-x: 100% !important;
|
|
background-position-x: 100% !important;
|
|
|
border: none;
|
|
border: none;
|
|
|
}
|
|
}
|
|
|
- .direct-collection .content-box ul li span.add-span{
|
|
|
|
|
|
|
+ .direct-collection .content-box ul li.line span.add-span{
|
|
|
margin-left: 10px;
|
|
margin-left: 10px;
|
|
|
}
|
|
}
|
|
|
- .direct-collection .content-box ul li span.add-span button{
|
|
|
|
|
|
|
+ .direct-collection .content-box ul li.line span.add-span button{
|
|
|
border: none;
|
|
border: none;
|
|
|
font-size: 18px;
|
|
font-size: 18px;
|
|
|
background: none;
|
|
background: none;
|
|
|
}
|
|
}
|
|
|
- .direct-collection .content-box ul li span.add-span button.reduce{
|
|
|
|
|
|
|
+ .direct-collection .content-box ul li.line span.add-span button.reduce{
|
|
|
color: #ff8522;
|
|
color: #ff8522;
|
|
|
margin-right: 3px;
|
|
margin-right: 3px;
|
|
|
}
|
|
}
|
|
|
- .direct-collection .content-box ul li span.add-span button.add{
|
|
|
|
|
|
|
+ .direct-collection .content-box ul li.line span.add-span button.add{
|
|
|
color: #32b500;
|
|
color: #32b500;
|
|
|
|
|
+ margin-right: 3px;
|
|
|
}
|
|
}
|
|
|
- .direct-collection .content-box .deal-btn{
|
|
|
|
|
|
|
+ .direct-collection .content-box ul li.line .deal-btn{
|
|
|
width: 140px;
|
|
width: 140px;
|
|
|
float: right;
|
|
float: right;
|
|
|
margin-right: 24px;
|
|
margin-right: 24px;
|
|
|
}
|
|
}
|
|
|
- .direct-collection .content-box .deal-btn a{
|
|
|
|
|
|
|
+ .direct-collection .content-box .deal-btn button{
|
|
|
width: 60px;
|
|
width: 60px;
|
|
|
height: 26px;
|
|
height: 26px;
|
|
|
display: inline-block;
|
|
display: inline-block;
|
|
@@ -589,84 +613,103 @@
|
|
|
line-height: 26px;
|
|
line-height: 26px;
|
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
|
float: left;
|
|
float: left;
|
|
|
|
|
+ border: none;
|
|
|
}
|
|
}
|
|
|
- .direct-collection .content-box .deal-btn a.off{
|
|
|
|
|
|
|
+ .direct-collection .content-box .deal-btn button.off{
|
|
|
background: #cdcccc;
|
|
background: #cdcccc;
|
|
|
- color: #666;
|
|
|
|
|
|
|
+ color: #fff;
|
|
|
margin-right: 20px;
|
|
margin-right: 20px;
|
|
|
}
|
|
}
|
|
|
- .direct-collection .content-box .deal-btn a.ok{
|
|
|
|
|
|
|
+ .direct-collection .content-box .deal-btn button.ok{
|
|
|
background: #5078cb;
|
|
background: #5078cb;
|
|
|
color: #fff;
|
|
color: #fff;
|
|
|
}
|
|
}
|
|
|
- .direct-collection .content-box .deal-btn a:hover{
|
|
|
|
|
|
|
+ .direct-collection .content-box .deal-btn button:hover{
|
|
|
background: #337ab7;
|
|
background: #337ab7;
|
|
|
color: #fff;
|
|
color: #fff;
|
|
|
}
|
|
}
|
|
|
- .direct-collection .content-box ul li em.show-img{
|
|
|
|
|
|
|
+ .direct-collection .content-box ul li.line em.show-img{
|
|
|
margin-left: 6px;
|
|
margin-left: 6px;
|
|
|
}
|
|
}
|
|
|
- .direct-collection .content-box ul li em img{
|
|
|
|
|
|
|
+ .direct-collection .content-box ul li.line em img{
|
|
|
position: relative;
|
|
position: relative;
|
|
|
top: -2px;
|
|
top: -2px;
|
|
|
}
|
|
}
|
|
|
|
|
+ .direct-collection .content-box ul li.line .dropdown-menu{
|
|
|
|
|
+ width: 256px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .direct-collection .content-box ul li.line .dropdown-menu span{
|
|
|
|
|
+ margin: 0;
|
|
|
|
|
+ height: auto;
|
|
|
|
|
+ }
|
|
|
|
|
+ .direct-collection .content-box ul li.line .dropdown-menu button{
|
|
|
|
|
+ border: none;
|
|
|
|
|
+ }
|
|
|
</style>
|
|
</style>
|
|
|
<div class="direct-collection">
|
|
<div class="direct-collection">
|
|
|
<div class="head">开通 <em>【直接收款】</em> 功能,无需等待商城结算
|
|
<div class="head">开通 <em>【直接收款】</em> 功能,无需等待商城结算
|
|
|
- <span ng-click="open = !open"><button ng-class="{'active': !open}"></button></span>
|
|
|
|
|
|
|
+ <span ng-click="switchToggle(isShow)"><button ng-class="{'active': !isShow}"></button></span>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="content-box" ng-if="open">
|
|
|
|
|
|
|
+ <div class="content-box" ng-if="isShow">
|
|
|
<ul>
|
|
<ul>
|
|
|
- <li>
|
|
|
|
|
- <span>第一期</span>
|
|
|
|
|
- <span class="price">
|
|
|
|
|
- <em>$</em>
|
|
|
|
|
- <input type="text" class="form-control" placeholder="请输入金额"/>
|
|
|
|
|
|
|
+ <li ng-repeat="item in purchase.installment.installmentDetails" class="line" ng-if="installmentBox">
|
|
|
|
|
+ <span>第{{$index+1}}期</span>
|
|
|
|
|
+ <span class="price" ng-if="!editBox">
|
|
|
|
|
+ <p ng-bind="item.price | currencySysmbol : purchase.currency"></p>
|
|
|
</span>
|
|
</span>
|
|
|
- <span>要求付款日期</span>
|
|
|
|
|
- <span class="time">
|
|
|
|
|
- <input type="text" class="form-control" placeholder="要求付款日期"/>
|
|
|
|
|
- <button class="open" ng-click=""></button>
|
|
|
|
|
- </span>
|
|
|
|
|
- <!--<span class="add-span">-->
|
|
|
|
|
- <!--<button class="reduce"><i class="fa fa-minus-circle"></i></button>-->
|
|
|
|
|
- <!--</span>-->
|
|
|
|
|
- <em class="show-img"><img src="static/img/icon/pay-ok-icon.png"/></em>
|
|
|
|
|
- </li>
|
|
|
|
|
- <li>
|
|
|
|
|
- <span>第二期</span>
|
|
|
|
|
- <span class="price">
|
|
|
|
|
- <em>$</em>
|
|
|
|
|
- <input type="text" class="form-control" placeholder="请输入金额"/>
|
|
|
|
|
|
|
+ <span class="price" ng-if="editBox">
|
|
|
|
|
+ <em ng-bind="purchase.currency == RMB ? '$' : '¥'"></em>
|
|
|
|
|
+ <input type="text" class="form-control" placeholder="请输入金额" ng-model="item.price" ng-blur="changeInstallmentPrice(item.price)"/>
|
|
|
</span>
|
|
</span>
|
|
|
<span>要求付款日期</span>
|
|
<span>要求付款日期</span>
|
|
|
- <span class="time">
|
|
|
|
|
- <input type="text" class="form-control" placeholder="要求付款日期"/>
|
|
|
|
|
- <button class="open" ng-click=""></button>
|
|
|
|
|
|
|
+ <span class="time" style="width: 125px;" ng-if="!editBox">
|
|
|
|
|
+ <p ng-bind="item.deadline | date : 'yyyy-MM-dd'"></p>
|
|
|
</span>
|
|
</span>
|
|
|
- <span class="add-span">
|
|
|
|
|
- <button class="reduce"><i class="fa fa-minus-circle"></i></button>
|
|
|
|
|
|
|
+ <span class="time" ng-if="editBox">
|
|
|
|
|
+ <input type="text" ng-model="item.deadline"
|
|
|
|
|
+ class="form-control" placeholder="要求付款日期"
|
|
|
|
|
+ datepicker-popup="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
+ is-open="item.deadlineShow"
|
|
|
|
|
+ min-date="startDate" current-text="今天" clear-text="清除" close-text="关闭"
|
|
|
|
|
+ ng-click="openDatePicker($event, item, 'deadlineShow')"
|
|
|
|
|
+ datepicker-options="{formatDayTitle: 'yyyy年M月', formatMonth: 'M月', showWeeks: false}"
|
|
|
|
|
+ ng-change="changeEndDate()" ng-blur="changeBlurDeadline(item, $index+1)"
|
|
|
|
|
+ />
|
|
|
|
|
+ <button class="open" ng-click="openDatePicker($event, item, 'deadlineShow')"></button>
|
|
|
|
|
+ </span>
|
|
|
|
|
+ <em class="show-img" ng-if="item.status == 504 || item.status == 505"><img src="static/img/icon/pay-ok-icon.png"/></em>
|
|
|
|
|
+ <span class="deal-btn" ng-if="purchase.installment.status == 503">
|
|
|
|
|
+ <button ng-click="editInstallment()" ng-if="purchase.installment.installmentDetails.length == $index+1 && !editBox" class="ok" style="float: right;">编辑</button>
|
|
|
|
|
+ <button ng-click="cancelEdit()" class="off" ng-if="purchase.installment.installmentDetails.length == $index+1 && editBox">取消</button>
|
|
|
|
|
+ <button ng-click="updateInstallment(purchase.installment)" class="ok" ng-if="purchase.installment.installmentDetails.length == $index+1 && editBox">保存</button>
|
|
|
</span>
|
|
</span>
|
|
|
</li>
|
|
</li>
|
|
|
- <li>
|
|
|
|
|
- <span>第三期</span>
|
|
|
|
|
|
|
+ <li ng-repeat="item in installmentDetails" class="line" ng-if="!installmentBox">
|
|
|
|
|
+ <span>第{{$index+1}}期</span>
|
|
|
<span class="price">
|
|
<span class="price">
|
|
|
- <em>$</em>
|
|
|
|
|
- <input type="text" class="form-control" placeholder="请输入金额"/>
|
|
|
|
|
|
|
+ <em ng-bind="purchase.currency == RMB ? '$' : '¥'"></em>
|
|
|
|
|
+ <input type="text" class="form-control" placeholder="请输入金额" ng-model="item.price" ng-blur="changeInstallmentPrice(item.price)"/>
|
|
|
</span>
|
|
</span>
|
|
|
<span>要求付款日期</span>
|
|
<span>要求付款日期</span>
|
|
|
<span class="time">
|
|
<span class="time">
|
|
|
- <input type="text" class="form-control" placeholder="要求付款日期"/>
|
|
|
|
|
- <button class="open" ng-click=""></button>
|
|
|
|
|
|
|
+ <input type="text" ng-model="item.deadline"
|
|
|
|
|
+ class="form-control" placeholder="要求付款日期"
|
|
|
|
|
+ datepicker-popup="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
+ is-open="item.deadlineShow"
|
|
|
|
|
+ min-date="startDate" current-text="今天" clear-text="清除" close-text="关闭"
|
|
|
|
|
+ ng-click="openDatePicker($event, item, 'deadlineShow')"
|
|
|
|
|
+ datepicker-options="{formatDayTitle: 'yyyy年M月', formatMonth: 'M月', showWeeks: false}"
|
|
|
|
|
+ ng-change="changeEndDate()" ng-blur="changeBlurDeadline(item, $index+1)"
|
|
|
|
|
+ />
|
|
|
|
|
+ <button class="open" ng-click="openDatePicker($event, item, 'deadlineShow')"></button>
|
|
|
</span>
|
|
</span>
|
|
|
<span class="add-span">
|
|
<span class="add-span">
|
|
|
- <button class="add"><i class="fa fa-plus-circle"></i></button>
|
|
|
|
|
- <button class="reduce"><i class="fa fa-minus-circle"></i></button>
|
|
|
|
|
|
|
+ <button class="add" ng-click="addInstallment()" ng-if="installmentDetails.length-1 ==$index && $index+1 < 5"><i class="fa fa-plus-circle"></i></button>
|
|
|
|
|
+ <button class="reduce" ng-click="deleteInstallment($index)" ng-if="installmentDetails.length-1 !=$index"><i class="fa fa-minus-circle"></i></button>
|
|
|
</span>
|
|
</span>
|
|
|
- <span class="deal-btn">
|
|
|
|
|
- <a ng-click="" class="off">取消</a>
|
|
|
|
|
- <a ng-click="" class="ok">保存</a>
|
|
|
|
|
- <!--<a ng-click="" class="ok">编辑</a>-->
|
|
|
|
|
|
|
+ <span class="deal-btn" ng-if="installmentDetails.length == $index+1">
|
|
|
|
|
+ <button ng-click="cancelSwitch()" class="off">取消</button>
|
|
|
|
|
+ <button ng-click="saveInstallment()" class="ok">保存</button>
|
|
|
</span>
|
|
</span>
|
|
|
</li>
|
|
</li>
|
|
|
</ul>
|
|
</ul>
|
|
@@ -737,3 +780,92 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+<!--同意取消订单-->
|
|
|
|
|
+<div class="com-out-box" style="display: none;">
|
|
|
|
|
+ <div class="title">
|
|
|
|
|
+ <a ng-click="">×</a>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="content">
|
|
|
|
|
+ <p><i class="fa fa-exclamation-circle"></i>您还未设置收款账户,不可<br/>
|
|
|
|
|
+ 开通【直接收款】功能。
|
|
|
|
|
+ </p>
|
|
|
|
|
+ <div class="deal-btn">
|
|
|
|
|
+ <a ng-click="">确定</a>
|
|
|
|
|
+ <a ng-click="">设置收款账户<i class="fa fa-long-arrow-right"></i></a>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+</div>
|
|
|
|
|
+<style>
|
|
|
|
|
+ .com-out-box{
|
|
|
|
|
+ position: fixed;
|
|
|
|
|
+ z-index: 2;
|
|
|
|
|
+ height: 150px;
|
|
|
|
|
+ opacity: 1;
|
|
|
|
|
+ background-color: white;
|
|
|
|
|
+ width: 300px;
|
|
|
|
|
+ -webkit-box-shadow: 0 5px 15px rgba(0,0,0,.5);
|
|
|
|
|
+ box-shadow: 0 5px 15px rgba(0,0,0,.5);
|
|
|
|
|
+ margin: -150px 0 0 -90px;
|
|
|
|
|
+ top: 55%;
|
|
|
|
|
+ left: 50%;
|
|
|
|
|
+ }
|
|
|
|
|
+ .com-out-box .title{
|
|
|
|
|
+ height: 30px;
|
|
|
|
|
+ background-color: #5078cb;
|
|
|
|
|
+ text-align: right;
|
|
|
|
|
+ line-height: 30px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .com-out-box .title a{
|
|
|
|
|
+ color: white;
|
|
|
|
|
+ font-size: 28px;
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ top: -2px;
|
|
|
|
|
+ right: 8px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .com-out-box .content p{
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ line-height:20px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .com-out-box .content p:first-child{
|
|
|
|
|
+ margin-top: 10px;
|
|
|
|
|
+ line-height: 24px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .com-out-box .content p:nth-child(2){
|
|
|
|
|
+ font-size: 12px;
|
|
|
|
|
+ color: #f00;
|
|
|
|
|
+ }
|
|
|
|
|
+ .com-out-box .content p i{
|
|
|
|
|
+ color: #5078cb;
|
|
|
|
|
+ font-size: 18px;
|
|
|
|
|
+ margin-right: 8px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .com-out-box .content div{
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ margin: 0 auto;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ margin-top: 10px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .com-out-box .content div a{
|
|
|
|
|
+ width: 64px;
|
|
|
|
|
+ display: inline-block;
|
|
|
|
|
+ height: 25px;
|
|
|
|
|
+ line-height: 25px;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ background: #5078cb;
|
|
|
|
|
+ }
|
|
|
|
|
+ .com-out-box .content div a:first-child{
|
|
|
|
|
+ margin-right: 5px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .com-out-box .content div a:hover{
|
|
|
|
|
+ background: #337ab7;
|
|
|
|
|
+ }
|
|
|
|
|
+ .com-out-box .content div a:last-child{
|
|
|
|
|
+ background: none;
|
|
|
|
|
+ color: #5078cb;
|
|
|
|
|
+ width: auto;
|
|
|
|
|
+ font-size: 12px;
|
|
|
|
|
+ }
|
|
|
|
|
+</style>
|