第一次提交
This commit is contained in:
10
unpackage/dist/build/mp-weixin/components/diy/coupon/coupon.js
vendored
Normal file
10
unpackage/dist/build/mp-weixin/components/diy/coupon/coupon.js
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy/coupon/coupon"],{"4ec7":function(t,n,e){"use strict";var a=e("bb12"),u=e.n(a);u.a},5903:function(t,n,e){"use strict";e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return u})),e.d(n,"a",(function(){}));var a=function(){var t=this.$createElement;this._self._c},u=[]},"8a31":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={data:function(){return{indicatorDots:!1,autoplay:!0,interval:5e3,duration:1e3,listData:[]}},props:["itemData"],created:function(){this.listData=this.itemData.data},methods:{scroll:function(t){},receiveCoupon:function(n){var e=this.listData[n];if(0==e.state.value)return!1;this._post("user.coupon/receive",{coupon_id:e.coupon_id},(function(n){t.showToast({title:"领取成功",icon:"success",mask:!0,duration:2e3}),e.state.value=0,e.state.text="已领取"}))}}};n.default=e}).call(this,e("df3c")["default"])},a39f:function(t,n,e){"use strict";e.r(n);var a=e("5903"),u=e("d857");for(var i in u)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return u[t]}))}(i);e("4ec7");var o=e("828b"),c=Object(o["a"])(u["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);n["default"]=c.exports},bb12:function(t,n,e){},d857:function(t,n,e){"use strict";e.r(n);var a=e("8a31"),u=e.n(a);for(var i in a)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(i);n["default"]=u.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/diy/coupon/coupon-create-component',
|
||||
{
|
||||
'components/diy/coupon/coupon-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("a39f"))
|
||||
})
|
||||
},
|
||||
[['components/diy/coupon/coupon-create-component']]
|
||||
]);
|
||||
4
unpackage/dist/build/mp-weixin/components/diy/coupon/coupon.json
vendored
Normal file
4
unpackage/dist/build/mp-weixin/components/diy/coupon/coupon.json
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/components/diy/coupon/coupon.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/components/diy/coupon/coupon.wxml
vendored
Normal file
@ -0,0 +1 @@
|
||||
<view class="diy-coupon" style="{{'background:'+(itemData.style.background)+';'+('padding:'+(itemData.style.paddingTop+'px 20rpx')+';')}}"><scroll-view scroll-x="true"><view class="swiper swiper-list"><block wx:for="{{listData}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="{{['coupon-item','d-b-c','bg-'+item.color.text]}}"><view class="side-line left-side-line"><text class="round" style="{{'background:'+(itemData.style.background)+';'}}"></text></view><view class="side-line right-side-line"><text class="round" style="{{'background:'+(itemData.style.background)+';'}}"></text></view><view class="center-content pr"><view class="content-top"><block wx:if="{{item.coupon_type.value==10}}"><text class="f40">{{item.reduce_price*1}}</text></block><block wx:if="{{item.coupon_type.value==20}}"><text class="f40">{{item.discount*1}}</text><text class="f24">折</text></block></view><view class="content-bottom tc"><text class="f20">{{item.min_price>0?'满'+item.min_price*1+'元可用':'无门槛'}}</text></view><view class="op8 f20 tc text-ellipsis"><block wx:if="{{item.apply_range==10}}"><text>全品类券</text></block><block wx:if="{{item.apply_range==20}}"><text>指定商品可用</text></block><block wx:if="{{item.apply_range==30}}"><text>指定品类可用</text></block></view></view><block wx:if="{{item.state.value==1}}"><view data-event-opts="{{[['tap',[['receiveCoupon',[index]]]]]}}" class="right-receive" bindtap="__e"><view class="lr-tb">立即领取</view></view></block><block wx:else><view class="right-receive"><view class="lr-tb">{{item.state.text}}</view></view></block></view></block></view></scroll-view></view>
|
||||
1
unpackage/dist/build/mp-weixin/components/diy/coupon/coupon.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/components/diy/coupon/coupon.wxss
vendored
Normal file
@ -0,0 +1 @@
|
||||
.diy-coupon{margin:0 20rpx;border-radius:6rpx}.f-s-0{flex-shrink:0}.diy-coupon .swiper{display:flex;justify-content:flex-start;align-items:center;overflow-x:auto}.diy-coupon .coupon-item{width:254rpx;height:154rpx;color:#fff;flex-shrink:0;margin:8rpx;position:relative;border-radius:8rpx;overflow:hidden;color:#fff}[data-theme="theme0"] .diy-coupon .coupon-item{background-color:#ff4c01!important}[data-theme="theme1"] .diy-coupon .coupon-item{background-color:rgba(219,248,231,.6)!important}[data-theme="theme2"] .diy-coupon .coupon-item{background-color:#fff3e5!important}[data-theme="theme3"] .diy-coupon .coupon-item{background-color:#fce1aa!important}[data-theme="theme4"] .diy-coupon .coupon-item{background-color:rgba(129,134,65,.1)!important}[data-theme="theme5"] .diy-coupon .coupon-item{background-color:rgba(228,222,208,.6)!important}[data-theme="theme6"] .diy-coupon .coupon-item{background-color:#d5eafb!important}.diy-coupon .coupon-item .left-type{padding:4rpx 8rpx;font-size:18rpx;line-height:18rpx;text-align:center;position:absolute;right:0;top:0;color:#fff;background:linear-gradient(90deg,#ff5b00,#fe8802);border-bottom-left-radius:8rpx}.diy-coupon .left-side-line{position:absolute;width:24rpx;top:-14rpx;right:42rpx;overflow:hidden}.diy-coupon .right-side-line{position:absolute;width:24rpx;bottom:-14rpx;right:42rpx;overflow:hidden}.diy-coupon .side-line .round{display:block;width:24rpx;height:24rpx;border-radius:50%}.diy-coupon .center-content::before{top:0;right:-16rpx;border-radius:0 0 15rpx 15rpx}.diy-coupon .coupon-item .center-content{padding:26rpx 23rpx;display:flex;justify-content:center;flex-direction:column;align-items:center;flex:1;width:200rpx;height:154rpx;box-sizing:border-box}[data-theme="theme0"] .diy-coupon .coupon-item .center-content{color:#fff!important}[data-theme="theme1"] .diy-coupon .coupon-item .center-content{color:#19ad57!important}[data-theme="theme2"] .diy-coupon .coupon-item .center-content{color:#f55234!important}[data-theme="theme3"] .diy-coupon .coupon-item .center-content{color:#8d5b22!important}[data-theme="theme4"] .diy-coupon .coupon-item .center-content{color:#818641!important}[data-theme="theme5"] .diy-coupon .coupon-item .center-content{color:#8f7e6a!important}[data-theme="theme6"] .diy-coupon .coupon-item .center-content{color:#1a8af8!important}.diy-coupon .coupon-item .center-content .content-top{height:28rpx;line-height:28rpx;text-align:center;margin-bottom:8rpx;justify-content:center;align-items:center}.diy-coupon .coupon-item .center-content .content-datatime{padding:4rpx 10rpx;border-radius:30rpx;font-size:20rpx;background:rgba(0,0,0,.2)}.diy-coupon .coupon-item .right-receive{height:112rpx;width:52rpx;text-align:center;font-size:18rpx;line-height:20rpx;text-align:center;flex-shrink:0;display:flex;justify-content:center;align-items:center;border-left:1rpx dashed #fff}[data-theme="theme0"] .diy-coupon .coupon-item .right-receive{color:#fff!important}[data-theme="theme1"] .diy-coupon .coupon-item .right-receive{color:#19ad57!important}[data-theme="theme2"] .diy-coupon .coupon-item .right-receive{color:#f55234!important}[data-theme="theme3"] .diy-coupon .coupon-item .right-receive{color:#8d5b22!important}[data-theme="theme4"] .diy-coupon .coupon-item .right-receive{color:#818641!important}[data-theme="theme5"] .diy-coupon .coupon-item .right-receive{color:#8f7e6a!important}[data-theme="theme6"] .diy-coupon .coupon-item .right-receive{color:#1a8af8!important}.diy-coupon .coupon-item .right-receive .lr-tb{width:26rpx}.diy-coupon .coupon-item .no-receive{background:#acacac!important;color:#fff}.op8{opacity:.8}
|
||||
Reference in New Issue
Block a user