init
This commit is contained in:
10
components/ns-goods-promotion/ns-goods-promotion.js
Normal file
10
components/ns-goods-promotion/ns-goods-promotion.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/ns-goods-promotion/ns-goods-promotion"],{"0846":function(t,n,o){},"3aca":function(t,n,o){"use strict";o.r(n);var e=o("564f"),r=o("fb93");for(var i in r)["default"].indexOf(i)<0&&function(t){o.d(n,t,(function(){return r[t]}))}(i);o("3f4cf");var u=o("828b"),f=Object(u["a"])(r["default"],e["b"],e["c"],!1,null,null,null,!1,e["a"],void 0);n["default"]=f.exports},"3f4cf":function(t,n,o){"use strict";var e=o("0846"),r=o.n(e);r.a},"564f":function(t,n,o){"use strict";o.d(n,"b",(function(){return e})),o.d(n,"c",(function(){return r})),o.d(n,"a",(function(){}));var e=function(){var t=this.$createElement,n=(this._self._c,this.goodsPromotion.length);this.$mp.data=Object.assign({},{$root:{g0:n}})},r=[]},b108:function(t,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={name:"ns-goods-promotion",props:{promotion:{type:String,default:""}},data:function(){return{goodsPromotion:{type:Array}}},created:function(){},methods:{refresh:function(t){this.goodsPromotion=t},redirectTo:function(t,n){this.$util.redirectTo(t,n)}}};n.default=e},fb93:function(t,n,o){"use strict";o.r(n);var e=o("b108"),r=o.n(e);for(var i in e)["default"].indexOf(i)<0&&function(t){o.d(n,t,(function(){return e[t]}))}(i);n["default"]=r.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/ns-goods-promotion/ns-goods-promotion-create-component',
|
||||
{
|
||||
'components/ns-goods-promotion/ns-goods-promotion-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("3aca"))
|
||||
})
|
||||
},
|
||||
[['components/ns-goods-promotion/ns-goods-promotion-create-component']]
|
||||
]);
|
||||
4
components/ns-goods-promotion/ns-goods-promotion.json
Normal file
4
components/ns-goods-promotion/ns-goods-promotion.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
components/ns-goods-promotion/ns-goods-promotion.wxml
Normal file
1
components/ns-goods-promotion/ns-goods-promotion.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<block wx:if="{{$root.g0}}"><view class="ns-goods-promotion"><block wx:for="{{goodsPromotion}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block wx:if="{{promotion!=item.promotion_type}}"><view><block wx:if="{{item.promotion_type=='discount'}}"><view data-event-opts="{{[['tap',[['redirectTo',['/pages/goods/detail',['o',['goods_id',item.goods_id]]]]]]]}}" class="item" bindtap="__e"><text class="promotion-mark">限时折扣</text><text class="title">{{"当前商品正在参加"+item.promotion_name}}</text><text class="iconfont icon-right"></text></view></block><block wx:else><block wx:if="{{item.promotion_type=='groupbuy'}}"><view data-event-opts="{{[['tap',[['redirectTo',['/pages_promotion/groupbuy/detail',['o',['groupbuy_id',item.groupbuy_id]]]]]]]}}" class="item" bindtap="__e"><text class="promotion-mark">团购</text><text class="title">{{"当前商品正在参加"+item.promotion_name}}</text><text class="iconfont icon-right"></text></view></block><block wx:else><block wx:if="{{item.promotion_type=='pintuan'}}"><view data-event-opts="{{[['tap',[['redirectTo',['/pages_promotion/pintuan/detail',['o',['pintuan_id',item.pintuan_id]]]]]]]}}" class="item" bindtap="__e"><text class="promotion-mark">拼团</text><text class="title">{{"当前商品正在参加"+item.promotion_name}}</text><text class="iconfont icon-right"></text></view></block><block wx:else><block wx:if="{{item.promotion_type=='seckill'}}"><view data-event-opts="{{[['tap',[['redirectTo',['/pages_promotion/seckill/detail',['o',['seckill_id',item.id]]]]]]]}}" class="item" bindtap="__e"><text class="promotion-mark">秒杀</text><text class="title">{{"当前商品正在参加"+item.promotion_name}}</text><text class="iconfont icon-right"></text></view></block><block wx:else><block wx:if="{{item.promotion_type=='topic'}}"><view data-event-opts="{{[['tap',[['redirectTo',['/pages_promotion/topics/goods_detail',['o',['id',item.id]]]]]]]}}" class="item" bindtap="__e"><text class="promotion-mark">专题活动</text><text class="title">{{"当前商品正在参加"+item.promotion_name}}</text><text class="iconfont icon-right"></text></view></block><block wx:else><block wx:if="{{item.promotion_type=='bargain'}}"><view data-event-opts="{{[['tap',[['redirectTo',['/pages_promotion/bargain/detail',['o',['b_id',item.bargain_id]]]]]]]}}" class="item" bindtap="__e"><text class="promotion-mark">砍价</text><text class="title">{{"当前商品正在参加"+item.promotion_name}}</text><text class="iconfont icon-right"></text></view></block><block wx:else><block wx:if="{{item.promotion_type=='pinfan'}}"><view data-event-opts="{{[['tap',[['redirectTo',['/pages_promotion/pinfan/detail',['o',['pinfan_id',item.pintuan_id]]]]]]]}}" class="item" bindtap="__e"><text class="promotion-mark">拼团返利</text><text class="title">{{"当前商品正在参加"+item.promotion_name}}</text><text class="iconfont icon-right"></text></view></block></block></block></block></block></block></block></view></block></block></view></block>
|
||||
1
components/ns-goods-promotion/ns-goods-promotion.wxss
Normal file
1
components/ns-goods-promotion/ns-goods-promotion.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.ns-goods-promotion{background-color:#fff}.ns-goods-promotion .item{display:flex;font-size:28rpx;align-items:center;padding:20rpx 0;border-bottom:2rpx solid #eee}.ns-goods-promotion .item:last-child{border-bottom:none}.ns-goods-promotion .item .promotion-mark{padding:12rpx 14rpx;margin-right:16rpx;line-height:1;color:var(--main-color);border-radius:6rpx;font-size:24rpx;font-weight:700;background-color:var(--main-color-shallow)}.ns-goods-promotion .item .title{flex:1;line-height:1}.ns-goods-promotion .item .iconfont{color:#909399;font-size:28rpx}.ns-goods-promotion .item .img-wrap{width:38rpx;height:38rpx}.ns-goods-promotion .item .img-wrap image{width:100%;height:100%}
|
||||
Reference in New Issue
Block a user