Files
integral-resell/h5/static/js/pages-sub-pages-agreement-index.8810033d.js

1 line
15 KiB
JavaScript
Executable File
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-sub-pages-agreement-index"],{"0246":function(t,e){var i={errorImg:null,filter:null,highlight:null,onText:null,entities:{quot:'"',apos:"'",semi:";",nbsp:" ",ensp:"",emsp:"",ndash:"",mdash:"—",middot:"·",lsquo:"",rsquo:"",ldquo:"“",rdquo:"”",bull:"•",hellip:"…"},blankChar:n(" , ,\t,\r,\n,\f"),boolAttrs:n("allowfullscreen,autoplay,autostart,controls,ignore,loop,muted"),blockTags:n("address,article,aside,body,caption,center,cite,footer,header,html,nav,pre,section"),ignoreTags:n("area,base,canvas,frame,iframe,input,link,map,meta,param,script,source,style,svg,textarea,title,track,wbr"),richOnlyTags:n("a,colgroup,fieldset,legend"),selfClosingTags:n("area,base,br,col,circle,ellipse,embed,frame,hr,img,input,line,link,meta,param,path,polygon,rect,source,track,use,wbr"),trustTags:n("a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video"),userAgentStyles:{address:"font-style:italic",big:"display:inline;font-size:1.2em",blockquote:"background-color:#f6f6f6;border-left:3px solid #dbdbdb;color:#6c6c6c;padding:5px 0 5px 10px",caption:"display:table-caption;text-align:center",center:"text-align:center",cite:"font-style:italic",dd:"margin-left:40px",mark:"background-color:yellow",pre:"font-family:monospace;white-space:pre;overflow:scroll",s:"text-decoration:line-through",small:"display:inline;font-size:0.8em",u:"text-decoration:underline"}};function n(t){for(var e=Object.create(null),i=t.split(","),n=i.length;n--;)e[i[n]]=!0;return e}t.exports=i},2477:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(i("9b1b")),a=n(i("2634")),s=n(i("2fdc")),o=n(i("39d8")),l={data:function(){var t;return t={title:"",parseContent:""},(0,o.default)(t,"title","Hello"),(0,o.default)(t,"penColor","red"),(0,o.default)(t,"penSize",5),(0,o.default)(t,"url",""),(0,o.default)(t,"openSmooth",!0),(0,o.default)(t,"signatureImg",""),t},onLoad:function(){var t;this.title=null===(t=this.$Route.query)||void 0===t?void 0:t.title,this.init()},methods:{init:function(){uni.setNavigationBarTitle({title:this.title}),this.getAgreement()},getAgreement:function(){var t=this;return(0,s.default)((0,a.default)().mark((function e(){var i;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.setting({title:t.title});case 2:i=e.sent,0==i.code&&(t.parseContent=i.data);case 4:case"end":return e.stop()}}),e)})))()},confirmSign:function(t){var e=this;return(0,s.default)((0,a.default)().mark((function i(){var n;return(0,a.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,e.$api.signature({signature:t});case 2:n=i.sent,0==n.code&&e.$u.toast("签署成功",(function(){e.$store.dispatch("setSignature",!0),e.toPageBack()}));case 4:case"end":return i.stop()}}),i)})))()},toUpload:function(t){var e=this;return(0,s.default)((0,a.default)().mark((function i(){var n;return(0,a.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,e.$api.upload((0,r.default)((0,r.default)({},t),{},{loading:!0}));case 2:if(n=i.sent,0!=n.code){i.next=5;break}return i.abrupt("return",n.data);case 5:case"end":return i.stop()}}),i)})))()},handleSign:function(t){var e=this;"save"!=t?this.$refs.signatureRef&&this.$refs.signatureRef[t]():this.$refs.signatureRef.canvasToTempFilePath({success:function(t){console.log(t,12),t.isEmpty?e.$u.toast("请签名后确认"):(console.log(t.isEmpty),e.toUpload({files:t.tempFilePath}).then((function(t){e.confirmSign(t.url)})))}})}}};e.default=l},3212:function(t,e,i){"use strict";var n=i("c406"),r=i.n(n);r.a},"4c61":function(t,e,i){"use strict";i.r(e);var n=i("961f"),r=i("6607");for(var a in r)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(a);i("b266");var s=i("828b"),o=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"b1862cb0",null,!1,n["a"],void 0);e["default"]=o.exports},"5e88":function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(i("3471"));i("5ef2"),i("4626"),i("5ac7"),i("5c47"),i("2c10"),i("af8f"),i("a1c1"),i("e966"),i("aa9c"),i("c223"),i("e838");var a=uni.getSystemInfoSync(),s=a.windowWidth,o=(a.platform,i("0246")),l={name:"parser",data:function(){return{uid:this._uid,showAm:"",nodes:[]}},props:{html:String,autopause:{type:Boolean,default:!0},autoscroll:Boolean,autosetTitle:{type:Boolean,default:!0},domain:String,lazyLoad:Boolean,selectable:Boolean,tagStyle:Object,showWithAnimation:Boolean,useAnchor:Boolean},watch:{html:function(t){this.setContent(t)}},created:function(){this.imgList=[],this.imgList.each=function(t){for(var e=0,i=this.length;e<i;e++)this.setItem(e,t(this[e],e,this))},this.imgList.setItem=function(t,e){if(void 0!=t&&e){if(0==e.indexOf("http")&&this.includes(e)){for(var i,n=e.split("://")[0],r=n.length;i=e[r];r++){if("/"==i&&"/"!=e[r-1]&&"/"!=e[r+1])break;n+=Math.random()>.5?i.toUpperCase():i}return n+=e.substr(r),this[t]=n}if(this[t]=e,e.includes("data:image")){var a=e.match(/data:image\/(\S+?);(\S+?),(.+)/);if(!a)return}}}},mounted:function(){this.document=document.getElementById("rtf"+this._uid),this.html&&this.setContent(this.html)},beforeDestroy:function(){this._observer&&this._observer.disconnect(),this.imgList.each((function(t){})),clearInterval(this._timer)},methods:{setContent:function(t,e){var i=this;if(t){var n=document.createElement("div");e?this.rtf?this.rtf.appendChild(n):this.rtf=n:(this.rtf&&this.rtf.parentNode.removeChild(this.rtf),this.rtf=n),n.innerHTML=this._handleHtml(t,e);for(var a,l=this.rtf.getElementsByTagName("style"),c=0;a=l[c++];)a.innerHTML=a.innerHTML.replace(/body/g,"#rtf"+this._uid),a.setAttribute("scoped","true");!this._observer&&this.lazyLoad&&IntersectionObserver&&(this._observer=new IntersectionObserver((function(t){for(var e,n=0;e=t[n++];)e.isIntersecting&&(e.target.src=e.target.getAttribute("data-src"),e.target.removeAttribute("data-src"),i._observer.unobserve(e.target))}),{rootMargin:"500px 0px 500px 0px"}));var u=this,d=this.rtf.getElementsByTagName("title");d.length&&this.autosetTitle&&uni.setNavigationBarTitle({title:d[0].innerText});var f=function(t){var e=t.getAttribute("src");i.domain&&e&&("/"==e[0]?"/"==e[1]?t.src=(i.domain.includes("://")?i.domain.split("://")[0]:"")+":"+e:t.src=i.domain+e:e.includes("://")||0==e.indexOf("data:")||(t.src=i.domain+"/"+e))};this.imgList.length=0;for(var h,p=this.rtf.getElementsByTagName("img"),v=0,g=0;h=p[v];v++)parseInt(h.style.width||h.getAttribute("width"))>s&&(h.style.height="auto"),f(h),h.hasAttribute("ignore")||"A"==h.parentElement.nodeName||(h.i=g++,u.imgList.push(h.getAttribute("original-src")||h.src||h.getAttribute("data-src")),h.onclick=function(t){t.stopPropagation();var e=!0;this.ignore=function(){return e=!1},u.$emit("imgtap",this),e&&uni.previewImage({current:this.i,urls:u.imgList})}),h.onerror=function(){o.errorImg&&(u.imgList[this.i]=this.src=o.errorImg),u.$emit("error",{source:"img",target:this})},u.lazyLoad&&this._observer&&h.src&&0!=h.i&&(h.setAttribute("data-src",h.src),h.removeAttribute("src"),this._observer.observe(h));var m,b=this.rtf.getElementsByTagName("a"),y=(0,r.default)(b);try{for(y.s();!(m=y.n()).done;){var x=m.value;x.onclick=function(t){t.stopPropagation();var e=!0,i=this.getAttribute("href");if(u.$emit("linkpress",{href:i,ignore:function(){return e=!1}}),e&&i)if("#"==i[0])u.useAnchor&&u.navigateTo({id:i.substr(1)});else{if(0==i.indexOf("http")||0==i.indexOf("//"))return!0;uni.navigateTo({url:i})}return!1}}}catch(M){y.e(M)}finally{y.f()}var w=this.rtf.getElementsByTagName("video");u.videoContexts=w;for(var _,C=0;_=w[C++];)f(_),_.style.maxWidth="100%",_.onerror=function(){u.$emit("error",{source:"video",target:this})},_.onplay=function(){if(u.autopause)for(var t,e=0;t=u.videoContexts[e++];)t!=this&&t.pause()};var T,k,S=this.rtf.getElementsByTagName("audio"),A=(0,r.default)(S);try{for(A.s();!(T=A.n()).done;){var $=T.value;f($),$.onerror=function(){u.$emit("error",{source:"audio",target:this})}}}catch(M){A.e(M)}finally{A.f()}if(this.autoscroll){var B,O=this.rtf.getElementsByTagName("table"),E=(0,r.default)(O);try{for(E.s();!(B=E.n()).done;){var I=B.value,L=document.createElement("div");L.style.overflow="scroll",I.parentNode.replaceChild(L,I),L.appendChild(I)}}catch(M){E.e(M)}finally{E.f()}}e||this.document.appendChild(this.rtf),this.$nextTick((function(){i.nodes=[1],i.$emit("load")})),setTimeout((function(){return i.showAm=""}),500),clearInterval(this._timer),this._timer=setInterval((function(){i.rect=i.rtf.getBoundingClientRect(),i.rect.height==k&&(i.$emit("ready",i.rect),clearInterval(i._timer)),k=i.rect.height}),350),this.showWithAnimation&&!e&&(this.showAm="animation:_show .5s")}else this.rtf&&!e&&this.rtf.parentNode.removeChild(this.rtf)},getText:function(){arguments.length>0&&void 0!==arguments[0]||this.nodes;var t="";return t=this.rtf.innerText,t},in:function(t){t.page&&t.selector&&t.scrollTop&&(this._in=t)},navigateTo:function(t){var e=this;if(!this.useAnchor)return t.fail&&t.fail("Anchor is disabled");var i=uni.createSelectorQuery().in(this._in?this._in.page:this).select((this._in?this._in.selector:"#_top")+(t.id?"".concat(" ","#").concat(t.id,",").concat(this._in?this._in.selector:"#_top").concat(" ",".").concat(t.id):"")).boundingClientRect();this._in?i.select(this._in.selector).scrollOffset().select(this._in.selector).boundingClientRect():i.selectViewport().scrollOffset(),i.exec((function(i){if(!i[0])return t.fail&&t.fail("Label not found");var n=i[1].scrollTop+i[0].top-(i[2]?i[2].top:0)+(t.offset||0);e._in?e._in.page[e._in.scrollTop]=n:uni.pageScrollTo({scrollTop:n,duration:300}),t.success&&t.success()}))},getVideoContext:function(t){if(!t)return this.videoContexts;for(var e=this.videoContexts.length;e--;)if(this.videoContexts[e].id==t)return this.videoContexts[e]},_handleHtml:function(t,e){if(!e){var i="<style scoped>@keyframes _show{0%{opacity:0}100%{opacity:1}}img{max-width:100%}";for(var n in o.userAgentStyles)i+="".concat(n,"{").concat(o.userAgentStyles[n],"}");for(n in this.tagStyle)i+="".concat(n,"{").concat(this.tagStyle[n],"}");i+="</style>",t=i+t}return t.includes("rpx")&&(t=t.replace(/[0-9.]+\s*rpx/g,(function(t){return parseFloat(t)*s/750+"px"}))),t}}};e.default=l},6607:function(t,e,i){"use strict";i.r(e);var n=i("2477"),r=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},"76d8":function(t,e,i){var n=i("eb9f");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=i("967d").default;r("4910568a",n,!0,{sourceMap:!1,shadowMode:!1})},"7fad":function(t,e,i){"use strict";i.r(e);var n=i("5e88"),r=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},"961f":function(t,e,i){"use strict";i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var n={uParse:i("a4be").default,lSignature:i("7b96").default},r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"content u-p-20"},[i("u-parse",{class:{"pb-500":"购买委托代卖协议"==t.title},attrs:{html:t.parseContent,"tag-style":t.richStyle}}),"购买委托代卖协议"==t.title?i("v-uni-view",{staticClass:"b-fixed-panel-bottom"},[i("v-uni-view",{staticClass:"u-relative b-line",staticStyle:{height:"380rpx"}},[i("l-signature",{ref:"signatureRef",attrs:{disableScroll:!0,penColor:t.penColor,backgroundColor:"rgba(255, 255, 255, 0.9)",penSize:t.penSize,openSmooth:t.openSmooth}}),i("v-uni-view",{staticClass:"signa-box b-text-c b-text-50 b-flex-y u-row-around"},[i("v-uni-view",{},[t._v("签字区域")]),i("v-uni-view",{staticStyle:{"letter-spacing":".5em"}},[t._v("在该白板区域签名")])],1)],1),i("v-uni-view",{staticClass:"b-flex-x b-flex-space u-p-20"},[i("v-uni-button",{staticClass:"b-btn theme-btn b-btn-md",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleSign("clear")}}},[t._v("重试")]),i("v-uni-button",{staticClass:"b-btn theme-btn b-btn-md",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleSign("save")}}},[t._v("我已同意并确认签名")])],1)],1):t._e()],1)},a=[]},a4be:function(t,e,i){"use strict";i.r(e);var n=i("e17d"),r=i("7fad");for(var a in r)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(a);i("3212");var s=i("828b"),o=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"5189efcc",null,!1,n["a"],void 0);e["default"]=o.exports},b266:function(t,e,i){"use strict";var n=i("76d8"),r=i.n(n);r.a},c406:function(t,e,i){var n=i("db42");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=i("967d").default;r("185d0c15",n,!0,{sourceMap:!1,shadowMode:!1})},db42:function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.i,"@-webkit-keyframes _show-data-v-5189efcc{0%{opacity:0}100%{opacity:1}}@keyframes _show-data-v-5189efcc{0%{opacity:0}100%{opacity:1}}\n\n\n\n",""]),t.exports=e},e17d:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",[this.nodes.length?this._e():this._t("default"),e("v-uni-view",{style:this.showAm+(this.selectable?";user-select:text;-webkit-user-select:text":""),attrs:{id:"_top"}},[e("div",{attrs:{id:"rtf"+this.uid}})])],2)},r=[]},eb9f:function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.signa-box[data-v-b1862cb0]{position:absolute;left:0;right:0;bottom:0;top:0;z-index:-1;align-items:center}.pb-500[data-v-b1862cb0]{padding-bottom:%?500?%}',""]),t.exports=e}}]);