pages-user-applyList.b74bf8fb.js 10 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-applyList"],{"10d3":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tabbar=void 0;var i=[{iconPath:"../../static/tabBar/home.png",selectedIconPath:"../../static/tabBar/home-action.png",text:"首页",pagePath:"/pages/index/index"},{iconPath:"../../static/tabBar/center.png",selectedIconPath:"../../static/tabBar/center-action.png",text:"审核",pagePath:"/pages/user/applyList"},{iconPath:"../../static/tabBar/user.png",selectedIconPath:"../../static/tabBar/user-action.png",text:"我的",pagePath:"/pages/user/user"}];e.tabbar=i},2646:function(t,e,a){"use strict";a.r(e);var i=a("529d"),n=a.n(i);for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},"3d64":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return i}));var i={uniLoadMore:a("14f1").default,uniPopup:a("3dc8").default,uTabbar:a("ea6f").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"content"},[a("v-uni-view",{staticClass:"navbar"},t._l(t.navList,(function(e,i){return a("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),a("v-uni-swiper",{staticClass:"swiper-box",style:{height:t.height},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 a("v-uni-swiper-item",{key:i,staticClass:"tab-content"},[a("v-uni-scroll-view",{staticClass:"list-scroll-content",style:{height:t.height},attrs:{"scroll-y":"true"},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.loadData()}}},[t._l(e.orderList,(function(e){return a("v-uni-view",{staticClass:"apply-box"},[a("v-uni-view",{staticClass:"box-top"},[a("v-uni-image",{staticClass:"user-img",attrs:{src:e.user_info.avatar,mode:""}}),a("v-uni-view",{staticClass:"user-info"},[a("v-uni-view",{staticClass:"user-name clamp"},[t._v(t._s(e.user_info.nickname))]),a("v-uni-view",{staticClass:"user-phone"},[t._v(t._s(e.user_info.mobile))])],1)],1),a("v-uni-view",{staticClass:"apply-info flex"},[a("v-uni-view",{staticClass:"img-wrap"},t._l(e.voucherimages,(function(e){return a("v-uni-image",{staticClass:"upimg",attrs:{src:e,mode:""},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.open(e)}}})})),1),0==t.tabCurrentIndex&&null!=e.voucherimages?a("v-uni-view",{staticClass:"btn-wrap flex"},[a("v-uni-view",{staticClass:"btn btn-reject",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.cancelApply(e)}}},[t._v(t._s(t.$t("hea.jj")))]),a("v-uni-view",{staticClass:"btn btn-pass",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.passApply(e)}}},[t._v(t._s(t.$t("hea.ty")))])],1):t._e(),1==t.tabCurrentIndex?a("v-uni-view",{staticClass:"btn-wrap"},[t._v(t._s(1==e.status?t.$t("hea.ytg"):t.$t("hea.wtg")))]):t._e()],1)],1)})),a("uni-load-more",{attrs:{status:e.loadingType}})],2)],1)})),1),a("uni-popup",{ref:"popup",attrs:{type:"center"}},[a("v-uni-movable-area",{staticClass:"popup-box"},[a("v-uni-movable-view",{staticClass:"popup-item",attrs:{scale:!0,direction:"all"}},[a("v-uni-image",{attrs:{src:t.img,mode:""}})],1)],1)],1),a("u-tabbar",{attrs:{list:t.tabbar,"bg-color":"#000","active-color":"#FAD6B0","inactive-color":"#71614f",change:"change"}})],1)},o=[]},"4e17":function(t,e,a){"use strict";a.r(e);var i=a("3d64"),n=a("2646");for(var o in n)"default"!==o&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("ac2e");var s,r=a("f0c5"),d=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"3e6d4786",null,!1,i["a"],s);e["default"]=d.exports},"51f9":function(t,e,a){var i=a("7909");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("5430f15e",i,!0,{sourceMap:!1,shadowMode:!1})},"529d":function(t,e,a){"use strict";var i=a("4ea4");a("99af"),a("c975"),a("d81d"),a("a434"),a("ac1f"),a("1276"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("5530")),o=i(a("3dc8")),s=a("168b"),r=i(a("bb9a")),d=(a("10d3"),a("26cb")),l={components:{empty:r.default,uniPopup:o.default},data:function(){return{img:"",height:"",tabCurrentIndex:0,tabbar:[{iconPath:"../../static/tabBar/home.png",selectedIconPath:"../../static/tabBar/home-action.png",text:this.$t("hea.sy"),pagePath:"/pages/index/index"},{iconPath:"../../static/tabBar/center.png",selectedIconPath:"../../static/tabBar/center-action.png",text:this.$t("hea.shlb"),pagePath:"/pages/user/applyList"},{iconPath:"../../static/tabBar/user.png",selectedIconPath:"../../static/tabBar/user-action.png",text:this.$t("hea.wd"),pagePath:"/pages/user/user"}],navList:[{state:0,text:this.$t("hea.wsh"),loadingType:"more",orderList:[],page:1,limit:10},{state:1,text:this.$t("hea.ysh"),loadingType:"more",orderList:[],page:1,limit:10}]}},onReady:function(t){var e=this;uni.getSystemInfo({success:function(t){var a=uni.createSelectorQuery();a.select(".swiper-box").boundingClientRect(),a.exec((function(a){console.log(a,"ddddddddddddd"),e.height=t.windowHeight-a[0].top+"px",console.log("打印页面的剩余高度",e.height)}))},fail:function(t){}})},computed:(0,n.default)({},(0,d.mapState)(["lang"])),watch:{lang:function(t){this.$set(this.navList[0],"text",this.$t("hea.wsh")),this.$set(this.navList[1],"text",this.$t("hea.ysh")),this.$set(this.tabbar[0],"text",this.$t("hea.sy")),this.$set(this.tabbar[1],"text",this.$t("hea.shlb")),this.$set(this.tabbar[2],"text",this.$t("hea.wd"))}},onShow:function(){uni.setNavigationBarTitle({title:this.$t("foo.shlb")}),this.navList[0].orderList=[],this.navList[0].page=1,this.navList[0].loadingType="more",this.navList[0].loaded=!1,this.navList[1].orderList=[],this.navList[1].page=1,this.navList[1].loadingType="more",this.navList[1].loaded=!1,this.loadData()},methods:{tabClick:function(t){this.tabCurrentIndex=t},changeTab:function(t){this.tabCurrentIndex=t.target.current,this.loadData("tabChange")},loadData:function(t,e){var a=this;console.log("swiper");var i=this.tabCurrentIndex,n=this.navList[i],o=n.state;"tabChange"===t&&!0===n.loaded||"noMore"!==n.loadingType&&"loading"!==n.loadingType&&(n.loadingType="loading",(0,s.getApplyList)({page:n.page,limit:n.limit,status:o}).then((function(t){var e=t.data,i=e.list.map((function(t){if(t.voucherimages){var e=t.voucherimages.split(",");console.log(e,"ddddddddddddddddddddddd"),t.voucherimages=e}else t.voucherimages=null;return t}));n.orderList=n.orderList.concat(i),e.list.length==n.limit?(n.page++,n.loadingType="more"):n.loadingType="noMore",a.$set(n,"loaded",!0)})))},cancelApply:function(t){var e=this;console.log(t,"cancelApply"),(0,s.cancelApply)({},t.id).then((function(a){console.log(a);var i=e.navList[e.tabCurrentIndex].orderList.indexOf(t);e.navList[e.tabCurrentIndex].orderList.splice(i,1),uni.showToast({title:"审核成功",duration:2e3})})).catch((function(t){console.log(t)}))},passApply:function(t){var e=this;console.log("passApply"),(0,s.passApply)({},t.id).then((function(a){console.log(a);var i=e.navList[e.tabCurrentIndex].orderList.indexOf(t);e.navList[e.tabCurrentIndex].orderList.splice(i,1),uni.showToast({title:"审核成功",duration:2e3})})).catch((function(t){console.log(t)}))},open:function(t){this.img=t,console.log("点击出现弹窗"),this.$refs.popup.open()}}};e.default=l},7909:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/.navbar[data-v-3e6d4786]{display:flex;height:40px;padding:0 5px;background:#000;box-shadow:0 1px 5px rgba(0,0,0,.06);position:relative;z-index:10}.navbar .nav-item[data-v-3e6d4786]{flex:1;display:flex;justify-content:center;align-items:center;height:100%;font-size:15px;color:#999;position:relative}.navbar .nav-item.current[data-v-3e6d4786]{color:#fad6b0}.navbar .nav-item.current[data-v-3e6d4786]:after{content:"";position:absolute;left:50%;bottom:0;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:44px;height:0;border-bottom:2px solid #fad6b0}.swiper-box[data-v-3e6d4786]{background-color:#15130f}.swiper-box .apply-box[data-v-3e6d4786]{height:%?317?%;width:%?702?%;margin:0 auto;border-bottom:1px solid #6c6a68;padding-top:%?30?%}.swiper-box .apply-box .box-top[data-v-3e6d4786]{height:%?80?%;display:flex;justify-content:flex-start}.swiper-box .apply-box .box-top .user-img[data-v-3e6d4786]{width:%?80?%;height:%?80?%;background-color:#eee;margin-right:%?20?%;flex-shrink:0;border-radius:50%}.swiper-box .apply-box .box-top .user-name[data-v-3e6d4786]{max-width:%?500?%;font-size:%?30?%;font-family:PingFang SC;font-weight:500;color:#fff}.swiper-box .apply-box .box-top .user-phone[data-v-3e6d4786]{padding-top:%?10?%;font-size:%?22?%;font-family:PingFang SC;font-weight:400;color:#fff}.swiper-box .apply-box .apply-info[data-v-3e6d4786]{padding:%?25?% 0 0 %?100?%;justify-content:space-between}.swiper-box .apply-box .apply-info .img-wrap .upimg[data-v-3e6d4786]{width:%?153?%;height:%?152?%;border-radius:%?10?%;background-color:#999;margin-left:%?10?%}.swiper-box .apply-box .apply-info .btn-wrap[data-v-3e6d4786]{align-self:flex-end;color:#fad6b0;font-size:%?24?%;font-family:PingFang SC;font-weight:500;color:#fad6b0}.swiper-box .apply-box .apply-info .btn-wrap .btn[data-v-3e6d4786]{width:%?98?%;line-height:%?47?%;text-align:center}.swiper-box .apply-box .apply-info .btn-wrap .btn-reject[data-v-3e6d4786]{border:1px solid #fad6b0;border-radius:%?5?%;color:#fad6b0}.swiper-box .apply-box .apply-info .btn-wrap .btn-pass[data-v-3e6d4786]{background:linear-gradient(-74deg,#ce9c6d,#ffecd6);border-image:linear-gradient(115deg,#feebd5,#fff,#e1ad7d) 1 1;box-shadow:%?3?% %?4?% %?5?% %?0?% rgba(151,118,74,.5);border-radius:%?5?%;color:#874b19;margin-left:%?10?%}.popup-box[data-v-3e6d4786]{width:%?522?%;height:%?605?%;border-radius:%?20?%;position:relative}.popup-box .popup-item[data-v-3e6d4786]{width:100%;height:100%}.popup-box .popup-item uni-image[data-v-3e6d4786]{width:100%;height:100%}',""]),t.exports=e},ac2e:function(t,e,a){"use strict";var i=a("51f9"),n=a.n(i);n.a}}]);