frontend_h5/static/js/pages-activity-index.a1eefa...

1 line
8.7 KiB
JavaScript
Raw Normal View History

2024-06-17 15:25:46 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-activity-index"],{"0093":function(t,e,i){"use strict";i.r(e);var n=i("71c8"),r=i("eefb");for(var a in r)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(a);i("ebb9");var s=i("f0c5"),o=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"3fa99dd0",null,!1,n["a"],void 0);e["default"]=o.exports},"0b3b":function(t,e,i){"use strict";var n=i("8fd2"),r=i.n(n);r.a},"0f2a":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(i("4284")),a={name:"u-line-progress",mixins:[uni.$u.mpMixin,uni.$u.mixin,r.default],data:function(){return{lineWidth:0}},watch:{percentage:function(t){this.resizeProgressWidth()}},computed:{progressStyle:function(){var t={};return t.width=this.lineWidth,t.backgroundColor=this.activeColor,t.height=uni.$u.addUnit(this.height),t},innserPercentage:function(){return uni.$u.range(0,100,this.percentage)}},mounted:function(){this.init()},methods:{init:function(){var t=this;uni.$u.sleep(20).then((function(){t.resizeProgressWidth()}))},getProgressWidth:function(){return this.$uGetRect(".u-line-progress__background")},resizeProgressWidth:function(){var t=this;this.getProgressWidth().then((function(e){var i=e.width;t.lineWidth=i*t.innserPercentage/100+"px"}))}}};e.default=a},4284:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("a9e3");var n={props:{activeColor:{type:String,default:uni.$u.props.lineProgress.activeColor},inactiveColor:{type:String,default:uni.$u.props.lineProgress.color},percentage:{type:[String,Number],default:uni.$u.props.lineProgress.inactiveColor},showText:{type:Boolean,default:uni.$u.props.lineProgress.showText},height:{type:[String,Number],default:uni.$u.props.lineProgress.height}}};e.default=n},"71c8":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"u-line-progress",style:[t.$u.addStyle(t.customStyle)]},[i("v-uni-view",{ref:"u-line-progress__background",staticClass:"u-line-progress__background",style:[{backgroundColor:t.inactiveColor,height:t.$u.addUnit(t.height)}]}),i("v-uni-view",{staticClass:"u-line-progress__line",style:[t.progressStyle]},[t._t("default",[t.showText&&t.percentage>=10?i("v-uni-text",{staticClass:"u-line-progress__text"},[t._v(t._s(t.innserPercentage+"%"))]):t._e()])],2)],1)},r=[]},"740b":function(t,e,i){"use strict";i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var n={uLineProgress:i("0093").default},r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.istrue?i("v-uni-view",{staticClass:"content"},[i("v-uni-view",{staticClass:"plr20 t3"},[0!=t.hotActivity.length?i("v-uni-view",{staticClass:"flex_column flex_items"},t._l(t.hotActivity,(function(e,n){return i("v-uni-view",{key:n,staticClass:"pb30 bbe9s mt30",staticStyle:{width:"100%"}},[i("v-uni-view",{staticClass:"flex_between flex_items",staticStyle:{width:"100%"}},[i("v-uni-view",{staticClass:"flex_start flex_items"},[i("v-uni-image",{staticStyle:{width:"72rpx",height:"72rpx","border-radius":"50%"},attrs:{src:e.banner,mode:""}}),i("v-uni-view",{staticClass:"flex_column ml20"},[i("v-uni-text",{staticClass:"f30",staticStyle:{color:"#333"}},[t._v(t._s(e.active_name))]),e.rule?i("v-uni-text",{staticClass:"f24 mt10",staticStyle:{color:"#898989"}},[t._v(t._s(e.rule.rate))]):t._e()],1)],1),i("v-uni-view",{staticClass:"flex_items flex_center",staticStyle:{width:"144rpx",height:"48rpx",background:"linear-gradient(90deg, #FF898E 0%, #F43139 100%)","box-shadow":"0rpx 4rpx 12rpx 0rpx #FFC79F","border-radius":"24rpx"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.getp(e.id,e.active_type)}}},[i("v-uni-text",{staticClass:"f24",staticStyle:{color:"#fff"}},[t._v("立即参与")])],1)],1),i("u-line-progress",{staticClass:"mt20",attrs:{percentage:e.process_rate,inactiv