徐总多门店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

10 lines
8.2 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/components/newVip"],{"1e3c":function(t,o,n){"use strict";(function(t){var a=n("47a9");Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var i,e=a(n("7ca3")),l=n("a230"),r=n("8f59"),c=n("bad7"),g=(i={computed:(0,r.mapGetters)(["isLogin"]),props:{dataConfig:{type:Object,default:function(){}},isSortType:{type:String|Number,default:0}},data:function(){return{imgHost:c.HTTP_REQUEST_URL,couponList:[],productList:[],newcomer_integral:""}},created:function(){this.getList()}},(0,e.default)(i,"computed",{totalPrice:function(){var t=this;return this.couponList.reduce((function(o,n){return t.$util.$h.Add(o,n.coupon_price)}),0)},bonusStyle:function(){var t={};return this.dataConfig.toneConfig.tabVal&&(t["border-color"]=this.dataConfig.integralBgColor.color[0].item,t["background"]=this.dataConfig.integralBgColor.color[0].item),t},bonusRedStyle:function(){var t={};return this.dataConfig.toneConfig.tabVal&&(this.dataConfig.styleConfig.tabVal?(t["background"]=this.dataConfig.integralTxtColor.color[0].item,t["color"]=this.dataConfig.integralTxtColor.color[0].item):t["color"]=this.dataConfig.tipsColor.color[0].item),t},moneyStyle:function(){var t={};return this.dataConfig.toneCouponConfig.tabVal&&(t["color"]=this.dataConfig.couponMoneyColor.color[0].item),t},buttonStyle:function(){var t={};return this.dataConfig.toneConfig.tabVal&&this.dataConfig.styleConfig.tabVal&&(t["background"]="linear-gradient(90deg, ".concat(this.dataConfig.bntColor.color[0].item," 0%, ").concat(this.dataConfig.bntColor.color[1].item," 100%)")),this.dataConfig.toneCouponConfig.tabVal&&(this.dataConfig.styleConfig.tabVal||(t["color"]=this.dataConfig.bntTxtColor.color[0].item)),t},couponTypeStyle:function(){var t={};return this.dataConfig.toneCouponConfig.tabVal&&(t["color"]=this.dataConfig.couponTypeColor.color[0].item),t},couponStyle:function(){var t={};return this.dataConfig.toneCouponConfig.tabVal&&(this.dataConfig.styleConfig.tabVal?(t["margin-right"]="".concat(2*this.dataConfig.spacingConfig2.val,"rpx"),t["background"]=this.dataConfig.couponBgColor2.color[0].item):t["margin-right"]="".concat(2*this.dataConfig.spacingConfig.val,"rpx")),t},couponContentStyle:function(){var t={};return this.dataConfig.toneCouponConfig.tabVal&&(t["background"]="linear-gradient(90deg, ".concat(this.dataConfig.couponBgColor.color[0].item," 0%, ").concat(this.dataConfig.couponBgColor.color[1].item," 100%)")),t},stationStyle:function(){var t={};return this.dataConfig.toneCouponConfig.tabVal&&(t["background"]="linear-gradient(90deg, ".concat(this.dataConfig.vipBgColor.color[0].item," 0%, ").concat(this.dataConfig.vipBgColor.color[1].item," 100%)")),t},productMoneyStyle:function(){var t={};return this.dataConfig.toneGoodsConfig.tabVal&&(t["color"]=this.dataConfig.priceColor.color[0].item),t},couponInfoStyle:function(){var t={};return this.dataConfig.toneCouponConfig.tabVal&&(t["background"]="linear-gradient(90deg, ".concat(this.dataConfig.bntBgColor.color[1].item," 0%, ").concat(this.dataConfig.bntBgColor.color[0].item," 100%)")),t},newVip2Background:function(){return{background:"linear-gradient(90deg, ".concat(this.dataConfig.moduleColor.color[0].item," 0%, ").concat(this.dataConfig.moduleColor.color[1].item," 99%)")}},newVipBorderRadius:function(){var t="".concat(2*this.dataConfig.fillet.val,"rpx");return this.dataConfig.fillet.type&&(t="".concat(2*this.dataConfig.fillet.valList[0].val,"rpx ").concat(2*this.dataConfig.fillet.valList[1].val,"rpx ").concat(2*this.dataConfig.fillet.valList[2].val,"rpx ").concat(2*this.dataConfig.fillet.valList[3].val,"rpx")),{"border-radius":t}},newVipWrapStyle:function(){return{padding:"".concat(2*this.dataConfig.topConfig.val,"rpx ").concat(2*this.dataConfig.prConfig.val,"rpx ").concat(2*this.dataConfig.bottomConfig.val,"rpx"),"margin-top":"".concat(2*this.dataConfig.mbConfig.val,"rpx"),background:this.dataConfig.bottomBgColor.color[0].item}}}),(0,e.default)(i,"watch",{isLogin:{handler:function(t,o){t&&this.getList()},deep:!0}}),(0,e.default)(i,"methods",{goDetail:function(o){t.navigateTo({url:"/pages/activity/goods_details/index?id=".concat(o.id,"&type=7")})},goNewList:function(){t.navigateTo({url:"/pages/activity/new_customer/index"})},goUser:function(){t.switchTab({url:"/pages/users/user_coupon/index"})},getList:function(){var t=this,o=this.$config.LIMIT;(0,l.newcomerList)({page:1,limit:o}).then((function(o){var n=o.data.newcomer_integral;t.couponList=o.data.newcomer_coupon,t.productList=o.data.newcomer_products,Array.isArray(n)?t.newcomer_integral=0:t.newcomer_integral=n})).catch((function(o){return t.$util.Tips({title:o.msg})}))}}),i);o.default=g}).call(this,n("df3c")["default"])},"441c":function(t,o,n){"use strict";var a=n("5e67"),i=n.n(a);i.a},"5d9a":function(t,o,n){"use strict";n.d(o,"b",(function(){return i})),n.d(o,"c",(function(){return e})),n.d(o,"a",(function(){return a}));var a={easyLoadimage:function(){return n.e("components/easy-loadimage/easy-loadimage").then(n.bind(null,"a9c6"))}},i=function(){var t=this,o=t.$createElement,n=(t._self._c,t.couponList.length||t.productList.length||t.newcomer_integral),a=n?t.__get_style([t.newVipWrapStyle]):null,i=n&&t.dataConfig.styleConfig.tabVal?t.__get_style([t.newVip2Background,t.newVipBorderRadius]):null,e=n&&t.dataConfig.styleConfig.tabVal?t.couponList.length&&t.dataConfig.checkboxInfo.type.includes(1):null,l=n&&t.dataConfig.styleConfig.tabVal&&e?t.__map(t.couponList,(function(o,n){var a=t.__get_orig(o),i=t.__get_style([t.couponStyle]),e=t.__get_style([t.moneyStyle]),l=1!=o.coupon_type&&2==o.coupon_type?parseFloat(o.coupon_price):null,r=o.use_min_price?t.__get_style([t.couponInfoStyle]):null,c=o.use_min_price?null:t.__get_style([t.couponInfoStyle]);return{$orig:a,s2:i,s3:e,m0:l,s4:r,s5:c}})):null,r=n&&t.dataConfig.styleConfig.tabVal?t.productList.length&&t.dataConfig.checkboxInfo.type.includes(2):null,c=n&&t.dataConfig.styleConfig.tabVal?t.dataConfig.checkboxInfo.type.includes(0):null,g=n&&t.dataConfig.styleConfig.tabVal&&c?t.__get_style([t.bonusRedStyle]):null,u=n&&t.dataConfig.styleConfig.tabVal&&c?t.__get_style([t.buttonStyle]):null,s=n&&!t.dataConfig.styleConfig.tabVal?t.dataConfig.checkboxInfo.type.includes(0):null,f=n&&!t.dataConfig.styleConfig.tabVal&&s?t.__get_style([t.bonusStyle]):null,d=n&&!t.dataConfig.styleConfig.tabVal&&s?t.__get_style([t.bonusRedStyle]):null,C=n&&!t.dataConfig.styleConfig.tabVal?t.dataConfig.checkboxInfo.type.includes(1)&&t.couponList.length:null,p=n&&!t.dataConfig.styleConfig.tabVal&&C?t.__get_style([t.couponContentStyle]):null,y=n&&!t.dataConfig.styleConfig.tabVal&&C?t.__map(t.couponList,(function(o,n){var a=t.__get_orig(o),i=t.__get_style([t.couponStyle]),e=t.__get_style([t.moneyStyle]),l=1!=o.coupon_type&&2==o.coupon_type?parseFloat(o.coupon_price):null,r=t.__get_style([t.couponTypeStyle]);return{$orig:a,s11:i,s12:e,m1:l,s13:r}})):null,_=n&&!t.dataConfig.styleConfig.tabVal&&C?t.__get_style([t.stationStyle]):null,b=n&&!t.dataConfig.styleConfig.tabVal&&C?t.__get_style([t.buttonStyle]):null,h=n&&!t.dataConfig.styleConfig.tabVal?t.productList.length&&t.dataConfig.checkboxInfo.type.includes(2):null,m=n&&!t.dataConfig.styleConfig.tabVal&&h?t.__map(t.productList,(function(o,n){var a=t.__get_orig(o),i=t.__get_style([t.productMoneyStyle]);return{$orig:a,s16:i}})):null;t.$mp.data=Object.assign({},{$root:{g0:n,s0:a,s1:i,g1:e,l0:l,g2:r,g3:c,s6:g,s7:u,g4:s,s8:f,s9:d,g5:C,s10:p,l1:y,s14:_,s15:b,g6:h,l2:m}})},e=[]},"5e67":function(t,o,n){},"60b1":function(t,o,n){"use strict";n.r(o);var a=n("1e3c"),i=n.n(a);for(var e in a)["default"].indexOf(e)<0&&function(t){n.d(o,t,(function(){return a[t]}))}(e);o["default"]=i.a},be47:function(t,o,n){"use strict";n.r(o);var a=n("5d9a"),i=n("60b1");for(var e in i)["default"].indexOf(e)<0&&function(t){n.d(o,t,(function(){return i[t]}))}(e);n("441c");var l=n("828b"),r=Object(l["a"])(i["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);o["default"]=r.exports}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'pages/index/components/newVip-create-component',
{
'pages/index/components/newVip-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("be47"))
})
},
[['pages/index/components/newVip-create-component']]
]);