| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-form-donateLove"],{"10d1":function(t,e,n){"use strict";var i,r=n("da84"),a=n("e2cc"),o=n("f183"),s=n("6d61"),c=n("acac"),u=n("861d"),l=n("69f3").enforce,d=n("7f9a"),f=!r.ActiveXObject&&"ActiveXObject"in r,p=Object.isExtensible,v=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},h=t.exports=s("WeakMap",v,c);if(d&&f){i=c.getConstructor(v,"WeakMap",!0),o.REQUIRED=!0;var b=h.prototype,g=b["delete"],y=b.has,m=b.get,w=b.set;a(b,{delete:function(t){if(u(t)&&!p(t)){var e=l(this);return e.frozen||(e.frozen=new i),g.call(this,t)||e.frozen["delete"](t)}return g.call(this,t)},has:function(t){if(u(t)&&!p(t)){var e=l(this);return e.frozen||(e.frozen=new i),y.call(this,t)||e.frozen.has(t)}return y.call(this,t)},get:function(t){if(u(t)&&!p(t)){var e=l(this);return e.frozen||(e.frozen=new i),y.call(this,t)?m.call(this,t):e.frozen.get(t)}return m.call(this,t)},set:function(t,e){if(u(t)&&!p(t)){var n=l(this);n.frozen||(n.frozen=new i),y.call(this,t)?w.call(this,t,e):n.frozen.set(t,e)}else w.call(this,t,e);return this}})}},"23d2":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/*功能栏左侧小图标*/.top[data-v-0b29800e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;background-color:#e63931;color:#fff;padding:%?22?% 0}.box .box-item[data-v-0b29800e]{background-color:#fff;padding:%?24?%;display:-webkit-box;display:-webkit-flex;display:flex;border-bottom:%?1?% solid #f2f2f2}.box .box-left[data-v-0b29800e]{width:%?200?%;-webkit-flex-shrink:0;flex-shrink:0}.box .box-right[data-v-0b29800e]{width:100%;color:#999}.switch-box[data-v-0b29800e]{margin-top:%?24?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:%?16?% %?24?%;color:#7b7b7b;background-color:#fff;border-bottom:%?1?% solid #f2f2f2;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.infoOptional[data-v-0b29800e]{padding:%?20?% %?24?%}.submit[data-v-0b29800e]{background-color:#e63931;color:#fff;padding:%?20?% 0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;border-radius:%?12?%;margin:%?32?%}',""]),t.exports=e},"582d":function(t,e,n){"use strict";var i=n("dbce");Object.defineProperty(e,"__esModule",{value:!0}),e.addrescuer=a,e.upload=o,e.articlesave=s,e.myarticle=c,e.replyask=u,e.replylist=l,e.myreplylist=d,e.mechanism=f,e.chosintention=p,e.joinDona=v,e.getDonaList=h,e.MyDonaList=b,e.getCertificate=g;var r=i(n("9fc4"));function a(t){return(0,r.default)({url:"/api/add_rescuer",method:"post",data:t})}function o(t){return(0,r.upFilse)({url:"/api/upload/image",method:"post",data:t})}function s(t){return(0,r.default)({url:"/api/circle/articlesave",method:"post",data:t})}function c(t){return(0,r.default)({url:"/api/circle/myarticle",method:"post",data:t})}function u(t){return(0,r.default)({url:"/api/add_a",method:"post",data:t})}function l(t){return(0,r.default)({url:"/api/q_list",method:"get",data:t})}function d(t){return(0,r.default)({url:"/api/a_list",method:"get",data:t})}function f(t){return(0,r.default)({url:"/api/mechanism",method:"get",data:t})}function p(t){return(0,r.default)({url:"/api/intention",method:"get",data:t})}function v(t){return(0,r.default)({url:"/api/intention",method:"get",data:t})}function h(t){return(0,r.default)({url:"/api/bulletin",method:"get",data:t})}function b(t){return(0,r.default)({url:"/api/my_donate",method:"get",data:t})}function g(t){return(0,r.default)({url:"/api/detail_training",method:"get",data:t})}},6159:function(t,e,n){"use strict";var i=n("4ea4");n("d81d"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("96cf");var r=i(n("1da1")),a=n("582d"),o=n("832b"),s={data:function(){return{index:0,intention:"",way:"",money:"",is_public:!1,is_receiptsL:!1,donate_er:"",mobile:"",address:"",chooseDire:[],chooseType:["个人","单位"],payLoding:!1,froms:"",type:""}},onLoad:function(t){console.log(333,t)},methods:{addType:function(t){var e=this;(0,a.chosintention)({}).then((function(t){var n=t.data;console.log(n),e.chooseDire=n.map((function(t){return t.title}))})).catch()},PickerDire:function(t){console.log(334,this.chooseDire),this.intention=this.chooseDire[t.target.value],this.index=t.target.value+1},PickerType:function(t){this.way=this.chooseType[t.target.value],this.index=t.target.value+1},switch1Change:function(t){this.is_public=t.detail.value,console.log(this.is_public)},switch2Change:function(t){this.is_receiptsL=t.detail.value,console.log(this.is_receiptsL)},confirm:function(){var t=(0,r.default)(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this,e.payLoding=!0,e.froms=uni.getStorageSync("weichatBrowser")||"",1!=e.type?e.firstCreateOrder():e.orderMoneyPay();case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),firstCreateOrder:function(){var t=this,e=t.$api.prePage(),n={use_integral_pink:t.use_integral_pink,real_name:e.addressData.real_name,phone:e.addressData.phone,couponId:e.couponChecked.id,addressId:e.addressData.id,useIntegral:e.checkedPoints?1:0,useShopping_card:e.shoppingPoints?1:0,payType:t.payName,mark:e.idcardName+e.idcardNum,from:t.froms?"weixin":"H5",shipping_type:1};6==t.typegoods?n.level=t.level:n.pinkId=t.pinkid,(0,o.createOrderkey)(n,t.orderKey).then((function(e){var n=e.data,i=e.status,r=e.msg;t.orderId=n.result.orderId,t.payLoding=!1,"ORDER_EXIST"!=n.status?"yue"==t.payName?200==i&&"SUCCESS"==n.status?t.paySuccessTo():(alert(r),t.$api.msg(r)):t.orderMoneyPay():t.$api.msg(r)})).catch((function(t){alert(t.message),console.log(t)}))}}};e.default=s},"6d61":function(t,e,n){"use strict";var i=n("23e7"),r=n("da84"),a=n("94ca"),o=n("6eeb"),s=n("f183"),c=n("2266"),u=n("19aa"),l=n("861d"),d=n("d039"),f=n("1c7e"),p=n("d44e"),v=n("7156");t.exports=function(t,e,n){var h=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),g=h?"set":"add",y=r[t],m=y&&y.prototype,w=y,x={},k=function(t){var e=m[t];o(m,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(b&&!l(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return b&&!l(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(b&&!l(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(a(t,"function"!=typeof y||!(b||m.forEach&&!d((function(){(new y).entries().next()})))))w=n.getConstructor(e,t,h,g),s.REQUIRED=!0;else if(a(t,!0)){var _=new w,C=_[g](b?{}:-0,1)!=_,j=d((function(){_.has(1)})),O=f((function(t){new y(t)})),D=!b&&d((function(){var t=new y,e=5;while(e--)t[g](e,e);return!t.has(-0)}));O||(w=e((function(e,n){u(e,w,t);var i=v(new y,e,w);return void 0!=n&&c(n,i[g],i,h),i})),w.prototype=m,m.constructor=w),(j||D)&&(k("delete"),k("has"),h&&k("get")),(D||C)&&k(g),b&&m.clear&&delete m.clear}return x[t]=w,i({global:!0,forced:w!=y},x),p(w,t),b||n.setStrong(w,t,h),w}},7037:function(t,e,n){function i(e){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?t.exports=i=function(t){return typeof t}:t.exports=i=function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(e)}n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0"),t.exports=i},"832b":function(t,e,n){"use strict";var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.computedOrderkey=a,e.createOrderkey=o,e.balance=s,e.orderPay=c,e.getProjectList=u,e.getProjectInfo=l,e.createProject=d,e.getLogistics=f,e.getAllArea=p,e.getDonationInfo=v,e.getMyorder=h,e.createUser=b,e.getAllOrder=g,e.getUserList=y,e.getBill=m,e.getOrderInfo=w;var r=i(n("9fc4"));function a(t){return(0,r.default)({url:"/api/order/computed/"+t.orderkey,method:"post",data:t})}function o(t,e){return(0,r.default)({url:"/api/donate/create",method:"post",data:t})}function s(t){return(0,r.default)({url:"/api/user/balance",method:"get",data:t})}function c(t){return(0,r.default)({url:"/api/order/pay",method:"post",data:t})}function u(t){return(0,r.default)({url:"/api/project/list",method:"get",data:t})}function l(t){return(0,r.default)({url:"/api/project/info",method:"get",data:t})}function d(t){return(0,r.default)({url:"/api/project/order_create",method:"post",data:t})}function f(t){return(0,r.default)({url:"/api/project/logistics",method:"get",data:t})}function p(t){return(0,r.default)({url:"/api/project/area",method:"get",data:t})}function v(t){return(0,r.default)({url:"/api/project/Donation_info",method:"get",data:t})}function h(t){return(0,r.default)({url:"/api/project/myorder",method:"post",data:t})}function b(t){return(0,r.default)({url:"/api/project/create_user",method:"post",data:t})}function g(t){return(0,r.default)({url:"/api/project/all_order",method:"post",data:t})}function y(t){return(0,r.default)({url:"/api/project/user_list",method:"get",data:t})}function m(t){return(0,r.default)({url:"/api/project/bill",method:"post",data:t})}function w(t){return(0,r.default)({url:"/api/project/order_info",method:"get",data:t})}},"94fa":function(t,e,n){"use strict";var i=n("b214"),r=n.n(i);r.a},a0f0:function(t,e,n){"use strict";n.r(e);var i=n("ac53"),r=n("cbd2");for(var a in r)"default"!==a&&function(t){n.d(e,t,(function(){return r[t]}))}(a);n("94fa");var o,s=n("f0c5"),c=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"0b29800e",null,!1,i["a"],o);e["default"]=c.exports},ac53:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"content"},[n("v-uni-view",{staticClass:"top"},[t._v("爱心捐赠")]),n("v-uni-view",{staticClass:"box"},[n("v-uni-view",{staticClass:"box-item"},[n("v-uni-view",{staticClass:"box-left"},[t._v("捐款意向")]),n("v-uni-view",{staticClass:"box-right"},[n("v-uni-picker",{staticClass:"box-right",attrs:{value:t.index,range:t.chooseDire},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.PickerDire.apply(void 0,arguments)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.addType.apply(void 0,arguments)}}},[n("v-uni-text",[t._v(t._s(t.intention||"请选择捐款意向"))])],1)],1)],1),n("v-uni-view",{staticClass:"box-item"},[n("v-uni-view",{staticClass:"box-left"},[t._v("捐款方式")]),n("v-uni-view",{staticClass:"box-right"},[n("v-uni-picker",{staticClass:"box-right",attrs:{value:t.index,range:t.chooseType},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.PickerType.apply(void 0,arguments)}}},[n("v-uni-text",[t._v(t._s(t.way||"请选择捐款方式"))])],1)],1)],1),n("v-uni-view",{staticClass:"box-item"},[n("v-uni-view",{staticClass:"box-left"},[t._v("捐款金额")]),n("v-uni-view",{staticClass:"box-right"},[n("v-uni-input",{attrs:{type:"text",placeholder:"单位(元)"},model:{value:t.money,callback:function(e){t.money=e},expression:"money"}})],1)],1)],1),n("v-uni-view",{staticClass:"switch-box"},[n("v-uni-view",{staticClass:"switch-left"},[t._v("是否实名公开")]),n("v-uni-view",{staticClass:"switch-right"},[n("v-uni-switch",{staticStyle:{transform:"scale(0.7,0.7)"},attrs:{checked:t.is_public,color:"#E63931"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.switch1Change.apply(void 0,arguments)}}})],1)],1),n("v-uni-view",{staticClass:"switch-box"},[n("v-uni-view",{staticClass:"switch-left"},[t._v("寄发票")]),n("v-uni-view",{staticClass:"switch-right"},[n("v-uni-switch",{staticStyle:{transform:"scale(0.7,0.7)"},attrs:{checked:t.is_receiptsL,color:"#E63931"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.switch2Change.apply(void 0,arguments)}}})],1)],1),n("v-uni-view",{staticClass:"infoOptional"},[t._v("信息(选填)")]),n("v-uni-view",{staticClass:"box"},[n("v-uni-view",{staticClass:"box-item"},[n("v-uni-view",{staticClass:"box-left"},[t._v("捐款人/单位")]),n("v-uni-view",{staticClass:"box-right"},[n("v-uni-input",{attrs:{type:"text",placeholder:"请选择捐款人/单位"},model:{value:t.donate_er,callback:function(e){t.donate_er=e},expression:"donate_er"}})],1)],1),n("v-uni-view",{staticClass:"box-item"},[n("v-uni-view",{staticClass:"box-left"},[t._v("手机号")]),n("v-uni-view",{staticClass:"box-right"},[n("v-uni-input",{attrs:{type:"text",placeholder:"请填写手机号"},model:{value:t.mobile,callback:function(e){t.mobile=e},expression:"mobile"}})],1)],1),n("v-uni-view",{staticClass:"box-item"},[n("v-uni-view",{staticClass:"box-left"},[t._v("联系地址")]),n("v-uni-view",{staticClass:"box-right"},[n("v-uni-input",{attrs:{type:"text",placeholder:"请输入联系地址(用于寄发票)"},model:{value:t.address,callback:function(e){t.address=e},expression:"address"}})],1)],1)],1),n("v-uni-view",{staticClass:"submit",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),!t.payLoding&&t.confirm()}}},[t._v("提交")])],1)},a=[]},acac:function(t,e,n){"use strict";var i=n("e2cc"),r=n("f183").getWeakData,a=n("825a"),o=n("861d"),s=n("19aa"),c=n("2266"),u=n("b727"),l=n("5135"),d=n("69f3"),f=d.set,p=d.getterFor,v=u.find,h=u.findIndex,b=0,g=function(t){return t.frozen||(t.frozen=new y)},y=function(){this.entries=[]},m=function(t,e){return v(t.entries,(function(t){return t[0]===e}))};y.prototype={get:function(t){var e=m(this,t);if(e)return e[1]},has:function(t){return!!m(this,t)},set:function(t,e){var n=m(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=h(this.entries,(function(e){return e[0]===t}));return~e&&this.entries.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,u){var d=t((function(t,i){s(t,d,e),f(t,{type:e,id:b++,frozen:void 0}),void 0!=i&&c(i,t[u],t,n)})),v=p(e),h=function(t,e,n){var i=v(t),o=r(a(e),!0);return!0===o?g(i).set(e,n):o[i.id]=n,t};return i(d.prototype,{delete:function(t){var e=v(this);if(!o(t))return!1;var n=r(t);return!0===n?g(e)["delete"](t):n&&l(n,e.id)&&delete n[e.id]},has:function(t){var e=v(this);if(!o(t))return!1;var n=r(t);return!0===n?g(e).has(t):n&&l(n,e.id)}}),i(d.prototype,n?{get:function(t){var e=v(this);if(o(t)){var n=r(t);return!0===n?g(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return h(this,t,e)}}:{add:function(t){return h(this,t,!0)}}),d}}},b214:function(t,e,n){var i=n("23d2");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("4f06").default;r("5bbf2466",i,!0,{sourceMap:!1,shadowMode:!1})},bb2f:function(t,e,n){var i=n("d039");t.exports=!i((function(){return Object.isExtensible(Object.preventExtensions({}))}))},cbd2:function(t,e,n){"use strict";n.r(e);var i=n("6159"),r=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=r.a},dbce:function(t,e,n){n("e439"),n("d3b7"),n("3ca3"),n("10d1"),n("ddb0");var i=n("7037");function r(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return r=function(){return t},t}function a(t){if(t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var e=r();if(e&&e.has(t))return e.get(t);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=t[o]}return n["default"]=t,e&&e.set(t,n),n}t.exports=a},f183:function(t,e,n){var i=n("d012"),r=n("861d"),a=n("5135"),o=n("9bf2").f,s=n("90e3"),c=n("bb2f"),u=s("meta"),l=0,d=Object.isExtensible||function(){return!0},f=function(t){o(t,u,{value:{objectID:"O"+ ++l,weakData:{}}})},p=function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,u)){if(!d(t))return"F";if(!e)return"E";f(t)}return t[u].objectID},v=function(t,e){if(!a(t,u)){if(!d(t))return!0;if(!e)return!1;f(t)}return t[u].weakData},h=function(t){return c&&b.REQUIRED&&d(t)&&!a(t,u)&&f(t),t},b=t.exports={REQUIRED:!1,fastKey:p,getWeakData:v,onFreeze:h};i[u]=!0}}]);
|