博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
使用优惠券效果
阅读量:4552 次
发布时间:2019-06-08

本文共 1935 字,大约阅读时间需要 6 分钟。

 

<div class="col-md-12 col-xs-12">

                <style type="text/css">
                   .syhhma{
                      padding-top: 15px;
                      padding-bottom: 20px;
                      padding-left: 3%;
                   }
                   .jmbag {
                        color: #2c73be;
                        text-decoration: none;
                    }
                    .jmbag span {
                        padding: 2px 6px;
                        margin-right: 6px;
                        background: #2c73be;
                        color: #fff;
                    }
                    .btn-default2c73be{
                      background: #2c73be;
                      color: #fff;
                      width: 70px;
                    }
                    .syhhh3{
                      font-size: 14px;
                      color: #666666;
                      font-weight: normal;
                    }
                    .syhhsele{
                      color: #666;
                      font-size: 14px;
                          width: 76% !important;
                    }
                    .syhhh4{
                      color: #2c73be;
                      font-size: 14px;
                      font-weight: normal;
                      margin-bottom: 0;
                      cursor: pointer;
                    }
                    .addhcd{
                      display: none;
                    }
                    .checkout_other .syhhma{
                      display: none;
                    }
                    .checkout_other2 .syhhma{
                      display: block;
                    }
                </style>
                <div class="checkout_other">
                     <a href="javascript:void(0);" class="jmbag" οnclick="showCheckoutOther(this);">
                        <span>+</span>使用优惠券
                     </a>
                     <div class="form-inline syhhma">
                        <div class="form-group" style="width:380px;">
                          <label class="syhhh3">使用优惠券:</label>
                          <select class="form-control syhhsele">
                            <option>请选择</option>
                            <option>请选择1</option>
                          </select>
                        </div>
                        <div class="form-group" style="margin-right:3px;font-size:14px;">或</div>
                        <span class="addhcd">
                          <div class="form-group" style="margin-right:5px;">
                            <input type="text" class="form-control" placeholder="输入优惠券">
                          </div>
                          <button type="submit" class="btn btn-default2c73be">使用</button>
                        </span>
                        <span class="addzjsrd">
                          <div class="form-group" style="margin-right:5px;">
                            <label class="syhhh4">直接输入优惠券号</label>
                          </div>                    
                        </span>                  
                      </div>
                </div>
                
                <script type="text/javascript">                  
 
                      function showCheckoutOther(obj)
                      {
                        var otherParent = obj.parentNode;
                        otherParent.className = (otherParent.className=='checkout_other') ? 'checkout_other2' : 'checkout_other';
                        var spanzi = obj.getElementsByTagName('span')[0];
                        spanzi.innerHTML= spanzi.innerHTML == '+' ? '-' : '+';
                      }
                      $(function(){
                         $(".addzjsrd").click(function(){
                            $(this).hide();
                            $(".addhcd").show();
                         });
                      })  
                </script>
            </div>

 

转载于:https://www.cnblogs.com/sdsd123/p/6897847.html

你可能感兴趣的文章
About Me
查看>>
Android视频处理 --处理视频第一帧缩略图
查看>>
IOS中如何判断APP是否安装后首次运行或升级后首次运行
查看>>
关于反射
查看>>
全面解析构建私有云的两大核心架构组件
查看>>
在phpWeChat中如何定义一个授权登录(获取昵称)的链接
查看>>
python 符合条件跳过下一次循环
查看>>
mysql提示Column count doesn't match value count at row 1错误
查看>>
笑话,难道懂礼貌就必须说谎吗
查看>>
MySQL(二)
查看>>
第四章 –– 多态的概念
查看>>
C#中this的 四种 用法
查看>>
探究Windows RT的系统内存占用
查看>>
查域名对应的ip的命令:Nslookup
查看>>
JS offsetparent 问题
查看>>
ccpc 2016 省赛
查看>>
『Python基础-8』列表
查看>>
2018-11-23-每日总结
查看>>
前端--jstree--异步加载数据
查看>>
CSS定位深入理解 完全掌握CSS定位 相对定位和绝对定位
查看>>