public
This commit is contained in:
10
public/mp-weixin/components/get-coupon/get-coupon.js
Normal file
10
public/mp-weixin/components/get-coupon/get-coupon.js
Normal file
@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/get-coupon/get-coupon"],{2537:function(n,t,o){"use strict";var e=o("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=e(o("7eb4")),c=e(o("ee10")),i=o("0956"),s={name:"get-coupon",props:{goodsId:{type:[Number,String]},shopId:{type:[Number,String]},type:{type:String},wrapStyle:Object},data:function(){return{showCoupon:!1,list:[]}},watch:{goodsId:function(n){this.getGoodsCouponFun()},shopId:function(){this.getGoodsCouponFun()}},methods:{getGoodsCouponFun:function(){var n=this;return(0,c.default)(u.default.mark((function t(){var o,e,c;return u.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return console.log(n.goodsId),t.next=3,(0,i.getCouponList)({goods_id:n.goodsId,shop_id:n.shopId});case 3:o=t.sent,e=o.data,c=o.code,console.log(e),1==c&&(n.list=e.lists);case 8:case"end":return t.stop()}}),t)})))()}}};t.default=s},"7d0c":function(n,t,o){"use strict";o.r(t);var e=o("dc35"),u=o("a53e");for(var c in u)["default"].indexOf(c)<0&&function(n){o.d(t,n,(function(){return u[n]}))}(c);o("e019");var i=o("828b"),s=Object(i["a"])(u["default"],e["b"],e["c"],!1,null,"3167ea9f",null,!1,e["a"],void 0);t["default"]=s.exports},a53e:function(n,t,o){"use strict";o.r(t);var e=o("2537"),u=o.n(e);for(var c in e)["default"].indexOf(c)<0&&function(n){o.d(t,n,(function(){return e[n]}))}(c);t["default"]=u.a},cd17:function(n,t,o){},dc35:function(n,t,o){"use strict";o.d(t,"b",(function(){return u})),o.d(t,"c",(function(){return c})),o.d(t,"a",(function(){return e}));var e={uIcon:function(){return o.e("components/uview-ui/components/u-icon/u-icon").then(o.bind(null,"8f08"))},uPopup:function(){return o.e("components/uview-ui/components/u-popup/u-popup").then(o.bind(null,"b12c"))},couponList:function(){return Promise.all([o.e("common/vendor"),o.e("components/coupon-list/coupon-list")]).then(o.bind(null,"ca64"))}},u=function(){var n=this,t=n.$createElement,o=(n._self._c,n.__get_style([n.wrapStyle])),e=n.list.length;n._isMounted||(n.e0=function(t){n.showCoupon=!0}),n.$mp.data=Object.assign({},{$root:{s0:o,g0:e}})},c=[]},e019:function(n,t,o){"use strict";var e=o("cd17"),u=o.n(e);u.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/get-coupon/get-coupon-create-component',
|
||||
{
|
||||
'components/get-coupon/get-coupon-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("7d0c"))
|
||||
})
|
||||
},
|
||||
[['components/get-coupon/get-coupon-create-component']]
|
||||
]);
|
||||
8
public/mp-weixin/components/get-coupon/get-coupon.json
Normal file
8
public/mp-weixin/components/get-coupon/get-coupon.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"u-icon": "/components/uview-ui/components/u-icon/u-icon",
|
||||
"u-popup": "/components/uview-ui/components/u-popup/u-popup",
|
||||
"coupon-list": "/components/coupon-list/coupon-list"
|
||||
},
|
||||
"component": true
|
||||
}
|
||||
1
public/mp-weixin/components/get-coupon/get-coupon.wxml
Normal file
1
public/mp-weixin/components/get-coupon/get-coupon.wxml
Normal file
@ -0,0 +1 @@
|
||||
<view class="get-coupon data-v-3167ea9f" style="{{$root.s0}}"><block wx:if="{{$root.g0}}"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="coupons flex bg-white data-v-3167ea9f" bindtap="__e"><view class="flex-1 flex data-v-3167ea9f"><view class="con flex flex-1 data-v-3167ea9f"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="coupons-item m-r-20 data-v-3167ea9f"><block wx:if="{{index<2}}"><view class="flex xs data-v-3167ea9f"><view class="line-1 data-v-3167ea9f">{{''+item.condition_type_desc+''}}</view></view></block></view></block></view><text style="color:red;" class="data-v-3167ea9f">领券</text><u-icon style="color:red;" vue-id="fce81c3c-1" name="arrow-right" class="data-v-3167ea9f" bind:__l="__l"></u-icon></view></view></block><u-popup bind:input="__e" vue-id="fce81c3c-2" closeable="{{true}}" mode="bottom" border-radius="14" value="{{showCoupon}}" data-event-opts="{{[['^input',[['__set_model',['','showCoupon','$event',[]]]]]]}}" class="data-v-3167ea9f" bind:__l="__l" vue-slots="{{['default']}}"><view class="data-v-3167ea9f"><view class="p-30 data-v-3167ea9f"><view class="title md bold data-v-3167ea9f">领券</view></view><view class="content bg-body data-v-3167ea9f"><scroll-view style="height:700rpx;" scroll-y="true" class="data-v-3167ea9f"><coupon-list vue-id="{{('fce81c3c-3')+','+('fce81c3c-2')}}" list="{{list}}" btn-type="{{3}}" data-event-opts="{{[['^refresh',[['getGoodsCouponFun']]]]}}" bind:refresh="__e" class="data-v-3167ea9f" bind:__l="__l"></coupon-list></scroll-view></view></view></u-popup></view>
|
||||
1
public/mp-weixin/components/get-coupon/get-coupon.wxss
Normal file
1
public/mp-weixin/components/get-coupon/get-coupon.wxss
Normal file
@ -0,0 +1 @@
|
||||
.get-coupon .coupons .text.data-v-3167ea9f{width:100rpx;flex:none}.get-coupon .coupons .con.data-v-3167ea9f{width:400rpx}.get-coupon .coupons .coupons-item.data-v-3167ea9f{overflow:hidden}.get-coupon .coupons .coupons-item > view.data-v-3167ea9f{position:relative;height:40rpx;line-height:40rpx;padding:0 18rpx;border-radius:6rpx;box-sizing:border-box;background-color:#ff2c3c;color:#fff;white-space:nowrap;overflow:hidden}.get-coupon .coupons .coupons-item > view.data-v-3167ea9f::after, .get-coupon .coupons .coupons-item > view.data-v-3167ea9f::before{content:"";display:block;width:20rpx;height:20rpx;position:absolute;left:-14rpx;background-color:#fff;border-radius:50%;border:1px solid currentColor;box-sizing:border-box}.get-coupon .coupons .coupons-item > view.data-v-3167ea9f::after{right:-14rpx;left:auto}
|
||||
Reference in New Issue
Block a user