pages-user-myFu.a11ce442.js 9.2 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-myFu"],{"24ad":function(t,n,e){"use strict";e("6a54");var a=e("f5bd").default;Object.defineProperty(n,"__esModule",{value:!0}),n.bangfu=function(t){return(0,i.default)({url:"/api/means",method:"post",data:t})},n.enroll=function(t){return(0,i.default)({url:"/api/enroll",method:"get",data:t})},n.getList=function(t){return(0,i.default)({url:"/api/category",method:"get",data:t})},n.get_means=function(t){return(0,i.default)({url:"/api/get_means",method:"get",data:t})},n.gethelp=function(t){return(0,i.default)({url:"/api/get_help",method:"get",data:t})},n.gonghsi=function(t){return(0,i.default)({url:"/api/means",method:"post",data:t})},n.helpdetail=function(t){return(0,i.default)({url:"/api/help_detail",method:"get",data:t})},n.means=function(t){return(0,i.default)({url:"/api/means",method:"post",data:t})},n.my_enroll=function(t){return(0,i.default)({url:"/api/my_enroll",method:"get",data:t})},n.one_detail=function(t){return(0,i.default)({url:"/api/one_detail",method:"get",data:t})};var i=a(e("d4c5"))},"35a2":function(t,n,e){"use strict";e.r(n);var a=e("f174"),i=e("bf07");for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(o);e("6c8f");var r=e("828b"),f=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"74d80f6c",null,!1,a["a"],void 0);n["default"]=f.exports},"6c8f":function(t,n,e){"use strict";var a=e("dda8"),i=e.n(a);i.a},"736d":function(t,n,e){var a=e("c86c");n=a(!1),n.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-74d80f6c]{height:100%;background:#f4f5f4}body.?%PAGE?%[data-v-74d80f6c]{background:#f4f5f4}.content[data-v-74d80f6c]{height:100%}.content .navbar[data-v-74d80f6c]{display:flex;height:40px;padding:0 5px;background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.06);position:relative;z-index:10}.content .navbar .nav-item[data-v-74d80f6c]{flex:1;display:flex;justify-content:center;align-items:center;height:100%;font-size:15px;color:#303133;position:relative}.content .navbar .nav-item.current[data-v-74d80f6c]{color:#ff727e}.content .navbar .nav-item.current[data-v-74d80f6c]:after{content:"";position:absolute;left:50%;bottom:0;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:44px;height:0;border-bottom:2px solid #ff727e}.content .swiper-box[data-v-74d80f6c]{height:calc(100% - 40px);padding:%?20?% %?30?%}.content .list-scroll-content[data-v-74d80f6c]{height:100%}.content .fu-box[data-v-74d80f6c]{padding:%?14?% %?20?% %?28?% %?20?%;background:#fff;box-shadow:0 0 %?40?% 0 rgba(0,0,0,.06);border-radius:%?12?%;display:flex;align-items:center;margin-bottom:%?20?%}.content .fu-box .fu-img[data-v-74d80f6c]{width:%?220?%;height:%?182?%;border-radius:%?8?%}.content .fu-box .fu-right[data-v-74d80f6c]{margin-left:%?20?%;width:62%}.content .fu-box .fu-right .fu-tit[data-v-74d80f6c]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:%?36?%;font-family:PingFang SC;font-weight:500;color:#222}.content .fu-box .fu-right .fu-text[data-v-74d80f6c]{margin-top:%?17?%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:%?24?%;font-family:PingFang SC;font-weight:500;color:#666}.content .fu-box .fu-right .fu-bottom[data-v-74d80f6c]{margin-top:%?20?%;display:flex;align-items:center;justify-content:space-between}.content .fu-box .fu-right .fu-bottom .fu-shenqing[data-v-74d80f6c]{font-size:%?21?%;font-family:PingFang;font-weight:500;color:#ff727e}.content .fu-box .fu-right .fu-bottom .fu-jifen[data-v-74d80f6c]{padding:0 %?5?%;border:1px solid red;border-radius:%?5?%;font-size:%?21?%;font-family:PingFang SC;font-weight:500;color:red}.content .fu-box .fu-right .fu-bottom .fu-yjs[data-v-74d80f6c]{font-size:%?21?%;font-family:PingFang;font-weight:500;color:#999}.content .fu-box .fu-right .fu-bottom .fu-sczl[data-v-74d80f6c]{padding:%?5?% %?17?%;font-size:%?21?%;font-family:PingFang SC;font-weight:500;color:#fff;background:#ff727e;border-radius:%?23?%}',""]),t.exports=n},bf07:function(t,n,e){"use strict";e.r(n);var a=e("c33f"),i=e.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(o);n["default"]=i.a},c33f:function(t,n,e){"use strict";e("6a54");var a=e("f5bd").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,e("c223"),e("8f71"),e("bf0f");var i=e("24ad"),o=a(e("2683")),r=a(e("7bf9")),f={components:{uniLoadMore:o.default,empty:r.default},data:function(){return{tabCurrentIndex:0,navList:[{state:2,text:"审核中",loadingType:"more",orderList:[],page:1,limit:10},{state:3,text:"已拒绝",loadingType:"more",orderList:[],page:1,limit:10},{state:1,text:"已通过",loadingType:"more",orderList:[],page:1,limit:10},{state:5,text:"公示中",loadingType:"more",orderList:[],page:1,limit:10},{state:4,text:"已结束",loadingType:"more",orderList:[],page:1,limit:10}]}},onLoad:function(){},onShow:function(){if(0==this.tabCurrentIndex){var t=this.tabCurrentIndex;this.navList[t].page=1,this.navList[t].orderList=[],this.navList[t].loadingType="more",this.loadData()}},methods:{changeTab:function(t){this.tabCurrentIndex=t.target.current,this.loadData("tabChange")},tabClick:function(t){this.tabCurrentIndex=t},loadData:function(t){var n=this,e=this.tabCurrentIndex,a=this.navList[e],o=a.state;"tabChange"===t&&!0===a.loaded||"noMore"!==a.loadingType&&(a.loadingType="loading",(0,i.my_enroll)({page:a.page,limit:a.limit,type:o}).then((function(t){a.orderList=a.orderList.concat(t.data.filter((function(t){return!!t.info.title}))),a.page++,a.limit!=t.data.length?(a.loadingType="noMore",n.$set(a,"loaded",!0)):a.loadingType="more"})).catch((function(t){console.log(t)})))},upInfo:function(t,n){var e="/pages/fu/upLoadInfo?id="+t;n&&(e+="&type="+n),uni.navigateTo({url:e})},toDetail:function(t){t.remark?uni.navigateTo({url:"/pages/fu/helpDetail?id="+t.hid}):uni.navigateTo({url:"/pages/fu/fuInfo?id="+t.hid})}}};n.default=f},dda8:function(t,n,e){var a=e("736d");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=e("967d").default;i("7310ad0a",a,!0,{sourceMap:!1,shadowMode:!1})},f174:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){return a}));var a={uniLoadMore:e("2683").default},i=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("v-uni-view",{staticClass:"content"},[e("v-uni-view",{staticClass:"navbar"},t._l(t.navList,(function(n,a){return e("v-uni-view",{key:a,staticClass:"nav-item",class:{current:t.tabCurrentIndex===a},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.tabClick(a)}}},[t._v(t._s(n.text))])})),1),e("v-uni-swiper",{staticClass:"swiper-box",attrs:{current:t.tabCurrentIndex,duration:"300"},on:{change:function(n){arguments[0]=n=t.$handleEvent(n),t.changeTab.apply(void 0,arguments)}}},t._l(t.navList,(function(n,a){return e("v-uni-swiper-item",{key:a,staticClass:"tab-content"},[e("v-uni-scroll-view",{staticClass:"list-scroll-content",attrs:{"scroll-y":!0},on:{scrolltolower:function(n){arguments[0]=n=t.$handleEvent(n),t.loadData.apply(void 0,arguments)}}},[!0===n.loaded&&0===n.orderList.length?e("empty"):t._e(),t._l(n.orderList,(function(n,a){return n.info.title?e("v-uni-view",{key:a,staticClass:"fu-box",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toDetail(n)}}},[e("v-uni-image",{staticClass:"fu-img",attrs:{src:n.info.image,mode:"aspectFill"}}),e("v-uni-view",{staticClass:"fu-right"},[e("v-uni-view",[e("v-uni-view",{staticClass:"fu-tit"},[t._v(t._s(n.info.title))]),e("v-uni-view",{staticClass:"fu-text"},[t._v(t._s(n.info.info))])],1),2==t.tabCurrentIndex&&n.info&&n.info.title?e("v-uni-view",{staticClass:"fu-bottom"},[e("v-uni-text",{staticClass:"fu-jifen"},[t._v("+"+t._s(n.info.integral)+"积分")]),n.remark?t._e():e("v-uni-view",{staticClass:"fu-sczl",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.upInfo(n.hid)}}},[t._v("上传资料")]),3==n.status?e("v-uni-view",{staticClass:"fu-shenqing"},[t._v("公示中")]):t._e()],1):t._e(),3==t.tabCurrentIndex&&n.info&&n.info.title?e("v-uni-view",{staticClass:"fu-bottom"},[e("v-uni-text",{staticClass:"fu-jifen"},[t._v("+"+t._s(n.info.integral)+"积分")]),e("v-uni-view",{staticClass:"fu-sczl",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.upInfo(n.hid,1)}}},[t._v("修改资料")])],1):t._e(),2!==t.tabCurrentIndex&&3!==t.tabCurrentIndex&&4!==t.tabCurrentIndex&&n.info&&n.info.title?e("v-uni-view",{staticClass:"fu-bottom"},[e("v-uni-view",{staticClass:"fu-shenqing"},[t._v("已有"+t._s(n.info.sales)+"人申请")]),e("v-uni-text",{staticClass:"fu-jifen"},[t._v("+"+t._s(n.info.integral)+"积分")])],1):t._e(),4==t.tabCurrentIndex&&n.info&&n.info.title?e("v-uni-view",{staticClass:"fu-bottom"},[e("v-uni-view",{staticClass:"fu-shenqing"}),e("v-uni-text",{staticClass:"fu-yjs"},[t._v("已结束")])],1):t._e(),n.info&&!n.info.title?e("v-uni-view",{staticClass:"fu-bottom"},[e("v-uni-view",{staticClass:"fu-shenqing"}),e("v-uni-text",{staticClass:"fu-yjs"},[t._v("该项目已删除")])],1):t._e()],1)],1):t._e()})),e("uni-load-more",{attrs:{status:n.loadingType}})],2)],1)})),1)],1)},o=[]}}]);