mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-02-05 21:25:36 +00:00
11 lines
9.2 KiB
JavaScript
11 lines
9.2 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/components/combination"],{"4b6e":function(t,o,n){"use strict";(function(t){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var i=n("0729"),l=n("d369"),e=n("d1dc"),a={name:"combination",props:{dataConfig:{type:Object,default:function(){}},isSortType:{type:String|Number,default:0}},data:function(){return{pinkInfo:"",combinationList:[]}},computed:{titleStyle:function(){var t=this.dataConfig.titleText;return{fontStyle:t.tabVal?t.tabList[t.tabVal].style:"normal",fontWeight:t.tabVal?"normal":"bold",color:this.dataConfig.titleColor.color[0].item,fontSize:2*this.dataConfig.titleNumber.val+"rpx"}},boxStyle:function(){return{padding:"".concat(2*this.dataConfig.topConfig.val,"rpx ").concat(2*this.dataConfig.prConfig.val,"rpx ").concat(2*this.dataConfig.bottomConfig.val,"rpx"),marginTop:"".concat(2*this.dataConfig.mbConfig.val,"rpx"),background:this.dataConfig.bottomBgColor.color[0].item}},boxContentStyle:function(){var t="".concat(2*this.dataConfig.fillet.val,"rpx"),o="0 0 ".concat(t," ").concat(t);return this.dataConfig.fillet.type&&(o="0 0 ".concat(2*this.dataConfig.fillet.valList[3].val,"rpx ").concat(2*this.dataConfig.fillet.valList[2].val,"rpx")),{borderRadius:o,background:"linear-gradient(90deg, ".concat(this.dataConfig.moduleColor.color[0].item," 0%, ").concat(this.dataConfig.moduleColor.color[1].item," 100%)")}},goodStyleConfig:function(){return this.dataConfig.goodStyleConfig.tabVal},styleConfig:function(){return this.dataConfig.styleConfig.tabVal},headerStyle:function(){var t="".concat(2*this.dataConfig.fillet.val,"rpx"),o="",n=this.dataConfig.imgBgConfig.url;return o=this.dataConfig.fillet.type?"".concat(2*this.dataConfig.fillet.valList[0].val,"rpx ").concat(2*this.dataConfig.fillet.valList[1].val,"rpx 0 0"):"".concat(t," ").concat(t," 0 0"),{backgroundImage:this.styleConfig?"url("+n+")":"linear-gradient(90deg,".concat(this.dataConfig.headerBgColor.color[0].item," 0%,").concat(this.dataConfig.headerBgColor.color[1].item," 100%)"),borderRadius:o}},titleConfig:function(){return this.dataConfig.titleConfig.tabVal},titleTxtConfig:function(){return this.dataConfig.titleTxtConfig.value},titleImg:function(){return this.styleConfig?this.titleUrl:this.titleColorUrl},titleColorUrl:function(){return this.dataConfig.imgColorConfig.url},titleUrl:function(){return this.dataConfig.imgConfig.url},tipsColor:function(){return{color:this.styleConfig?this.dataConfig.tipsColor.color[0].item:this.dataConfig.tipsColor2.color[0].item}},dividerColor:function(){return{color:this.dataConfig.dividerColor.color[0].item}},rightBntTxt:function(){return this.dataConfig.rightBntConfig.value},headerBntColor:function(){return{color:this.styleConfig?this.dataConfig.headerBntColor.color[0].item:this.dataConfig.headerBntColor2.color[0].item,fontSize:"".concat(2*this.dataConfig.bntNumber.val,"rpx")}},imgStyle:function(){var t="".concat(2*this.dataConfig.filletImg.val,"rpx");return this.dataConfig.filletImg.type&&(t="".concat(2*this.dataConfig.filletImg.valList[0].val,"rpx ").concat(2*this.dataConfig.filletImg.valList[1].val,"rpx ").concat(2*this.dataConfig.filletImg.valList[3].val,"rpx ").concat(2*this.dataConfig.filletImg.valList[2].val,"rpx")),t},productStyle:function(){return{color:this.dataConfig.goodsNameColor.color[0].item,fontWeight:this.dataConfig.goodsName.tabVal?"normal":"bold"}},checkboxInfo:function(){return this.dataConfig.checkboxInfo.type},pinkNumStyle:function(){return{color:this.dataConfig.toneConfig.tabVal?this.dataConfig.labelColor.color[0].item:"var(--view-theme)"}},labelBg:function(){return{background:this.dataConfig.toneConfig.tabVal?this.dataConfig.labelColor.color[0].item:"var(--view-theme)",height:"32rpx"}},priceColor:function(){return this.dataConfig.toneConfig.tabVal?this.dataConfig.pinkPriceColor.color[0].item:"var(--view-theme)"},otPriceColor:function(){return{color:this.dataConfig.goodsPriceColor.color[0].item}},showBtn:function(){return this.dataConfig.pinkConfig.tabVal},btnBgColor:function(){return{background:this.dataConfig.toneConfig.tabVal?"linear-gradient(90deg,".concat(this.dataConfig.goodsBntColor.color[1].item," 0%,").concat(this.dataConfig.goodsBntColor.color[0].item," 100%)"):"linear-gradient(90deg, var(--view-theme) 0%, var(--view-gradient) 100%)",color:this.dataConfig.goodsBntTxtColor.color[0].item}},numberConfig:function(){return this.dataConfig.numberConfig.val}},mounted:function(){this.pink(),this.getCombinationList()},methods:{goPage:function(o){t.navigateTo({url:o})},goDetail:function(o){(0,i.openPinkSubscribe)().then((function(n){t.navigateTo({url:"/pages/activity/goods_combination_details/index?id=".concat(o.id,"&type=3")})}))},getCombinationList:function(){var t=this,o=t.$config.LIMIT,n={page:1,limit:this.numberConfig>=o?o:this.numberConfig};(0,e.getCombinationList)(n).then((function(o){t.combinationList=o.data})).catch((function(o){return t.$util.Tips({title:o})}))},pink:function(){var t=this;(0,l.pink)().then((function(o){t.pinkInfo=o.data}))}}};o.default=a}).call(this,n("df3c")["default"])},"974a":function(t,o,n){"use strict";n.d(o,"b",(function(){return l})),n.d(o,"c",(function(){return e})),n.d(o,"a",(function(){return i}));var i={easyLoadimage:function(){return n.e("components/easy-loadimage/easy-loadimage").then(n.bind(null,"1bea"))}},l=function(){var t=this,o=t.$createElement,n=(t._self._c,t.combinationList.length),i=n?t.__get_style([t.boxStyle]):null,l=n?t.__get_style([t.headerStyle]):null,e=n&&t.titleConfig?t.__get_style([t.titleStyle]):null,a=n?t.__get_style([t.dividerColor]):null,r=n?t.pinkInfo.avatars&&t.pinkInfo.avatars.length:null,c=n?t.__get_style([t.tipsColor]):null,g=n?t.$t("人参与拼团"):null,s=n?t.__get_style([t.headerBntColor]):null,u=n?t.__get_style([t.headerBntColor]):null,f=n&&0==t.goodStyleConfig?t.__get_style([t.boxContentStyle]):null,d=n&&0==t.goodStyleConfig?t.__map(t.combinationList,(function(o,n){var i=t.__get_orig(o),l=t.checkboxInfo.includes(0),e=l?t.__get_style([t.productStyle]):null,a=t.checkboxInfo.includes(1),r=a?t.__get_style([t.labelBg]):null,c=a?t.checkboxInfo.includes(1):null,g=a&&c?t.$t("人团"):null,s=a?t.__get_style([t.pinkNumStyle]):null,u=t.checkboxInfo.includes(2),f=t.checkboxInfo.includes(3),d=f?t.__get_style([t.otPriceColor]):null,C=f?t.$t("¥"):null,h=t.showBtn?null:t.__get_style([t.btnBgColor]),_=t.showBtn?null:t.$t("去拼团");return{$orig:i,g2:l,s8:e,g3:a,s9:r,g4:c,m1:g,s10:s,g5:u,g6:f,s11:d,m2:C,s12:h,m3:_}})):null,C=n&&1==t.goodStyleConfig?t.__get_style([t.boxContentStyle]):null,h=n&&1==t.goodStyleConfig?t.__map(t.combinationList,(function(o,n){var i=t.__get_orig(o),l=t.checkboxInfo.includes(1),e=l?t.__get_style([t.productStyle]):null,a=l?t.__get_style([t.labelBg]):null,r=l?t.__get_style([t.pinkNumStyle]):null,c=l?t.$t("人团"):null,g=l?t.checkboxInfo.includes(0):null,s=t.checkboxInfo.includes(2),u=t.checkboxInfo.includes(3),f=u?t.__get_style([t.otPriceColor]):null,d=u?t.$t("¥"):null,C=t.showBtn?null:t.__get_style([t.btnBgColor]),h=t.showBtn?null:t.$t("去拼团");return{$orig:i,g7:l,s14:e,s15:a,s16:r,m4:c,g8:g,g9:s,g10:u,s17:f,m5:d,s18:C,m6:h}})):null,_=n&&2==t.goodStyleConfig?t.__get_style([t.boxContentStyle]):null,b=n&&2==t.goodStyleConfig?t.__map(t.combinationList,(function(o,n){var i=t.__get_orig(o),l=t.checkboxInfo.includes(1),e=l?t.__get_style([t.labelBg]):null,a=l?t.__get_style([t.pinkNumStyle]):null,r=l?t.$t("人团"):null,c=t.checkboxInfo.includes(0),g=c?t.__get_style([t.productStyle]):null,s=t.checkboxInfo.includes(2),u=t.checkboxInfo.includes(3),f=u?t.__get_style([t.otPriceColor]):null,d=u?t.$t("¥"):null;return{$orig:i,g11:l,s20:e,s21:a,m7:r,g12:c,s22:g,g13:s,g14:u,s23:f,m8:d}})):null,m=n&&3==t.goodStyleConfig?t.__get_style([t.boxContentStyle]):null,y=n&&3==t.goodStyleConfig?t.__map(t.combinationList,(function(o,n){var i=t.__get_orig(o),l=t.checkboxInfo.includes(1),e=l?t.__get_style([t.labelBg]):null,a=l?t.__get_style([t.pinkNumStyle]):null,r=l?t.$t("人团"):null,c=t.checkboxInfo.includes(0),g=c?t.__get_style([t.productStyle]):null,s=t.checkboxInfo.includes(2),u=t.checkboxInfo.includes(3),f=u?t.__get_style([t.otPriceColor]):null,d=u?t.$t("¥"):null;return{$orig:i,g15:l,s25:e,s26:a,m9:r,g16:c,s27:g,g17:s,g18:u,s28:f,m10:d}})):null;t.$mp.data=Object.assign({},{$root:{g0:n,s0:i,s1:l,s2:e,s3:a,g1:r,s4:c,m0:g,s5:s,s6:u,s7:f,l0:d,s13:C,l1:h,s19:_,l2:b,s24:m,l3:y}})},e=[]},a3bb:function(t,o,n){"use strict";n.r(o);var i=n("4b6e"),l=n.n(i);for(var e in i)["default"].indexOf(e)<0&&function(t){n.d(o,t,(function(){return i[t]}))}(e);o["default"]=l.a},a8c9:function(t,o,n){"use strict";var i=n("e1ea"),l=n.n(i);l.a},cb28:function(t,o,n){"use strict";n.r(o);var i=n("974a"),l=n("a3bb");for(var e in l)["default"].indexOf(e)<0&&function(t){n.d(o,t,(function(){return l[t]}))}(e);n("a8c9");var a=n("828b"),r=Object(a["a"])(l["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);o["default"]=r.exports},e1ea:function(t,o,n){}}]);
|
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
|
'pages/index/components/combination-create-component',
|
|
{
|
|
'pages/index/components/combination-create-component':(function(module, exports, __webpack_require__){
|
|
__webpack_require__('df3c')['createComponent'](__webpack_require__("cb28"))
|
|
})
|
|
},
|
|
[['pages/index/components/combination-create-component']]
|
|
]);
|