@xysfe/actui 1.6.70 → 1.6.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/GoldInsureNotice/index.js +1 -1
- package/es/Signature/index.js +1 -1
- package/es/Signature/style.css +1 -1
- package/es/index.js +1 -1
- package/es/style.css +1 -1
- package/lib/GoldInsureNotice/index.js +1 -1
- package/lib/Signature/index.js +1 -1
- package/lib/Signature/style.css +1 -1
- package/lib/index.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
!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/utils/helpers.js"),require("@xysfe/actui/es/assets/common/scroll.js"),require("@xysfe/actui/es/GoldDialog/index.js"),require("@xysfe/actui/es/Toast/index.js"),require("@xysfe/actui/es/DocPop/index.js"),require("@xysfe/actui/es/assets/common/scrollZoom/index.js"),require("@xysfe/actui/es/GoldDocLayer/index.js"),require("@xysfe/actui/es/assets/img/qa.png")):"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/utils/helpers.js","@xysfe/actui/es/assets/common/scroll.js","@xysfe/actui/es/GoldDialog/index.js","@xysfe/actui/es/Toast/index.js","@xysfe/actui/es/DocPop/index.js","@xysfe/actui/es/assets/common/scrollZoom/index.js","@xysfe/actui/es/GoldDocLayer/index.js","@xysfe/actui/es/assets/img/qa.png"],e):"object"==typeof exports?exports.GoldInsureNotice=e(require("@xysfe/actui/es/assets/utils/create/index.js"),require("@xysfe/actui/es/assets/mixins/visible.js"),require("@xysfe/actui/es/assets/utils/helpers.js"),require("@xysfe/actui/es/assets/common/scroll.js"),require("@xysfe/actui/es/GoldDialog/index.js"),require("@xysfe/actui/es/Toast/index.js"),require("@xysfe/actui/es/DocPop/index.js"),require("@xysfe/actui/es/assets/common/scrollZoom/index.js"),require("@xysfe/actui/es/GoldDocLayer/index.js"),require("@xysfe/actui/es/assets/img/qa.png")):t.GoldInsureNotice=e(t["@xysfe/actui/es/assets/utils/create/index.js"],t["@xysfe/actui/es/assets/mixins/visible.js"],t["@xysfe/actui/es/assets/utils/helpers.js"],t["@xysfe/actui/es/assets/common/scroll.js"],t["@xysfe/actui/es/GoldDialog/index.js"],t["@xysfe/actui/es/Toast/index.js"],t["@xysfe/actui/es/DocPop/index.js"],t["@xysfe/actui/es/assets/common/scrollZoom/index.js"],t["@xysfe/actui/es/GoldDocLayer/index.js"],t["@xysfe/actui/es/assets/img/qa.png"])}("undefined"!=typeof self?self:this,function(t,e,i,n,s,o,r,a,c,l){return function(t){function e(n){if(i[n])return i[n].exports;var s=i[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,e),s.l=!0,s.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="../es",e(e.s=1572)}({1065:function(t,e,i){"use strict";var n=i(89),s=i.n(n),o=i(577),r=i.n(o),a=i(1575),c=i(1584),l=i(35),h=(i.n(l),i(22)),u=i.n(h),d=i(220),f=i.n(d),p=i(222),m=i.n(p),v={file:1,health:2,img:3,healthNotice:4};e.a={name:"ActGoldInsureNotice",components:{ActGoldDialog:f.a,Toast:m.a},data:function(){return{noticeTitle:"健康告知",offlineTips:""}},props:{text:{type:String,default:"更多请查看"},groupId:{type:[Number,String],default:""},productId:{type:[Number,String],default:""},docInfo:{type:Object,default:function(){return{}}},health:{type:Object,default:function(){return null}},denyCarrers:{type:[Array,Object],default:function(){return null}},policy:{type:[String,Object],default:""},textColor:{type:String,default:"#666"},textFontSize:{type:[Number,String],default:13},brandColor:{type:String,default:"#8c7fee"},zIndex:{type:[String,Number],default:999},healthFiles:{type:Object,default:function(){return{}}},noticesData:{type:Object,default:null},showOther:{type:Boolean,default:!1},isMobileModel:{type:Boolean,default:!1}},computed:{docFile:function(){var t=this;if(!this.docInfo)return{terms:[],inform:[],otherdocs:[]};var e=JSON.parse(s()(this.docInfo));return e.needknow&&e.needknow.forEach(function(e,i){e.src||(e.src=location.protocol+"//"+location.host+"/insurance/termList?productid="+t.productId+"&groupid="+t.groupId+"&action=needknow&index="+i+"#/detail")}),e.terms&&e.terms.forEach(function(e,i){e.src||(e.src=location.protocol+"//"+location.host+"/insurance/termList?productid="+t.productId+"&groupid="+t.groupId+"&action=term&index="+i+"#/detail")}),e.inform&&e.inform.forEach(function(e,i){e.src||(e.src=location.protocol+"//"+location.host+"/insurance/termList?productid="+t.productId+"&groupid="+t.groupId+"&action=inform&index="+i+"#/detail")}),e.otherdocs&&this.showOther&&e.otherdocs.forEach(function(e,i){e.src||(e.src=location.protocol+"//"+location.host+"/insurance/termList?productid="+t.productId+"&groupid="+t.groupId+"&action=otherdocs&index="+i+"#/detail")}),e},termsAndInform:function(){return this.docFile.terms.concat(this.docFile.inform)},denyCarrerList:function(){return this.getDenyCarrerList(this.denyCarrers)},healthTitle:function(){var t="";return this.health&&(this.health.title?t=this.health.title:this.health.noticeType>0?t=2===Number(this.health.noticeType)?this.denyCarrerList.length?"旅游及职业告知":"旅游告知":this.denyCarrerList.length?"健康及职业告知":"健康告知":this.denyCarrerList.length&&(t=2===Number(this.health.noticeType)?"旅游告知":"职业工种告知")),t},noticeFiles:function(){var t=[];return this.docFile&&(this.docFile.needknow&&this.docFile.needknow.length&&t.push({title:"更多投保须知",track:"detail_noticemore",type:v.file,data:this.docFile.needknow}),(this.docFile.inform&&this.docFile.inform.length||this.docFile.terms&&this.docFile.terms.length)&&t.push({title:"保险条款及告知",track:"detail_term",type:v.file,data:this.termsAndInform}),this.docFile.otherdocs&&this.docFile.otherdocs.length&&this.showOther&&this.docFile.otherdocs.forEach(function(e,i){t.push({title:e.title,track:"detail_others",type:v.file,data:[e]})})),this.health&&((this.health.list&&this.health.list.length)>0||this.denyCarrerList&&this.denyCarrerList.length>0||this.health.tourism)&&t.push({title:this.healthTitle,track:"detail_health",type:v.health}),this.noticesData&&t.push({title:this.noticesData.noticesEndpointTitle||"健康告知",track:"detail_health",type:v.healthNotice}),this.policy&&t.push({title:this.policy.desc||"电子保单样本",track:"detail_epolicy",type:v.file,data:[{type:this.policy.type||2,urls:[this.policy.url]}]}),t},fontSize:function(){return Object(l.formatFontSize)(this.textFontSize)},openInWindow:function(){return!this.isMobileModel&&(!l.ua.isMobile&&!l.ua.isWx)}},methods:{onClick:function(t){var e=this;t.type===v.file?(this.docPop&&this.docPop.remove(),this.docPop=this.createDocPop({title:t.title,docData:t.data,brandColor:this.brandColor,openInWindow:this.openInWindow,zIndex:this.zIndex}).show()):t.type===v.img?(this.imagePieview?this.imagePieview.setData([t.data],0):this.imagePieview=this.$createImagePreview({images:[t.data],zoom:!0,zIndex:this.zIndex,opacity:1}),this.imagePieview.show()):t.type===v.health?(this.healthPop&&this.healthPop.remove(),this.healthPop=this.createHealthComponent({title:this.healthTitle,health:this.health,healthFiles:this.healthFiles,denyCarrerList:this.denyCarrerList,brandColor:this.brandColor,openInWindow:this.openInWindow,zIndex:this.zIndex}).show()):t.type===v.healthNotice&&(this.healthNoticePop&&this.healthNoticePop.remove(),this.healthNoticePop=this.createHealthNoticeComponent({title:this.noticeTitle,noticesData:this.noticesData,denyCarrerList:this.denyCarrerList,brandColor:this.brandColor,openInWindow:this.openInWindow,zIndex:this.zIndex,onViewOfflineTips:function(t){e.offlineTips=t,e.$refs.tipsDialog.show()},onHandleToast:function(){e.$refs.offlineToast.show("无法操作")}}).show())},getDenyCarrerList:function(t){var e=[];if(!Object(l.isObject)(t))return e;var i=[],n=[],s={},o={};for(var r in t)for(var a in t[r])s[t[r][a].c1]?s[t[r][a].c1].push(t[r][a].c3):(s[t[r][a].c1]=[t[r][a].c3],i.push(t[r][a].c1)),o[t[r][a].c2]?o[t[r][a].c2].push(t[r][a].c3):(o[t[r][a].c2]=[t[r][a].c3],n.push(t[r][a].c2));var c=void 0,h=void 0;n.length<25?(c=n,h=o):(c=i,h=s);for(var u=void 0,d=c.length-1,f=parseInt(c.length/3)+(c.length%3>0?1:0),p=0;p<f;p++)u={list:[],tipsList:[]},3*p<=d&&(u.list.push({content:c[3*p],index:3*p}),u.tipsList.push({content:h[c[3*p]].join(","),index:3*p})),3*p+1<=d?(u.list.push({content:c[3*p+1],index:3*p+1}),u.tipsList.push({content:h[c[3*p+1]].join(","),index:3*p+1})):u.list.push({}),3*p+2<=d?(u.list.push({content:c[3*p+2],index:3*p+2}),u.tipsList.push({content:h[c[3*p+2]].join(","),index:3*p+2})):u.list.push({}),e.push(u);return e}},created:function(){this.createDocPop=u()(r.a,this.constructor),this.createHealthComponent=u()(a.a,this.constructor),this.createHealthNoticeComponent=u()(c.a,this.constructor)}}},1066:function(t,e,i){"use strict";var n=i(1067),s=i.n(n),o=i(1068),r=i(1070),a=i(1072),c=i(32),l=i.n(c),h=i(578),u=i.n(h),d=i(35),f=(i.n(d),i(98)),p=i.n(f);e.a={name:"Health",mixins:[l.a],data:function(){return{activeIndex:0,showHealthFile:!1,healthFile:null,termsInfo:null}},props:{title:{type:String,default:""},health:{type:Object,default:function(){return null}},denyCarrerList:{type:Array,default:function(){return[]}},brandColor:{type:String,default:"#8c7fee"},zIndex:{type:[String,Number],default:999},openInWindow:{type:Boolean,default:!1},healthFiles:{type:Object,default:function(){return{}}}},computed:{hasHealth:function(){return this.health&&this.health.list&&this.health.list.length>0},layerTitle:function(){return this.showHealthFile&&this.healthFile&&this.healthFile.title?this.healthFile.title:this.title}},methods:{isSelected:function(t){return t===this.activeIndex},changeVer:function(t){this.activeIndex=t,this.$refs.doclayer.refreshScroll()},carrerSelect:function(){this.$refs.doclayer.refreshScroll()},openHealthFile:function(t){var e=this.healthFiles[t];if(!e)return!1;this.healthFile=e,this.reset(e),this.showDoc(0)},goBack:function(){this.showHealthFile=!1},showDoc:function(t){var e=this;if(this.openInWindow&&this.healthFile&&this.healthFile.src)return void this.openUrl(this.healthFile.src);this.showHealthFile=!0,this.index=t,this.$nextTick(function(){e.$refs.scrollZoom.showDoc(t)})},reset:function(t){var e=[],i={type:Number(t.type),title:t.title,urls:t.urls,souceFile:t.src,init:!1,classObject:{"scroll-pdf":!1,"scroll-word":!1},myScroll:null,styleImg:{height:"auto"},freeScroll:!0,scrollbar:{fade:!0,interactive:!0},bounce:{bottom:!1,left:!1,right:!1,top:!1},zoom:!0,listenScrollInit:!0,listenScrollEnd:!1,listenZoomEnd:!1,listenScroll:!1,mouseWheel:!0,currentScale:1,scrollY:0,cWidth:0,cHeight:0,liTag:null,wordHtml:""};e.push(i),this.termsInfo=e},openUrl:function(t){d.ua.isMobile||d.ua.isWx?location.href=t:window.open(t,"_blank")}},watch:{showHealthFile:function(){this.$refs.doclayer.scrollToTop()},isVisible:function(t,e){t&&!e&&(this.showHealthFile=!1)}},components:{ActGoldDocLayer:s.a,HealthTips:o.a,HealthContent:r.a,DenyCarrer:a.a,ActScrollZoom:u.a,scroll:p.a}}},1067:function(t,e){t.exports=c},1068:function(t,e,i){"use strict";function n(t){a||i(1577)}var s=i(1069),o=i(1578),r=i(8),a=!1,c=n,l=Object(r.a)(s.a,o.a,o.b,!1,c,"data-v-88e4dba8",null);l.options.__file="src\\components\\GoldInsureNotice\\src\\components\\tips.vue",e.a=l.exports},1069:function(t,e,i){"use strict";e.a={props:{item:{type:Object,default:function(){return{}}}},computed:{humanCheckState:function(){var t=Number(this.item.human_check_type);return!isNaN(t)&&0!==t},autoCheckState:function(){var t=Number(this.item.auto_check_type);return!isNaN(t)&&0!==t}}}},1070:function(t,e,i){"use strict";function n(t){a||i(1579)}var s=i(1071),o=i(1580),r=i(8),a=!1,c=n,l=Object(r.a)(s.a,o.a,o.b,!1,c,"data-v-2550ecb5",null);l.options.__file="src\\components\\GoldInsureNotice\\src\\components\\content.vue",e.a=l.exports},1071:function(t,e,i){"use strict";e.a={props:{title:{type:String,default:""},item:{type:Object,default:function(){return{}}}},mounted:function(){var t=this;document.querySelectorAll(".act-health-cntt a").forEach(function(e){e.addEventListener("click",function(){var i=e.getAttribute("data-id");if(!i)return!1;t.$emit("openHealthFile",i)})})}}},1072:function(t,e,i){"use strict";function n(t){a||i(1581)}var s=i(1073),o=i(1582),r=i(8),a=!1,c=n,l=Object(r.a)(s.a,o.a,o.b,!1,c,"data-v-2467bbeb",null);l.options.__file="src\\components\\GoldInsureNotice\\src\\components\\denyCarrer.vue",e.a=l.exports},1073:function(t,e,i){"use strict";e.a={data:function(){return{tipsLine:-1,tipsIndex:-1}},props:{denyCarrerList:{type:Array,default:function(){return[]}}},methods:{isSelected:function(t,e){return t===this.tipsLine&&e===this.tipsIndex},onClick:function(t,e){this.tipsLine===t&&this.tipsIndex===e||(this.tipsLine=t,this.tipsIndex=e,this.$emit("select",{line:t,index:e}))}}}},1074:function(t,e,i){"use strict";var n=i(1067),s=i.n(n),o=i(32),r=i.n(o),a=i(98),c=i.n(a),l=i(1070),h=i(1068),u=i(1072),d=i(1586),f=i(35),p=(i.n(f),i(578)),m=i.n(p);e.a={name:"HealthNotice",mixins:[r.a],props:{title:{type:String,default:""},brandColor:{type:String,default:"#8c7fee"},zIndex:{type:[String,Number],default:999},openInWindow:{type:Boolean,default:!1},noticesData:{type:Object,default:null}},data:function(){return{activeIndex:0,showHealthFile:!1,termsInfo:null,headerActiveIndex:0,notice_mode:0,health:null,denyCarrerList:null,tourism:null,appNotice:{health:"",tourism:"",denyCarrerList:""},insuranceNotice:{health:"",tourism:"",denyCarrerList:""},healthFiles:null,healthFile:null,noticeHeaderOptions:[{belong:1,text:"投保人健康告知"},{belong:1,text:"被保人健康告知"}]}},computed:{layerTitle:function(){return this.showHealthFile&&this.healthFile&&this.healthFile.title?this.healthFile.title:this.title}},methods:{isSelected:function(t){return t===this.activeIndex},changeVer:function(t){this.activeIndex=t,this.$refs.doclayer.refreshScroll()},carrerSelect:function(){this.$refs.doclayer.refreshScroll()},selHeader:function(t){0===t&&(this.health=this.appNotice.health,this.tourism=this.appNotice.tourism,this.denyCarrerList=this.appNotice.denyCarrerList),1===t&&(this.health=this.insuranceNotice.health,this.tourism=this.insuranceNotice.tourism,this.denyCarrerList=this.insuranceNotice.denyCarrerList),this.headerActiveIndex=t,this.activeIndex=0,this.$refs.doclayer.refreshScroll()},openHealthFile:function(t){var e=this.healthFiles[t];if(!e)return!1;this.healthFile=e,this.reset(e),this.showDoc(0)},goBack:function(){this.showHealthFile=!1},showDoc:function(t){var e=this;if(this.openInWindow&&this.healthFile&&this.healthFile.src)return void this.openUrl(this.healthFile.src);this.showHealthFile=!0,this.index=t,this.$nextTick(function(){e.$refs.scrollZoom.showDoc(t)})},reset:function(t){var e=[],i={type:Number(t.type),title:t.title,urls:t.urls,souceFile:t.src,init:!1,classObject:{"scroll-pdf":!1,"scroll-word":!1},myScroll:null,styleImg:{height:"auto"},freeScroll:!0,scrollbar:{fade:!0,interactive:!0},bounce:{bottom:!1,left:!1,right:!1,top:!1},zoom:!0,listenScrollInit:!0,listenScrollEnd:!1,listenZoomEnd:!1,listenScroll:!1,mouseWheel:!0,currentScale:1,scrollY:0,cWidth:0,cHeight:0,liTag:null,wordHtml:""};e.push(i),this.termsInfo=e},openUrl:function(t){f.ua.isMobile||f.ua.isWx?location.href=t:window.open(t,"_blank")},getDenyCarrerList:function(t){var e=[];if(!Object(f.isObject)(t))return e;var i=[],n=[],s={},o={};for(var r in t)for(var a in t[r])s[t[r][a].c1]?s[t[r][a].c1].push(t[r][a].c3):(s[t[r][a].c1]=[t[r][a].c3],i.push(t[r][a].c1)),o[t[r][a].c2]?o[t[r][a].c2].push(t[r][a].c3):(o[t[r][a].c2]=[t[r][a].c3],n.push(t[r][a].c2));var c=void 0,l=void 0;n.length<25?(c=n,l=o):(c=i,l=s);for(var h=void 0,u=c.length-1,d=parseInt(c.length/3)+(c.length%3>0?1:0),p=0;p<d;p++)h={list:[],tipsList:[]},3*p<=u&&(h.list.push({content:c[3*p],index:3*p}),h.tipsList.push({content:l[c[3*p]].join(","),index:3*p})),3*p+1<=u?(h.list.push({content:c[3*p+1],index:3*p+1}),h.tipsList.push({content:l[c[3*p+1]].join(","),index:3*p+1})):h.list.push({}),3*p+2<=u?(h.list.push({content:c[3*p+2],index:3*p+2}),h.tipsList.push({content:l[c[3*p+2]].join(","),index:3*p+2})):h.list.push({}),e.push(h);return e},viewOfflineTips:function(t){this.$emit("viewOfflineTips",t)}},components:{ActGoldDocLayer:s.a,HealthContent:l.a,HealthTips:h.a,DenyCarrer:u.a,ActScrollZoom:m.a,scroll:c.a,offlineHealth:d.a},watch:{showHealthFile:function(){this.$refs.doclayer.scrollToTop()},isVisible:function(t,e){t&&!e&&(this.showHealthFile=!1)},noticesData:{handler:function(t){if(t&&Object(f.isObject)(t.noticeFiles)&&(this.healthFiles=t.noticeFiles),t&&1==+t.notice_mode){if(this.notice_mode=+t.notice_mode,t.notices.length&&t.notices[0].health.length){var e=t.notices[0].health,i={list:[]};e.forEach(function(e){var n={notice_name:e.notice_name,human_check_type:t.has_human_check,auto_check_type:t.has_auto_check,healthContent:e.content,isOffline:!1};i.list.push(n)}),this.health=i}this.tourism=Object(f.isObject)(t.notices[0].tourism)&&t.notices[0].tourism.content,this.denyCarrerList=Object(f.isObject)(t.notices[0].careersDenied)&&this.getDenyCarrerList(t.notices[0].careersDenied.content)||[]}if(t&&(2==+t.notice_mode||3==+t.notice_mode)&&(this.notice_mode=+t.notice_mode,t.notices.length)){var n=t.notices.find(function(t){return 1==+t.entity_belong}),s=t.notices.find(function(t){return 2==+t.entity_belong});if(n){if(n.health.length){var o={list:[]};n.health.forEach(function(e){var i={notice_name:e.notice_name,human_check_type:t.has_human_check,auto_check_type:t.has_auto_check,healthContent:e.content,isOffline:3==+t.notice_mode};o.list.push(i)}),this.appNotice.health=o,s&&(this.health=o)}this.appNotice.tourism=Object(f.isObject)(n.tourism)&&n.tourism.content,this.appNotice.denyCarrerList=Object(f.isObject)(n.careersDenied)&&this.getDenyCarrerList(n.careersDenied.content)||[],this.tourism=this.appNotice.tourism,this.denyCarrerList=this.appNotice.denyCarrerList}if(s){if(s.health.length){var r={list:[]};s.health.forEach(function(e){var i={notice_name:e.notice_name,human_check_type:t.has_human_check,auto_check_type:t.has_auto_check,healthContent:e.content,isOffline:3==+t.notice_mode};r.list.push(i)}),this.insuranceNotice.health=r,n||(this.health=r)}this.insuranceNotice.tourism=Object(f.isObject)(s.tourism)&&s.tourism.content,this.insuranceNotice.denyCarrerList=Object(f.isObject)(s.careersDenied)&&this.getDenyCarrerList(s.careersDenied.content)||[],n||(this.tourism=this.insuranceNotice.tourism,this.denyCarrerList=this.insuranceNotice.denyCarrerList)}}},immediate:!0}}}},1075:function(t,e,i){"use strict";var n=i(35);i.n(n);e.a={props:{title:{type:String,default:""},item:{type:Object,default:function(){return{}}},brandColor:{type:String,default:"#8c7fee"}},data:function(){return{tips:""}},computed:{bgColor:function(){return"linear-gradient(90deg, "+this.genRgba(this.brandColor,.4)+" 0%, "+this.genRgba(this.brandColor,.8)+" 100%);"}},methods:{genRgba:function(t,e){var i=Object(n.hexToRgb)(t||"#8c7fee",e||.1);return function(t){var e=t.replace(/rgba?\(/,"").replace(/\)/,"").replace(/[\s+]/g,"").split(","),i=parseFloat(e[3]||1),n=Math.floor(i*parseInt(e[0])+255*(1-i)),s=Math.floor(i*parseInt(e[1])+255*(1-i)),o=Math.floor(i*parseInt(e[2])+255*(1-i));return"#"+("0"+n.toString(16)).slice(-2)+("0"+s.toString(16)).slice(-2)+("0"+o.toString(16)).slice(-2)}(i)},viewTips:function(t){this.$emit("viewOfflineTips",t)},handleToast:function(){this.$emit("handleToast")}}}},1572:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(22),s=i.n(n),o=i(1573);o.a.install=function(t){t.component(o.a.name,o.a),t.prototype.$createGoldInsureNotice=s()(o.a,t)},e.default=o.a},1573:function(t,e,i){"use strict";function n(t){a||i(1574)}var s=i(1065),o=i(1591),r=i(8),a=!1,c=n,l=Object(r.a)(s.a,o.a,o.b,!1,c,"data-v-19593780",null);l.options.__file="src\\components\\GoldInsureNotice\\src\\index.vue",e.a=l.exports},1574:function(t,e){},1575:function(t,e,i){"use strict";function n(t){a||i(1576)}var s=i(1066),o=i(1583),r=i(8),a=!1,c=n,l=Object(r.a)(s.a,o.a,o.b,!1,c,"data-v-37ff6850",null);l.options.__file="src\\components\\GoldInsureNotice\\src\\components\\health.vue",e.a=l.exports},1576:function(t,e){},1577:function(t,e){},1578:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return s});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.humanCheckState||t.autoCheckState?i("div",{staticClass:"act-health-tip"},[i("div",{staticClass:"act-health-tip-cntt"},[t.humanCheckState&&t.autoCheckState?i("p",[t._v("\n 本产品"),i("b",[t._v("支持智能核保和人工核保")]),t._v(",如果您对某些健康状况不确认,可在健康告知页面进行核保。\n ")]):t.autoCheckState?i("p",[t._v("\n 本产品"),i("b",[t._v("支持智能核保")]),t._v(",如果您对某些健康状况不确认,可在健康告知页面进行核保。\n ")]):t.humanCheckState?i("p",[t._v("\n 本产品"),i("b",[t._v("支持人工核保")]),t._v(",如果您对某些健康状况不确认,可在健康告知页面进行核保。\n ")]):t._e()])]):t._e()},s=[];n._withStripped=!0},1579:function(t,e){},1580:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return s});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"act-health-box"},[i("div",{staticClass:"act-health-tit"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),t.item.content?i("div",{ref:"content",staticClass:"act-health-cntt",domProps:{innerHTML:t._s(t.item.content)}}):t.item.info?t._l(t.item.info,function(e,n){return i("div",{key:"health"+n,ref:"content",refInFor:!0,staticClass:"act-health-cntt",domProps:{innerHTML:t._s(e.content)}})}):t.item.healthContent?t._l(t.item.healthContent,function(e,n){return i("div",{key:"health"+n,ref:"content",refInFor:!0,staticClass:"act-health-cntt",domProps:{innerHTML:t._s(e.text)}})}):t._e()],2)},s=[];n._withStripped=!0},1581:function(t,e){},1582:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return s});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.denyCarrerList&&t.denyCarrerList.length>0?i("div",{staticClass:"act-health-carrer-box"},[i("div",{staticClass:"act-health-box"},[i("div",{staticClass:"act-health-tit"},[t._v("\n 职业工种告知\n ")]),t._v(" "),i("div",{staticClass:"act-health-txt"},[t._v("\n 被保人是否正在从事以下行业(点击分类名可查看详情):\n ")]),t._v(" "),i("div",{staticClass:"act-health-carrer"},t._l(t.denyCarrerList,function(e,n){return i("div",{key:n,staticClass:"act-health-carrer-line"},[i("div",{staticClass:"act-health-carrer-list"},t._l(e.list,function(e,s){return i("div",{key:s,staticClass:"act-health-carrer-li",style:{visibility:e.content?"":"hidden"},on:{click:function(i){return i.stopPropagation(),t.onClick(n,e.index)}}},[i("div",{staticClass:"act-health-carrer-li-txt",attrs:{"data-line":n,"data-index":e.index}},[t._v("\n "+t._s(e.content)+"\n ")])])}),0),t._v(" "),i("div",{staticClass:"act-health-carrer-tips"},t._l(e.tipsList,function(e,s){return i("div",{key:s,staticClass:"act-health-carrer-tips-item",class:{active:t.isSelected(n,e.index)}},[i("div",{staticClass:"act-health-carrer-tips-txt"},[t._v("\n "+t._s(e.content)+"\n ")])])}),0)])}),0)])]):t._e()},s=[];n._withStripped=!0},1583:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return s});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("act-gold-doc-layer",{ref:"doclayer",attrs:{visible:t.isVisible,title:t.layerTitle,zIndex:t.zIndex},on:{close:t.hide}},[t.showHealthFile?i("a",{staticClass:"act-picker-back",attrs:{slot:"headerLeft",href:"javascript:;"},on:{click:function(e){return e.stopPropagation(),t.goBack(e)}},slot:"headerLeft"}):t._e(),t._v(" "),t.showHealthFile?[i("act-scroll-zoom",{ref:"scrollZoom",staticClass:"act-doc-content",attrs:{termsInfo:t.termsInfo,brandColor:t.brandColor,docIndex:0}})]:[i("div",{staticClass:"act-health-layer"},[t.hasHealth?[t.health.list.length>1?i("div",{staticClass:"act-health-nav",class:{"flex-content":t.health.list.length<3},attrs:{slot:"header"},slot:"header"},[i("scroll",{attrs:{direction:"horizontal"}},t._l(t.health.list,function(e,n){return i("div",{key:n,staticClass:"act-health-nav-item",class:{active:t.isSelected(n)},style:{color:t.isSelected(n)?t.brandColor:""},on:{click:function(e){return e.stopPropagation(),t.changeVer(n)}}},[t._v("\n "+t._s(e.notice_name||e.ver)+"\n "),i("i",{directives:[{name:"show",rawName:"v-show",value:t.isSelected(n),expression:"isSelected(i)"}],style:{"background-color":t.brandColor}})])}),0)],1):t._e(),t._v(" "),t._l(t.health.list,function(e,n){return[i("div",{directives:[{name:"show",rawName:"v-show",value:t.isSelected(n),expression:"isSelected(k)"}],key:"health"+n,staticClass:"act-health-container"},[i("health-tips",{attrs:{item:e}}),t._v(" "),i("health-content",{attrs:{title:e.notice_name||e.ver||"健康告知",item:e},on:{openHealthFile:t.openHealthFile}})],1)]})]:t._e(),t._v(" "),t.health&&t.health.tourism?i("health-content",{attrs:{title:"旅游告知",item:t.health.tourism},on:{openHealthFile:t.openHealthFile}}):t._e(),t._v(" "),i("deny-carrer",{attrs:{denyCarrerList:t.denyCarrerList},on:{select:t.carrerSelect}})],2)]],2)},s=[];n._withStripped=!0},1584:function(t,e,i){"use strict";function n(t){a||i(1585)}var s=i(1074),o=i(1590),r=i(8),a=!1,c=n,l=Object(r.a)(s.a,o.a,o.b,!1,c,"data-v-bb3ef570",null);l.options.__file="src\\components\\GoldInsureNotice\\src\\components\\healthNotice.vue",e.a=l.exports},1585:function(t,e){},1586:function(t,e,i){"use strict";function n(t){a||i(1587)}var s=i(1075),o=i(1588),r=i(8),a=!1,c=n,l=Object(r.a)(s.a,o.a,o.b,!1,c,"data-v-ba6bdf4a",null);l.options.__file="src\\components\\GoldInsureNotice\\src\\components\\offlineHealth.vue",e.a=l.exports},1587:function(t,e){},1588:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return s});var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"offline-health-box"},[n("div",{staticClass:"health-tit"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),t._l(t.item.healthContent,function(e,s){return n("div",{key:s,staticClass:"offline-health-item"},[n("div",{staticClass:"title"},[n("div",{staticClass:"index",style:"box-shadow: 0px 3px 6px 0px "+t.genRgba(t.brandColor)+";background: "+t.bgColor},[t._v("\n "+t._s(s+1)+"\n ")]),t._v(" "),n("div",{staticClass:"text"},[t._v("\n "+t._s(e.text)+"\n "),e.question_tips?n("img",{attrs:{src:i(1589),alt:""},on:{click:function(i){return t.viewTips(e.question_tips)}}}):t._e()])]),t._v(" "),n("div",{staticClass:"content-box"},[[1,2,5].includes(+e.question_type)?n("div",{staticClass:"grain-box"},t._l(e.answers,function(e,i){return n("div",{key:i,staticClass:"item",on:{click:t.handleToast}},[t._v("\n "+t._s(e.value)+"\n ")])}),0):t._e(),t._v(" "),3==+e.question_type?n("div",{staticClass:"fill-box"},t._l(e.answers,function(e,i){return n("div",{key:i,staticClass:"item"},[n("div",{staticClass:"til"},[t._v("\n "+t._s(e.title)+"\n ")]),t._v(" "),n("div",{staticClass:"content",on:{click:t.handleToast}},[t._v("\n 请输入\n ")])])}),0):t._e(),t._v(" "),4==+e.question_type?n("div",{staticClass:"pure-fill-box",on:{click:t.handleToast}},[t._v("\n 请填写\n ")]):t._e()])])})],2)},s=[];n._withStripped=!0},1589:function(t,e){t.exports=l},1590:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return s});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("act-gold-doc-layer",{ref:"doclayer",attrs:{visible:t.isVisible,title:t.layerTitle,zIndex:t.zIndex},on:{close:t.hide}},[t.showHealthFile?i("a",{staticClass:"act-picker-back",attrs:{slot:"headerLeft",href:"javascript:;"},on:{click:function(e){return e.stopPropagation(),t.goBack(e)}},slot:"headerLeft"}):t._e(),t._v(" "),t.showHealthFile?[i("act-scroll-zoom",{ref:"scrollZoom",staticClass:"act-doc-content",attrs:{termsInfo:t.termsInfo,brandColor:t.brandColor,docIndex:0}})]:[t.appNotice.health&&t.insuranceNotice.health?[2===t.notice_mode||3===t.notice_mode?i("div",{staticClass:"act-notice-header"},t._l(t.noticeHeaderOptions,function(e,n){return i("div",{key:n,staticClass:"item",style:"color: "+(t.headerActiveIndex===n?t.brandColor||"#8c7fee":"#333333")+";font-size: "+(t.headerActiveIndex===n?"17px":"15px"),on:{click:function(e){return t.selHeader(n)}}},[t._v("\n "+t._s(e.text)+"\n ")])}),0):t._e()]:t._e(),t._v(" "),i("div",{staticClass:"act-health-layer"},[t.health?[t.health.list.length>1?i("div",{staticClass:"act-health-nav",class:{"flex-content":t.health.list.length<3},attrs:{slot:"header"},slot:"header"},[i("scroll",{attrs:{direction:"horizontal"}},t._l(t.health.list,function(e,n){return i("div",{key:n,staticClass:"act-health-nav-item",class:{active:t.isSelected(n)},style:{color:t.isSelected(n)?t.brandColor:""},on:{click:function(e){return e.stopPropagation(),t.changeVer(n)}}},[t._v("\n "+t._s(e.notice_name||e.ver)+"\n "),i("i",{directives:[{name:"show",rawName:"v-show",value:t.isSelected(n),expression:"isSelected(i)"}],style:{"background-color":t.brandColor}})])}),0)],1):t._e(),t._v(" "),t._l(t.health.list,function(e,n){return[i("div",{directives:[{name:"show",rawName:"v-show",value:t.isSelected(n),expression:"isSelected(k)"}],key:"health"+n,staticClass:"act-health-container"},[i("health-tips",{attrs:{item:e}}),t._v(" "),e.healthContent&&!e.isOffline?i("health-content",{attrs:{title:e.notice_name||e.ver||"健康告知",item:e},on:{openHealthFile:t.openHealthFile}}):t._e(),t._v(" "),e.healthContent&&e.isOffline?i("offline-health",{attrs:{title:e.notice_name||e.ver||"健康告知",brandColor:t.brandColor,item:e},on:{viewOfflineTips:t.viewOfflineTips,handleToast:function(e){return t.$emit("handleToast")}}}):t._e()],1)]})]:t._e(),t._v(" "),t.tourism?i("health-content",{attrs:{title:"旅游告知",item:{content:t.tourism}},on:{openHealthFile:t.openHealthFile}}):t._e(),t._v(" "),i("deny-carrer",{attrs:{denyCarrerList:t.denyCarrerList},on:{select:t.carrerSelect}})],2)]],2)},s=[];n._withStripped=!0},1591:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return s});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"act-gold-insure-notice"},[i("div",{staticClass:"act-gold-insure-notice-text",style:{color:t.textColor,"font-size":t.fontSize}},[i("span",{domProps:{innerHTML:t._s(t.text)}}),t._v(" "),t._l(t.noticeFiles,function(e,n){return[n==t.noticeFiles.length-1&&0!=n?i("span",{key:n+"span"},[t._v("和")]):0!=n?i("span",{key:n+"span"},[t._v("、")]):t._e(),t._v(" "),e.track?i("a",{key:n+"a",staticClass:"act-gold-insure-notice-item",style:{color:t.brandColor},attrs:{"data-track":e.track},on:{click:function(i){return t.onClick(e)}}},[t._v("《"+t._s(e.title)+"》")]):i("a",{key:n+"a",staticClass:"act-gold-insure-notice-item",style:{color:t.brandColor},attrs:{"data-track":e.track||""},on:{click:function(i){return t.onClick(e)}}},[t._v("《"+t._s(e.title)+"》")])]})],2),t._v(" "),i("act-gold-dialog",{ref:"tipsDialog",attrs:{maskClosable:!0,title:"提示",zIndex:t.zIndex+1,content:t.offlineTips,buttonType:"sticky",showConfirmButton:"",confirmButtonColor:t.brandColor||"#8c7fee",confirmButtonText:"确认"}}),t._v(" "),i("Toast",{ref:"offlineToast"})],1)},s=[];n._withStripped=!0},2:function(t,e){var i=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=i)},22:function(e,i){e.exports=t},220:function(t,e){t.exports=s},222:function(t,e){t.exports=o},32:function(t,i){t.exports=e},35:function(t,e){t.exports=i},577:function(t,e){t.exports=r},578:function(t,e){t.exports=a},8:function(t,e,i){"use strict";function n(t,e,i,n,s,o,r,a){t=t||{};var c=typeof t.default;"object"!==c&&"function"!==c||(t=t.default);var l="function"==typeof t?t.options:t;e&&(l.render=e,l.staticRenderFns=i,l._compiled=!0),n&&(l.functional=!0),o&&(l._scopeId=o);var h;if(r?(h=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__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},l._ssrRegister=h):s&&(h=a?function(){s.call(this,this.$root.$options.shadowRoot)}:s),h)if(l.functional){l._injectStyles=h;var u=l.render;l.render=function(t,e){return h.call(e),u(t,e)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,h):[h]}return{exports:t,options:l}}e.a=n},89:function(t,e,i){t.exports={default:i(93),__esModule:!0}},93:function(t,e,i){var n=i(2),s=n.JSON||(n.JSON={stringify:JSON.stringify});t.exports=function(t){return s.stringify.apply(s,arguments)}},98:function(t,e){t.exports=n}})});
|
|
1
|
+
!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/utils/helpers.js"),require("@xysfe/actui/es/assets/common/scroll.js"),require("@xysfe/actui/es/GoldDialog/index.js"),require("@xysfe/actui/es/Toast/index.js"),require("@xysfe/actui/es/DocPop/index.js"),require("@xysfe/actui/es/assets/common/scrollZoom/index.js"),require("@xysfe/actui/es/GoldDocLayer/index.js"),require("@xysfe/actui/es/assets/img/qa.png")):"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/utils/helpers.js","@xysfe/actui/es/assets/common/scroll.js","@xysfe/actui/es/GoldDialog/index.js","@xysfe/actui/es/Toast/index.js","@xysfe/actui/es/DocPop/index.js","@xysfe/actui/es/assets/common/scrollZoom/index.js","@xysfe/actui/es/GoldDocLayer/index.js","@xysfe/actui/es/assets/img/qa.png"],e):"object"==typeof exports?exports.GoldInsureNotice=e(require("@xysfe/actui/es/assets/utils/create/index.js"),require("@xysfe/actui/es/assets/mixins/visible.js"),require("@xysfe/actui/es/assets/utils/helpers.js"),require("@xysfe/actui/es/assets/common/scroll.js"),require("@xysfe/actui/es/GoldDialog/index.js"),require("@xysfe/actui/es/Toast/index.js"),require("@xysfe/actui/es/DocPop/index.js"),require("@xysfe/actui/es/assets/common/scrollZoom/index.js"),require("@xysfe/actui/es/GoldDocLayer/index.js"),require("@xysfe/actui/es/assets/img/qa.png")):t.GoldInsureNotice=e(t["@xysfe/actui/es/assets/utils/create/index.js"],t["@xysfe/actui/es/assets/mixins/visible.js"],t["@xysfe/actui/es/assets/utils/helpers.js"],t["@xysfe/actui/es/assets/common/scroll.js"],t["@xysfe/actui/es/GoldDialog/index.js"],t["@xysfe/actui/es/Toast/index.js"],t["@xysfe/actui/es/DocPop/index.js"],t["@xysfe/actui/es/assets/common/scrollZoom/index.js"],t["@xysfe/actui/es/GoldDocLayer/index.js"],t["@xysfe/actui/es/assets/img/qa.png"])}("undefined"!=typeof self?self:this,function(t,e,i,n,s,o,r,a,c,l){return function(t){function e(n){if(i[n])return i[n].exports;var s=i[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,e),s.l=!0,s.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="../es",e(e.s=1572)}({1065:function(t,e,i){"use strict";var n=i(89),s=i.n(n),o=i(577),r=i.n(o),a=i(1575),c=i(1584),l=i(35),h=(i.n(l),i(22)),u=i.n(h),d=i(220),f=i.n(d),p=i(222),m=i.n(p),v={file:1,health:2,img:3,healthNotice:4};e.a={name:"ActGoldInsureNotice",components:{ActGoldDialog:f.a,Toast:m.a},data:function(){return{noticeTitle:"健康告知",offlineTips:""}},props:{text:{type:String,default:"更多请查看"},groupId:{type:[Number,String],default:""},productId:{type:[Number,String],default:""},docInfo:{type:Object,default:function(){return{}}},health:{type:Object,default:function(){return null}},denyCarrers:{type:[Array,Object],default:function(){return null}},policy:{type:[String,Object],default:""},textColor:{type:String,default:"#666"},textFontSize:{type:[Number,String],default:13},brandColor:{type:String,default:"#8c7fee"},zIndex:{type:[String,Number],default:999},healthFiles:{type:Object,default:function(){return{}}},noticesData:{type:Object,default:null},premiumData:{type:Array,default:function(){return null}},premiumTitle:{type:String,default:function(){return"费率表"}},showOther:{type:Boolean,default:!1},isMobileModel:{type:Boolean,default:!1}},computed:{docFile:function(){var t=this;if(!this.docInfo)return{terms:[],inform:[],otherdocs:[]};var e=JSON.parse(s()(this.docInfo));return e.needknow&&e.needknow.forEach(function(e,i){e.src||(e.src=location.protocol+"//"+location.host+"/insurance/termList?productid="+t.productId+"&groupid="+t.groupId+"&action=needknow&index="+i+"#/detail")}),e.terms&&e.terms.forEach(function(e,i){e.src||(e.src=location.protocol+"//"+location.host+"/insurance/termList?productid="+t.productId+"&groupid="+t.groupId+"&action=term&index="+i+"#/detail")}),e.inform&&e.inform.forEach(function(e,i){e.src||(e.src=location.protocol+"//"+location.host+"/insurance/termList?productid="+t.productId+"&groupid="+t.groupId+"&action=inform&index="+i+"#/detail")}),e.otherdocs&&this.showOther&&e.otherdocs.forEach(function(e,i){e.src||(e.src=location.protocol+"//"+location.host+"/insurance/termList?productid="+t.productId+"&groupid="+t.groupId+"&action=otherdocs&index="+i+"#/detail")}),e},formatPremiumData:function(){var t=this;return this.premiumData?(this.premiumData.forEach(function(e,i){e.src||(e.src=location.protocol+"//"+location.host+"/insurance/termList?productid="+t.productId+"&groupid="+t.groupId+"&action=premium&index="+i+"#/detail")}),this.premiumData):null},termsAndInform:function(){return this.docFile.terms.concat(this.docFile.inform)},denyCarrerList:function(){return this.getDenyCarrerList(this.denyCarrers)},healthTitle:function(){var t="";return this.health&&(this.health.title?t=this.health.title:this.health.noticeType>0?t=2===Number(this.health.noticeType)?this.denyCarrerList.length?"旅游及职业告知":"旅游告知":this.denyCarrerList.length?"健康及职业告知":"健康告知":this.denyCarrerList.length&&(t=2===Number(this.health.noticeType)?"旅游告知":"职业工种告知")),t},noticeFiles:function(){var t=[];return this.docFile&&(this.docFile.needknow&&this.docFile.needknow.length&&t.push({title:"更多投保须知",track:"detail_noticemore",type:v.file,data:this.docFile.needknow}),(this.docFile.inform&&this.docFile.inform.length||this.docFile.terms&&this.docFile.terms.length)&&t.push({title:"保险条款及告知",track:"detail_term",type:v.file,data:this.termsAndInform}),this.docFile.otherdocs&&this.docFile.otherdocs.length&&this.showOther&&this.docFile.otherdocs.forEach(function(e,i){t.push({title:e.title,track:"detail_others",type:v.file,data:[e]})})),this.health&&((this.health.list&&this.health.list.length)>0||this.denyCarrerList&&this.denyCarrerList.length>0||this.health.tourism)&&t.push({title:this.healthTitle,track:"detail_health",type:v.health}),this.noticesData&&t.push({title:this.noticesData.noticesEndpointTitle||"健康告知",track:"detail_health",type:v.healthNotice}),this.policy&&t.push({title:this.policy.desc||"电子保单样本",track:"detail_epolicy",type:v.file,data:[{type:this.policy.type||2,urls:[this.policy.url]}]}),this.formatPremiumData&&t.push({title:this.premiumTitle,track:"detail_fee",type:v.file,data:this.formatPremiumData}),t},fontSize:function(){return Object(l.formatFontSize)(this.textFontSize)},openInWindow:function(){return!this.isMobileModel&&(!l.ua.isMobile&&!l.ua.isWx)}},methods:{onClick:function(t){var e=this;t.type===v.file?(this.docPop&&this.docPop.remove(),this.docPop=this.createDocPop({title:t.title,docData:t.data,brandColor:this.brandColor,openInWindow:this.openInWindow,zIndex:this.zIndex}).show()):t.type===v.img?(this.imagePieview?this.imagePieview.setData([t.data],0):this.imagePieview=this.$createImagePreview({images:[t.data],zoom:!0,zIndex:this.zIndex,opacity:1}),this.imagePieview.show()):t.type===v.health?(this.healthPop&&this.healthPop.remove(),this.healthPop=this.createHealthComponent({title:this.healthTitle,health:this.health,healthFiles:this.healthFiles,denyCarrerList:this.denyCarrerList,brandColor:this.brandColor,openInWindow:this.openInWindow,zIndex:this.zIndex}).show()):t.type===v.healthNotice&&(this.healthNoticePop&&this.healthNoticePop.remove(),this.healthNoticePop=this.createHealthNoticeComponent({title:this.noticeTitle,noticesData:this.noticesData,denyCarrerList:this.denyCarrerList,brandColor:this.brandColor,openInWindow:this.openInWindow,zIndex:this.zIndex,onViewOfflineTips:function(t){e.offlineTips=t,e.$refs.tipsDialog.show()},onHandleToast:function(){e.$refs.offlineToast.show("无法操作")}}).show())},getDenyCarrerList:function(t){var e=[];if(!Object(l.isObject)(t))return e;var i=[],n=[],s={},o={};for(var r in t)for(var a in t[r])s[t[r][a].c1]?s[t[r][a].c1].push(t[r][a].c3):(s[t[r][a].c1]=[t[r][a].c3],i.push(t[r][a].c1)),o[t[r][a].c2]?o[t[r][a].c2].push(t[r][a].c3):(o[t[r][a].c2]=[t[r][a].c3],n.push(t[r][a].c2));var c=void 0,h=void 0;n.length<25?(c=n,h=o):(c=i,h=s);for(var u=void 0,d=c.length-1,f=parseInt(c.length/3)+(c.length%3>0?1:0),p=0;p<f;p++)u={list:[],tipsList:[]},3*p<=d&&(u.list.push({content:c[3*p],index:3*p}),u.tipsList.push({content:h[c[3*p]].join(","),index:3*p})),3*p+1<=d?(u.list.push({content:c[3*p+1],index:3*p+1}),u.tipsList.push({content:h[c[3*p+1]].join(","),index:3*p+1})):u.list.push({}),3*p+2<=d?(u.list.push({content:c[3*p+2],index:3*p+2}),u.tipsList.push({content:h[c[3*p+2]].join(","),index:3*p+2})):u.list.push({}),e.push(u);return e}},created:function(){this.createDocPop=u()(r.a,this.constructor),this.createHealthComponent=u()(a.a,this.constructor),this.createHealthNoticeComponent=u()(c.a,this.constructor)}}},1066:function(t,e,i){"use strict";var n=i(1067),s=i.n(n),o=i(1068),r=i(1070),a=i(1072),c=i(32),l=i.n(c),h=i(578),u=i.n(h),d=i(35),f=(i.n(d),i(98)),p=i.n(f);e.a={name:"Health",mixins:[l.a],data:function(){return{activeIndex:0,showHealthFile:!1,healthFile:null,termsInfo:null}},props:{title:{type:String,default:""},health:{type:Object,default:function(){return null}},denyCarrerList:{type:Array,default:function(){return[]}},brandColor:{type:String,default:"#8c7fee"},zIndex:{type:[String,Number],default:999},openInWindow:{type:Boolean,default:!1},healthFiles:{type:Object,default:function(){return{}}}},computed:{hasHealth:function(){return this.health&&this.health.list&&this.health.list.length>0},layerTitle:function(){return this.showHealthFile&&this.healthFile&&this.healthFile.title?this.healthFile.title:this.title}},methods:{isSelected:function(t){return t===this.activeIndex},changeVer:function(t){this.activeIndex=t,this.$refs.doclayer.refreshScroll()},carrerSelect:function(){this.$refs.doclayer.refreshScroll()},openHealthFile:function(t){var e=this.healthFiles[t];if(!e)return!1;this.healthFile=e,this.reset(e),this.showDoc(0)},goBack:function(){this.showHealthFile=!1},showDoc:function(t){var e=this;if(this.openInWindow&&this.healthFile&&this.healthFile.src)return void this.openUrl(this.healthFile.src);this.showHealthFile=!0,this.index=t,this.$nextTick(function(){e.$refs.scrollZoom.showDoc(t)})},reset:function(t){var e=[],i={type:Number(t.type),title:t.title,urls:t.urls,souceFile:t.src,init:!1,classObject:{"scroll-pdf":!1,"scroll-word":!1},myScroll:null,styleImg:{height:"auto"},freeScroll:!0,scrollbar:{fade:!0,interactive:!0},bounce:{bottom:!1,left:!1,right:!1,top:!1},zoom:!0,listenScrollInit:!0,listenScrollEnd:!1,listenZoomEnd:!1,listenScroll:!1,mouseWheel:!0,currentScale:1,scrollY:0,cWidth:0,cHeight:0,liTag:null,wordHtml:""};e.push(i),this.termsInfo=e},openUrl:function(t){d.ua.isMobile||d.ua.isWx?location.href=t:window.open(t,"_blank")}},watch:{showHealthFile:function(){this.$refs.doclayer.scrollToTop()},isVisible:function(t,e){t&&!e&&(this.showHealthFile=!1)}},components:{ActGoldDocLayer:s.a,HealthTips:o.a,HealthContent:r.a,DenyCarrer:a.a,ActScrollZoom:u.a,scroll:p.a}}},1067:function(t,e){t.exports=c},1068:function(t,e,i){"use strict";function n(t){a||i(1577)}var s=i(1069),o=i(1578),r=i(8),a=!1,c=n,l=Object(r.a)(s.a,o.a,o.b,!1,c,"data-v-88e4dba8",null);l.options.__file="src\\components\\GoldInsureNotice\\src\\components\\tips.vue",e.a=l.exports},1069:function(t,e,i){"use strict";e.a={props:{item:{type:Object,default:function(){return{}}}},computed:{humanCheckState:function(){var t=Number(this.item.human_check_type);return!isNaN(t)&&0!==t},autoCheckState:function(){var t=Number(this.item.auto_check_type);return!isNaN(t)&&0!==t}}}},1070:function(t,e,i){"use strict";function n(t){a||i(1579)}var s=i(1071),o=i(1580),r=i(8),a=!1,c=n,l=Object(r.a)(s.a,o.a,o.b,!1,c,"data-v-2550ecb5",null);l.options.__file="src\\components\\GoldInsureNotice\\src\\components\\content.vue",e.a=l.exports},1071:function(t,e,i){"use strict";e.a={props:{title:{type:String,default:""},item:{type:Object,default:function(){return{}}}},mounted:function(){var t=this;document.querySelectorAll(".act-health-cntt a").forEach(function(e){e.addEventListener("click",function(){var i=e.getAttribute("data-id");if(!i)return!1;t.$emit("openHealthFile",i)})})}}},1072:function(t,e,i){"use strict";function n(t){a||i(1581)}var s=i(1073),o=i(1582),r=i(8),a=!1,c=n,l=Object(r.a)(s.a,o.a,o.b,!1,c,"data-v-2467bbeb",null);l.options.__file="src\\components\\GoldInsureNotice\\src\\components\\denyCarrer.vue",e.a=l.exports},1073:function(t,e,i){"use strict";e.a={data:function(){return{tipsLine:-1,tipsIndex:-1}},props:{denyCarrerList:{type:Array,default:function(){return[]}}},methods:{isSelected:function(t,e){return t===this.tipsLine&&e===this.tipsIndex},onClick:function(t,e){this.tipsLine===t&&this.tipsIndex===e||(this.tipsLine=t,this.tipsIndex=e,this.$emit("select",{line:t,index:e}))}}}},1074:function(t,e,i){"use strict";var n=i(1067),s=i.n(n),o=i(32),r=i.n(o),a=i(98),c=i.n(a),l=i(1070),h=i(1068),u=i(1072),d=i(1586),f=i(35),p=(i.n(f),i(578)),m=i.n(p);e.a={name:"HealthNotice",mixins:[r.a],props:{title:{type:String,default:""},brandColor:{type:String,default:"#8c7fee"},zIndex:{type:[String,Number],default:999},openInWindow:{type:Boolean,default:!1},noticesData:{type:Object,default:null}},data:function(){return{activeIndex:0,showHealthFile:!1,termsInfo:null,headerActiveIndex:0,notice_mode:0,health:null,denyCarrerList:null,tourism:null,appNotice:{health:"",tourism:"",denyCarrerList:""},insuranceNotice:{health:"",tourism:"",denyCarrerList:""},healthFiles:null,healthFile:null,noticeHeaderOptions:[{belong:1,text:"投保人健康告知"},{belong:1,text:"被保人健康告知"}]}},computed:{layerTitle:function(){return this.showHealthFile&&this.healthFile&&this.healthFile.title?this.healthFile.title:this.title}},methods:{isSelected:function(t){return t===this.activeIndex},changeVer:function(t){this.activeIndex=t,this.$refs.doclayer.refreshScroll()},carrerSelect:function(){this.$refs.doclayer.refreshScroll()},selHeader:function(t){0===t&&(this.health=this.appNotice.health,this.tourism=this.appNotice.tourism,this.denyCarrerList=this.appNotice.denyCarrerList),1===t&&(this.health=this.insuranceNotice.health,this.tourism=this.insuranceNotice.tourism,this.denyCarrerList=this.insuranceNotice.denyCarrerList),this.headerActiveIndex=t,this.activeIndex=0,this.$refs.doclayer.refreshScroll()},openHealthFile:function(t){var e=this.healthFiles[t];if(!e)return!1;this.healthFile=e,this.reset(e),this.showDoc(0)},goBack:function(){this.showHealthFile=!1},showDoc:function(t){var e=this;if(this.openInWindow&&this.healthFile&&this.healthFile.src)return void this.openUrl(this.healthFile.src);this.showHealthFile=!0,this.index=t,this.$nextTick(function(){e.$refs.scrollZoom.showDoc(t)})},reset:function(t){var e=[],i={type:Number(t.type),title:t.title,urls:t.urls,souceFile:t.src,init:!1,classObject:{"scroll-pdf":!1,"scroll-word":!1},myScroll:null,styleImg:{height:"auto"},freeScroll:!0,scrollbar:{fade:!0,interactive:!0},bounce:{bottom:!1,left:!1,right:!1,top:!1},zoom:!0,listenScrollInit:!0,listenScrollEnd:!1,listenZoomEnd:!1,listenScroll:!1,mouseWheel:!0,currentScale:1,scrollY:0,cWidth:0,cHeight:0,liTag:null,wordHtml:""};e.push(i),this.termsInfo=e},openUrl:function(t){f.ua.isMobile||f.ua.isWx?location.href=t:window.open(t,"_blank")},getDenyCarrerList:function(t){var e=[];if(!Object(f.isObject)(t))return e;var i=[],n=[],s={},o={};for(var r in t)for(var a in t[r])s[t[r][a].c1]?s[t[r][a].c1].push(t[r][a].c3):(s[t[r][a].c1]=[t[r][a].c3],i.push(t[r][a].c1)),o[t[r][a].c2]?o[t[r][a].c2].push(t[r][a].c3):(o[t[r][a].c2]=[t[r][a].c3],n.push(t[r][a].c2));var c=void 0,l=void 0;n.length<25?(c=n,l=o):(c=i,l=s);for(var h=void 0,u=c.length-1,d=parseInt(c.length/3)+(c.length%3>0?1:0),p=0;p<d;p++)h={list:[],tipsList:[]},3*p<=u&&(h.list.push({content:c[3*p],index:3*p}),h.tipsList.push({content:l[c[3*p]].join(","),index:3*p})),3*p+1<=u?(h.list.push({content:c[3*p+1],index:3*p+1}),h.tipsList.push({content:l[c[3*p+1]].join(","),index:3*p+1})):h.list.push({}),3*p+2<=u?(h.list.push({content:c[3*p+2],index:3*p+2}),h.tipsList.push({content:l[c[3*p+2]].join(","),index:3*p+2})):h.list.push({}),e.push(h);return e},viewOfflineTips:function(t){this.$emit("viewOfflineTips",t)}},components:{ActGoldDocLayer:s.a,HealthContent:l.a,HealthTips:h.a,DenyCarrer:u.a,ActScrollZoom:m.a,scroll:c.a,offlineHealth:d.a},watch:{showHealthFile:function(){this.$refs.doclayer.scrollToTop()},isVisible:function(t,e){t&&!e&&(this.showHealthFile=!1)},noticesData:{handler:function(t){if(t&&Object(f.isObject)(t.noticeFiles)&&(this.healthFiles=t.noticeFiles),t&&1==+t.notice_mode){if(this.notice_mode=+t.notice_mode,t.notices.length&&t.notices[0].health.length){var e=t.notices[0].health,i={list:[]};e.forEach(function(e){var n={notice_name:e.notice_name,human_check_type:t.has_human_check,auto_check_type:t.has_auto_check,healthContent:e.content,isOffline:!1};i.list.push(n)}),this.health=i}this.tourism=Object(f.isObject)(t.notices[0].tourism)&&t.notices[0].tourism.content,this.denyCarrerList=Object(f.isObject)(t.notices[0].careersDenied)&&this.getDenyCarrerList(t.notices[0].careersDenied.content)||[]}if(t&&(2==+t.notice_mode||3==+t.notice_mode)&&(this.notice_mode=+t.notice_mode,t.notices.length)){var n=t.notices.find(function(t){return 1==+t.entity_belong}),s=t.notices.find(function(t){return 2==+t.entity_belong});if(n){if(n.health.length){var o={list:[]};n.health.forEach(function(e){var i={notice_name:e.notice_name,human_check_type:t.has_human_check,auto_check_type:t.has_auto_check,healthContent:e.content,isOffline:3==+t.notice_mode};o.list.push(i)}),this.appNotice.health=o,s&&(this.health=o)}this.appNotice.tourism=Object(f.isObject)(n.tourism)&&n.tourism.content,this.appNotice.denyCarrerList=Object(f.isObject)(n.careersDenied)&&this.getDenyCarrerList(n.careersDenied.content)||[],this.tourism=this.appNotice.tourism,this.denyCarrerList=this.appNotice.denyCarrerList}if(s){if(s.health.length){var r={list:[]};s.health.forEach(function(e){var i={notice_name:e.notice_name,human_check_type:t.has_human_check,auto_check_type:t.has_auto_check,healthContent:e.content,isOffline:3==+t.notice_mode};r.list.push(i)}),this.insuranceNotice.health=r,n||(this.health=r)}this.insuranceNotice.tourism=Object(f.isObject)(s.tourism)&&s.tourism.content,this.insuranceNotice.denyCarrerList=Object(f.isObject)(s.careersDenied)&&this.getDenyCarrerList(s.careersDenied.content)||[],n||(this.tourism=this.insuranceNotice.tourism,this.denyCarrerList=this.insuranceNotice.denyCarrerList)}}},immediate:!0}}}},1075:function(t,e,i){"use strict";var n=i(35);i.n(n);e.a={props:{title:{type:String,default:""},item:{type:Object,default:function(){return{}}},brandColor:{type:String,default:"#8c7fee"}},data:function(){return{tips:""}},computed:{bgColor:function(){return"linear-gradient(90deg, "+this.genRgba(this.brandColor,.4)+" 0%, "+this.genRgba(this.brandColor,.8)+" 100%);"}},methods:{genRgba:function(t,e){var i=Object(n.hexToRgb)(t||"#8c7fee",e||.1);return function(t){var e=t.replace(/rgba?\(/,"").replace(/\)/,"").replace(/[\s+]/g,"").split(","),i=parseFloat(e[3]||1),n=Math.floor(i*parseInt(e[0])+255*(1-i)),s=Math.floor(i*parseInt(e[1])+255*(1-i)),o=Math.floor(i*parseInt(e[2])+255*(1-i));return"#"+("0"+n.toString(16)).slice(-2)+("0"+s.toString(16)).slice(-2)+("0"+o.toString(16)).slice(-2)}(i)},viewTips:function(t){this.$emit("viewOfflineTips",t)},handleToast:function(){this.$emit("handleToast")}}}},1572:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(22),s=i.n(n),o=i(1573);o.a.install=function(t){t.component(o.a.name,o.a),t.prototype.$createGoldInsureNotice=s()(o.a,t)},e.default=o.a},1573:function(t,e,i){"use strict";function n(t){a||i(1574)}var s=i(1065),o=i(1591),r=i(8),a=!1,c=n,l=Object(r.a)(s.a,o.a,o.b,!1,c,"data-v-19593780",null);l.options.__file="src\\components\\GoldInsureNotice\\src\\index.vue",e.a=l.exports},1574:function(t,e){},1575:function(t,e,i){"use strict";function n(t){a||i(1576)}var s=i(1066),o=i(1583),r=i(8),a=!1,c=n,l=Object(r.a)(s.a,o.a,o.b,!1,c,"data-v-37ff6850",null);l.options.__file="src\\components\\GoldInsureNotice\\src\\components\\health.vue",e.a=l.exports},1576:function(t,e){},1577:function(t,e){},1578:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return s});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.humanCheckState||t.autoCheckState?i("div",{staticClass:"act-health-tip"},[i("div",{staticClass:"act-health-tip-cntt"},[t.humanCheckState&&t.autoCheckState?i("p",[t._v("\n 本产品"),i("b",[t._v("支持智能核保和人工核保")]),t._v(",如果您对某些健康状况不确认,可在健康告知页面进行核保。\n ")]):t.autoCheckState?i("p",[t._v("\n 本产品"),i("b",[t._v("支持智能核保")]),t._v(",如果您对某些健康状况不确认,可在健康告知页面进行核保。\n ")]):t.humanCheckState?i("p",[t._v("\n 本产品"),i("b",[t._v("支持人工核保")]),t._v(",如果您对某些健康状况不确认,可在健康告知页面进行核保。\n ")]):t._e()])]):t._e()},s=[];n._withStripped=!0},1579:function(t,e){},1580:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return s});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"act-health-box"},[i("div",{staticClass:"act-health-tit"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),t.item.content?i("div",{ref:"content",staticClass:"act-health-cntt",domProps:{innerHTML:t._s(t.item.content)}}):t.item.info?t._l(t.item.info,function(e,n){return i("div",{key:"health"+n,ref:"content",refInFor:!0,staticClass:"act-health-cntt",domProps:{innerHTML:t._s(e.content)}})}):t.item.healthContent?t._l(t.item.healthContent,function(e,n){return i("div",{key:"health"+n,ref:"content",refInFor:!0,staticClass:"act-health-cntt",domProps:{innerHTML:t._s(e.text)}})}):t._e()],2)},s=[];n._withStripped=!0},1581:function(t,e){},1582:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return s});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.denyCarrerList&&t.denyCarrerList.length>0?i("div",{staticClass:"act-health-carrer-box"},[i("div",{staticClass:"act-health-box"},[i("div",{staticClass:"act-health-tit"},[t._v("\n 职业工种告知\n ")]),t._v(" "),i("div",{staticClass:"act-health-txt"},[t._v("\n 被保人是否正在从事以下行业(点击分类名可查看详情):\n ")]),t._v(" "),i("div",{staticClass:"act-health-carrer"},t._l(t.denyCarrerList,function(e,n){return i("div",{key:n,staticClass:"act-health-carrer-line"},[i("div",{staticClass:"act-health-carrer-list"},t._l(e.list,function(e,s){return i("div",{key:s,staticClass:"act-health-carrer-li",style:{visibility:e.content?"":"hidden"},on:{click:function(i){return i.stopPropagation(),t.onClick(n,e.index)}}},[i("div",{staticClass:"act-health-carrer-li-txt",attrs:{"data-line":n,"data-index":e.index}},[t._v("\n "+t._s(e.content)+"\n ")])])}),0),t._v(" "),i("div",{staticClass:"act-health-carrer-tips"},t._l(e.tipsList,function(e,s){return i("div",{key:s,staticClass:"act-health-carrer-tips-item",class:{active:t.isSelected(n,e.index)}},[i("div",{staticClass:"act-health-carrer-tips-txt"},[t._v("\n "+t._s(e.content)+"\n ")])])}),0)])}),0)])]):t._e()},s=[];n._withStripped=!0},1583:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return s});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("act-gold-doc-layer",{ref:"doclayer",attrs:{visible:t.isVisible,title:t.layerTitle,zIndex:t.zIndex},on:{close:t.hide}},[t.showHealthFile?i("a",{staticClass:"act-picker-back",attrs:{slot:"headerLeft",href:"javascript:;"},on:{click:function(e){return e.stopPropagation(),t.goBack(e)}},slot:"headerLeft"}):t._e(),t._v(" "),t.showHealthFile?[i("act-scroll-zoom",{ref:"scrollZoom",staticClass:"act-doc-content",attrs:{termsInfo:t.termsInfo,brandColor:t.brandColor,docIndex:0}})]:[i("div",{staticClass:"act-health-layer"},[t.hasHealth?[t.health.list.length>1?i("div",{staticClass:"act-health-nav",class:{"flex-content":t.health.list.length<3},attrs:{slot:"header"},slot:"header"},[i("scroll",{attrs:{direction:"horizontal"}},t._l(t.health.list,function(e,n){return i("div",{key:n,staticClass:"act-health-nav-item",class:{active:t.isSelected(n)},style:{color:t.isSelected(n)?t.brandColor:""},on:{click:function(e){return e.stopPropagation(),t.changeVer(n)}}},[t._v("\n "+t._s(e.notice_name||e.ver)+"\n "),i("i",{directives:[{name:"show",rawName:"v-show",value:t.isSelected(n),expression:"isSelected(i)"}],style:{"background-color":t.brandColor}})])}),0)],1):t._e(),t._v(" "),t._l(t.health.list,function(e,n){return[i("div",{directives:[{name:"show",rawName:"v-show",value:t.isSelected(n),expression:"isSelected(k)"}],key:"health"+n,staticClass:"act-health-container"},[i("health-tips",{attrs:{item:e}}),t._v(" "),i("health-content",{attrs:{title:e.notice_name||e.ver||"健康告知",item:e},on:{openHealthFile:t.openHealthFile}})],1)]})]:t._e(),t._v(" "),t.health&&t.health.tourism?i("health-content",{attrs:{title:"旅游告知",item:t.health.tourism},on:{openHealthFile:t.openHealthFile}}):t._e(),t._v(" "),i("deny-carrer",{attrs:{denyCarrerList:t.denyCarrerList},on:{select:t.carrerSelect}})],2)]],2)},s=[];n._withStripped=!0},1584:function(t,e,i){"use strict";function n(t){a||i(1585)}var s=i(1074),o=i(1590),r=i(8),a=!1,c=n,l=Object(r.a)(s.a,o.a,o.b,!1,c,"data-v-bb3ef570",null);l.options.__file="src\\components\\GoldInsureNotice\\src\\components\\healthNotice.vue",e.a=l.exports},1585:function(t,e){},1586:function(t,e,i){"use strict";function n(t){a||i(1587)}var s=i(1075),o=i(1588),r=i(8),a=!1,c=n,l=Object(r.a)(s.a,o.a,o.b,!1,c,"data-v-ba6bdf4a",null);l.options.__file="src\\components\\GoldInsureNotice\\src\\components\\offlineHealth.vue",e.a=l.exports},1587:function(t,e){},1588:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return s});var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"offline-health-box"},[n("div",{staticClass:"health-tit"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),t._l(t.item.healthContent,function(e,s){return n("div",{key:s,staticClass:"offline-health-item"},[n("div",{staticClass:"title"},[n("div",{staticClass:"index",style:"box-shadow: 0px 3px 6px 0px "+t.genRgba(t.brandColor)+";background: "+t.bgColor},[t._v("\n "+t._s(s+1)+"\n ")]),t._v(" "),n("div",{staticClass:"text"},[t._v("\n "+t._s(e.text)+"\n "),e.question_tips?n("img",{attrs:{src:i(1589),alt:""},on:{click:function(i){return t.viewTips(e.question_tips)}}}):t._e()])]),t._v(" "),n("div",{staticClass:"content-box"},[[1,2,5].includes(+e.question_type)?n("div",{staticClass:"grain-box"},t._l(e.answers,function(e,i){return n("div",{key:i,staticClass:"item",on:{click:t.handleToast}},[t._v("\n "+t._s(e.value)+"\n ")])}),0):t._e(),t._v(" "),3==+e.question_type?n("div",{staticClass:"fill-box"},t._l(e.answers,function(e,i){return n("div",{key:i,staticClass:"item"},[n("div",{staticClass:"til"},[t._v("\n "+t._s(e.title)+"\n ")]),t._v(" "),n("div",{staticClass:"content",on:{click:t.handleToast}},[t._v("\n 请输入\n ")])])}),0):t._e(),t._v(" "),4==+e.question_type?n("div",{staticClass:"pure-fill-box",on:{click:t.handleToast}},[t._v("\n 请填写\n ")]):t._e()])])})],2)},s=[];n._withStripped=!0},1589:function(t,e){t.exports=l},1590:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return s});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("act-gold-doc-layer",{ref:"doclayer",attrs:{visible:t.isVisible,title:t.layerTitle,zIndex:t.zIndex},on:{close:t.hide}},[t.showHealthFile?i("a",{staticClass:"act-picker-back",attrs:{slot:"headerLeft",href:"javascript:;"},on:{click:function(e){return e.stopPropagation(),t.goBack(e)}},slot:"headerLeft"}):t._e(),t._v(" "),t.showHealthFile?[i("act-scroll-zoom",{ref:"scrollZoom",staticClass:"act-doc-content",attrs:{termsInfo:t.termsInfo,brandColor:t.brandColor,docIndex:0}})]:[t.appNotice.health&&t.insuranceNotice.health?[2===t.notice_mode||3===t.notice_mode?i("div",{staticClass:"act-notice-header"},t._l(t.noticeHeaderOptions,function(e,n){return i("div",{key:n,staticClass:"item",style:"color: "+(t.headerActiveIndex===n?t.brandColor||"#8c7fee":"#333333")+";font-size: "+(t.headerActiveIndex===n?"17px":"15px"),on:{click:function(e){return t.selHeader(n)}}},[t._v("\n "+t._s(e.text)+"\n ")])}),0):t._e()]:t._e(),t._v(" "),i("div",{staticClass:"act-health-layer"},[t.health?[t.health.list.length>1?i("div",{staticClass:"act-health-nav",class:{"flex-content":t.health.list.length<3},attrs:{slot:"header"},slot:"header"},[i("scroll",{attrs:{direction:"horizontal"}},t._l(t.health.list,function(e,n){return i("div",{key:n,staticClass:"act-health-nav-item",class:{active:t.isSelected(n)},style:{color:t.isSelected(n)?t.brandColor:""},on:{click:function(e){return e.stopPropagation(),t.changeVer(n)}}},[t._v("\n "+t._s(e.notice_name||e.ver)+"\n "),i("i",{directives:[{name:"show",rawName:"v-show",value:t.isSelected(n),expression:"isSelected(i)"}],style:{"background-color":t.brandColor}})])}),0)],1):t._e(),t._v(" "),t._l(t.health.list,function(e,n){return[i("div",{directives:[{name:"show",rawName:"v-show",value:t.isSelected(n),expression:"isSelected(k)"}],key:"health"+n,staticClass:"act-health-container"},[i("health-tips",{attrs:{item:e}}),t._v(" "),e.healthContent&&!e.isOffline?i("health-content",{attrs:{title:e.notice_name||e.ver||"健康告知",item:e},on:{openHealthFile:t.openHealthFile}}):t._e(),t._v(" "),e.healthContent&&e.isOffline?i("offline-health",{attrs:{title:e.notice_name||e.ver||"健康告知",brandColor:t.brandColor,item:e},on:{viewOfflineTips:t.viewOfflineTips,handleToast:function(e){return t.$emit("handleToast")}}}):t._e()],1)]})]:t._e(),t._v(" "),t.tourism?i("health-content",{attrs:{title:"旅游告知",item:{content:t.tourism}},on:{openHealthFile:t.openHealthFile}}):t._e(),t._v(" "),i("deny-carrer",{attrs:{denyCarrerList:t.denyCarrerList},on:{select:t.carrerSelect}})],2)]],2)},s=[];n._withStripped=!0},1591:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return s});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"act-gold-insure-notice"},[i("div",{staticClass:"act-gold-insure-notice-text",style:{color:t.textColor,"font-size":t.fontSize}},[i("span",{domProps:{innerHTML:t._s(t.text)}}),t._v(" "),t._l(t.noticeFiles,function(e,n){return[n==t.noticeFiles.length-1&&0!=n?i("span",{key:n+"span"},[t._v("和")]):0!=n?i("span",{key:n+"span"},[t._v("、")]):t._e(),t._v(" "),e.track?i("a",{key:n+"a",staticClass:"act-gold-insure-notice-item",style:{color:t.brandColor},attrs:{"data-track":e.track},on:{click:function(i){return t.onClick(e)}}},[t._v("《"+t._s(e.title)+"》")]):i("a",{key:n+"a",staticClass:"act-gold-insure-notice-item",style:{color:t.brandColor},attrs:{"data-track":e.track||""},on:{click:function(i){return t.onClick(e)}}},[t._v("《"+t._s(e.title)+"》")])]})],2),t._v(" "),i("act-gold-dialog",{ref:"tipsDialog",attrs:{maskClosable:!0,title:"提示",zIndex:t.zIndex+1,content:t.offlineTips,buttonType:"sticky",showConfirmButton:"",confirmButtonColor:t.brandColor||"#8c7fee",confirmButtonText:"确认"}}),t._v(" "),i("Toast",{ref:"offlineToast"})],1)},s=[];n._withStripped=!0},2:function(t,e){var i=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=i)},22:function(e,i){e.exports=t},220:function(t,e){t.exports=s},222:function(t,e){t.exports=o},32:function(t,i){t.exports=e},35:function(t,e){t.exports=i},577:function(t,e){t.exports=r},578:function(t,e){t.exports=a},8:function(t,e,i){"use strict";function n(t,e,i,n,s,o,r,a){t=t||{};var c=typeof t.default;"object"!==c&&"function"!==c||(t=t.default);var l="function"==typeof t?t.options:t;e&&(l.render=e,l.staticRenderFns=i,l._compiled=!0),n&&(l.functional=!0),o&&(l._scopeId=o);var h;if(r?(h=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__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},l._ssrRegister=h):s&&(h=a?function(){s.call(this,this.$root.$options.shadowRoot)}:s),h)if(l.functional){l._injectStyles=h;var u=l.render;l.render=function(t,e){return h.call(e),u(t,e)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,h):[h]}return{exports:t,options:l}}e.a=n},89:function(t,e,i){t.exports={default:i(93),__esModule:!0}},93:function(t,e,i){var n=i(2),s=n.JSON||(n.JSON={stringify:JSON.stringify});t.exports=function(t){return s.stringify.apply(s,arguments)}},98:function(t,e){t.exports=n}})});
|
package/es/Signature/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@xysfe/actui/es/assets/utils/create/index.js")):"function"==typeof define&&define.amd?define(["@xysfe/actui/es/assets/utils/create/index.js"],e):"object"==typeof exports?exports.Signature=e(require("@xysfe/actui/es/assets/utils/create/index.js")):t.Signature=e(t["@xysfe/actui/es/assets/utils/create/index.js"])}("undefined"!=typeof self?self:this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.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=1613)}({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)},1:function(t,e,n){var r=n(27)("wks"),i=n(24),o=n(0).Symbol,s="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=s&&o[t]||(s?o:i)("Symbol."+t))}).store=r},10:function(t,e,n){var r=n(0),i=n(2),o=n(17),s=n(5),a=n(7),u=function(t,e,n){var c,f,l,h=t&u.F,v=t&u.G,p=t&u.S,d=t&u.P,g=t&u.B,x=t&u.W,y=v?i:i[e]||(i[e]={}),m=y.prototype,C=v?r:p?r[e]:(r[e]||{}).prototype;v&&(n=e);for(c in n)(f=!h&&C&&void 0!==C[c])&&a(y,c)||(l=f?C[c]:n[c],y[c]=v&&"function"!=typeof C[c]?n[c]:g&&f?o(l,r):x&&C[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):d&&"function"==typeof l?o(Function.call,l):l,d&&((y.virtual||(y.virtual={}))[c]=l,t&u.R&&m&&!m[c]&&s(m,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},1080:function(t,e,n){"use strict";var r=n(66),i=n.n(r);e.a={name:"ActSignature",props:{color:{type:String,default:"#8c7fee"},clearBtnColor:{type:String,default:"#ffffff"},clearBtnText:{type:String,default:"重置"},saveBtnText:{type:String,default:"保存"},headerText:{type:String,default:"请完成您的亲笔签名"},isWatermark:{type:Boolean,default:!1},watermarkText:{type:String,default:""},watermarkTextColor:{type:String,default:"#DEE1ED"},isHorizontalScreen:{type:Boolean,default:!1},isFullScreen:{type:Boolean,default:!1},bgColor:{type:String,default:"#f9f9f9"},canvasBgColor:{type:String,default:"#ffffff"},title:{type:String,default:"请完成签名"},lineWidth:{type:Number,default:3},lineColor:{type:String,default:"#000000"}},data:function(){return{isVisible:!1,showErrtips:!1,isCrop:!1,hasDrew:!1,width:0,height:0,resultImg:"",points:{x:[],y:[]},canvasTxt:null,startX:0,startY:0,isDrawing:!1,sratio:1}},computed:{ratio:function(){return this.height/this.width},stageInfo:function(){return this.$refs.signatureCanvas.getBoundingClientRect()},myBg:function(){return this.canvasBgColor?this.canvasBgColor:"rgba(255, 255, 255, 0)"}},watch:{myBg:function(t){},isVisible:function(t){t&&(this.$emit("show"),this.initSignatureCanvas(),this.isWatermark&&this.initWatermarkCanvas())}},mounted:function(){var t=this;document.onmouseup=function(){t.isDrawing=!1}},methods:{getFontBold:function(t){return t>2&&this.watermarkText.length+3>t},initSignatureCanvas:function(){var t=this;setTimeout(function(){var e=t.$refs.signatureCanvas;t.signatureCtx=e.getContext("2d"),t.height=t.$refs.box.offsetHeight,t.width=t.$refs.box.offsetWidth,e.height=t.height,e.width=t.width,t.isWatermark||(e.style.background=t.myBg),t._signatureResize()})},initWatermarkCanvas:function(){var t=this;setTimeout(function(){var e=t.$refs.watermarkCanvas;t.watermarkCtx=e.getContext("2d"),e.height=t.$refs.box.offsetHeight,e.width=t.$refs.box.offsetWidth,e.style.background=t.myBg,t._watermarResize(),t.drawWatermark(t.watermarkCtx)})},isChineseOrEnglish:function(t){var e=/^[\u4e00-\u9fa5]+$/,n=120,r=3;return r=this.isHorizontalScreen?e.test(t)?4:10:3,t.length>4&&t.length-r>0&&(n=120-10*(t.length-r)),n},drawWatermark:function(t){var e=this;t.fillStyle=this.watermarkTextColor,t.textAlign="center",t.textBaseline="middle";var n=this.watermarkText,r=this.isChineseOrEnglish(n);console.log(r),t.font=r+"px serif",t.clearRect(0,0,this.width,this.height);var i=n.split(""),o=r,s=i.length*o,a=(this.height-s+o)/2;if(this.isHorizontalScreen){var u=this.width/2,c=this.height/2,f=90*Math.PI/180;t.translate(u,c),t.rotate(f),t.fillText(n,0,0)}else i.forEach(function(n,r){var i=e.width/2,s=a+r*o;t.fillText(n,i,s)})},show:function(){this.isVisible=!0},hide:function(){this.reset(),this.isVisible=!1},_watermarResize:function(){var t=this.$refs.watermarkCanvas;t.style.width=this.width+"px";var e=parseFloat(window.getComputedStyle(t).width);t.style.height=this.ratio*e+"px",this.watermarkCtx=t.getContext("2d"),this.watermarkCtx.scale(1*this.sratio,1*this.sratio),this.sratio=e/this.width,this.watermarkCtx.scale(1/this.sratio,1/this.sratio)},_signatureResize:function(){var t=this.$refs.signatureCanvas;t.style.width=this.width+"px";var e=parseFloat(window.getComputedStyle(t).width);t.style.height=this.ratio*e+"px",this.signatureCtx=t.getContext("2d"),this.signatureCtx.scale(1*this.sratio,1*this.sratio),this.sratio=e/this.width,this.signatureCtx.scale(1/this.sratio,1/this.sratio)},mouseDown:function(t){t=t||event,t.preventDefault(),this.isDrawing=!0,this.hasDrew=!0;var e={x:t.offsetX,y:t.offsetY};this.drawStart(e)},mouseMove:function(t){if(t=t||event,t.preventDefault(),this.isDrawing){var e={x:t.offsetX,y:t.offsetY};this.drawMove(e)}},mouseUp:function(t){t=t||event,t.preventDefault();var e={x:t.offsetX,y:t.offsetY};this.drawEnd(e),this.isDrawing=!1},touchStart:function(t){if(t=t||event,t.preventDefault(),this.hasDrew=!0,1===t.touches.length){var e={x:t.targetTouches[0].clientX-this.$refs.signatureCanvas.getBoundingClientRect().left,y:t.targetTouches[0].clientY-this.$refs.signatureCanvas.getBoundingClientRect().top};this.drawStart(e)}},touchMove:function(t){if(t=t||event,t.preventDefault(),1===t.touches.length){var e={x:t.targetTouches[0].clientX-this.$refs.signatureCanvas.getBoundingClientRect().left,y:t.targetTouches[0].clientY-this.$refs.signatureCanvas.getBoundingClientRect().top};this.drawMove(e)}},touchEnd:function(t){if(t=t||event,t.preventDefault(),1===t.touches.length){var e={x:t.targetTouches[0].clientX-this.$refs.signatureCanvas.getBoundingClientRect().left,y:t.targetTouches[0].clientY-this.$refs.signatureCanvas.getBoundingClientRect().top};this.drawEnd(e)}},drawStart:function(t){this.startX=t.x,this.startY=t.y,this.signatureCtx.beginPath(),this.signatureCtx.moveTo(this.startX,this.startY),this.signatureCtx.lineTo(t.x,t.y),this.signatureCtx.lineCap="round",this.signatureCtx.lineJoin="round",this.signatureCtx.lineWidth=this.lineWidth*this.sratio,this.signatureCtx.stroke(),this.signatureCtx.closePath(),this.points.x.push(t.x),this.points.y.push(t.y)},drawMove:function(t){this.signatureCtx.beginPath(),this.signatureCtx.moveTo(this.startX,this.startY),this.signatureCtx.lineTo(t.x,t.y),this.signatureCtx.strokeStyle=this.lineColor,this.signatureCtx.lineWidth=this.lineWidth*this.sratio,this.signatureCtx.lineCap="round",this.signatureCtx.lineJoin="round",this.signatureCtx.stroke(),this.signatureCtx.closePath(),this.startY=t.y,this.startX=t.x,this.points.x.push(t.x),this.points.y.push(t.y)},drawEnd:function(t){this.signatureCtx.beginPath(),this.signatureCtx.moveTo(this.startX,this.startY),this.signatureCtx.lineTo(t.x,t.y),this.signatureCtx.lineCap="round",this.signatureCtx.lineJoin="round",this.signatureCtx.stroke(),this.signatureCtx.closePath(),this.points.x.push(t.x),this.points.y.push(t.y),this.points.x.push(-1),this.points.y.push(-1)},generate:function(){var t=this;return new i.a(function(e,n){var r=t.getMax(t.points.x,t.points.y);if(!t.hasDrew)return void n("Warning: Not Signned!");if(t.points.x.length<40||Math.abs(r.left-r.right)<40||Math.abs(r.top-r.bottom)<40)return void n("Warning: Not Signned!");var i=t.signatureCtx.getImageData(0,0,t.$refs.signatureCanvas.width,t.$refs.signatureCanvas.height);t.signatureCtx.globalCompositeOperation="destination-over",t.signatureCtx.fillStyle=t.myBg,t.signatureCtx.fillRect(0,0,t.$refs.signatureCanvas.width,t.$refs.signatureCanvas.height),t.resultImg=t.$refs.signatureCanvas.toDataURL();var o=t.resultImg;if(t.signatureCtx.clearRect(0,0,t.$refs.signatureCanvas.width,t.$refs.signatureCanvas.height),t.signatureCtx.putImageData(i,0,0),t.signatureCtx.globalCompositeOperation="source-over",t.isCrop){var s,a=t.getCropArea(i.data),u=document.createElement("canvas"),c=u.getContext("2d");u.width=a[2]-a[0],u.height=a[3]-a[1];var f=(s=t.signatureCtx).getImageData.apply(s,a);c.globalCompositeOperation="destination-over",c.putImageData(f,0,0),c.fillStyle=t.myBg,c.fillRect(0,0,u.width,u.height),o=u.toDataURL(),u=null}e(o)})},reset:function(){this.signatureCtx.clearRect(0,0,this.$refs.signatureCanvas.width,this.$refs.signatureCanvas.height),this.$emit("update:bgColor",""),this.points={x:[],y:[]},this.hasDrew=!1,this.resultImg=""},getCropArea:function(t){for(var e=this.$refs.signatureCanvas.width,n=0,r=this.$refs.signatureCanvas.height,i=0,o=0;o<this.$refs.signatureCanvas.width;o++)for(var s=0;s<this.$refs.signatureCanvas.height;s++){var a=4*(o+this.$refs.signatureCanvas.width*s);(t[a]>0||t[a+1]>0||t[a+2]||t[a+3]>0)&&(i=Math.max(s,i),n=Math.max(o,n),r=Math.min(s,r),e=Math.min(o,e))}return e++,n++,r++,i++,[e,r,n,i]},getMax:function(t,e){var n={left:0,right:0,top:0,bottom:0};return"[object Array]"!=={}.toString.call(t)||"[object Array]"!=={}.toString.call(e)?n:(n.left=Math.min.apply(null,t),n.right=Math.max.apply(null,t),n.top=Math.min.apply(null,e),n.bottom=Math.max.apply(null,e),n)},save:function(){var t=this;this.generate().then(function(e){t.$emit("complete",e),t.hide()}).catch(function(e){console.log(e),t.showErrtips=!0,setTimeout(function(){t.showErrtips=!1},2e3)})}}}},11:function(t,e){t.exports={}},12:function(t,e,n){var r=n(30),i=n(16);t.exports=function(t){return r(i(t))}},13:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},14:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},15:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},16:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},1613:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(22),i=n.n(r),o=n(1614);o.a.install=function(t){t.component(o.a.name,o.a),t.prototype.$createSignature=i()(o.a,t)},e.default=o.a},1614:function(t,e,n){"use strict";function r(t){a||n(1615)}var i=n(1080),o=n(1616),s=n(8),a=!1,u=r,c=Object(s.a)(i.a,o.a,o.b,!1,u,"data-v-31195bd6",null);c.options.__file="src\\components\\Signature\\src\\index.vue",e.a=c.exports},1615:function(t,e){},1616:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"act-gold-popup-move"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"act-signature-wrap",attrs:{id:"act-signature"}},[t.isHorizontalScreen?n("div",{staticClass:"act-signature-horizontal-box",class:{isFullScreen:t.isFullScreen},style:"background-color: "+t.bgColor+";"},[n("div",{staticClass:"act-signature-content"},[n("div",{staticClass:"content-left"},[n("div",{staticClass:"signature-title"},t._l("申请人"+t.watermarkText+"亲笔签名",function(e,r){return n("span",{key:e+"_"+r,staticClass:"vertical-text",style:t.getFontBold(r)?"font-weight: bold;":""},[t._v("\n "+t._s(e)+"\n ")])}),0),t._v(" "),n("div",{staticClass:"ctrl"},[n("div",{staticClass:"clearBtn",style:"background: "+t.clearBtnColor,attrs:{type:"button"},on:{click:t.reset}},t._l(t.clearBtnText,function(e,r){return n("span",{key:e+"_"+r,staticClass:"vertical-text clearBtnText"},[t._v("\n "+t._s(e)+"\n ")])}),0),t._v(" "),n("div",{staticClass:"saveBtn",style:"background: "+t.color,attrs:{type:"button"},on:{click:t.save}},t._l(t.saveBtnText,function(e,r){return n("span",{key:e+"_"+r,staticClass:"vertical-text saveBtnText"},[t._v("\n "+t._s(e)+"\n ")])}),0)])]),t._v(" "),n("div",{staticClass:"content-right"},[n("div",{ref:"box",staticClass:"canvasBox"},[n("canvas",{ref:"watermarkCanvas",staticClass:"canvas-ins"}),t._v(" "),n("canvas",{ref:"signatureCanvas",staticClass:"canvas-ins",on:{mousedown:t.mouseDown,mousemove:t.mouseMove,mouseup:t.mouseUp,touchstart:t.touchStart,touchmove:t.touchMove,touchend:t.touchEnd}})])]),t._v(" "),n("div",{staticClass:"header-box",style:"background: "+t.bgColor+";height: 100%;"},[n("div",{staticClass:"text",staticStyle:{display:"flex","flex-direction":"column"}},t._l(t.title,function(e,r){return n("span",{key:e+"_"+r,staticClass:"vertical-text"},[t._v("\n "+t._s(e)+"\n ")])}),0),t._v(" "),n("div",{staticClass:"close",staticStyle:{bottom:"5px"},on:{click:t.hide}})])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showErrtips,expression:"showErrtips"}],staticClass:"errtips"},t._l("请仔细签名",function(e,r){return n("span",{key:e+"_"+r,staticClass:"vertical-text"},[t._v("\n "+t._s(e)+"\n ")])}),0)]):n("div",{staticClass:"act-signature-box",class:{isFullScreen:t.isFullScreen},style:"background-color: "+t.bgColor+";"},[n("div",{staticClass:"header-box",style:"background: "+t.bgColor},[n("div",{staticClass:"text"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),n("div",{staticClass:"close",on:{click:t.hide}})]),t._v(" "),!t.$slots.header&&t.headerText?n("div",{staticClass:"header",domProps:{innerHTML:t._s(t.headerText)}}):t._e(),t._v(" "),t.$slots.header?t._t("header"):t._e(),t._v(" "),n("div",{ref:"box",staticClass:"canvasBox",style:"height: calc("+(!t.$slots.header&&t.headerText?88:96)+"% - 100px);"},[n("canvas",{ref:"watermarkCanvas",staticClass:"canvas-ins"}),t._v(" "),n("canvas",{ref:"signatureCanvas",staticClass:"canvas-ins",on:{mousedown:t.mouseDown,mousemove:t.mouseMove,mouseup:t.mouseUp,touchstart:t.touchStart,touchmove:t.touchMove,touchend:t.touchEnd}})]),t._v(" "),n("div",{staticClass:"ctrl",style:"background: "+t.bgColor},[n("div",{staticClass:"clearBtn",style:"background: "+t.clearBtnColor,attrs:{type:"button"},on:{click:t.reset}},[t._v("\n "+t._s(t.clearBtnText)+"\n ")]),t._v(" "),n("div",{staticClass:"saveBtn",style:"background: "+t.color,attrs:{type:"button"},on:{click:t.save}},[t._v("\n "+t._s(t.saveBtnText)+"\n ")])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showErrtips,expression:"showErrtips"}],staticClass:"errtips"},[t._v("\n 请仔细签名\n ")])],2)])])},i=[];r._withStripped=!0},17:function(t,e,n){var r=n(20);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,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},18:function(t,e){t.exports=!0},19:function(t,e,n){var r=n(27)("keys"),i=n(24);t.exports=function(t){return r[t]||(r[t]=i(t))}},2:function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},20:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},21:function(t,e,n){var r=n(6),i=n(0).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},22:function(e,n){e.exports=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))}},25:function(t,e,n){var r=n(9).f,i=n(7),o=n(1)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},26:function(t,e,n){var r=n(37),i=n(28);t.exports=Object.keys||function(t){return r(t,i)}},27:function(t,e,n){var r=n(2),i=n(0),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(18)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},28:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},29:function(t,e,n){var r=n(16);t.exports=function(t){return Object(r(t))}},3:function(t,e,n){t.exports=!n(13)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},30: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)}},31:function(t,e,n){var r=n(15),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},33:function(t,e,n){"use strict";var r=n(18),i=n(10),o=n(46),s=n(5),a=n(11),u=n(52),c=n(25),f=n(54),l=n(1)("iterator"),h=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,e,n,p,d,g,x){u(n,e,p);var y,m,C,_=function(t){if(!h&&t in T)return T[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},w=e+" Iterator",b="values"==d,S=!1,T=t.prototype,k=T[l]||T["@@iterator"]||d&&T[d],j=k||_(d),M=d?b?_("entries"):j:void 0,P="Array"==e?T.entries||k:k;if(P&&(C=f(P.call(new t)))!==Object.prototype&&C.next&&(c(C,w,!0),r||"function"==typeof C[l]||s(C,l,v)),b&&k&&"values"!==k.name&&(S=!0,j=function(){return k.call(this)}),r&&!x||!h&&!S&&T[l]||s(T,l,j),a[e]=j,a[w]=v,d)if(y={values:b?j:_("values"),keys:g?j:_("keys"),entries:M},x)for(m in y)m in T||o(T,m,y[m]);else i(i.P+i.F*(h||S),e,y);return y}},34:function(t,e,n){var r=n(6);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},36:function(t,e,n){t.exports=!n(3)&&!n(13)(function(){return 7!=Object.defineProperty(n(21)("div"),"a",{get:function(){return 7}}).a})},37:function(t,e,n){var r=n(7),i=n(12),o=n(41)(!1),s=n(19)("IE_PROTO");t.exports=function(t,e){var n,a=i(t),u=0,c=[];for(n in a)n!=s&&r(a,n)&&c.push(n);for(;e.length>u;)r(a,n=e[u++])&&(~o(c,n)||c.push(n));return c}},38:function(t,e,n){var r=n(0).document;t.exports=r&&r.documentElement},39:function(t,e,n){"use strict";function r(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=i(e),this.reject=i(n)}var i=n(20);t.exports.f=function(t){return new r(t)}},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,e,n){var r=n(14),i=n(1)("toStringTag"),o="Arguments"==r(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=s(e=Object(t),i))?n:o?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},41:function(t,e,n){var r=n(12),i=n(31),o=n(42);t.exports=function(t){return function(e,n,s){var a,u=r(e),c=i(u.length),f=o(s,c);if(t&&n!=n){for(;c>f;)if((a=u[f++])!=a)return!0}else for(;c>f;f++)if((t||f in u)&&u[f]===n)return t||f||0;return!t&&-1}}},42:function(t,e,n){var r=n(15),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},43:function(t,e,n){"use strict";var r=n(51)(!0);n(33)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},45:function(t,e,n){var r=n(4),i=n(53),o=n(28),s=n(19)("IE_PROTO"),a=function(){},u=function(){var t,e=n(21)("iframe"),r=o.length;for(e.style.display="none",n(38).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;r--;)delete u.prototype[o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(a.prototype=r(t),n=new a,a.prototype=null,n[s]=t):n=u(),void 0===e?n:i(n,e)}},46:function(t,e,n){t.exports=n(5)},47:function(t,e,n){n(63);for(var r=n(0),i=n(5),o=n(11),s=n(1)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<a.length;u++){var c=a[u],f=r[c],l=f&&f.prototype;l&&!l[s]&&i(l,s,c),o[c]=o.Array}},49:function(t,e,n){var r=n(40),i=n(1)("iterator"),o=n(11);t.exports=n(2).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},5:function(t,e,n){var r=n(9),i=n(23);t.exports=n(3)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},51:function(t,e,n){var r=n(15),i=n(16);t.exports=function(t){return function(e,n){var o,s,a=String(i(e)),u=r(n),c=a.length;return u<0||u>=c?t?"":void 0:(o=a.charCodeAt(u),o<55296||o>56319||u+1===c||(s=a.charCodeAt(u+1))<56320||s>57343?t?a.charAt(u):o:t?a.slice(u,u+2):s-56320+(o-55296<<10)+65536)}}},52:function(t,e,n){"use strict";var r=n(45),i=n(23),o=n(25),s={};n(5)(s,n(1)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(s,{next:i(1,n)}),o(t,e+" Iterator")}},53:function(t,e,n){var r=n(9),i=n(4),o=n(26);t.exports=n(3)?Object.defineProperties:function(t,e){i(t);for(var n,s=o(e),a=s.length,u=0;a>u;)r.f(t,n=s[u++],e[n]);return t}},54:function(t,e,n){var r=n(7),i=n(29),o=n(19)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},57:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},58:function(t,e,n){var r=n(4),i=n(20),o=n(1)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||void 0==(n=r(s)[o])?e:i(n)}},59:function(t,e,n){var r,i,o,s=n(17),a=n(81),u=n(38),c=n(21),f=n(0),l=f.process,h=f.setImmediate,v=f.clearImmediate,p=f.MessageChannel,d=f.Dispatch,g=0,x={},y=function(){var t=+this;if(x.hasOwnProperty(t)){var e=x[t];delete x[t],e()}},m=function(t){y.call(t.data)};h&&v||(h=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return x[++g]=function(){a("function"==typeof t?t:Function(t),e)},r(g),g},v=function(t){delete x[t]},"process"==n(14)(l)?r=function(t){l.nextTick(s(y,t,1))}:d&&d.now?r=function(t){d.now(s(y,t,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=m,r=s(o.postMessage,o,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",m,!1)):r="onreadystatechange"in c("script")?function(t){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),y.call(t)}}:function(t){setTimeout(s(y,t,1),0)}),t.exports={set:h,clear:v}},6:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},60:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},61:function(t,e,n){var r=n(4),i=n(6),o=n(39);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},63:function(t,e,n){"use strict";var r=n(64),i=n(57),o=n(11),s=n(12);t.exports=n(33)(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,n):"values"==e?i(0,t[n]):i(0,[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},64:function(t,e){t.exports=function(){}},66:function(t,e,n){t.exports={default:n(79),__esModule:!0}},7:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},70:function(t,e){},72:function(t,e,n){var r=n(4);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},73:function(t,e,n){var r=n(11),i=n(1)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},74:function(t,e,n){var r=n(17),i=n(72),o=n(73),s=n(4),a=n(31),u=n(49),c={},f={},e=t.exports=function(t,e,n,l,h){var v,p,d,g,x=h?function(){return t}:u(t),y=r(n,l,e?2:1),m=0;if("function"!=typeof x)throw TypeError(t+" is not iterable!");if(o(x)){for(v=a(t.length);v>m;m++)if((g=e?y(s(p=t[m])[0],p[1]):y(t[m]))===c||g===f)return g}else for(d=x.call(t);!(p=d.next()).done;)if((g=i(d,y,p.value,e))===c||g===f)return g};e.BREAK=c,e.RETURN=f},75:function(t,e,n){var r=n(1)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},t(o)}catch(t){}return n}},76:function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},77:function(t,e,n){var r=n(5);t.exports=function(t,e,n){for(var i in e)n&&t[i]?t[i]=e[i]:r(t,i,e[i]);return t}},78:function(t,e,n){"use strict";var r=n(0),i=n(2),o=n(9),s=n(3),a=n(1)("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:r[t];s&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},79:function(t,e,n){n(70),n(43),n(47),n(80),n(84),n(85),t.exports=n(2).Promise},8:function(t,e,n){"use strict";function r(t,e,n,r,i,o,s,a){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),o&&(c._scopeId=o);var f;if(s?(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__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=f):i&&(f=a?function(){i.call(this,this.$root.$options.shadowRoot)}:i),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 h=c.beforeCreate;c.beforeCreate=h?[].concat(h,f):[f]}return{exports:t,options:c}}e.a=r},80:function(t,e,n){"use strict";var r,i,o,s,a=n(18),u=n(0),c=n(17),f=n(40),l=n(10),h=n(6),v=n(20),p=n(76),d=n(74),g=n(58),x=n(59).set,y=n(82)(),m=n(39),C=n(60),_=n(83),w=n(61),b=u.TypeError,S=u.process,T=S&&S.versions,k=T&&T.v8||"",j=u.Promise,M="process"==f(S),P=function(){},O=i=m.f,E=!!function(){try{var t=j.resolve(1),e=(t.constructor={})[n(1)("species")]=function(t){t(P,P)};return(M||"function"==typeof PromiseRejectionEvent)&&t.then(P)instanceof e&&0!==k.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(t){}}(),B=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},$=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var r=t._v,i=1==t._s,o=0;n.length>o;)!function(e){var n,o,s,a=i?e.ok:e.fail,u=e.resolve,c=e.reject,f=e.domain;try{a?(i||(2==t._h&&L(t),t._h=1),!0===a?n=r:(f&&f.enter(),n=a(r),f&&(f.exit(),s=!0)),n===e.promise?c(b("Promise-chain cycle")):(o=B(n))?o.call(n,u,c):u(n)):c(r)}catch(t){f&&!s&&f.exit(),c(t)}}(n[o++]);t._c=[],t._n=!1,e&&!t._h&&R(t)})}},R=function(t){x.call(u,function(){var e,n,r,i=t._v,o=D(t);if(o&&(e=C(function(){M?S.emit("unhandledRejection",i,t):(n=u.onunhandledrejection)?n({promise:t,reason:i}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=M||D(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},D=function(t){return 1!==t._h&&0===(t._a||t._c).length},L=function(t){x.call(u,function(){var e;M?S.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},A=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),$(e,!0))},F=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw b("Promise can't be resolved itself");(e=B(t))?y(function(){var r={_w:n,_d:!1};try{e.call(t,c(F,r,1),c(A,r,1))}catch(t){A.call(r,t)}}):(n._v=t,n._s=1,$(n,!1))}catch(t){A.call({_w:n,_d:!1},t)}}};E||(j=function(t){p(this,j,"Promise","_h"),v(t),r.call(this);try{t(c(F,this,1),c(A,this,1))}catch(t){A.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(77)(j.prototype,{then:function(t,e){var n=O(g(this,j));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=M?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&$(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=c(F,t,1),this.reject=c(A,t,1)},m.f=O=function(t){return t===j||t===s?new o(t):i(t)}),l(l.G+l.W+l.F*!E,{Promise:j}),n(25)(j,"Promise"),n(78)("Promise"),s=n(2).Promise,l(l.S+l.F*!E,"Promise",{reject:function(t){var e=O(this);return(0,e.reject)(t),e.promise}}),l(l.S+l.F*(a||!E),"Promise",{resolve:function(t){return w(a&&this===s?j:this,t)}}),l(l.S+l.F*!(E&&n(75)(function(t){j.all(t).catch(P)})),"Promise",{all:function(t){var e=this,n=O(e),r=n.resolve,i=n.reject,o=C(function(){var n=[],o=0,s=1;d(t,!1,function(t){var a=o++,u=!1;n.push(void 0),s++,e.resolve(t).then(function(t){u||(u=!0,n[a]=t,--s||r(n))},i)}),--s||r(n)});return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=O(e),r=n.reject,i=C(function(){d(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},81:function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},82:function(t,e,n){var r=n(0),i=n(59).set,o=r.MutationObserver||r.WebKitMutationObserver,s=r.process,a=r.Promise,u="process"==n(14)(s);t.exports=function(){var t,e,n,c=function(){var r,i;for(u&&(r=s.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(u)n=function(){s.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var f=a.resolve(void 0);n=function(){f.then(c)}}else n=function(){i.call(r,c)};else{var l=!0,h=document.createTextNode("");new o(c).observe(h,{characterData:!0}),n=function(){h.data=l=!l}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},83:function(t,e,n){var r=n(0),i=r.navigator;t.exports=i&&i.userAgent||""},84:function(t,e,n){"use strict";var r=n(10),i=n(2),o=n(0),s=n(58),a=n(61);r(r.P+r.R,"Promise",{finally:function(t){var e=s(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return a(e,t()).then(function(){return n})}:t,n?function(n){return a(e,t()).then(function(){throw n})}:t)}})},85:function(t,e,n){"use strict";var r=n(10),i=n(39),o=n(60);r(r.S,"Promise",{try:function(t){var e=i.f(this),n=o(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},9:function(t,e,n){var r=n(4),i=n(36),o=n(34),s=Object.defineProperty;e.f=n(3)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return s(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}}})});
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@xysfe/actui/es/assets/utils/create/index.js")):"function"==typeof define&&define.amd?define(["@xysfe/actui/es/assets/utils/create/index.js"],e):"object"==typeof exports?exports.Signature=e(require("@xysfe/actui/es/assets/utils/create/index.js")):t.Signature=e(t["@xysfe/actui/es/assets/utils/create/index.js"])}("undefined"!=typeof self?self:this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.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=1613)}({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)},1:function(t,e,n){var r=n(27)("wks"),i=n(24),o=n(0).Symbol,s="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=s&&o[t]||(s?o:i)("Symbol."+t))}).store=r},10:function(t,e,n){var r=n(0),i=n(2),o=n(17),s=n(5),a=n(7),u=function(t,e,n){var c,f,l,h=t&u.F,v=t&u.G,p=t&u.S,d=t&u.P,g=t&u.B,x=t&u.W,y=v?i:i[e]||(i[e]={}),m=y.prototype,C=v?r:p?r[e]:(r[e]||{}).prototype;v&&(n=e);for(c in n)(f=!h&&C&&void 0!==C[c])&&a(y,c)||(l=f?C[c]:n[c],y[c]=v&&"function"!=typeof C[c]?n[c]:g&&f?o(l,r):x&&C[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):d&&"function"==typeof l?o(Function.call,l):l,d&&((y.virtual||(y.virtual={}))[c]=l,t&u.R&&m&&!m[c]&&s(m,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},1080:function(t,e,n){"use strict";var r=n(66),i=n.n(r);e.a={name:"ActSignature",props:{color:{type:String,default:"#8c7fee"},backBtnColor:{type:String,default:"#ffffff"},clearBtnColor:{type:String,default:"#ffffff"},clearBtnText:{type:String,default:"重置"},backBtnText:{type:String,default:"返回"},saveBtnText:{type:String,default:"保存"},headerText:{type:String,default:"请完成您的亲笔签名"},isWatermark:{type:Boolean,default:!1},watermarkText:{type:String,default:""},watermarkTextColor:{type:String,default:"#DEE1ED"},isHorizontalScreen:{type:Boolean,default:!1},isFullScreen:{type:Boolean,default:!1},bgColor:{type:String,default:"#f9f9f9"},canvasBgColor:{type:String,default:"#ffffff"},title:{type:String,default:"请完成签名"},lineWidth:{type:Number,default:3},lineColor:{type:String,default:"#000000"},identity:{type:String,default:"申请人"},signatureTip:{type:String,default:""},visible:{type:Boolean,default:!1},scene:{type:String,default:"dialog"}},data:function(){return{isVisible:!1,showErrtips:!1,isCrop:!1,hasDrew:!1,width:0,height:0,resultImg:"",points:{x:[],y:[]},canvasTxt:null,startX:0,startY:0,isDrawing:!1,sratio:1}},computed:{ratio:function(){return this.height/this.width},stageInfo:function(){return this.$refs.signatureCanvas.getBoundingClientRect()},myBg:function(){return this.canvasBgColor?this.canvasBgColor:"rgba(255, 255, 255, 0)"},signIdentityText:function(){return""+this.identity+this.watermarkText+"亲笔签名"}},watch:{myBg:function(t){},isVisible:function(t){t&&(this.$emit("show"),this.initSignatureCanvas(),this.isWatermark&&this.initWatermarkCanvas())}},mounted:function(){var t=this;this.preventScreenRotation(),document.onmouseup=function(){t.isDrawing=!1}},methods:{preventScreenRotation:function(){window.screen.orientation&&window.screen.orientation.lock?window.screen.orientation.lock("portrait"):window.screen.lockOrientation&&window.screen.lockOrientation("portrait")},getFontBold:function(t){return t>this.identity.length-1&&this.watermarkText.length+this.identity.length>t},initSignatureCanvas:function(){var t=this;setTimeout(function(){var e=t.$refs.signatureCanvas;t.signatureCtx=e.getContext("2d"),t.height=t.$refs.box.offsetHeight,t.width=t.$refs.box.offsetWidth,e.height=t.height,e.width=t.width,t.isWatermark||(e.style.background=t.myBg),t._signatureResize()})},initWatermarkCanvas:function(){var t=this;setTimeout(function(){var e=t.$refs.watermarkCanvas;t.watermarkCtx=e.getContext("2d"),e.height=t.$refs.box.offsetHeight,e.width=t.$refs.box.offsetWidth,e.style.background=t.myBg,t._watermarResize(),t.drawWatermark(t.watermarkCtx)})},isChineseOrEnglish:function(t){var e=/^[\u4e00-\u9fa5]+$/,n=120,r=3;return r=this.isHorizontalScreen?e.test(t)?4:10:3,t.length>4&&t.length-r>0&&(n=120-10*(t.length-r)),n},drawWatermark:function(t){var e=this;t.fillStyle=this.watermarkTextColor,t.textAlign="center",t.textBaseline="middle";var n=this.watermarkText,r=this.isChineseOrEnglish(n);console.log(r),t.font=r+"px serif",t.clearRect(0,0,this.width,this.height);var i=n.split(""),o=r,s=i.length*o,a=(this.height-s+o)/2;if(this.isHorizontalScreen){var u=this.width/2,c=this.height/2,f=90*Math.PI/180;t.translate(u,c),t.rotate(f),t.fillText(n,0,0)}else i.forEach(function(n,r){var i=e.width/2,s=a+r*o;t.fillText(n,i,s)})},show:function(){this.isVisible=!0},hide:function(){this.reset(),this.isVisible=!1},_watermarResize:function(){var t=this.$refs.watermarkCanvas;t.style.width=this.width+"px";var e=parseFloat(window.getComputedStyle(t).width);t.style.height=this.ratio*e+"px",this.watermarkCtx=t.getContext("2d"),this.watermarkCtx.scale(1*this.sratio,1*this.sratio),this.sratio=e/this.width,this.watermarkCtx.scale(1/this.sratio,1/this.sratio)},_signatureResize:function(){var t=this.$refs.signatureCanvas;t.style.width=this.width+"px";var e=parseFloat(window.getComputedStyle(t).width);t.style.height=this.ratio*e+"px",this.signatureCtx=t.getContext("2d"),this.signatureCtx.scale(1*this.sratio,1*this.sratio),this.sratio=e/this.width,this.signatureCtx.scale(1/this.sratio,1/this.sratio)},mouseDown:function(t){t=t||event,t.preventDefault(),this.isDrawing=!0,this.hasDrew=!0;var e={x:t.offsetX,y:t.offsetY};this.drawStart(e)},mouseMove:function(t){if(t=t||event,t.preventDefault(),this.isDrawing){var e={x:t.offsetX,y:t.offsetY};this.drawMove(e)}},mouseUp:function(t){t=t||event,t.preventDefault();var e={x:t.offsetX,y:t.offsetY};this.drawEnd(e),this.isDrawing=!1},touchStart:function(t){if(t=t||event,t.preventDefault(),this.hasDrew=!0,1===t.touches.length){var e={x:t.targetTouches[0].clientX-this.$refs.signatureCanvas.getBoundingClientRect().left,y:t.targetTouches[0].clientY-this.$refs.signatureCanvas.getBoundingClientRect().top};this.drawStart(e)}},touchMove:function(t){if(t=t||event,t.preventDefault(),1===t.touches.length){var e={x:t.targetTouches[0].clientX-this.$refs.signatureCanvas.getBoundingClientRect().left,y:t.targetTouches[0].clientY-this.$refs.signatureCanvas.getBoundingClientRect().top};this.drawMove(e)}},touchEnd:function(t){if(t=t||event,t.preventDefault(),1===t.touches.length){var e={x:t.targetTouches[0].clientX-this.$refs.signatureCanvas.getBoundingClientRect().left,y:t.targetTouches[0].clientY-this.$refs.signatureCanvas.getBoundingClientRect().top};this.drawEnd(e)}},drawStart:function(t){this.startX=t.x,this.startY=t.y,this.signatureCtx.beginPath(),this.signatureCtx.moveTo(this.startX,this.startY),this.signatureCtx.lineTo(t.x,t.y),this.signatureCtx.lineCap="round",this.signatureCtx.lineJoin="round",this.signatureCtx.lineWidth=this.lineWidth*this.sratio,this.signatureCtx.stroke(),this.signatureCtx.closePath(),this.points.x.push(t.x),this.points.y.push(t.y)},drawMove:function(t){this.signatureCtx.beginPath(),this.signatureCtx.moveTo(this.startX,this.startY),this.signatureCtx.lineTo(t.x,t.y),this.signatureCtx.strokeStyle=this.lineColor,this.signatureCtx.lineWidth=this.lineWidth*this.sratio,this.signatureCtx.lineCap="round",this.signatureCtx.lineJoin="round",this.signatureCtx.stroke(),this.signatureCtx.closePath(),this.startY=t.y,this.startX=t.x,this.points.x.push(t.x),this.points.y.push(t.y)},drawEnd:function(t){this.signatureCtx.beginPath(),this.signatureCtx.moveTo(this.startX,this.startY),this.signatureCtx.lineTo(t.x,t.y),this.signatureCtx.lineCap="round",this.signatureCtx.lineJoin="round",this.signatureCtx.stroke(),this.signatureCtx.closePath(),this.points.x.push(t.x),this.points.y.push(t.y),this.points.x.push(-1),this.points.y.push(-1)},generate:function(){var t=this;return new i.a(function(e,n){var r=t.getMax(t.points.x,t.points.y);if(!t.hasDrew)return void n("Warning: Not Signned!");if(t.points.x.length<40||Math.abs(r.left-r.right)<40||Math.abs(r.top-r.bottom)<40)return void n("Warning: Not Signned!");var i=t.signatureCtx.getImageData(0,0,t.$refs.signatureCanvas.width,t.$refs.signatureCanvas.height);t.signatureCtx.globalCompositeOperation="destination-over",t.signatureCtx.fillStyle=t.myBg,t.signatureCtx.fillRect(0,0,t.$refs.signatureCanvas.width,t.$refs.signatureCanvas.height),t.resultImg=t.$refs.signatureCanvas.toDataURL();var o=t.resultImg;if(t.signatureCtx.clearRect(0,0,t.$refs.signatureCanvas.width,t.$refs.signatureCanvas.height),t.signatureCtx.putImageData(i,0,0),t.signatureCtx.globalCompositeOperation="source-over",t.isCrop){var s,a=t.getCropArea(i.data),u=document.createElement("canvas"),c=u.getContext("2d");u.width=a[2]-a[0],u.height=a[3]-a[1];var f=(s=t.signatureCtx).getImageData.apply(s,a);c.globalCompositeOperation="destination-over",c.putImageData(f,0,0),c.fillStyle=t.myBg,c.fillRect(0,0,u.width,u.height),o=u.toDataURL(),u=null}if(t.isHorizontalScreen){var l=document.createElement("canvas"),h=l.getContext("2d");l.width=t.$refs.signatureCanvas.height,l.height=t.$refs.signatureCanvas.width,h.translate(l.width/2,l.height/2),h.rotate(-Math.PI/2),h.drawImage(t.$refs.signatureCanvas,-t.$refs.signatureCanvas.width/2,-t.$refs.signatureCanvas.height/2),o=l.toDataURL()}e(o)})},reset:function(){this.signatureCtx.clearRect(0,0,this.$refs.signatureCanvas.width,this.$refs.signatureCanvas.height),this.$emit("update:bgColor",""),this.points={x:[],y:[]},this.hasDrew=!1,this.resultImg=""},goBack:function(){"dialog"===this.scene?this.hide():window.history.back()},getCropArea:function(t){for(var e=this.$refs.signatureCanvas.width,n=0,r=this.$refs.signatureCanvas.height,i=0,o=0;o<this.$refs.signatureCanvas.width;o++)for(var s=0;s<this.$refs.signatureCanvas.height;s++){var a=4*(o+this.$refs.signatureCanvas.width*s);(t[a]>0||t[a+1]>0||t[a+2]||t[a+3]>0)&&(i=Math.max(s,i),n=Math.max(o,n),r=Math.min(s,r),e=Math.min(o,e))}return e++,n++,r++,i++,[e,r,n,i]},getMax:function(t,e){var n={left:0,right:0,top:0,bottom:0};return"[object Array]"!=={}.toString.call(t)||"[object Array]"!=={}.toString.call(e)?n:(n.left=Math.min.apply(null,t),n.right=Math.max.apply(null,t),n.top=Math.min.apply(null,e),n.bottom=Math.max.apply(null,e),n)},save:function(){var t=this;this.hasDrew&&this.generate().then(function(e){t.$emit("complete",e),"dialog"===t.scene?t.hide():t.reset()}).catch(function(e){console.log(e),t.showErrtips=!0,setTimeout(function(){t.showErrtips=!1},2e3)})}}}},11:function(t,e){t.exports={}},12:function(t,e,n){var r=n(30),i=n(16);t.exports=function(t){return r(i(t))}},13:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},14:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},15:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},16:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},1613:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(22),i=n.n(r),o=n(1614);o.a.install=function(t){t.component(o.a.name,o.a),t.prototype.$createSignature=i()(o.a,t)},e.default=o.a},1614:function(t,e,n){"use strict";function r(t){a||n(1615)}var i=n(1080),o=n(1616),s=n(8),a=!1,u=r,c=Object(s.a)(i.a,o.a,o.b,!1,u,"data-v-31195bd6",null);c.options.__file="src\\components\\Signature\\src\\index.vue",e.a=c.exports},1615:function(t,e){},1616:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"act-gold-popup-move"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"act-signature-wrap",attrs:{id:"act-signature"}},[t.isHorizontalScreen?n("div",{staticClass:"act-signature-horizontal-box",class:{isFullScreen:t.isFullScreen},style:"background-color: "+t.bgColor+";"},[n("div",{staticClass:"act-signature-content"},[n("div",{staticClass:"content-left"},[n("div",{staticClass:"signature-text"},[n("div",{staticClass:"signature-title"},t._l(t.signIdentityText,function(e,r){return n("span",{key:e+"_"+r,staticClass:"vertical-text",style:t.getFontBold(r)?"font-weight: bold;color:#333":""},[t._v("\n "+t._s(e)+"\n ")])}),0),t._v(" "),t.signatureTip?n("div",{staticClass:"signature-tip"},t._l(t.signatureTip,function(e,r){return n("span",{key:e+"_"+r,staticClass:"vertical-text"},[t._v("\n "+t._s(e)+"\n ")])}),0):t._e()]),t._v(" "),n("div",{staticClass:"ctrl"},[n("div",{staticClass:"backBtn",style:"background: "+t.backBtnColor,attrs:{type:"button"},on:{click:t.goBack}},t._l(t.backBtnText,function(e,r){return n("span",{key:e+"_"+r,staticClass:"vertical-text backBtnText"},[t._v("\n "+t._s(e)+"\n ")])}),0),t._v(" "),n("div",{staticClass:"saveBtn",style:{background:t.color,opacity:t.hasDrew?1:.5},attrs:{type:"button"},on:{click:t.save}},t._l(t.saveBtnText,function(e,r){return n("span",{key:e+"_"+r,staticClass:"vertical-text saveBtnText"},[t._v("\n "+t._s(e)+"\n ")])}),0)])]),t._v(" "),n("div",{staticClass:"content-right"},[n("div",{ref:"box",staticClass:"canvasBox"},[t.hasDrew?n("div",{staticClass:"clearBtn",attrs:{type:"button"},on:{click:t.reset}},t._l(t.clearBtnText,function(e,r){return n("span",{key:e+"_"+r,staticClass:"vertical-text clearBtnText"},[t._v("\n "+t._s(e)+"\n ")])}),0):t._e(),t._v(" "),n("canvas",{ref:"watermarkCanvas",staticClass:"canvas-ins"}),t._v(" "),n("canvas",{ref:"signatureCanvas",staticClass:"canvas-ins",on:{mousedown:t.mouseDown,mousemove:t.mouseMove,mouseup:t.mouseUp,touchstart:t.touchStart,touchmove:t.touchMove,touchend:t.touchEnd}})])])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showErrtips,expression:"showErrtips"}],staticClass:"errtips"},t._l("请仔细签名",function(e,r){return n("span",{key:e+"_"+r,staticClass:"vertical-text"},[t._v("\n "+t._s(e)+"\n ")])}),0)]):n("div",{staticClass:"act-signature-box",class:{isFullScreen:t.isFullScreen},style:"background-color: "+t.bgColor+";"},[n("div",{staticClass:"header-box",style:"background: "+t.bgColor},[n("div",{staticClass:"text"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),n("div",{staticClass:"close",on:{click:t.hide}})]),t._v(" "),!t.$slots.header&&t.headerText?n("div",{staticClass:"header",domProps:{innerHTML:t._s(t.headerText)}}):t._e(),t._v(" "),t.$slots.header?t._t("header"):t._e(),t._v(" "),n("div",{ref:"box",staticClass:"canvasBox",style:"height: calc("+(!t.$slots.header&&t.headerText?88:96)+"% - 100px);"},[n("canvas",{ref:"watermarkCanvas",staticClass:"canvas-ins"}),t._v(" "),n("canvas",{ref:"signatureCanvas",staticClass:"canvas-ins",on:{mousedown:t.mouseDown,mousemove:t.mouseMove,mouseup:t.mouseUp,touchstart:t.touchStart,touchmove:t.touchMove,touchend:t.touchEnd}})]),t._v(" "),n("div",{staticClass:"ctrl",style:"background: "+t.bgColor},[n("div",{staticClass:"clearBtn",style:"background: "+t.clearBtnColor,attrs:{type:"button"},on:{click:t.reset}},[t._v("\n "+t._s(t.clearBtnText)+"\n ")]),t._v(" "),n("div",{staticClass:"saveBtn",style:"background: "+t.color,attrs:{type:"button"},on:{click:t.save}},[t._v("\n "+t._s(t.saveBtnText)+"\n ")])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showErrtips,expression:"showErrtips"}],staticClass:"errtips"},[t._v("\n 请仔细签名\n ")])],2)])])},i=[];r._withStripped=!0},17:function(t,e,n){var r=n(20);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,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},18:function(t,e){t.exports=!0},19:function(t,e,n){var r=n(27)("keys"),i=n(24);t.exports=function(t){return r[t]||(r[t]=i(t))}},2:function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},20:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},21:function(t,e,n){var r=n(6),i=n(0).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},22:function(e,n){e.exports=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))}},25:function(t,e,n){var r=n(9).f,i=n(7),o=n(1)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},26:function(t,e,n){var r=n(37),i=n(28);t.exports=Object.keys||function(t){return r(t,i)}},27:function(t,e,n){var r=n(2),i=n(0),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(18)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},28:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},29:function(t,e,n){var r=n(16);t.exports=function(t){return Object(r(t))}},3:function(t,e,n){t.exports=!n(13)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},30: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)}},31:function(t,e,n){var r=n(15),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},33:function(t,e,n){"use strict";var r=n(18),i=n(10),o=n(46),s=n(5),a=n(11),u=n(52),c=n(25),f=n(54),l=n(1)("iterator"),h=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,e,n,p,d,g,x){u(n,e,p);var y,m,C,w=function(t){if(!h&&t in k)return k[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},_=e+" Iterator",b="values"==d,S=!1,k=t.prototype,T=k[l]||k["@@iterator"]||d&&k[d],M=T||w(d),P=d?b?w("entries"):M:void 0,j="Array"==e?k.entries||T:T;if(j&&(C=f(j.call(new t)))!==Object.prototype&&C.next&&(c(C,_,!0),r||"function"==typeof C[l]||s(C,l,v)),b&&T&&"values"!==T.name&&(S=!0,M=function(){return T.call(this)}),r&&!x||!h&&!S&&k[l]||s(k,l,M),a[e]=M,a[_]=v,d)if(y={values:b?M:w("values"),keys:g?M:w("keys"),entries:P},x)for(m in y)m in k||o(k,m,y[m]);else i(i.P+i.F*(h||S),e,y);return y}},34:function(t,e,n){var r=n(6);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},36:function(t,e,n){t.exports=!n(3)&&!n(13)(function(){return 7!=Object.defineProperty(n(21)("div"),"a",{get:function(){return 7}}).a})},37:function(t,e,n){var r=n(7),i=n(12),o=n(41)(!1),s=n(19)("IE_PROTO");t.exports=function(t,e){var n,a=i(t),u=0,c=[];for(n in a)n!=s&&r(a,n)&&c.push(n);for(;e.length>u;)r(a,n=e[u++])&&(~o(c,n)||c.push(n));return c}},38:function(t,e,n){var r=n(0).document;t.exports=r&&r.documentElement},39:function(t,e,n){"use strict";function r(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=i(e),this.reject=i(n)}var i=n(20);t.exports.f=function(t){return new r(t)}},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,e,n){var r=n(14),i=n(1)("toStringTag"),o="Arguments"==r(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=s(e=Object(t),i))?n:o?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},41:function(t,e,n){var r=n(12),i=n(31),o=n(42);t.exports=function(t){return function(e,n,s){var a,u=r(e),c=i(u.length),f=o(s,c);if(t&&n!=n){for(;c>f;)if((a=u[f++])!=a)return!0}else for(;c>f;f++)if((t||f in u)&&u[f]===n)return t||f||0;return!t&&-1}}},42:function(t,e,n){var r=n(15),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},43:function(t,e,n){"use strict";var r=n(51)(!0);n(33)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},45:function(t,e,n){var r=n(4),i=n(53),o=n(28),s=n(19)("IE_PROTO"),a=function(){},u=function(){var t,e=n(21)("iframe"),r=o.length;for(e.style.display="none",n(38).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;r--;)delete u.prototype[o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(a.prototype=r(t),n=new a,a.prototype=null,n[s]=t):n=u(),void 0===e?n:i(n,e)}},46:function(t,e,n){t.exports=n(5)},47:function(t,e,n){n(63);for(var r=n(0),i=n(5),o=n(11),s=n(1)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<a.length;u++){var c=a[u],f=r[c],l=f&&f.prototype;l&&!l[s]&&i(l,s,c),o[c]=o.Array}},49:function(t,e,n){var r=n(40),i=n(1)("iterator"),o=n(11);t.exports=n(2).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},5:function(t,e,n){var r=n(9),i=n(23);t.exports=n(3)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},51:function(t,e,n){var r=n(15),i=n(16);t.exports=function(t){return function(e,n){var o,s,a=String(i(e)),u=r(n),c=a.length;return u<0||u>=c?t?"":void 0:(o=a.charCodeAt(u),o<55296||o>56319||u+1===c||(s=a.charCodeAt(u+1))<56320||s>57343?t?a.charAt(u):o:t?a.slice(u,u+2):s-56320+(o-55296<<10)+65536)}}},52:function(t,e,n){"use strict";var r=n(45),i=n(23),o=n(25),s={};n(5)(s,n(1)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(s,{next:i(1,n)}),o(t,e+" Iterator")}},53:function(t,e,n){var r=n(9),i=n(4),o=n(26);t.exports=n(3)?Object.defineProperties:function(t,e){i(t);for(var n,s=o(e),a=s.length,u=0;a>u;)r.f(t,n=s[u++],e[n]);return t}},54:function(t,e,n){var r=n(7),i=n(29),o=n(19)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},57:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},58:function(t,e,n){var r=n(4),i=n(20),o=n(1)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||void 0==(n=r(s)[o])?e:i(n)}},59:function(t,e,n){var r,i,o,s=n(17),a=n(81),u=n(38),c=n(21),f=n(0),l=f.process,h=f.setImmediate,v=f.clearImmediate,p=f.MessageChannel,d=f.Dispatch,g=0,x={},y=function(){var t=+this;if(x.hasOwnProperty(t)){var e=x[t];delete x[t],e()}},m=function(t){y.call(t.data)};h&&v||(h=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return x[++g]=function(){a("function"==typeof t?t:Function(t),e)},r(g),g},v=function(t){delete x[t]},"process"==n(14)(l)?r=function(t){l.nextTick(s(y,t,1))}:d&&d.now?r=function(t){d.now(s(y,t,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=m,r=s(o.postMessage,o,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",m,!1)):r="onreadystatechange"in c("script")?function(t){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),y.call(t)}}:function(t){setTimeout(s(y,t,1),0)}),t.exports={set:h,clear:v}},6:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},60:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},61:function(t,e,n){var r=n(4),i=n(6),o=n(39);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},63:function(t,e,n){"use strict";var r=n(64),i=n(57),o=n(11),s=n(12);t.exports=n(33)(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,n):"values"==e?i(0,t[n]):i(0,[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},64:function(t,e){t.exports=function(){}},66:function(t,e,n){t.exports={default:n(79),__esModule:!0}},7:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},70:function(t,e){},72:function(t,e,n){var r=n(4);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},73:function(t,e,n){var r=n(11),i=n(1)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},74:function(t,e,n){var r=n(17),i=n(72),o=n(73),s=n(4),a=n(31),u=n(49),c={},f={},e=t.exports=function(t,e,n,l,h){var v,p,d,g,x=h?function(){return t}:u(t),y=r(n,l,e?2:1),m=0;if("function"!=typeof x)throw TypeError(t+" is not iterable!");if(o(x)){for(v=a(t.length);v>m;m++)if((g=e?y(s(p=t[m])[0],p[1]):y(t[m]))===c||g===f)return g}else for(d=x.call(t);!(p=d.next()).done;)if((g=i(d,y,p.value,e))===c||g===f)return g};e.BREAK=c,e.RETURN=f},75:function(t,e,n){var r=n(1)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},t(o)}catch(t){}return n}},76:function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},77:function(t,e,n){var r=n(5);t.exports=function(t,e,n){for(var i in e)n&&t[i]?t[i]=e[i]:r(t,i,e[i]);return t}},78:function(t,e,n){"use strict";var r=n(0),i=n(2),o=n(9),s=n(3),a=n(1)("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:r[t];s&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},79:function(t,e,n){n(70),n(43),n(47),n(80),n(84),n(85),t.exports=n(2).Promise},8:function(t,e,n){"use strict";function r(t,e,n,r,i,o,s,a){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),o&&(c._scopeId=o);var f;if(s?(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__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=f):i&&(f=a?function(){i.call(this,this.$root.$options.shadowRoot)}:i),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 h=c.beforeCreate;c.beforeCreate=h?[].concat(h,f):[f]}return{exports:t,options:c}}e.a=r},80:function(t,e,n){"use strict";var r,i,o,s,a=n(18),u=n(0),c=n(17),f=n(40),l=n(10),h=n(6),v=n(20),p=n(76),d=n(74),g=n(58),x=n(59).set,y=n(82)(),m=n(39),C=n(60),w=n(83),_=n(61),b=u.TypeError,S=u.process,k=S&&S.versions,T=k&&k.v8||"",M=u.Promise,P="process"==f(S),j=function(){},B=i=m.f,O=!!function(){try{var t=M.resolve(1),e=(t.constructor={})[n(1)("species")]=function(t){t(j,j)};return(P||"function"==typeof PromiseRejectionEvent)&&t.then(j)instanceof e&&0!==T.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),E=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},$=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var r=t._v,i=1==t._s,o=0;n.length>o;)!function(e){var n,o,s,a=i?e.ok:e.fail,u=e.resolve,c=e.reject,f=e.domain;try{a?(i||(2==t._h&&L(t),t._h=1),!0===a?n=r:(f&&f.enter(),n=a(r),f&&(f.exit(),s=!0)),n===e.promise?c(b("Promise-chain cycle")):(o=E(n))?o.call(n,u,c):u(n)):c(r)}catch(t){f&&!s&&f.exit(),c(t)}}(n[o++]);t._c=[],t._n=!1,e&&!t._h&&R(t)})}},R=function(t){x.call(u,function(){var e,n,r,i=t._v,o=D(t);if(o&&(e=C(function(){P?S.emit("unhandledRejection",i,t):(n=u.onunhandledrejection)?n({promise:t,reason:i}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=P||D(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},D=function(t){return 1!==t._h&&0===(t._a||t._c).length},L=function(t){x.call(u,function(){var e;P?S.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},A=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),$(e,!0))},I=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw b("Promise can't be resolved itself");(e=E(t))?y(function(){var r={_w:n,_d:!1};try{e.call(t,c(I,r,1),c(A,r,1))}catch(t){A.call(r,t)}}):(n._v=t,n._s=1,$(n,!1))}catch(t){A.call({_w:n,_d:!1},t)}}};O||(M=function(t){p(this,M,"Promise","_h"),v(t),r.call(this);try{t(c(I,this,1),c(A,this,1))}catch(t){A.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(77)(M.prototype,{then:function(t,e){var n=B(g(this,M));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=P?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&$(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=c(I,t,1),this.reject=c(A,t,1)},m.f=B=function(t){return t===M||t===s?new o(t):i(t)}),l(l.G+l.W+l.F*!O,{Promise:M}),n(25)(M,"Promise"),n(78)("Promise"),s=n(2).Promise,l(l.S+l.F*!O,"Promise",{reject:function(t){var e=B(this);return(0,e.reject)(t),e.promise}}),l(l.S+l.F*(a||!O),"Promise",{resolve:function(t){return _(a&&this===s?M:this,t)}}),l(l.S+l.F*!(O&&n(75)(function(t){M.all(t).catch(j)})),"Promise",{all:function(t){var e=this,n=B(e),r=n.resolve,i=n.reject,o=C(function(){var n=[],o=0,s=1;d(t,!1,function(t){var a=o++,u=!1;n.push(void 0),s++,e.resolve(t).then(function(t){u||(u=!0,n[a]=t,--s||r(n))},i)}),--s||r(n)});return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=B(e),r=n.reject,i=C(function(){d(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},81:function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},82:function(t,e,n){var r=n(0),i=n(59).set,o=r.MutationObserver||r.WebKitMutationObserver,s=r.process,a=r.Promise,u="process"==n(14)(s);t.exports=function(){var t,e,n,c=function(){var r,i;for(u&&(r=s.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(u)n=function(){s.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var f=a.resolve(void 0);n=function(){f.then(c)}}else n=function(){i.call(r,c)};else{var l=!0,h=document.createTextNode("");new o(c).observe(h,{characterData:!0}),n=function(){h.data=l=!l}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},83:function(t,e,n){var r=n(0),i=r.navigator;t.exports=i&&i.userAgent||""},84:function(t,e,n){"use strict";var r=n(10),i=n(2),o=n(0),s=n(58),a=n(61);r(r.P+r.R,"Promise",{finally:function(t){var e=s(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return a(e,t()).then(function(){return n})}:t,n?function(n){return a(e,t()).then(function(){throw n})}:t)}})},85:function(t,e,n){"use strict";var r=n(10),i=n(39),o=n(60);r(r.S,"Promise",{try:function(t){var e=i.f(this),n=o(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},9:function(t,e,n){var r=n(4),i=n(36),o=n(34),s=Object.defineProperty;e.f=n(3)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return s(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}}})});
|
package/es/Signature/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.errtips[data-v-31195bd6]{position:fixed;left:50%;top:45%;-webkit-transform:translate3d(-45%,-50%,0);transform:translate3d(-45%,-50%,0);background:rgba(0,0,0,.8);color:#fff;padding:10px 20px;font-size:15px;border-radius:7px;-webkit-animation:move-data-v-31195bd6 .3s ease-in-out;animation:move-data-v-31195bd6 .3s ease-in-out}@-webkit-keyframes move-data-v-31195bd6{0%{opacity:0}to{opacity:1}}@keyframes move-data-v-31195bd6{0%{opacity:0}to{opacity:1}}.act-gold-popup-move-enter[data-v-31195bd6],.act-gold-popup-move-leave-to[data-v-31195bd6]{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}.act-gold-popup-move-enter-active[data-v-31195bd6],.act-gold-popup-move-leave-active[data-v-31195bd6]{-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.act-signature-wrap[data-v-31195bd6]{position:fixed;top:0;left:0;bottom:0;right:0;z-index:100;overflow-y:auto;background:rgba(0,0,0,.7)}.act-signature-box[data-v-31195bd6]{position:fixed;width:100%;bottom:0;height:96%;overflow:auto;border-radius:12px 12px 0 0;background:#f9f9f9}.act-signature-box.isFullScreen[data-v-31195bd6]{height:100%;border-radius:0}.act-signature-box .header[data-v-31195bd6]{position:relative;margin-top:5px;color:#666;text-align:center;font-size:15px;margin-bottom:15px;padding:0 15px}.act-signature-box .canvasBox[data-v-31195bd6]{position:relative;height:calc(88% - 100px);width:94%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);border-radius:12px;margin-bottom:60px;box-shadow:0 3px 10px 0 hsla(0,0%,70%,.1)}.act-signature-box .canvasBox .canvas-ins[data-v-31195bd6]{position:absolute;left:0;right:0;top:0;bottom:0;border:1px solid #f5f5f5;border-radius:12px;display:block}.act-signature-box .ctrl[data-v-31195bd6]{position:fixed;bottom:0;width:100%;display:-webkit-box;display:-webkit-flex;display:flex;background:#f9f9f9;padding:8px 3% 18px;height:74px;font-size:16px}.act-signature-box .ctrl .clearBtn[data-v-31195bd6]{height:48px;line-height:48px;border:2px solid #f5f5f5;width:40%;text-align:center;background:#fff;color:#999;border-radius:5px}.act-signature-box .ctrl .saveBtn[data-v-31195bd6]{color:#fff;height:46px;line-height:46px;margin-left:14px;-webkit-box-flex:1;-webkit-flex:1;flex:1;text-align:center;border-radius:5px}.header-box[data-v-31195bd6]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;position:relative;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:48px;background:-webkit-linear-gradient(top,#fff,#f9f9f9);background:linear-gradient(180deg,#fff,#f9f9f9)}.header-box .text[data-v-31195bd6]{color:#333;font-weight:700;font-size:18px}.header-box .close[data-v-31195bd6]{position:absolute;right:5px;width:25px;height:25px;border-radius:50%;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.header-box .close[data-v-31195bd6]:after,.header-box .close[data-v-31195bd6]:before{content:"";background-color:#b5b8bd;position:absolute;border-radius:2px}.header-box .close[data-v-31195bd6]:before{width:18px;height:2px;left:50%;top:50%;margin-left:-9px;margin-top:-1px}.header-box .close[data-v-31195bd6]:after{width:2px;height:18px;left:50%;top:50%;margin-left:-1px;margin-top:-9px}.act-signature-horizontal-box[data-v-31195bd6]{position:fixed;width:100%;bottom:0;height:96%;overflow:auto;border-radius:12px 12px 0 0;background:#fff}.act-signature-horizontal-box.isFullScreen[data-v-31195bd6]{height:100%;border-radius:0}.act-signature-horizontal-box .act-signature-content[data-v-31195bd6]{display:-webkit-box;display:-webkit-flex;display:flex;width:100%;height:98%;padding:20px 6px 0 16px}.act-signature-horizontal-box .act-signature-content .content-left[data-v-31195bd6]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.act-signature-horizontal-box .act-signature-content .content-left .signature-title[data-v-31195bd6]{font-size:16px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;text-align:center;
|
|
1
|
+
.errtips[data-v-31195bd6]{position:fixed;left:50%;top:45%;-webkit-transform:translate3d(-45%,-50%,0);transform:translate3d(-45%,-50%,0);background:rgba(0,0,0,.8);color:#fff;padding:10px 20px;font-size:15px;border-radius:7px;-webkit-animation:move-data-v-31195bd6 .3s ease-in-out;animation:move-data-v-31195bd6 .3s ease-in-out}@-webkit-keyframes move-data-v-31195bd6{0%{opacity:0}to{opacity:1}}@keyframes move-data-v-31195bd6{0%{opacity:0}to{opacity:1}}.act-gold-popup-move-enter[data-v-31195bd6],.act-gold-popup-move-leave-to[data-v-31195bd6]{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}.act-gold-popup-move-enter-active[data-v-31195bd6],.act-gold-popup-move-leave-active[data-v-31195bd6]{-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.act-signature-wrap[data-v-31195bd6]{position:fixed;top:0;left:0;bottom:0;right:0;z-index:100;overflow-y:auto;background:rgba(0,0,0,.7)}.act-signature-box[data-v-31195bd6]{position:fixed;width:100%;bottom:0;height:96%;overflow:auto;border-radius:12px 12px 0 0;background:#f9f9f9}.act-signature-box.isFullScreen[data-v-31195bd6]{height:100%;border-radius:0}.act-signature-box .header[data-v-31195bd6]{position:relative;margin-top:5px;color:#666;text-align:center;font-size:15px;margin-bottom:15px;padding:0 15px}.act-signature-box .canvasBox[data-v-31195bd6]{position:relative;height:calc(88% - 100px);width:94%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);border-radius:12px;margin-bottom:60px;box-shadow:0 3px 10px 0 hsla(0,0%,70%,.1)}.act-signature-box .canvasBox .canvas-ins[data-v-31195bd6]{position:absolute;left:0;right:0;top:0;bottom:0;border:1px solid #f5f5f5;border-radius:12px;display:block}.act-signature-box .ctrl[data-v-31195bd6]{position:fixed;bottom:0;width:100%;display:-webkit-box;display:-webkit-flex;display:flex;background:#f9f9f9;padding:8px 3% 18px;height:74px;font-size:16px}.act-signature-box .ctrl .clearBtn[data-v-31195bd6]{height:48px;line-height:48px;border:2px solid #f5f5f5;width:40%;text-align:center;background:#fff;color:#999;border-radius:5px}.act-signature-box .ctrl .saveBtn[data-v-31195bd6]{color:#fff;height:46px;line-height:46px;margin-left:14px;-webkit-box-flex:1;-webkit-flex:1;flex:1;text-align:center;border-radius:5px}.header-box[data-v-31195bd6]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;position:relative;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:48px;background:-webkit-linear-gradient(top,#fff,#f9f9f9);background:linear-gradient(180deg,#fff,#f9f9f9)}.header-box .text[data-v-31195bd6]{color:#333;font-weight:700;font-size:18px}.header-box .close[data-v-31195bd6]{position:absolute;right:5px;width:25px;height:25px;border-radius:50%;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.header-box .close[data-v-31195bd6]:after,.header-box .close[data-v-31195bd6]:before{content:"";background-color:#b5b8bd;position:absolute;border-radius:2px}.header-box .close[data-v-31195bd6]:before{width:18px;height:2px;left:50%;top:50%;margin-left:-9px;margin-top:-1px}.header-box .close[data-v-31195bd6]:after{width:2px;height:18px;left:50%;top:50%;margin-left:-1px;margin-top:-9px}.act-signature-horizontal-box[data-v-31195bd6]{position:fixed;width:100%;bottom:0;height:96%;overflow:auto;border-radius:12px 12px 0 0;background:#fff}.act-signature-horizontal-box.isFullScreen[data-v-31195bd6]{height:100%;border-radius:0}.act-signature-horizontal-box .act-signature-content[data-v-31195bd6]{display:-webkit-box;display:-webkit-flex;display:flex;width:100%;height:98%;padding:20px 6px 0 16px}.act-signature-horizontal-box .act-signature-content .content-left[data-v-31195bd6]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.act-signature-horizontal-box .act-signature-content .content-left .signature-text[data-v-31195bd6]{display:-webkit-box;display:-webkit-flex;display:flex;height:100%;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-webkit-flex-direction:row-reverse;flex-direction:row-reverse;overflow:hidden;-webkit-transform:translateZ(0);transform:translateZ(0)}.act-signature-horizontal-box .act-signature-content .content-left .signature-title[data-v-31195bd6]{font-size:16px;font-weight:400;color:#666}.act-signature-horizontal-box .act-signature-content .content-left .signature-tip[data-v-31195bd6],.act-signature-horizontal-box .act-signature-content .content-left .signature-title[data-v-31195bd6]{width:20px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;text-align:center;-webkit-flex-shrink:0;flex-shrink:0}.act-signature-horizontal-box .act-signature-content .content-left .signature-tip[data-v-31195bd6]{color:#8f93a0;font-size:12px}.act-signature-horizontal-box .act-signature-content .content-left .ctrl .backBtn[data-v-31195bd6]{width:40px;height:140px;background:#fff;border-radius:22px;border:1px solid #f5f5f5;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;margin-bottom:10px}.act-signature-horizontal-box .act-signature-content .content-left .ctrl .backBtn .backBtnText[data-v-31195bd6]{font-size:16px;font-weight:400;color:#666}.act-signature-horizontal-box .act-signature-content .content-left .ctrl .saveBtn[data-v-31195bd6]{width:40px;height:140px;border-radius:22px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.act-signature-horizontal-box .act-signature-content .content-left .ctrl .saveBtn .saveBtnText[data-v-31195bd6]{font-size:16px;font-weight:400;color:#fff}.act-signature-horizontal-box .act-signature-content .content-right[data-v-31195bd6]{width:100%;overflow:auto}.act-signature-horizontal-box .act-signature-content .content-right .canvasBox[data-v-31195bd6]{position:relative;height:100%;width:94%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);border-radius:12px;box-shadow:0 3px 10px 0 hsla(0,0%,70%,.1)}.act-signature-horizontal-box .act-signature-content .content-right .canvasBox .canvas-ins[data-v-31195bd6]{position:absolute;left:0;right:0;top:0;bottom:0;border:1px solid #f5f5f5;border-radius:12px;display:block}.act-signature-horizontal-box .act-signature-content .content-right .canvasBox .clearBtn[data-v-31195bd6]{position:absolute;bottom:14px;right:14px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;z-index:999;width:34px;height:87px;border-radius:17px;background:#000;opacity:.62}.act-signature-horizontal-box .act-signature-content .content-right .canvasBox .clearBtn .clearBtnText[data-v-31195bd6]{font-size:14px;font-family:AlibabaPuHuiTiB;color:#fff}.act-signature-horizontal-box .errtips[data-v-31195bd6]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.vertical-text[data-v-31195bd6]{-webkit-writing-mode:vertical-rl;writing-mode:vertical-rl;text-orientation:upright;-webkit-transform:rotate(90deg);transform:rotate(90deg);line-height:23px}
|