|
|
@@ -255,10 +255,10 @@
|
|
|
<td ng-bind="rule.ruleName">深圳市内满100元包邮,不满1000元邮费20元不满1000元</td>
|
|
|
<td>
|
|
|
<p class="switch">
|
|
|
- <span class="checkbox" ng-click="changeActive(rule, true, true)" ng-if="rule.active == 0">
|
|
|
+ <span class="checkbox" ng-click="changeActive(rule.id, true)" ng-if="rule.active == 0">
|
|
|
<span><em></em></span>
|
|
|
</span>
|
|
|
- <span class="checkbox active" ng-click="changeActive(rule, true, false)" ng-if="rule.active == 1">
|
|
|
+ <span class="checkbox active" ng-click="changeActive(rule.id, false)" ng-if="rule.active == 1">
|
|
|
<span><em></em></span>
|
|
|
</span>
|
|
|
</p>
|
|
|
@@ -298,7 +298,7 @@
|
|
|
<span style="width: 70px;">优先级排序</span>
|
|
|
<input type="text" class="form-control sort" ng-model="modifyRule.num" ng-blur="inputNum(modifyRule)">
|
|
|
<span><strong>*</strong>规则名称</span>
|
|
|
- <input type="text" class="form-control rule" style="text-align: left;" ng-blur="checkRuleName()" ng-model="modifyRule.ruleName" placeholder="会在购物车中显示">
|
|
|
+ <input type="text" class="form-control rule" style="text-align: left;" ng-blur="checkRuleNameSize()" ng-model="modifyRule.ruleName" placeholder="会在购物车中显示">
|
|
|
</div>
|
|
|
<div class="row radio-1">
|
|
|
<span>是否生效</span>
|
|
|
@@ -319,36 +319,36 @@
|
|
|
<div class="rule-content">
|
|
|
<!--暂时注释,在以后的开发中在释放出来-->
|
|
|
<!--<div class="row check-1">-->
|
|
|
- <!--<span><strong>*</strong>适用类型</span>-->
|
|
|
- <!--<label class="check-act">-->
|
|
|
- <!--<input type="checkbox" id="1" ng-model="orderType.normal"/>-->
|
|
|
- <!--<label for="1"></label>-->
|
|
|
- <!--普通订单-->
|
|
|
- <!--</label>-->
|
|
|
- <!--<label class="check-act">-->
|
|
|
- <!--<input type="checkbox" id="2" ng-model="orderType.preSale"/>-->
|
|
|
- <!--<label for="2"></label>-->
|
|
|
- <!--预售订单-->
|
|
|
- <!--</label>-->
|
|
|
- <!--<label class="check-act">-->
|
|
|
- <!--<input type="checkbox" id="3" ng-modle="orderType.bill"/>-->
|
|
|
- <!--<label for="3"></label>-->
|
|
|
- <!--发票-->
|
|
|
- <!--</label>-->
|
|
|
- <!--<span>适用用户</span>-->
|
|
|
- <!--<select class="select-adder form-control for-people" ng-model="modifyRule.userType">-->
|
|
|
- <!--<option value="1301">所有用户</option>-->
|
|
|
- <!--</select>-->
|
|
|
+ <!--<span><strong>*</strong>适用类型</span>-->
|
|
|
+ <!--<label class="check-act">-->
|
|
|
+ <!--<input type="checkbox" id="1" ng-model="orderType.normal"/>-->
|
|
|
+ <!--<label for="1"></label>-->
|
|
|
+ <!--普通订单-->
|
|
|
+ <!--</label>-->
|
|
|
+ <!--<label class="check-act">-->
|
|
|
+ <!--<input type="checkbox" id="2" ng-model="orderType.preSale"/>-->
|
|
|
+ <!--<label for="2"></label>-->
|
|
|
+ <!--预售订单-->
|
|
|
+ <!--</label>-->
|
|
|
+ <!--<label class="check-act">-->
|
|
|
+ <!--<input type="checkbox" id="3" ng-modle="orderType.bill"/>-->
|
|
|
+ <!--<label for="3"></label>-->
|
|
|
+ <!--发票-->
|
|
|
+ <!--</label>-->
|
|
|
+ <!--<span>适用用户</span>-->
|
|
|
+ <!--<select class="select-adder form-control for-people" ng-model="modifyRule.userType">-->
|
|
|
+ <!--<option value="1301">所有用户</option>-->
|
|
|
+ <!--</select>-->
|
|
|
<!--</div>-->
|
|
|
<div class="row" style="position: relative;">
|
|
|
<span><strong>*</strong>适用地区</span>
|
|
|
<div class="area-content" ng-if="mapArray.length >0">
|
|
|
- <span ng-repeat="data in mapArray" ng-click="deleteMapItem($index)">
|
|
|
- <em ng-if="!data.province">{{data.mainland}}</em>
|
|
|
+ <span ng-repeat="data in mapArray">
|
|
|
+ <em ng-if="data.mainland">{{data.mainland}}</em>
|
|
|
<em ng-if="data.province">{{data.province}}</em>
|
|
|
<em ng-if="data.city">/{{data.city}}</em>
|
|
|
<em ng-if="data.area">/{{data.area}}</em>
|
|
|
- <i class="fa fa-minus-circle"></i>
|
|
|
+ <i class="fa fa-minus-circle" ng-click="deleteMapItem($index)"></i>
|
|
|
</span>
|
|
|
</div>
|
|
|
<button ng-click="chooseAddress()">选择地区</button>
|
|
|
@@ -439,11 +439,10 @@
|
|
|
</div>
|
|
|
<!--统一规定运费-->
|
|
|
<div class="style-regulations common-style" ng-if="modifyRule.fareType==1">
|
|
|
- <div class="row dot">
|
|
|
+ <div class="row dot" style="padding-bottom: 10px;">
|
|
|
<span>统一运费</span>
|
|
|
<div class="price-input">
|
|
|
- <i class="currency" ng-if="modifyRule.currencyName=='RMB'">¥</i>
|
|
|
- <i class="currency" ng-if="modifyRule.currencyName=='USD'">$</i>
|
|
|
+ <i class="currency" ng-bind="currencySymbol"></i>
|
|
|
<input type="text" class="form-control" placeholder="请输入运费" ng-blur="inputUniform()" ng-model="modifyRule.uniformPrice" />
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -451,45 +450,63 @@
|
|
|
<span class="f14" style="margin-right: 10px;">计算说明</span>
|
|
|
<!--<!–可编辑–>-->
|
|
|
<!--<div class="edit" style="margin-top: 6px;">-->
|
|
|
- <!--<textarea class="form-control" placeholder="全国统一运费 $20"></textarea>-->
|
|
|
- <!--<div class="prompt"><strong>*</strong>公式说明内容将会在购物车中显示,可自行修改</div>-->
|
|
|
+ <!--<textarea class="form-control" placeholder="全国统一运费 $20"></textarea>-->
|
|
|
+ <!--<div class="prompt"><strong>*</strong>公式说明内容将会在购物车中显示,可自行修改</div>-->
|
|
|
<!--</div>-->
|
|
|
<!--不可以编辑的状态-->
|
|
|
- <div class="no-edit" style="margin-top: 6px;">全国统一运费
|
|
|
- <em ng-if="modifyRule.currencyName=='RMB'">¥</em>
|
|
|
- <em ng-if="modifyRule.currencyName=='USD'">$</em>
|
|
|
- {{modifyRule.uniformPrice}}
|
|
|
+ <div class="no-edit" style="margin-top: 6px; position: relative;">适用范围内统一运费
|
|
|
+ <em ng-bind="currencySymbol"></em>
|
|
|
+ <div ng-bind="modifyRule.uniformPrice" style="width: 80px;overflow: hidden;float: left;
|
|
|
+ position: absolute;top: 0;left: 133px;"></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <style>
|
|
|
+ .rule-main .rule-content .common-style .hr01{
|
|
|
+ float: left;
|
|
|
+ width: 14px;
|
|
|
+ text-align: center;
|
|
|
+ color: #666;
|
|
|
+ }
|
|
|
+ .rule-main .rule-content .common-style .price-input input.none{
|
|
|
+ background: #dad8d8;
|
|
|
+ }
|
|
|
+ .rule-main .rule-content .common-style .price-input input.none:hover{
|
|
|
+ cursor: not-allowed;
|
|
|
+ }
|
|
|
+ .add-box{
|
|
|
+ margin-right: 412px;
|
|
|
+ float: right;
|
|
|
+ }
|
|
|
+ </style>
|
|
|
<!--按总金额计算-->
|
|
|
<div class="style-price common-style" ng-if="modifyRule.fareType==2">
|
|
|
- <div class="row" ng-repeat="data in fareArray" ng-class="{'dot' : $index==0}">
|
|
|
- <span>总金额在</span>
|
|
|
+ <div class="row" ng-repeat="data in fareArray" ng-class="{'dot' : $index==0,'active': $index == fareArray.length - 1}">
|
|
|
+ <span style="margin-right: 7px;">总金额在</span>
|
|
|
<div class="price-input" ng-if="$index == 0">
|
|
|
- <i class="currency" ng-if="modifyRule.currencyName=='RMB'">¥</i>
|
|
|
- <i class="currency" ng-if="modifyRule.currencyName=='USD'">$</i>
|
|
|
- <input type="text" class="form-control" placeholder="请输入金额" ng-blur="inputQtyFare(data, $index)" ng-model="data.end" />
|
|
|
- 以下,
|
|
|
+ <i class="currency" ng-bind="currencySymbol"></i>
|
|
|
+ <span ng-bind="data.start"></span>
|
|
|
+ <!--<input type="text" class="form-control none" ng-model="data.start" disabled/>-->
|
|
|
</div>
|
|
|
<div class="price-input" ng-if="$index != 0 && $index != fareArray.length - 1">
|
|
|
- <em>
|
|
|
- <i ng-bind="modifyRule.currencyName=='RMB' ? '¥' : '$'"></i><i ng-if="fareArray[$index-1].end">{{fareArray[$index-1].end}}</i>以上,
|
|
|
- </em>
|
|
|
- <i class="currency" ng-if="modifyRule.currencyName=='RMB'">¥</i>
|
|
|
- <i class="currency" ng-if="modifyRule.currencyName=='USD'">$</i>
|
|
|
+ <i class="currency" ng-bind="currencySymbol"></i>
|
|
|
+ <span ng-bind="fareArray[$index-1].end"></span>
|
|
|
+ <!--<input type="text" class="form-control none" ng-model="data.start" disabled/>-->
|
|
|
+ </div>
|
|
|
+ <div class="hr01" ng-if="$index != fareArray.length - 1">–</div>
|
|
|
+ <div class="price-input" ng-if="$index != fareArray.length - 1">
|
|
|
+ <i class="currency" ng-bind="currencySymbol"></i>
|
|
|
<input type="text" class="form-control" placeholder="请输入金额" ng-blur="inputQtyFare(data, $index)" ng-model="data.end" />
|
|
|
- <em>以下,</em>
|
|
|
</div>
|
|
|
<div class="price-input" ng-if="$index == fareArray.length - 1">
|
|
|
- <em>
|
|
|
- <i ng-bind="modifyRule.currencyName=='RMB' ? '¥' : '$'"></i><i ng-if="fareArray[$index-1].end">{{fareArray[$index-1].end}}</i>以上,
|
|
|
- </em>
|
|
|
+ <i class="currency" ng-bind="currencySymbol"></i>
|
|
|
+ <span ng-bind="fareArray[$index-1].end"></span>
|
|
|
+ <!--<input type="text" class="form-control none" ng-model="fareArray[$index-1].end" disabled/>-->
|
|
|
+ 以上
|
|
|
</div>
|
|
|
<div class="price-input">
|
|
|
- <em>运费为</em>
|
|
|
- <i class="currency" ng-if="modifyRule.currencyName=='RMB'">¥</i>
|
|
|
- <i class="currency" ng-if="modifyRule.currencyName=='USD'">$</i>
|
|
|
+ <em>,运费为</em>
|
|
|
+ <i class="currency" ng-bind="currencySymbol"></i>
|
|
|
<input type="text" class="form-control" placeholder="请输入运费" ng-blur="inputFare(data)" ng-model="data.fare" />
|
|
|
</div>
|
|
|
<div class="add-box">
|
|
|
@@ -515,35 +532,31 @@
|
|
|
<div class="no-edit" style="margin-top: 6px;">
|
|
|
<div ng-repeat="data in fareArray">
|
|
|
<p ng-if="$index == 0">
|
|
|
- 总价在
|
|
|
- <i class="currency" ng-if="modifyRule.currencyName=='RMB'">¥</i>
|
|
|
- <i class="currency" ng-if="modifyRule.currencyName=='USD'">$</i>{{data.end}}以下,
|
|
|
+ 总金额在
|
|
|
+ <i class="currency" ng-bind="currencySymbol">¥</i><i class="input-text" ng-bind="data.start"></i>
|
|
|
+ - <i class="input-text" ng-bind="data.end"></i> ,
|
|
|
运费为
|
|
|
- <i class="currency" ng-if="modifyRule.currencyName=='RMB'">¥</i>
|
|
|
- <i class="currency" ng-if="modifyRule.currencyName=='USD'">$</i>{{data.fare}}
|
|
|
+ <i class="currency" ng-bind="currencySymbol">¥</i>
|
|
|
+ <i class="input-text" ng-bind="data.fare"></i>
|
|
|
</p>
|
|
|
<p ng-if="$index != 0 && $index != fareArray.length - 1">
|
|
|
- 总价在
|
|
|
- <i class="currency" ng-if="modifyRule.currencyName=='RMB'">¥</i>
|
|
|
- <i class="currency" ng-if="modifyRule.currencyName=='USD'">$</i>{{data.start}}以上(含
|
|
|
- <i class="currency" ng-if="modifyRule.currencyName=='RMB'">¥</i>
|
|
|
- <i class="currency" ng-if="modifyRule.currencyName=='USD'">$</i>{{data.start}}
|
|
|
- ),
|
|
|
- <i class="currency" ng-if="modifyRule.currencyName=='RMB'">¥</i>
|
|
|
- <i class="currency" ng-if="modifyRule.currencyName=='USD'">$</i>{{data.end}}以下,
|
|
|
+ 总金额在
|
|
|
+ <i class="currency" ng-bind="currencySymbol">¥</i>
|
|
|
+ <i class="input-text" ng-bind="data.start"></i>
|
|
|
+ - <i class="input-text" ng-bind="data.end"></i>(含
|
|
|
+ <i class="currency" ng-bind="currencySymbol">¥</i>{{data.start}}),
|
|
|
运费为
|
|
|
- <i class="currency" ng-if="modifyRule.currencyName=='RMB'">¥</i>
|
|
|
- <i class="currency" ng-if="modifyRule.currencyName=='USD'">$</i>{{data.fare}}
|
|
|
+ <i class="currency" ng-bind="currencySymbol">¥</i>
|
|
|
+ <i class="input-text" ng-bind="data.fare"></i>
|
|
|
</p>
|
|
|
<p ng-if="$index == fareArray.length-1">
|
|
|
- 总价在
|
|
|
- <i class="currency" ng-if="modifyRule.currencyName=='RMB'">¥</i>
|
|
|
- <i class="currency" ng-if="modifyRule.currencyName=='USD'">$</i>{{data.start}}以上(含
|
|
|
- <i class="currency" ng-if="modifyRule.currencyName=='RMB'">¥</i>
|
|
|
- <i class="currency" ng-if="modifyRule.currencyName=='USD'">$</i>{{data.start}}
|
|
|
- ),运费为
|
|
|
- <i class="currency" ng-if="modifyRule.currencyName=='RMB'">¥</i>
|
|
|
- <i class="currency" ng-if="modifyRule.currencyName=='USD'">$</i>{{data.fare}}
|
|
|
+ 总金额在
|
|
|
+ <i class="currency" ng-bind="currencySymbol">¥</i>
|
|
|
+ <i class="input-text">{{data.start}}</i>(含
|
|
|
+ <i class="currency" ng-bind="currencySymbol">¥</i>
|
|
|
+ {{data.start}})以上,运费为
|
|
|
+ <i class="currency" ng-bind="currencySymbol">¥</i>
|
|
|
+ <i class="input-text" ng-bind="data.fare"></i>
|
|
|
</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -741,11 +754,15 @@
|
|
|
margin-right: 0 auto;
|
|
|
}
|
|
|
.rule-main .rule-content .common-style .row{
|
|
|
- padding: 8px;
|
|
|
+ padding: 0 8px;
|
|
|
+ padding-top: 10px;
|
|
|
background: #e8e7e7;
|
|
|
- min-height: 40px;
|
|
|
+ /*min-height: 40px;*/
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
+ .rule-main .rule-content .common-style .row.active{
|
|
|
+ padding-bottom: 10px;
|
|
|
+ }
|
|
|
.rule-main .rule-content .common-style .row span{
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
@@ -755,12 +772,37 @@
|
|
|
position: relative;
|
|
|
z-index: 10;
|
|
|
}
|
|
|
+ .rule-main .rule-content .common-style .price-input span{
|
|
|
+ border-radius: 0;
|
|
|
+ height: 26px;
|
|
|
+ line-height: 26px;
|
|
|
+ border: #d4d4d4 1px solid;
|
|
|
+ background: #dad8d8;
|
|
|
+ display: inline-block;
|
|
|
+ width: 80px;
|
|
|
+ text-align: center;
|
|
|
+ overflow: hidden;
|
|
|
+ margin-right: 0;
|
|
|
+ }
|
|
|
.rule-main .rule-content .common-style .price-input em{
|
|
|
float: left;
|
|
|
- margin: 0 5px;
|
|
|
+ margin: 0 7px 0 0;
|
|
|
}
|
|
|
.rule-main .rule-content .common-style .price-input em i{
|
|
|
margin-right: 20px;
|
|
|
+ display: inline-block;
|
|
|
+ max-width: 60px;
|
|
|
+ float: left;
|
|
|
+ overflow: hidden;
|
|
|
+ }
|
|
|
+ .rule-main .rule-content .common-style.style-price .row .no-edit p i.input-text{
|
|
|
+ display: inline-block;
|
|
|
+ max-width: 60px;
|
|
|
+ height: 15px;
|
|
|
+ overflow: hidden;
|
|
|
+ position: relative;
|
|
|
+ top: 1px;
|
|
|
+ margin-right: 5px;
|
|
|
}
|
|
|
.rule-main .rule-content .common-style .price-input i.currency{
|
|
|
width: 20px;
|
|
|
@@ -770,13 +812,14 @@
|
|
|
background: #b0b0b0;
|
|
|
color: #fff;
|
|
|
float: left;
|
|
|
- border-bottom-left-radius: 3px;
|
|
|
- border-top-left-radius: 3px;
|
|
|
+ margin-right: -1px;
|
|
|
+ /*border-bottom-left-radius: 3px;*/
|
|
|
+ /*border-top-left-radius: 3px;*/
|
|
|
}
|
|
|
.rule-main .rule-content .common-style .price-input input{
|
|
|
max-width: 80px;
|
|
|
padding: 0;
|
|
|
- margin-right: 3px !important;
|
|
|
+ margin-right: 0 !important;
|
|
|
position: relative;
|
|
|
/*left: -1px;*/
|
|
|
font-size: 12px;
|
|
|
@@ -904,7 +947,8 @@
|
|
|
padding: 8px 10px;
|
|
|
}
|
|
|
.rule-main .rule-content .common-style.style-price .row .no-edit p{
|
|
|
- line-height: 25px;
|
|
|
+ line-height: 20px;
|
|
|
+ height: 20px;
|
|
|
}
|
|
|
.rule-main .rule-content .common-style .row{
|
|
|
position: relative;
|