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

1 line
8.7 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(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,inactiveColor:"#F8DDC5",activeColor:"#F9535A"}})],1)})),1):i("v-uni-view",{staticClass:"flex_center flex_items f24",staticStyle:{color:"#888",height:"600rpx",width:"100%"}},[i("v-uni-text",[t._v("--暂无数据--")])],1)],1)],1):t._e()},a=[]},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},"8fd2":function(t,e,i){var n=i("eea8");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=i("4f06").default;r("36892213",n,!0,{sourceMap:!1,shadowMode:!1})},"91a5":function(t,e,i){var n=i("b4cd");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=i("4f06").default;r("7e4b96c8",n,!0,{sourceMap:!1,shadowMode:!1})},b4cd:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-view[data-v-3fa99dd0], uni-scroll-view[data-v-3fa99dd0], uni-swiper-item[data-v-3fa99dd0]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-line-progress[data-v-3fa99dd0]{align-items:stretch;position:relative;display:flex;flex-direction:row;flex:1;overflow:hidden;border-radius:100px}.u-line-progress__background[data-v-3fa99dd0]{background-color:#ececec;border-radius:100px;flex:1}.u-line-progress__line[data-v-3fa99dd0]{position:absolute;top:0;left:0;bottom:0;align-items:center;display:flex;flex-direction:row;color:#fff;border-radius:100px;transition:width .5s ease;justify-content:flex-end}.u-line-progress__text[data-v-3fa99dd0]{font-size:10px;align-items:center;text-align:right;color:#fff;margin-right:5px;-webkit-transform:scale(.9);transform:scale(.9)}',""]),t.exports=e},c644:function(t,e,i){"use strict";i.r(e);var n=i("740b"),r=i("c756");for(var a in r)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(a);i("0b3b");var s=i("f0c5"),o=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"b2f3e7b2",null,!1,n["a"],void 0);e["default"]=o.exports},c756:function(t,e,i){"use strict";i.r(e);var n=i("8223"),r=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},ebb9:function(t,e,i){"use strict";var n=i("91a5"),r=i.n(n);r.a},eea8:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,".z5[data-v-b2f3e7b2]{height:%?260?%;width:100%;position:relative}.z4[data-v-b2f3e7b2]{height:%?192?%;width:48%;position:relative}",""]),t.exports=e},eefb:function(t,e,i){"use strict";i.r(e);var n=i("0f2a"),r=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a}}]);