sMSRecharge.html 4.71 KB
<!--  第二部分:列表部分 start -->
<div class="inmodal">
  <div class="modal-body" style="height: 800px;">
    <form class="form-inline col-lg-12 clearfix" role="form" ng-submit="alarmListForm();">
      <p style="font-size: 24px;">当前剩余短信数:{{smsNum}}条</p>
      <div class="ibox-title" style="background-color:#00a744;height: 55px;">
        <span style="font-size: 18px;color: white">营销短信专属套餐</span>
      </div>
      <div class="clearfix" style="margin-bottom: 50px;">
        <div class="pull-left unSelectable" style="width: 220px;height: 160px;margin-top: 20px;margin-right: 30px;" ng-repeat="item in smsConfigInfoList" ng-model="smsConfig" ng-click="getSmsConfig(item, $index)" ng-class="item.active ? 'sms-active': ''">
          <div style="width: 220px;height: 40px;background-color: #00a744;">
            <span style="color: white;font-size: 18px;line-height: 40px;text-align: center;display: block">{{item.packageName}}</span>
          </div>
          <div style="width: 220px;height: 120px;background-color: #ffffff;border:1px solid #aaa9a8">
            <span style="font-size: 22px;line-height: 40px;margin-left: 48px;position: relative;top: 18px;">{{item.smsSum}}条短信</span>
            <br>
            <span style="font-size: 18px;line-height: 40px;margin-left: 42px;position: relative;top: 24px;">¥{{item.singleSellPrice * item.smsSum}}</span>
            <span style="font-size: 14px;line-height: 40px;margin-left: 42px;position: relative;top: 24px;">¥{{item.singleSellPrice}}/条</span>
          </div>
        </div>
      </div>
      <div class="form-group">
        <div class='num clearfix' style="margin-bottom: 50px">
          <label>购买数量</label>
          <div class="unSelectable" style="margin-left: 20px;display: inline-block;">
            <span ng-click='sub()' class='{{inputValue<0? "err": ""}}'>-</span>
            <input type='number' ng-model="inputValue" ng-blur='blurInput()'>
            <span ng-click='add()'>+</span>
          </div>
        </div>

        <div style="margin-bottom: 50px">
          <label>支付金额</label>
          <span style="margin-left: 20px;">¥{{(selectConfig.smsSum*inputValue*(selectConfig.singleSellPrice.toFixed(2))).toFixed(2)}}</span>
        </div>
        <!--<div class="clearfix" style="margin-bottom: 50px">-->
        <!--<label>支付方式</label>-->
        <!--<div class="pull-right payBox" ng-class="i.active ? 'payBox-active': ''" ng-repeat=" i in payType" ng-click="choosePayType($index)">-->
        <!--<img ng-src="{{i.src}}" alt="">{{i.text}}-->
        <!--</div>-->
        <!--</div>-->
      </div>

      <div class="form-group" style="margin-left: 80px;display: block;">
        <button class="btn" ng-click="payRightNow()" style="background-color:#00a744;color: white;">立即支付</button>
      </div>
    </form>
  </div>

</div>

<script type="text/ng-template" id="showPayModal">

  <div class="modal-body" style="text-align: center">
    <span style="font-size: 25px;font-weight: bold;">请使用微信或支付宝扫码</span>
    <div class="row">
      <img ng-src="{{imgURL}}">
    </div>
    <span style="font-size: 14px;font-weight: bold;">二维码有效时长为5分钟,请尽快支付</span>
  </div>
  <div class="modal-footer" style="text-align: center;">
    <button class="btn btn-primary" type="button" ng-click="confirm()">确认已支付<i class="fa fa-spinner fa-spin" ng-show="isWorking"></i></button>
    <button class="btn" type="button" ng-click="cancel()" style="margin-left: 56px;">取消</button>
  </div>
</script>

<!--  第二部分:列表部分 end -->
<style>
  .row {
    text-align: center;
  }
  
  .row img {
    display: block;
    margin: 0 auto
  }
  
  .modal-content {
    width: 400px;
    height: 440px;
    border-radius: 8px;
  }
  
  .num {
    font-size: 14px;
    color: #666666;
    height: 30px;
    line-height: 30px
  }
  
  .num input,
  .num span {
    display: inline-block;
    width: 40px;
    height: 30px;
    vertical-align: top;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
  }
  
  .num span {
    color: #999999;
    background: #ECECEC;
    width: 30px;
    font-weight: bold;
    box-sizing: border-box;
  }
  
  .num .err {
    background: #F6F6F6;
  }
  /*.payBox{*/
  /*border:2px solid #D9D9D9;*/
  /*padding: 4px 12px;*/
  /*cursor: pointer;*/
  /*margin-left: 20px;*/
  /*}*/
  /*.payBox-active{*/
  /*border-color: #00a744;*/
  /*}*/
  /*.payBox img{*/
  /*vertical-align: middle;*/
  /*}*/
  
  .unSelectable {
    -moz-user-select: -moz-none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
  .sms-active {
    box-shadow: 1px 2px 10px rgba(0, 139, 60, 1);
  }
</style>