pages-donate-idonate.1b9ac965.js 31 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-donate-idonate"],{"10d1":function(t,e,i){"use strict";var n,a=i("da84"),o=i("e2cc"),r=i("f183"),s=i("6d61"),c=i("acac"),l=i("861d"),u=i("69f3").enforce,d=i("7f9a"),f=!a.ActiveXObject&&"ActiveXObject"in a,v=Object.isExtensible,p=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},g=t.exports=s("WeakMap",p,c);if(d&&f){n=c.getConstructor(p,"WeakMap",!0),r.REQUIRED=!0;var h=g.prototype,m=h["delete"],b=h.has,w=h.get,y=h.set;o(h,{delete:function(t){if(l(t)&&!v(t)){var e=u(this);return e.frozen||(e.frozen=new n),m.call(this,t)||e.frozen["delete"](t)}return m.call(this,t)},has:function(t){if(l(t)&&!v(t)){var e=u(this);return e.frozen||(e.frozen=new n),b.call(this,t)||e.frozen.has(t)}return b.call(this,t)},get:function(t){if(l(t)&&!v(t)){var e=u(this);return e.frozen||(e.frozen=new n),b.call(this,t)?w.call(this,t):e.frozen.get(t)}return w.call(this,t)},set:function(t,e){if(l(t)&&!v(t)){var i=u(this);i.frozen||(i.frozen=new n),b.call(this,t)?y.call(this,t,e):i.frozen.set(t,e)}else y.call(this,t,e);return this}})}},"2a71":function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"idonate"},[n("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:1===t.limit,expression:"limit === 1"}],staticClass:"one"},[n("v-uni-view",{staticClass:"item"},[n("v-uni-view",{staticClass:"item-tit"},[t._v("捐赠个体"),n("v-uni-text",[t._v("*")])],1),n("v-uni-radio-group",{staticClass:"check-box",on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.typeChange.apply(void 0,arguments)}}},t._l(t.items,(function(e,i){return n("v-uni-label",{key:e.value},[n("v-uni-radio",{staticStyle:{transform:"scale(0.7)"},attrs:{value:e.iid,checked:i===t.type,color:"#f3392c"}}),n("v-uni-text",{staticStyle:{color:"#000000"}},[t._v(t._s(e.value))])],1)})),1)],1),1===t.type?[n("v-uni-view",{staticClass:"item"},[n("v-uni-view",{staticClass:"item-tit"},[t._v("捐赠单位"),n("v-uni-text",[t._v("*")])],1),n("v-uni-input",{attrs:{type:"text",placeholder:"请填写捐赠单位"},model:{value:t.unit,callback:function(e){t.unit=e},expression:"unit"}})],1),n("v-uni-view",{staticClass:"item"},[n("v-uni-view",{staticClass:"item-tit"},[t._v("单位联系人"),n("v-uni-text",[t._v("*")])],1),n("v-uni-input",{attrs:{type:"text",placeholder:"请填写捐赠方联系人"},model:{value:t.contacts,callback:function(e){t.contacts=e},expression:"contacts"}})],1),n("v-uni-view",{staticClass:"item"},[n("v-uni-view",{staticClass:"item-tit"},[t._v("单位电话"),n("v-uni-text",[t._v("*")])],1),n("v-uni-input",{attrs:{type:"text",placeholder:"请填写单位联系方式"},model:{value:t.tel,callback:function(e){t.tel=e},expression:"tel"}})],1),n("v-uni-view",{staticClass:"item"},[n("v-uni-view",{staticClass:"item-tit"},[t._v("企业信用代码")]),n("v-uni-input",{attrs:{type:"text",placeholder:"请填写单位的企业信用代码"},model:{value:t.qyxydm,callback:function(e){t.qyxydm=e},expression:"qyxydm"}})],1)]:t._e(),0===t.type?[n("v-uni-view",{staticClass:"item"},[n("v-uni-view",{staticClass:"item-tit"},[t._v("姓名"),n("v-uni-text",[t._v("*")])],1),n("v-uni-input",{attrs:{type:"text",placeholder:"请填写您的姓名"},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}})],1),n("v-uni-view",{staticClass:"item"},[n("v-uni-view",{staticClass:"item-tit"},[t._v("联系方式"),n("v-uni-text",[t._v("*")])],1),n("v-uni-input",{attrs:{type:"text",placeholder:"请填写您的联系方式"},model:{value:t.phone,callback:function(e){t.phone=e},expression:"phone"}})],1),n("v-uni-view",{staticClass:"item"},[n("v-uni-view",{staticClass:"item-tit"},[t._v("身份证号")]),n("v-uni-input",{attrs:{type:"text",placeholder:"请填写您的身份证号"},model:{value:t.identityNumber,callback:function(e){t.identityNumber=e},expression:"identityNumber"}})],1)]:t._e(),n("v-uni-view",{staticClass:"item"},[n("v-uni-view",{staticClass:"item-tit"},[t._v("是否匿名")]),n("v-uni-radio-group",{staticClass:"check-box",on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.anonymousChange.apply(void 0,arguments)}}},[n("v-uni-label",[n("v-uni-radio",{staticStyle:{transform:"scale(0.7)"},attrs:{value:"1",checked:t.IsAnonymous,color:"#f3392c"}}),n("v-uni-text",{staticStyle:{color:"#000000"}},[t._v("是")])],1),n("v-uni-label",[n("v-uni-radio",{staticStyle:{transform:"scale(0.7)"},attrs:{value:"0",checked:!t.IsAnonymous,color:"#f3392c"}}),n("v-uni-text",{staticStyle:{color:"#000000"}},[t._v("否")])],1)],1)],1),n("v-uni-view",{staticClass:"item"},[n("v-uni-view",{staticClass:"item-tit"},[t._v("物流方式"),n("v-uni-text",[t._v("*")])],1),n("v-uni-picker",{attrs:{range:t.logs,"range-key":"name"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.bindLogChange.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"log ",class:{select:t.log}},[t._v(t._s(t.log||"请选择物流方式"))])],1)],1),n("v-uni-view",{staticClass:"item"},[n("v-uni-view",{staticClass:"item-tit"},[t._v("捐赠地址"),n("v-uni-text",[t._v("*")])],1),n("v-uni-picker",{attrs:{range:t.areas,"range-key":"name"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.bindAreaChange.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"log ",class:{select:t.area}},[t._v(t._s(t.area||"请选择捐赠地址"))])],1)],1),n("v-uni-view",{staticClass:"item no-border-b"},[n("v-uni-view",{staticClass:"item-tit"},[t._v("开具发票"),n("v-uni-text",[t._v("*")])],1),n("v-uni-radio-group",{staticClass:"check-box",on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.openChange.apply(void 0,arguments)}}},[n("v-uni-label",[n("v-uni-radio",{staticStyle:{transform:"scale(0.7)"},attrs:{value:"1",checked:t.Isopen,color:"#f3392c"}}),n("v-uni-text",{staticStyle:{color:"#000000"}},[t._v("是")])],1),n("v-uni-label",[n("v-uni-radio",{staticStyle:{transform:"scale(0.7)"},attrs:{value:"0",checked:!t.Isopen,color:"#f3392c"}}),n("v-uni-text",{staticStyle:{color:"#000000"}},[t._v("否")])],1)],1)],1),n("v-uni-view",{staticClass:"mask"},[n("v-uni-textarea",{attrs:{value:t.mask,placeholder:"如果有备注请填写"}})],1),n("v-uni-view",{staticClass:"bbtm"}),n("v-uni-view",{staticClass:"jzwz"},[n("v-uni-view",{staticClass:"item-tit"},[t._v("捐赠物资"),n("v-uni-text",[t._v("*")])],1),n("v-uni-view",{staticClass:"choose-box"},[t._l(t.wzList,(function(e,i){return n("v-uni-view",{key:i,staticClass:"choose-item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.dianji(i)}}},[n("v-uni-picker",{attrs:{range:t.wzs,"range-key":"name"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.bindWzChange.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"wz select",class:{action:e.project_donation_name}},[t._v(t._s(e.project_donation_name||"请选择物资分类"))])],1),n("v-uni-input",{attrs:{type:"number",placeholder:"填写数量"},model:{value:e.project_donation_num,callback:function(i){t.$set(e,"project_donation_num",i)},expression:"item.project_donation_num"}})],1)})),n("v-uni-view",{staticClass:"flex act"},[n("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:t.wzs.length>t.wzList.length,expression:"wzs.length > wzList.length"}],staticClass:"more",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.addMore.apply(void 0,arguments)}}},[t._v("+添加更多")]),n("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:t.wzList.length>1,expression:" wzList.length > 1"}],staticClass:" del",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.dele.apply(void 0,arguments)}}},[t._v("删除")])],1)],2)],1)],2),n("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:2===t.limit,expression:"limit === 2"}],staticClass:"tow"},[n("v-uni-view",{staticClass:"t-item"},[n("v-uni-view",{staticClass:"t-tit"},[t._v("实物照片(必填)"),n("v-uni-text",[t._v(t._s(t._f("much")(t.swimg))+"/3")])],1),n("v-uni-view",{staticClass:"img-list flex"},[t._l(t.swimg,(function(e,a){return[e?t._e():n("v-uni-image",{key:a,attrs:{src:i("5bf1"),mode:""},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.imgsub(t.swimg,a)}}}),e?n("v-uni-image",{key:a,attrs:{src:e,mode:""},on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.imgsub(e)}}}):t._e()]}))],2)],1),n("v-uni-view",{staticClass:"t-item"},[n("v-uni-view",{staticClass:"t-tit"},[t._v("质量合格书(必填)"),n("v-uni-text",[t._v(t._s(t._f("much")(t.zlimg))+"/3")])],1),n("v-uni-view",{staticClass:"img-list flex"},[t._l(t.zlimg,(function(e,a){return[e?t._e():n("v-uni-image",{key:a,attrs:{src:i("5bf1"),mode:""},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.imgsub(t.zlimg,a)}}}),e?n("v-uni-image",{key:a,attrs:{src:e,mode:""},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.imgsub(t.zlimg,a)}}}):t._e()]}))],2)],1),n("v-uni-view",{staticClass:"t-item"},[n("v-uni-view",{staticClass:"t-tit"},[t._v("价值凭证"),n("v-uni-text",[t._v(t._s(t._f("much")(t.jzimg))+"/3")])],1),n("v-uni-view",{staticClass:"img-list flex"},[t._l(t.jzimg,(function(e,a){return[e?t._e():n("v-uni-image",{key:a,attrs:{src:i("5bf1"),mode:""},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.imgsub(t.jzimg,a)}}}),e?n("v-uni-image",{key:a,attrs:{src:e,mode:""},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.imgsub(t.jzimg,a)}}}):t._e()]}))],2)],1)],1),n("v-uni-view",{staticClass:"jg"}),n("v-uni-view",{staticClass:"btn"},[n("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:1===t.limit,expression:"limit === 1"}],staticClass:"next",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.nextLimit()}}},[t._v("下一页")]),n("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:2===t.limit,expression:"limit === 2"}],staticClass:"prev",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.prevLimit()}}},[t._v("上一步")]),n("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:2===t.limit,expression:"limit === 2"}],staticClass:"sub",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.sub.apply(void 0,arguments)}}},[t._v("提交")])],1)],1)},o=[]},"582d":function(t,e,i){"use strict";var n=i("dbce");Object.defineProperty(e,"__esModule",{value:!0}),e.addrescuer=o,e.upload=r,e.articlesave=s,e.myarticle=c,e.replyask=l,e.replylist=u,e.myreplylist=d,e.mechanism=f,e.chosintention=v,e.joinDona=p,e.getDonaList=g,e.MyDonaList=h,e.getCertificate=m;var a=n(i("9fc4"));function o(t){return(0,a.default)({url:"/api/add_rescuer",method:"post",data:t})}function r(t){return(0,a.upFilse)({url:"/api/upload/image",method:"post",data:t})}function s(t){return(0,a.default)({url:"/api/circle/articlesave",method:"post",data:t})}function c(t){return(0,a.default)({url:"/api/circle/myarticle",method:"post",data:t})}function l(t){return(0,a.default)({url:"/api/add_a",method:"post",data:t})}function u(t){return(0,a.default)({url:"/api/q_list",method:"get",data:t})}function d(t){return(0,a.default)({url:"/api/a_list",method:"get",data:t})}function f(t){return(0,a.default)({url:"/api/mechanism",method:"get",data:t})}function v(t){return(0,a.default)({url:"/api/intention",method:"get",data:t})}function p(t){return(0,a.default)({url:"/api/intention",method:"get",data:t})}function g(t){return(0,a.default)({url:"/api/bulletin",method:"get",data:t})}function h(t){return(0,a.default)({url:"/api/my_donate",method:"get",data:t})}function m(t){return(0,a.default)({url:"/api/detail_training",method:"get",data:t})}},"5bf1":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMYAAADICAYAAACzkZ4tAAAKyElEQVR4Xu2dX4hcVx3Hf2cSu8lKo1YRhVpF8aGIpSWzoQ/WYCB2Z+bMkzj+60uLqIkVjS/qgzCPFoRKtQ2Rviha6ih56J65s1sqU6mK7s4iSB8UqtCKD6LEP0mmZruZI3c7s8zu3oknOzM7v3vvJy+B2XPv/f0+3/PNuXfOd2+M8AcCENhDwIQwiZrNR4z350TkDUnjjYhdtLY5+FnLOScilVHnZvxk+Yj395Wq1V8O8X9BRD40UlvGPyYiv77c7V6s1WobI+b03o+jKLqnXC7/bvCTyLmvGJFHmeivE9BmbIzhgv8hWFlZeXvvtdf+FuvoRV4xIudK1l7cPbd3rBiNRuPQrfPzsZu+4AuFD5fL5V/FB7Tb7SNXrlwpVKvVbsgKwxgIaCUQRdEx6fUeMsY8KN7ftVWn949ffvXVL9dqteuDuncYY9m5J7zIGRG5Zox5aLFSeUprg9QFgXEI1Ov1wr0LC2e8998WkSNG5PyitWf3GGO52ax5738iIhtGpLJo7XPjXJhjIZAGAsvO3edFlkVkXkQWS9au9G+XRaIomjO93ksicrsXOVu29nwamqJGCEyCQMu5B2Jj/LbTebJer/e2jbHcbH7ae/9jL/LilW737uF7rUlcmHNAIG0Etp4xWs41ROTjXuRc2drvpK0J6oXApAlsGWNlZeWNvY2Ne/yhQ38sl8t/n/RFOB8EtBPY+kb26NH7pVB4V6lSuRC0wae9KeqDwLgEGo3G0Vvn5+PtiOslaw9jjHGJcnxmCLSc83EzJWvNljGcc2+J/7bW/jMzXdIIBG6SwB5jDH9wk+diOAQyQwBjZEZKGpkkAYwxSZqcKzMEMEZmpK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IHAnm+loAQBCJCVYg5AIJEA+xhMDAiE3Erx+hzmCQR4fQ5zAALcSjEHIBBKgGeMUFKMyxUBslK5kptm90OArNR+qHFM5gmQlcq8xDS4HwJkpfZDjWMyR6Ddbh/579WrPxSRqyVrH8QYmZOYhvZDYPmZZz7gC4UXReTlkrXvwRj7ocgxmSPQ/0bqgoj8tGRtbcsYz128+NaNublvGu+Ll7vdk7Va7XrmOqchCIwgUK/XC/cWi+te5G5jzGcWK5WntowRRdGc6fVeEpHbjTEPL1Yqj0MRAnkhsNxsftF7/z0x5i/emPeXy+Vr27dSy83mx7z3PxORDfG+XKpWf54XMPSZXwJRFJ0yvV5LRG4RkU+VrH06prHjGaPl3GMi8qXYHMaYr/5mbe18vV7v5RcbnWedQLPZ/GDB+xfE+x+VqtWHB/3uMEaj0Th0bH7+u17kTH9Au2TtqazDob98EFhaWpq/ReSOnsg7StXq84OunXN3ViqVPxhjfKIxBh9GS0ufMMY8Kt7/oFStfmP7c+deNiJ3jMJ42Pt3n65WX0nt+Lm5N58+ffrfg/pbzv1LRN40sl/G3yyf7YmXxLRk7e47mImOH7rmpcvd7jtrtdrGKG1Hfl0bb3hsbm7ODU+UCGPs4HgYY6TNGJsiEv/Dvb7p/blqtfrXmzZGPhZXuoRAMoH/AQPutDKfYTYNAAAAAElFTkSuQmCC"},"6d61":function(t,e,i){"use strict";var n=i("23e7"),a=i("da84"),o=i("94ca"),r=i("6eeb"),s=i("f183"),c=i("2266"),l=i("19aa"),u=i("861d"),d=i("d039"),f=i("1c7e"),v=i("d44e"),p=i("7156");t.exports=function(t,e,i){var g=-1!==t.indexOf("Map"),h=-1!==t.indexOf("Weak"),m=g?"set":"add",b=a[t],w=b&&b.prototype,y=b,x={},A=function(t){var e=w[t];r(w,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(h&&!u(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return h&&!u(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(h&&!u(t))&&e.call(this,0===t?0:t)}:function(t,i){return e.call(this,0===t?0:t,i),this})};if(o(t,"function"!=typeof b||!(h||w.forEach&&!d((function(){(new b).entries().next()})))))y=i.getConstructor(e,t,g,m),s.REQUIRED=!0;else if(o(t,!0)){var C=new y,k=C[m](h?{}:-0,1)!=C,j=d((function(){C.has(1)})),z=f((function(t){new b(t)})),_=!h&&d((function(){var t=new b,e=5;while(e--)t[m](e,e);return!t.has(-0)}));z||(y=e((function(e,i){l(e,y,t);var n=p(new b,e,y);return void 0!=i&&c(i,n[m],n,g),n})),y.prototype=w,w.constructor=y),(j||_)&&(A("delete"),A("has"),g&&A("get")),(_||k)&&A(m),h&&w.clear&&delete w.clear}return x[t]=y,n({global:!0,forced:y!=b},x),v(y,t),h||i.setStrong(y,t,g),y}},7037:function(t,e,i){function n(e){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?t.exports=n=function(t){return typeof t}:t.exports=n=function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(e)}i("a4d3"),i("e01a"),i("d28b"),i("d3b7"),i("3ca3"),i("ddb0"),t.exports=n},7429:function(t,e,i){"use strict";i.r(e);var n=i("bbb2"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"832b":function(t,e,i){"use strict";var n=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.computedOrderkey=o,e.createOrderkey=r,e.balance=s,e.orderPay=c,e.getProjectList=l,e.getProjectInfo=u,e.createProject=d,e.getLogistics=f,e.getAllArea=v,e.getDonationInfo=p,e.getMyorder=g,e.createUser=h,e.getAllOrder=m,e.getUserList=b,e.getBill=w,e.getOrderInfo=y;var a=n(i("9fc4"));function o(t){return(0,a.default)({url:"/api/order/computed/"+t.orderkey,method:"post",data:t})}function r(t,e){return(0,a.default)({url:"/api/donate/create",method:"post",data:t})}function s(t){return(0,a.default)({url:"/api/user/balance",method:"get",data:t})}function c(t){return(0,a.default)({url:"/api/order/pay",method:"post",data:t})}function l(t){return(0,a.default)({url:"/api/project/list",method:"get",data:t})}function u(t){return(0,a.default)({url:"/api/project/info",method:"get",data:t})}function d(t){return(0,a.default)({url:"/api/project/order_create",method:"post",data:t})}function f(t){return(0,a.default)({url:"/api/project/logistics",method:"get",data:t})}function v(t){return(0,a.default)({url:"/api/project/area",method:"get",data:t})}function p(t){return(0,a.default)({url:"/api/project/Donation_info",method:"get",data:t})}function g(t){return(0,a.default)({url:"/api/project/myorder",method:"post",data:t})}function h(t){return(0,a.default)({url:"/api/project/create_user",method:"post",data:t})}function m(t){return(0,a.default)({url:"/api/project/all_order",method:"post",data:t})}function b(t){return(0,a.default)({url:"/api/project/user_list",method:"get",data:t})}function w(t){return(0,a.default)({url:"/api/project/bill",method:"post",data:t})}function y(t){return(0,a.default)({url:"/api/project/order_info",method:"get",data:t})}},"93a2":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-35b77a99]{height:100%;background-color:#fff}.idonate[data-v-35b77a99]{padding:0 %?30?%;margin-top:%?20?%;background-color:#fff}.btn[data-v-35b77a99]{width:%?690?%;text-align:center;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;line-height:%?75?%;padding-bottom:%?54?%;background-color:#fff;z-index:9}.btn .next[data-v-35b77a99]{width:%?478?%;height:%?75?%;background:#fa7e67;border-radius:%?35?%;color:#fff;font-size:%?32?%;font-family:PingFang SC;font-weight:500;color:#fff}.btn .prev[data-v-35b77a99]{width:%?264?%;height:%?75?%;border:1px solid #fa7e67;border-radius:%?35?%;font-size:%?32?%;font-family:PingFang SC;font-weight:500;color:#fa7e67;margin-right:%?60?%;line-height:%?70?%}.btn .sub[data-v-35b77a99]{width:%?264?%;height:%?75?%;background:#fa7e67;border-radius:%?35?%;font-size:%?32?%;font-family:PingFang SC;font-weight:500;color:#fff;line-height:%?70?%}.item[data-v-35b77a99]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:%?102?%;border-bottom:1px #ececec solid;font-size:%?30?%;font-family:PingFang SC;font-weight:500;color:#222;line-height:%?102?%}.item .item-tit[data-v-35b77a99]{-webkit-flex-shrink:0;flex-shrink:0;display:inline-block;width:%?200?%}.item uni-text[data-v-35b77a99]{color:#f3392c}.item uni-input[data-v-35b77a99]{display:inline-block;width:100%}.item .log[data-v-35b77a99]{width:%?400?%;color:#999}.item .select[data-v-35b77a99]{color:#000}.mask[data-v-35b77a99]{padding-left:%?202?%}.mask uni-textarea[data-v-35b77a99]{width:%?396?%;height:%?166?%;border:%?1?% solid #ccc;border-radius:%?10?%;font-size:%?24?%;font-family:PingFang SC;font-weight:500;color:#000;line-height:%?32?%;padding:%?24?% %?16?%}.check-box[data-v-35b77a99]{-webkit-box-flex:0;-webkit-flex-grow:0;flex-grow:0;display:-webkit-box;display:-webkit-flex;display:flex;display:inline-block}.no-border-b[data-v-35b77a99]{border-bottom:none}.bbtm[data-v-35b77a99]{margin-top:%?40?%;width:%?689?%;height:%?1?%;background:#ececec}.t-item[data-v-35b77a99]{padding:%?35?% 0;border-bottom:1px #ececec solid;font-size:%?30?%;font-family:PingFang SC;font-weight:500;color:#222}.t-item[data-v-35b77a99]:last-of-type{border-bottom:none}.t-item uni-image[data-v-35b77a99]{display:block;width:%?160?%;height:%?160?%;border-radius:%?5?%}.t-item .t-tit[data-v-35b77a99]{position:relative}.t-item .t-tit uni-text[data-v-35b77a99]{display:inline-block;width:%?73?%;height:%?31?%;background:#f0433c;border-radius:%?14?%;font-size:%?24?%;font-family:PingFang SC;font-weight:500;color:#fff;line-height:%?31?%;text-align:center;position:absolute;right:0;top:0;bottom:0;margin:auto}.t-item .img-list[data-v-35b77a99]{margin-top:%?20?%;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.t-item .img-list uni-image[data-v-35b77a99]{margin-right:%?20?%}.jzwz[data-v-35b77a99]{display:-webkit-box;display:-webkit-flex;display:flex}.jzwz .item-tit[data-v-35b77a99]{font-size:%?30?%;font-family:PingFang SC;font-weight:500;color:#222;padding-top:%?39?%;line-height:1;width:%?200?%}.jzwz .item-tit uni-text[data-v-35b77a99]{color:#f3392c}.jzwz .choose-box[data-v-35b77a99]{padding-top:%?24?%}.jzwz .choose-box .choose-item[data-v-35b77a99]{display:-webkit-box;display:-webkit-flex;display:flex;margin-bottom:%?15?%;position:relative}.jzwz .choose-box .choose-item .wz[data-v-35b77a99]{padding-left:%?58?%;width:%?297?%;height:%?66?%;background:#f3f3f3;border-radius:%?5?%;font-size:%?28?%;font-family:PingFang SC;font-weight:500;color:#222;line-height:%?66?%}.jzwz .choose-box .choose-item .wz[data-v-35b77a99]::after{content:"";width:0;height:0;border-left:%?10?% solid transparent;border-right:%?10?% solid transparent;border-top:%?10?% solid grey;position:absolute;right:%?10?%;bottom:%?26?%}.jzwz .choose-box .choose-item uni-input[data-v-35b77a99]{width:%?189?%;height:%?66?%;background:#f3f3f3;border-radius:%?5?%;line-height:%?66?%;margin-left:%?15?%;text-align:center}.jzwz .choose-box .act[data-v-35b77a99]{width:%?510?%;height:%?68?%;position:relative}.jzwz .choose-box .act .more[data-v-35b77a99]{width:%?245?%;height:%?66?%;background:#fff;border:1px solid #fa7e67;border-radius:%?5?%;font-size:%?24?%;font-family:PingFang SC;font-weight:500;color:#fa7e67;line-height:%?66?%;text-align:center;margin-right:%?10?%;position:absolute;left:0}.jzwz .choose-box .act .del[data-v-35b77a99]{width:%?245?%;height:%?66?%;background:#fff;border:1px solid #fa7e67;border-radius:%?5?%;font-size:%?24?%;font-family:PingFang SC;font-weight:500;color:#fa7e67;line-height:%?66?%;text-align:center;margin-right:%?10?%;position:absolute;right:0}.jg[data-v-35b77a99]{height:%?150?%;background-color:#fff}body.?%PAGE?%[data-v-35b77a99]{background-color:#fff}',""]),t.exports=e},acac:function(t,e,i){"use strict";var n=i("e2cc"),a=i("f183").getWeakData,o=i("825a"),r=i("861d"),s=i("19aa"),c=i("2266"),l=i("b727"),u=i("5135"),d=i("69f3"),f=d.set,v=d.getterFor,p=l.find,g=l.findIndex,h=0,m=function(t){return t.frozen||(t.frozen=new b)},b=function(){this.entries=[]},w=function(t,e){return p(t.entries,(function(t){return t[0]===e}))};b.prototype={get:function(t){var e=w(this,t);if(e)return e[1]},has:function(t){return!!w(this,t)},set:function(t,e){var i=w(this,t);i?i[1]=e:this.entries.push([t,e])},delete:function(t){var e=g(this.entries,(function(e){return e[0]===t}));return~e&&this.entries.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,i,l){var d=t((function(t,n){s(t,d,e),f(t,{type:e,id:h++,frozen:void 0}),void 0!=n&&c(n,t[l],t,i)})),p=v(e),g=function(t,e,i){var n=p(t),r=a(o(e),!0);return!0===r?m(n).set(e,i):r[n.id]=i,t};return n(d.prototype,{delete:function(t){var e=p(this);if(!r(t))return!1;var i=a(t);return!0===i?m(e)["delete"](t):i&&u(i,e.id)&&delete i[e.id]},has:function(t){var e=p(this);if(!r(t))return!1;var i=a(t);return!0===i?m(e).has(t):i&&u(i,e.id)}}),n(d.prototype,i?{get:function(t){var e=p(this);if(r(t)){var i=a(t);return!0===i?m(e).get(t):i?i[e.id]:void 0}},set:function(t,e){return g(this,t,e)}}:{add:function(t){return g(this,t,!0)}}),d}}},b1a4:function(t,e,i){var n=i("93a2");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("7a8d1052",n,!0,{sourceMap:!1,shadowMode:!1})},bb2f:function(t,e,i){var n=i("d039");t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bbb2:function(t,e,i){"use strict";i("99af"),i("4160"),i("c975"),i("d3b7"),i("ac1f"),i("25f0"),i("5319"),i("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("582d"),a=i("832b"),o={data:function(){return{project_area:0,areas:[{id:0,name:"市本级"}],area:"",items:[{value:"个人",iid:"0"},{value:"企业(团体)",iid:"1"}],IsAnonymous:!1,limit:1,type:0,unit:"",contacts:"",tel:"",log:"",logistics:"",logs:["顺丰","邮政"],Isopen:!1,mask:"",qyxydm:"",name:"",phone:"",identityNumber:"",wzs:[],wzList:[{project_donation_id:null,project_donation_num:null,project_donation_name:null}],swimg:[""],yyimg:[""],zlimg:[""],jzimg:[""],true_wzList:[],hadadd:[],project_id:0}},filters:{much:function(t){var e=0;return t.forEach((function(t){t&&(e+=1)})),e}},onLoad:function(t){t.type&&(this.type=1*t.type,console.log(this.type,"++++++++")),t.id&&(this.project_id=1*t.id),t.wzlist?this.wzs=JSON.parse(t.wzlist):(this.getDonationInfo(),this.getAllArea()),this.getLogistics()},mounted:function(){},methods:{nextLimit:function(){this.limit=2},prevLimit:function(){this.limit=1},typeChange:function(t){this.type=1*t.detail.value,console.log(this.type,"this.typ+++++++++++++++++++++")},anonymousChange:function(t){"1"!==t.detail.value?this.IsAnonymous=!1:this.IsAnonymous=!0},bindLogChange:function(t){this.log=this.logs[t.detail.value].name,this.logistics=this.logs[t.detail.value].id},bindWzChange:function(t){-1===this.hadadd.indexOf(t.detail.value)?(this.hadadd.push(t.detail.value),this.wzList[this.currentWzIndex].project_donation_name=this.wzs[t.detail.value].name,this.wzList[this.currentWzIndex].project_donation_id=this.wzs[t.detail.value].id,console.log(this.wzList)):this.$api.msg("该分类已添加")},bindAreaChange:function(t){this.project_area=this.areas[t.detail.value].id,this.area=this.areas[t.detail.value].name},openChange:function(t){"1"!==t.detail.value?this.Isopen=!1:this.Isopen=!0},imgsub:function(t,e){var i=this;console.log(e,t),(0,n.upload)({filename:""}).then((function(n){console.log(n,"6666666666"),i.$set(t,e,n[0].url),e<2&&i.$set(t,e+1,"")}))},dianji:function(t){this.currentWzIndex=t},addMore:function(){this.wzList.push({project_donation_id:null,project_donation_num:null,project_donation_name:null})},sub:function(){var t=this;if(0===t.type){if(""==t.name)return void t.$api.msg("请输入您的姓名");var e=/^(\+?0?86-?)?1[\d]\d{9}$/;if(!e.test(t.phone))return void t.$api.msg("请填写正确的手机号码")}else{if(""==t.unit)return void t.$api.msg("请输入捐赠单位");if(""==t.dwPeople)return void t.$api.msg("请输入联系人");if(""==t.tel)return void t.$api.msg("请输入单位电话")}if(""!=t.log)if(""!=t.area){try{t.wzList.forEach((function(t){if(!t.project_donation_id)throw"请选择物资类别";if(!t.project_donation_num||0==t.project_donation_num)throw"请填写捐赠数量"}))}catch(s){return void t.$api.msg(s)}var i=t.swimg.toString().replace(/,$/,""),n=t.zlimg.toString().replace(/,$/,""),o=t.jzimg.toString().replace(/,$/,""),r=t.wzList;console.log(r,"物资参数"),""!=i?""!=n?(console.log(i,"5555555555555555"),uni.showLoading({title:"提交中...",mask:!0}),(0,a.createUser)({project_area:t.project_area,name:0===t.type?t.name:t.unit,phone:t.phone,tel:t.tel,contacts:t.contacts,user_type:t.type,logistics:t.logistics,anonymous:t.IsAnonymous?1:0,invoice:t.Isopen?1:0}).then((function(e){console.log(JSON.parse(e.msg),"99999999999999999999999999");var s=JSON.parse(e.msg);console.log(s.name,"8888888888888"),(0,a.createProject)({project_area:t.project_area,name:0===t.type?t.name:t.unit,project_id:t.project_id,project_user_id:+s.id,matter:i,qc:n,worth:o,logistics:t.logistics,item:r}).then((function(t){console.log(JSON.parse(t.msg),"77777777777777777777"),uni.hideLoading(),uni.navigateTo({url:"/pages/joinSuc/joinsuccess"})})).catch((function(t){uni.hideLoading(),console.log(t)}))})).catch((function(t){uni.hideLoading(),console.log(t)}))):t.$api.msg("请上传质量合格证书"):t.$api.msg("请上传实物照片")}else t.$api.msg("请选择捐赠地址");else t.$api.msg("请选择物流方式")},getDonationInfo:function(){var t=this;(0,a.getDonationInfo)().then((function(e){var i=e.data;t.wzs=i,console.log(t.wzs,"获取所有物资")}))},getLogistics:function(){var t=this;(0,a.getLogistics)().then((function(e){var i=e.data;console.log("88888888888888888888",i),t.logs=i}))},dele:function(){this.$delete(this.wzList,this.wzList.length-1)},getAllArea:function(){var t=this;(0,a.getAllArea)().then((function(e){var i=e.data;console.log(i,"6666666666"),t.areas=t.areas.concat(i)}))}}};e.default=o},c9db:function(t,e,i){"use strict";i.r(e);var n=i("2a71"),a=i("7429");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("e66d");var r,s=i("f0c5"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"35b77a99",null,!1,n["a"],r);e["default"]=c.exports},dbce:function(t,e,i){i("e439"),i("d3b7"),i("3ca3"),i("10d1"),i("ddb0");var n=i("7037");function a(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return a=function(){return t},t}function o(t){if(t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!==typeof t)return{default:t};var e=a();if(e&&e.has(t))return e.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var s=o?Object.getOwnPropertyDescriptor(t,r):null;s&&(s.get||s.set)?Object.defineProperty(i,r,s):i[r]=t[r]}return i["default"]=t,e&&e.set(t,i),i}t.exports=o},e66d:function(t,e,i){"use strict";var n=i("b1a4"),a=i.n(n);a.a},f183:function(t,e,i){var n=i("d012"),a=i("861d"),o=i("5135"),r=i("9bf2").f,s=i("90e3"),c=i("bb2f"),l=s("meta"),u=0,d=Object.isExtensible||function(){return!0},f=function(t){r(t,l,{value:{objectID:"O"+ ++u,weakData:{}}})},v=function(t,e){if(!a(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,l)){if(!d(t))return"F";if(!e)return"E";f(t)}return t[l].objectID},p=function(t,e){if(!o(t,l)){if(!d(t))return!0;if(!e)return!1;f(t)}return t[l].weakData},g=function(t){return c&&h.REQUIRED&&d(t)&&!o(t,l)&&f(t),t},h=t.exports={REQUIRED:!1,fastKey:v,getWeakData:p,onFreeze:g};n[l]=!0}}]);