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

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},"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},5583:function(t,e,i){var n=i("9158");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=i("4f06").default;r("27715e20",n,!0,{sourceMap:!1,shadowMode:!1})},"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=[]},8223:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("d3b7"),i("159b"),i("14d9");var n={data:function(){return{istrue:!1,hotActivity:[],form:{page:1,pageSize:10}}},onLoad:function(){this.getData()},methods:{getData:function(){var t=this;uni.showLoading({title:"加载中..."}),this.api.getactivit(this.form).then((function(e){if(console.log(e),200==e.data.code){if(uni.stopPullDownRefresh(),uni.hideLoading(),0==e.data.data.data.length)return uni.showToast({title:"暂无数据",icon:"none"}),t.istrue=!0,!1;e.data.data.data.forEach((function(t,e){t.rule=JSON.parse(t.rule)}));for(var i=0;i<e.data.data.data.length;i++)t.hotActivity.push(e.data.data.data[i])}else uni.showToast({title:e.data.message,icon:"none"});t.istrue=!0}))},getp:function(t,e){2==e?uni.navigateTo({url:"/pages/turntable/index?id="+t}):3==e?uni.navigateTo({url:"/pages/scap/index?id="+t}):5==e?uni.navigateTo({url:"/pages/around/index?id="+t}):6==e&&uni.navigateTo({url:"/pages/answer/index?id="+t})}},onReachBottom:function(){uni.showLoading({title:"加载中..."}),this.form.page+=1,this.getData()},onPullDownRefresh:function(){this.form.page=1,this.hotActivity=[],this.getData()}};e.default=n},9158:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,".z5[data-v-127c2623]{height:%?260?%;width:100%;position:relative}.z4[data-v-127c2623]{height:%?192?%;wid