pages-user-myFu.7e4b6d67.js 9.2 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-myFu"],{"2c97":function(t,e,n){var i=n("24fb");e=i(!1),e.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=e},"35d7":function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.bangfu=function(t){return(0,a.default)({url:"/api/means",method:"post",data:t})},e.enroll=function(t){return(0,a.default)({url:"/api/enroll",method:"get",data:t})},e.getList=function(t){return(0,a.default)({url:"/api/category",method:"get",data:t})},e.get_means=function(t){return(0,a.default)({url:"/api/get_means",method:"get",data:t})},e.gethelp=function(t){return(0,a.default)({url:"/api/get_help",method:"get",data:t})},e.gonghsi=function(t){return(0,a.default)({url:"/api/means",method:"post",data:t})},e.helpdetail=function(t){return(0,a.default)({url:"/api/help_detail",method:"get",data:t})},e.means=function(t){return(0,a.default)({url:"/api/means",method:"post",data:t})},e.my_enroll=function(t){return(0,a.default)({url:"/api/my_enroll",method:"get",data:t})},e.one_detail=function(t){return(0,a.default)({url:"/api/one_detail",method:"get",data:t})};var a=i(n("2d20"))},"44e2":function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("99af"),n("4de4"),n("d3b7");var a=n("35d7"),o=i(n("0b7e")),r=i(n("d9b7")),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 e=this,n=this.tabCurrentIndex,i=this.navList[n],o=i.state;"tabChange"===t&&!0===i.loaded||"noMore"!==i.loadingType&&(i.loadingType="loading",(0,a.my_enroll)({page:i.page,limit:i.limit,type:o}).then((function(t){i.orderList=i.orderList.concat(t.data.filter((function(t){return!!t.info.title}))),i.page++,i.limit!=t.data.length?(i.loadingType="noMore",e.$set(i,"loaded",!0)):i.loadingType="more"})).catch((function(t){console.log(t)})))},upInfo:function(t,e){var n="/pages/fu/upLoadInfo?id="+t;e&&(n+="&type="+e),uni.navigateTo({url:n})},toDetail:function(t){t.remark?uni.navigateTo({url:"/pages/fu/helpDetail?id="+t.hid}):uni.navigateTo({url:"/pages/fu/fuInfo?id="+t.hid})}}};e.default=f},4890:function(t,e,n){var i=n("2c97");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("54c4dd98",i,!0,{sourceMap:!1,shadowMode:!1})},"5ddd":function(t,e,n){"use strict";var i=n("4890"),a=n.n(i);a.a},"75c5":function(t,e,n){"use strict";n.r(e);var i=n("f6e8"),a=n("9b06");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("5ddd");var r=n("f0c5"),f=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"74d80f6c",null,!1,i["a"],void 0);e["default"]=f.exports},"9b06":function(t,e,n){"use strict";n.r(e);var i=n("44e2"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},f6e8:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var i={uniLoadMore:n("0b7e").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"content"},[n("v-uni-view",{staticClass:"navbar"},t._l(t.navList,(function(e,i){return n("v-uni-view",{key:i,staticClass:"nav-item",class:{current:t.tabCurrentIndex===i},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabClick(i)}}},[t._v(t._s(e.text))])})),1),n("v-uni-swiper",{staticClass:"swiper-box",attrs:{current:t.tabCurrentIndex,duration:"300"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeTab.apply(void 0,arguments)}}},t._l(t.navList,(function(e,i){return n("v-uni-swiper-item",{key:i,staticClass:"tab-content"},[n("v-uni-scroll-view",{staticClass:"list-scroll-content",attrs:{"scroll-y":!0},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.loadData.apply(void 0,arguments)}}},[!0===e.loaded&&0===e.orderList.length?n("empty"):t._e(),t._l(e.orderList,(function(e,i){return e.info.title?n("v-uni-view",{key:i,staticClass:"fu-box",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.toDetail(e)}}},[n("v-uni-image",{staticClass:"fu-img",attrs:{src:e.info.image,mode:"aspectFill"}}),n("v-uni-view",{staticClass:"fu-right"},[n("v-uni-view",[n("v-uni-view",{staticClass:"fu-tit"},[t._v(t._s(e.info.title))]),n("v-uni-view",{staticClass:"fu-text"},[t._v(t._s(e.info.info))])],1),2==t.tabCurrentIndex&&e.info&&e.info.title?n("v-uni-view",{staticClass:"fu-bottom"},[n("v-uni-text",{staticClass:"fu-jifen"},[t._v("+"+t._s(e.info.integral)+"积分")]),e.remark?t._e():n("v-uni-view",{staticClass:"fu-sczl",on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.upInfo(e.hid)}}},[t._v("上传资料")]),3==e.status?n("v-uni-view",{staticClass:"fu-shenqing"},[t._v("公示中")]):t._e()],1):t._e(),3==t.tabCurrentIndex&&e.info&&e.info.title?n("v-uni-view",{staticClass:"fu-bottom"},[n("v-uni-text",{staticClass:"fu-jifen"},[t._v("+"+t._s(e.info.integral)+"积分")]),n("v-uni-view",{staticClass:"fu-sczl",on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.upInfo(e.hid,1)}}},[t._v("修改资料")])],1):t._e(),2!==t.tabCurrentIndex&&3!==t.tabCurrentIndex&&4!==t.tabCurrentIndex&&e.info&&e.info.title?n("v-uni-view",{staticClass:"fu-bottom"},[n("v-uni-view",{staticClass:"fu-shenqing"},[t._v("已有"+t._s(e.info.sales)+"人申请")]),n("v-uni-text",{staticClass:"fu-jifen"},[t._v("+"+t._s(e.info.integral)+"积分")])],1):t._e(),4==t.tabCurrentIndex&&e.info&&e.info.title?n("v-uni-view",{staticClass:"fu-bottom"},[n("v-uni-view",{staticClass:"fu-shenqing"}),n("v-uni-text",{staticClass:"fu-yjs"},[t._v("已结束")])],1):t._e(),e.info&&!e.info.title?n("v-uni-view",{staticClass:"fu-bottom"},[n("v-uni-view",{staticClass:"fu-shenqing"}),n("v-uni-text",{staticClass:"fu-yjs"},[t._v("该项目已删除")])],1):t._e()],1)],1):t._e()})),n("uni-load-more",{attrs:{status:e.loadingType}})],2)],1)})),1)],1)},o=[]}}]);