123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- <cm-construct v-bind:data="data[index]" class="coupon-wrap">
- <!-- 预览 -->
- <template slot="preview">
- <div class="preview-box" v-bind:style="{ backgroundColor : nc.backgroundColor, margin: nc.marginTop + 'px 15px 0' }">
- <div class="coupon-preview">
- <div class="coupon-box coupon-box-1" v-if="nc.style == 1">
- <div class="coupon-box-list">
- <div class="coupon">
- <img src="{$resourceurl}/coupon/img/style1-bg.png">
- <div class="coupon-intro">
- <p class="coupon-price">¥<span>500</span></p>
- <p class="coupon-desc">满3000可用</p>
- </div>
- </div>
-
- <div class="coupon" v-if="nc.couponCount>1">
- <img src="{$resourceurl}/coupon/img/style1-bg.png">
- <div class="coupon-intro">
- <p class="coupon-price">¥<span>500</span></p>
- <p class="coupon-desc">满3000可用</p>
- </div>
- </div>
-
- <div class="coupon" v-if="nc.couponCount>2">
- <img src="{$resourceurl}/coupon/img/style1-bg.png">
- <div class="coupon-intro">
- <p class="coupon-price">¥<span>500</span></p>
- <p class="coupon-desc">满3000可用</p>
- </div>
- </div>
- <div class="coupon" v-if="nc.couponCount>3">
- <img src="{$resourceurl}/coupon/img/style1-bg.png">
- <div class="coupon-intro">
- <p class="coupon-price">¥<span>500</span></p>
- <p class="coupon-desc">满3000可用</p>
- </div>
- </div>
- </div>
- </div>
-
- <div class="coupon-box coupon-box-2" v-else-if="nc.style == 2">
- <div class="coupon-box-list">
- <div class="coupon">
- <img src="{$resourceurl}/coupon/img/coupon_bg.png">
- <div class="coupon-intro">
- <p class="coupon-price ns-red-color">¥<span>500.00</span></p>
- <p class="coupon-desc ns-red-color">满3000元可用</p>
- </div>
- <div class="coupon-btn ns-red-color">领取</div>
- </div>
-
- <div class="coupon" v-if="nc.couponCount>1">
- <img src="{$resourceurl}/coupon/img/coupon_bg.png">
- <div class="coupon-intro">
- <p class="coupon-price ns-red-color">¥<span>500.00</span></p>
- <p class="coupon-desc ns-red-color">满3000元可用</p>
- </div>
- <div class="coupon-btn ns-red-color">领取</div>
- </div>
-
- <div class="coupon" v-if="nc.couponCount>2">
- <img src="{$resourceurl}/coupon/img/coupon_bg.png">
- <div class="coupon-intro">
- <p class="coupon-price ns-red-color">¥<span>500.00</span></p>
- <p class="coupon-desc ns-red-color">满3000元可用</p>
- </div>
- <div class="coupon-btn ns-red-color">领取</div>
- </div>
- </div>
- </div>
-
- <div class="coupon-box" v-bind:class="'coupon-box-'+ nc.style" v-if="nc.style == 3">
- <div class="coupon-block">
- <div class="coupon">
- <img src="{$resourceurl}/coupon/img/style3-bg-2.png">
- <div class="coupon-intro">
- <p class="coupon-price ns-red-color">¥<span>500.00</span></p>
- <p class="coupon-desc ns-red-color">满3000元可用</p>
- <p class="coupon-info">指定商品可用</p>
- </div>
- <div class="coupon-btn">立即抢</div>
- </div>
-
- <div class="coupon" v-if="nc.couponCount>1">
- <img src="{$resourceurl}/coupon/img/style3-bg-2.png">
- <div class="coupon-intro">
- <p class="coupon-price ns-red-color">¥<span>500.00</span></p>
- <p class="coupon-desc ns-red-color">满3000元可用</p>
- <p class="coupon-info">指定商品可用</p>
- </div>
- <div class="coupon-btn">立即抢</div>
- </div>
-
- <div class="coupon" v-if="nc.couponCount>2">
- <img src="{$resourceurl}/coupon/img/style3-bg-2.png">
- <div class="coupon-intro">
- <p class="coupon-price ns-red-color">¥<span>500.00</span></p>
- <p class="coupon-desc ns-red-color">满3000元可用</p>
- <p class="coupon-info">指定商品可用</p>
- </div>
- <div class="coupon-btn">立即抢</div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </template>
- <!-- 编辑 -->
- <template slot="edit">
-
- <template v-if="nc.lazyLoad">
- <coupon-style></coupon-style>
- <coupon-list></coupon-list>
- </template>
-
- <slide v-bind:data="{ field : 'marginTop', label : '页面间距' }"></slide>
-
- <!-- 弹框 -->
- <div class="coupon-list-style">
- <div class="style-list-coupon layui-form">
- <div class="style-list-con-coupon">
- <div class="style-li-coupon" v-bind:class="{'selected ns-border-color': nc.style == 1}">
- <img src="{$resourceurl}/coupon/img/style1.png" />
- <span class="layui-hide">风格一</span>
- </div>
-
- <div class="style-li-coupon" v-bind:class="{'selected ns-border-color': nc.style == 2}">
- <img src="{$resourceurl}/coupon/img/style2.png" />
- <span class="layui-hide">风格二</span>
- </div>
-
- <div class="style-li-coupon" v-bind:class="{'selected ns-border-color': nc.style == 3}">
- <img src="{$resourceurl}/coupon/img/style3.png" />
- <span class="layui-hide">风格三</span>
- </div>
- </div>
- <input type="hidden" name="style">
- <input type="hidden" name="style_name">
- </div>
- </div>
-
- </template>
-
- <!-- 资源 -->
- <template slot="resource">
- <js>
- var couponResourcePath = "{$resourceurl}";
- </js>
- <css src="{$resourceurl}/coupon/css/style.css"></css>
- <js src="{$resourceurl}/coupon/js/style.js"></js>
-
- </template>
- </cm-construct>
|