| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-form-donateLove"],{"10d1":function(t,e,n){"use strict";var i,a=n("da84"),r=n("e2cc"),o=n("f183"),s=n("6d61"),c=n("acac"),u=n("861d"),l=n("69f3").enforce,d=n("7f9a"),f=!a.ActiveXObject&&"ActiveXObject"in a,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,y=b["delete"],g=b.has,w=b.get,m=b.set;r(b,{delete:function(t){if(u(t)&&!p(t)){var e=l(this);return e.frozen||(e.frozen=new i),y.call(this,t)||e.frozen["delete"](t)}return y.call(this,t)},has:function(t){if(u(t)&&!p(t)){var e=l(this);return e.frozen||(e.frozen=new i),g.call(this,t)||e.frozen.has(t)}return g.call(this,t)},get:function(t){if(u(t)&&!p(t)){var e=l(this);return e.frozen||(e.frozen=new i),g.call(this,t)?w.call(this,t):e.frozen.get(t)}return w.call(this,t)},set:function(t,e){if(u(t)&&!p(t)){var n=l(this);n.frozen||(n.frozen=new i),g.call(this,t)?m.call(this,t,e):n.frozen.set(t,e)}else m.call(this,t,e);return this}})}},2727:function(t,e,n){"use strict";n.r(e);var i=n("eceb"),a=n.n(i);for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},3922:function(t,e,n){"use strict";var i=n("e963"),a=n.n(i);a.a},"6d61":function(t,e,n){"use strict";var i=n("23e7"),a=n("da84"),r=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"),y=h?"set":"add",g=a[t],w=g&&g.prototype,m=g,x={},k=function(t){var e=w[t];o(w,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(r(t,"function"!=typeof g||!(b||w.forEach&&!d((function(){(new g).entries().next()})))))m=n.getConstructor(e,t,h,y),s.REQUIRED=!0;else if(r(t,!0)){var _=new m,C=_[y](b?{}:-0,1)!=_,O=d((function(){_.has(1)})),j=f((function(t){new g(t)})),D=!b&&d((function(){var t=new g,e=5;while(e--)t[y](e,e);return!t.has(-0)}));j||(m=e((function(e,n){u(e,m,t);var i=v(new g,e,m);return void 0!=n&&c(n,i[y],i,h),i})),m.prototype=w,w.constructor=m),(O||D)&&(k("delete"),k("has"),h&&k("get")),(D||C)&&k(y),b&&w.clear&&delete w.clear}return x[t]=m,i({global:!0,forced:m!=g},x),p(m,t),b||n.setStrong(m,t,h),m}},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},"7a70":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},"84ce":function(t,e,n){"use strict";var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.computedOrderkey=r,e.createOrderkey=o,e.balance=s,e.orderPay=c;var a=i(n("8752"));function r(t){return(0,a.default)({url:"/api/order/computed/"+t.orderkey,method:"post",data:t})}function o(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})}},"91a9":function(t,e,n){"use strict";var i=n("dbce");Object.defineProperty(e,"__esModule",{value:!0}),e.addrescuer=r,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=y;var a=i(n("8752"));function r(t){return(0,a.default)({url:"/api/add_rescuer",method:"post",data:t})}function o(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 u(t){return(0,a.default)({url:"/api/add_a",method:"post",data:t})}function l(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 p(t){return(0,a.default)({url:"/api/intention",method:"get",data:t})}function v(t){return(0,a.default)({url:"/api/intention",method:"get",data:t})}function h(t){return(0,a.default)({url:"/api/bulletin",method:"get",data:t})}function b(t){return(0,a.default)({url:"/api/my_donate",method:"get",data:t})}function y(t){return(0,a.default)({url:"/api/detail_training",method:"get",data:t})}},"937d":function(t,e,n){"use strict";n.r(e);var i=n("eb6d"),a=n("2727");for(var r in a)"default"!==r&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("3922");var o,s=n("f0c5"),c=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"0b29800e",null,!1,i["a"],o);e["default"]=c.exports},acac:function(t,e,n){"use strict";var i=n("e2cc"),a=n("f183").getWeakData,r=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,y=function(t){return t.frozen||(t.frozen=new g)},g=function(){this.entries=[]},w=function(t,e){return v(t.entries,(function(t){return t[0]===e}))};g.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 n=w(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=a(r(e),!0);return!0===o?y(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=a(t);return!0===n?y(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=a(t);return!0===n?y(e).has(t):n&&l(n,e.id)}}),i(d.prototype,n?{get:function(t){var e=v(this);if(o(t)){var n=a(t);return!0===n?y(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}}},bb2f:function(t,e,n){var i=n("d039");t.exports=!i((function(){return Object.isExtensible(Object.preventExtensions({}))}))},dbce:function(t,e,n){n("e439"),n("d3b7"),n("3ca3"),n("10d1"),n("ddb0");var i=n("7037");function a(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return a=function(){return t},t}function r(t){if(t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var e=a();if(e&&e.has(t))return e.get(t);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var s=r?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=r},e963:function(t,e,n){var i=n("7a70");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("69948488",i,!0,{sourceMap:!1,shadowMode:!1})},eb6d:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return i}));var 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:"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)},r=[]},eceb: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 a=i(n("1da1")),r=n("91a9"),o=n("84ce"),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,r.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,a.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,a=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(a),t.$api.msg(a)):t.orderMoneyPay():t.$api.msg(a)})).catch((function(t){alert(t.message),console.log(t)}))}}};e.default=s},f183:function(t,e,n){var i=n("d012"),a=n("861d"),r=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(!a(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!r(t,u)){if(!d(t))return"F";if(!e)return"E";f(t)}return t[u].objectID},v=function(t,e){if(!r(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)&&!r(t,u)&&f(t),t},b=t.exports={REQUIRED:!1,fastKey:p,getWeakData:v,onFreeze:h};i[u]=!0}}]);
|