@xysfe/actui
Version:
A fantastic mobile ui lib implement by Vue
1 lines • 12.7 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@xysfe/actui/es/assets/utils/create/index.js"),require("@xysfe/actui/es/assets/mixins/visible.js"),require("@xysfe/actui/es/assets/mixins/popup.js"),require("@xysfe/actui/es/Toast/index.js"),require("@xysfe/actui/es/ContactBook/index.js")):"function"==typeof define&&define.amd?define(["@xysfe/actui/es/assets/utils/create/index.js","@xysfe/actui/es/assets/mixins/visible.js","@xysfe/actui/es/assets/mixins/popup.js","@xysfe/actui/es/Toast/index.js","@xysfe/actui/es/ContactBook/index.js"],e):"object"==typeof exports?exports.GoldContactBook=e(require("@xysfe/actui/es/assets/utils/create/index.js"),require("@xysfe/actui/es/assets/mixins/visible.js"),require("@xysfe/actui/es/assets/mixins/popup.js"),require("@xysfe/actui/es/Toast/index.js"),require("@xysfe/actui/es/ContactBook/index.js")):t.GoldContactBook=e(t["@xysfe/actui/es/assets/utils/create/index.js"],t["@xysfe/actui/es/assets/mixins/visible.js"],t["@xysfe/actui/es/assets/mixins/popup.js"],t["@xysfe/actui/es/Toast/index.js"],t["@xysfe/actui/es/ContactBook/index.js"])}("undefined"!=typeof self?self:this,function(t,e,n,r,o){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="../es",e(e.s=1979)}({0:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},10:function(t,e,n){var r=n(4),o=n(41),i=n(38),a=Object.defineProperty;e.f=n(3)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},109:function(t,e){t.exports=n},12:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},1209:function(t,e,n){"use strict";var r=n(70),o=n.n(r),i=n(40),a=n.n(i),s=n(109),u=n.n(s),c=n(1981),f=n.n(c),l=n(635),p=n.n(l);e.a={name:"ActGoldContactBook",mixins:[a.a,u.a],data:function(){return{paramData:null,extParamData:null}},props:{param:{type:Object,default:function(){return{}}},extParam:{type:Object,default:function(){return{}}},brandColor:{type:String,default:"#8c7fee"},btnColor:{type:String,default:"#ff5a6e"},listUrl:{type:String,default:"/UserContact/getContactListsV3"},defaultContactId:{type:[Number,String],default:""},isCps:{type:Boolean,default:!1}},computed:{paramValue:function(){return this.paramData||this.param},extParamValue:function(){return this.extParamData||this.extParam},ownInfo:function(){var t=this.paramValue,e=t.scene,n=t.insured,r=t.applicant,o=t.beneficiaries,i=t.contactId,a=void 0;return"applicant"===e?a=r:"insureds"===e?a=n:"beneficiaries"===e&&(a=o),this.paramValue.hasOwnProperty("contactId")?{contactId:i}:a?{truename:a[e+".cname"],sex:a[e+".sex"],birth:a[e+".birth"],certId:a[e+".id"]}:void 0},relatedPerson:function(){var t=this.paramValue,e=t.scene,n=t.insured,r=t.applicant,o=void 0,i="";if("insureds"===e?(o=r,i="applicant"):"beneficiaries"===e&&(o=n,i="insureds"),o)return{truename:o[i+".cname"],sex:o[i+".sex"],birth:o[i+".birth"]}},listApiPostData:function(){var t={},e=this.paramValue,n=e.scene,r=e.productId,i=e.groupId,a=e.gid,s=e.versionId;return n&&(t.scene=n),r&&(t.productId=r),i&&(t.groupId=i),a&&(t.gid=a),s&&(t.versionId=s),o()(t,this.extParamValue)},sceneText:function(){var t=this.paramValue,e=t.scene,n=t.customTitle;return n||("applicant"===e?"投保人":"insureds"===e?"被保险人":"beneficiaries"===e?"受益人":"联系人")},trackKey:function(){return this.paramValue.scene},defaultSelect:function(){return this.ownInfo}},methods:{setData:function(t){var e=t.param,n=t.extParam;this.paramData=e,this.extParamData=n},onConfirm:function(t){var e=this.paramValue,n=e.scene,r=e.site;if(!t)return void this.$emit("confirm",null,r);var i=t.contact_id,a=t.addr,s=t.bank,u=t.birth,c=t.certificate,f=t.detail,l=t.email,p=t.ext1,d=t.mobile,x=t.relation,v=t.sex,m=t.socialins,y=t.truename,b=t.surname_py,h=t.name_py,_=t.annualIncome,j=t.passport_no,g={};if(a){var C={1:"resident",2:"office",3:"socialIns"},O=a[0]||{},P=O.type,w=O.province,I=O.city,S=O.district,k=O.detail,T=O.post,E=C[P]||"";if(w&&I&&S){var V=[w,I,S];g[E+"Addr"]=V}k&&(g[E+"Detail"]=k),T&&(g[E+"Post"]=T)}var B=s&&s[0]||{},M=c&&c[0]||{},D=f||{},q={birth:u,email:l,ext1:p,mobile:d,sex:v,socialins:m,cname:y,contactId:i,surname_py:b,name_py:h,annualIncome:_,passport_no:j};"insureds"===n?q.relationToApply=x:"beneficiaries"===n&&(q.relationToInsured=x);var $=o()({},g,B,M,q,D),A=[],U=["cname","birth","sex","id","idType","mobile","email"],R=void 0;for(var G in $)if($.hasOwnProperty(G)){var F=$[G];""!==F&&void 0!==F&&null!==F&&("relationToApply"!==G&&"relationToInsured"!==G||-1!=~~F)&&(R={key:n+"."+G,value:F,site:r},U.indexOf(G)>-1&&(R.fold=!0),A.push(R))}this.$emit("confirm",A,r)},onError:function(t){this.$emit("error",t)}},components:{ActContactBook:f.a,ActToast:p.a}}},13:function(t,e,n){var r=n(34),o=n(15);t.exports=function(t){return r(o(t))}},14:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},15:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},16:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},17:function(t,e,n){var r=n(19);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},18:function(t,e){t.exports=!0},19:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},1979:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(26),o=n.n(r),i=n(1980);i.a.install=function(t){t.component(i.a.name,i.a),t.prototype.$createGoldContactBook=o()(i.a,t)},e.default=i.a},1980:function(t,e,n){"use strict";var r=n(1209),o=n(1982),i=n(7),a=Object(i.a)(r.a,o.a,o.b,!1,null,null,null);a.options.__file="src\\components\\GoldContactBook\\src\\index.vue",e.a=a.exports},1981:function(t,e){t.exports=o},1982:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return o});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"act-gold-contact-book"},[n("act-contact-book",{attrs:{brandColor:t.brandColor,defaultSelect:t.defaultSelect,extParam:t.listApiPostData,trackKey:t.trackKey,titleLabel:t.sceneText,listUrl:t.listUrl,saveUrl:"/userContact/saveContact",deleteUrl:"/userContact/delContact",editable:!0,addable:!0,showDisabled:!0,zIndex:t.zIndex,maskClosable:!0,isCps:t.isCps},on:{confirm:t.onConfirm,error:t.onError},model:{value:t.isVisible,callback:function(e){t.isVisible=e},expression:"isVisible"}}),t._v(" "),n("act-toast",{ref:"toast"})],1)},o=[];r._withStripped=!0},2:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},20:function(t,e,n){var r=n(31)("keys"),o=n(24);t.exports=function(t){return r[t]||(r[t]=o(t))}},22:function(t,e,n){var r=n(6),o=n(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},23:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},24:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},26:function(e,n){e.exports=t},28:function(t,e,n){var r=n(42),o=n(32);t.exports=Object.keys||function(t){return r(t,o)}},3:function(t,e,n){t.exports=!n(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},31:function(t,e,n){var r=n(2),o=n(0),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(18)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},32:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},33:function(t,e,n){var r=n(15);t.exports=function(t){return Object(r(t))}},34:function(t,e,n){var r=n(14);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},35:function(t,e,n){var r=n(16),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},38:function(t,e,n){var r=n(6);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},4:function(t,e,n){var r=n(6);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},40:function(t,n){t.exports=e},41:function(t,e,n){t.exports=!n(3)&&!n(12)(function(){return 7!=Object.defineProperty(n(22)("div"),"a",{get:function(){return 7}}).a})},42:function(t,e,n){var r=n(8),o=n(13),i=n(46)(!1),a=n(20)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~i(c,n)||c.push(n));return c}},46:function(t,e,n){var r=n(13),o=n(35),i=n(47);t.exports=function(t){return function(e,n,a){var s,u=r(e),c=o(u.length),f=i(a,c);if(t&&n!=n){for(;c>f;)if((s=u[f++])!=s)return!0}else for(;c>f;f++)if((t||f in u)&&u[f]===n)return t||f||0;return!t&&-1}}},47:function(t,e,n){var r=n(16),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},5:function(t,e,n){var r=n(10),o=n(23);t.exports=n(3)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},51:function(t,e){e.f={}.propertyIsEnumerable},57:function(t,e){e.f=Object.getOwnPropertySymbols},6:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},635:function(t,e){t.exports=r},7:function(t,e,n){"use strict";function r(t,e,n,r,o,i,a,s){t=t||{};var u=typeof t.default;"object"!==u&&"function"!==u||(t=t.default);var c="function"==typeof t?t.options:t;e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId=i);var f;if(a?(f=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=f):o&&(f=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),f)if(c.functional){c._injectStyles=f;var l=c.render;c.render=function(t,e){return f.call(e),l(t,e)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,f):[f]}return{exports:t,options:c}}e.a=r},70:function(t,e,n){t.exports={default:n(79),__esModule:!0}},79:function(t,e,n){n(80),t.exports=n(2).Object.assign},8:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},80:function(t,e,n){var r=n(9);r(r.S+r.F,"Object",{assign:n(81)})},81:function(t,e,n){"use strict";var r=n(3),o=n(28),i=n(57),a=n(51),s=n(33),u=n(34),c=Object.assign;t.exports=!c||n(12)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r})?function(t,e){for(var n=s(t),c=arguments.length,f=1,l=i.f,p=a.f;c>f;)for(var d,x=u(arguments[f++]),v=l?o(x).concat(l(x)):o(x),m=v.length,y=0;m>y;)d=v[y++],r&&!p.call(x,d)||(n[d]=x[d]);return n}:c},9:function(t,e,n){var r=n(0),o=n(2),i=n(17),a=n(5),s=n(8),u=function(t,e,n){var c,f,l,p=t&u.F,d=t&u.G,x=t&u.S,v=t&u.P,m=t&u.B,y=t&u.W,b=d?o:o[e]||(o[e]={}),h=b.prototype,_=d?r:x?r[e]:(r[e]||{}).prototype;d&&(n=e);for(c in n)(f=!p&&_&&void 0!==_[c])&&s(b,c)||(l=f?_[c]:n[c],b[c]=d&&"function"!=typeof _[c]?n[c]:m&&f?i(l,r):y&&_[c]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):v&&"function"==typeof l?i(Function.call,l):l,v&&((b.virtual||(b.virtual={}))[c]=l,t&u.R&&h&&!h[c]&&a(h,c,l)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u}})});