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.
1 lines
12 KiB
1 lines
12 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-task-index"],{"0086":function(t,n,e){var a=e("c86c");n=a(!1),n.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.u-navbar[data-v-928a20ca]{width:100%}.u-navbar-fixed[data-v-928a20ca]{position:fixed;left:0;right:0;top:0;z-index:991}.u-status-bar[data-v-928a20ca]{width:100%}.u-navbar-inner[data-v-928a20ca]{display:flex;flex-direction:row;justify-content:space-between;position:relative;align-items:center}.u-back-wrap[data-v-928a20ca]{display:flex;flex-direction:row;align-items:center;flex:1;flex-grow:0;padding:%?14?% %?14?% %?14?% %?24?%}.u-back-text[data-v-928a20ca]{padding-left:%?4?%;font-size:%?30?%}.u-navbar-content-title[data-v-928a20ca]{display:flex;flex-direction:row;align-items:center;justify-content:center;flex:1;position:absolute;left:0;right:0;height:%?60?%;text-align:center;flex-shrink:0}.u-navbar-centent-slot[data-v-928a20ca]{flex:1}.u-title[data-v-928a20ca]{line-height:%?60?%;font-size:%?32?%;flex:1}.u-navbar-right[data-v-928a20ca]{flex:1;display:flex;flex-direction:row;align-items:center;justify-content:flex-end}.u-slot-content[data-v-928a20ca]{flex:1;display:flex;flex-direction:row;align-items:center}',""]),t.exports=n},"18bd":function(t,n,e){var a=e("0086");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=e("967d").default;i("ddbc29aa",a,!0,{sourceMap:!1,shadowMode:!1})},"24b2":function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return s})),e.d(n,"a",(function(){return a}));var a={uIcon:e("1a39").default},i=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("v-uni-view",{},[e("v-uni-view",{staticClass:"u-navbar",class:{"u-navbar-fixed":t.isFixed,"u-border-bottom":t.borderBottom},style:[t.navbarStyle]},[e("v-uni-view",{staticClass:"u-status-bar",style:{height:t.statusBarHeight+"px"}}),e("v-uni-view",{staticClass:"u-navbar-inner",style:[t.navbarInnerStyle]},[t.isBack?e("v-uni-view",{staticClass:"u-back-wrap",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.goBack.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"u-icon-wrap"},[e("u-icon",{attrs:{name:t.backIconName,color:t.backIconColor,size:t.backIconSize}})],1),t.backText?e("v-uni-view",{staticClass:"u-icon-wrap u-back-text u-line-1",style:[t.backTextStyle]},[t._v(t._s(t.backText))]):t._e()],1):t._e(),t.title?e("v-uni-view",{staticClass:"u-navbar-content-title",style:[t.titleStyle]},[e("v-uni-view",{staticClass:"u-title u-line-1",style:{color:t.titleColor,fontSize:t.titleSize+"rpx",fontWeight:t.titleBold?"bold":"normal"}},[t._v(t._s(t.title))])],1):t._e(),e("v-uni-view",{staticClass:"u-slot-content"},[t._t("default")],2),e("v-uni-view",{staticClass:"u-slot-right"},[t._t("right")],2)],1)],1),t.isFixed&&!t.immersive?e("v-uni-view",{staticClass:"u-navbar-placeholder",style:{width:"100%",height:Number(t.navbarHeight)+t.statusBarHeight+"px"}}):t._e()],1)},s=[]},"4e59":function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return s})),e.d(n,"a",(function(){return a}));var a={uNavbar:e("db36").default},i=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("v-uni-view",{staticClass:"task"},[e("v-uni-view",{staticClass:"task-navbar"},[e("u-navbar",{attrs:{title:"任务中心","back-icon-color":"#333333","title-color":"#333333",background:t.background}})],1),e("v-uni-view",{staticClass:"task-content"},[t.info.noviceList&&t.info.noviceList.length>0?e("v-uni-view",{staticClass:"title"},[t._v("新手任务")]):t._e(),t.info.noviceList&&t.info.noviceList.length>0?e("v-uni-view",{staticClass:"content"},t._l(t.info.noviceList,(function(n,a){return e("v-uni-view",{key:a,staticClass:"item"},[e("v-uni-view",{staticClass:"a"},[t._v(t._s(n.name)),e("v-uni-view",{staticClass:"num"},[t._v("金币"),e("v-uni-text",[t._v("+"+t._s(n.coins))])],1)],1),0==n.isFinish?e("v-uni-view",{staticClass:"b"},[t._v("去完成")]):e("v-uni-view",{staticClass:"b b-on"},[t._v("已完成")])],1)})),1):t._e(),t.info.dayList&&t.info.dayList.length>0?e("v-uni-view",{staticClass:"title"},[t._v("每日任务")]):t._e(),t.info.dayList&&t.info.dayList.length>0?e("v-uni-view",{staticClass:"content"},t._l(t.info.dayList,(function(n,a){return e("v-uni-view",{key:a,staticClass:"item"},[e("v-uni-view",{staticClass:"a"},[t._v(t._s(n.name)),e("v-uni-view",{staticClass:"num"},[t._v("金币"),e("v-uni-text",[t._v("+"+t._s(n.coins))])],1)],1),0==n.isFinish?e("v-uni-view",{staticClass:"b",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.toPage()}}},[t._v("去完成")]):e("v-uni-view",{staticClass:"b b-on"},[t._v("已完成")])],1)})),1):t._e()],1)],1)},s=[]},"56ef":function(t,n,e){"use strict";e.r(n);var a=e("a50c"),i=e.n(a);for(var s in a)["default"].indexOf(s)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(s);n["default"]=i.a},"8c13":function(t,n,e){var a=e("ce4a");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=e("967d").default;i("65c56e0b",a,!0,{sourceMap:!1,shadowMode:!1})},"8ff01":function(t,n,e){"use strict";e.r(n);var a=e("4e59"),i=e("ebaf");for(var s in i)["default"].indexOf(s)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(s);e("aa28");var o=e("828b"),c=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,"4f2f7787",null,!1,a["a"],void 0);n["default"]=c.exports},a50c:function(t,n,e){"use strict";e("6a54"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,e("64aa");var a=uni.getSystemInfoSync(),i={},s={name:"u-navbar",props:{height:{type:[String,Number],default:""},backIconColor:{type:String,default:"#606266"},backIconName:{type:String,default:"nav-back"},backIconSize:{type:[String,Number],default:"44"},backText:{type:String,default:""},backTextStyle:{type:Object,default:function(){return{color:"#606266"}}},title:{type:String,default:""},titleWidth:{type:[String,Number],default:"250"},titleColor:{type:String,default:"#606266"},titleBold:{type:Boolean,default:!1},titleSize:{type:[String,Number],default:32},isBack:{type:[Boolean,String],default:!0},background:{type:Object,default:function(){return{background:"#ffffff"}}},isFixed:{type:Boolean,default:!0},immersive:{type:Boolean,default:!1},borderBottom:{type:Boolean,default:!0},zIndex:{type:[String,Number],default:""},customBack:{type:Function,default:null}},data:function(){return{menuButtonInfo:i,statusBarHeight:a.statusBarHeight}},computed:{navbarInnerStyle:function(){var t={};return t.height=this.navbarHeight+"px",t},navbarStyle:function(){var t={};return t.zIndex=this.zIndex?this.zIndex:this.$u.zIndex.navbar,Object.assign(t,this.background),t},titleStyle:function(){var t={};return t.left=(a.windowWidth-uni.upx2px(this.titleWidth))/2+"px",t.right=(a.windowWidth-uni.upx2px(this.titleWidth))/2+"px",t.width=uni.upx2px(this.titleWidth)+"px",t},navbarHeight:function(){return this.height?this.height:44}},created:function(){},methods:{goBack:function(){"function"===typeof this.customBack?this.customBack.bind(this.$u.$parent.call(this))():uni.navigateBack()}}};n.default=s},aa28:function(t,n,e){"use strict";var a=e("8c13"),i=e.n(a);i.a},b2bf:function(t,n,e){"use strict";var a=e("18bd"),i=e.n(a);i.a},ce4a:function(t,n,e){var a=e("c86c");n=a(!1),n.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.task[data-v-4f2f7787]{background:url(https://api.lyiyuan.cn/profile/upload/static/task-bg.png) top no-repeat;background-size:100% auto;overflow:hidden;min-height:100vh}.task-content[data-v-4f2f7787]{padding:0 %?25?%}.task-content .title[data-v-4f2f7787]{font-weight:500;font-size:%?32?%;color:#222;margin-top:%?40?%}.task-content .content[data-v-4f2f7787]{padding-bottom:%?20?%;overflow:hidden}.task-content .content .item[data-v-4f2f7787]{width:100%;height:%?100?%;background:#fff;border-radius:%?20?%;display:flex;align-items:center;justify-content:space-between;margin-top:%?20?%;padding:0 %?20?%;box-sizing:border-box}.task-content .content .item .a[data-v-4f2f7787]{flex:1;font-weight:500;font-size:%?30?%;color:#222;display:flex;align-items:center}.task-content .content .item .a .num[data-v-4f2f7787]{margin-left:%?40?%;font-size:%?24?%}.task-content .content .item .a .num uni-text[data-v-4f2f7787]{font-size:%?36?%}.task-content .content .item .b[data-v-4f2f7787]{width:%?130?%;line-height:%?60?%;border-radius:%?60?%;text-align:center;font-weight:500;font-size:%?24?%;background:linear-gradient(0deg,#000,#3d3b38);color:#fff}.task-content .content .item .b-on[data-v-4f2f7787]{background:#ededed;color:#222}',""]),t.exports=n},db36:function(t,n,e){"use strict";e.r(n);var a=e("24b2"),i=e("56ef");for(var s in i)["default"].indexOf(s)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(s);e("b2bf");var o=e("828b"),c=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,"928a20ca",null,!1,a["a"],void 0);n["default"]=c.exports},ebaf:function(t,n,e){"use strict";e.r(n);var a=e("f9b5"),i=e.n(a);for(var s in a)["default"].indexOf(s)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(s);n["default"]=i.a},f9b5:function(t,n,e){"use strict";e("6a54");var a=e("f5bd").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=a(e("2634")),s=a(e("2fdc")),o={data:function(){return{background:{background:"url(https://api.lyiyuan.cn/profile/upload/static/task-bg.png) center top no-repeat",backgroundSize:"100 auto"},info:{}}},onShow:function(){this.getList()},methods:{toPage:function(){uni.switchTab({url:"/pages/index/index"})},getList:function(){var t=this;return(0,s.default)((0,i.default)().mark((function n(){var e,a,s;return(0,i.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.$api.taskList({userId:uni.getStorageSync("userInfo").id});case 2:e=n.sent,a=e.code,s=e.data,200==a&&(t.info=s);case 6:case"end":return n.stop()}}),n)})))()}}};n.default=o}}]); |