yc-ui2 0.1.2-beta02 → 0.1.2-beta04
Sign up to get free protection for your applications and to get access to all the features.
- package/.env +2 -2
- package/README.md +99 -6
- package/dist/yc-ui2.common.js +9 -4
- package/dist/yc-ui2.common.js.map +1 -1
- package/dist/yc-ui2.css +1 -1
- package/dist/yc-ui2.umd.js +9 -4
- package/dist/yc-ui2.umd.js.map +1 -1
- package/dist/yc-ui2.umd.min.js +1 -1
- package/dist/yc-ui2.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/vue.config.js +1 -1
- package/md/CustomerService.md +0 -70
- package/md/YcSlideVerify.md +0 -16
package/dist/yc-ui2.umd.min.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["yc-ui2"]=e():t["yc-ui2"]=e()})("undefined"!==typeof self?self:this,(function(){return function(){"use strict";var t={9662:function(t,e,n){var r=n(614),o=n(6330),i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not a function")}},9670:function(t,e,n){var r=n(111),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not an object")}},1318:function(t,e,n){var r=n(5656),o=n(1400),i=n(6244),a=function(t){return function(e,n,a){var u,s=r(e),c=i(s),l=o(a,c);if(t&&n!==n){while(c>l)if(u=s[l++],u!==u)return!0}else for(;c>l;l++)if((t||l in s)&&s[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},3658:function(t,e,n){var r=n(9781),o=n(3157),i=TypeError,a=Object.getOwnPropertyDescriptor,u=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=u?function(t,e){if(o(t)&&!a(t,"length").writable)throw new i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},4326:function(t,e,n){var r=n(1702),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},9920:function(t,e,n){var r=n(2597),o=n(3887),i=n(1236),a=n(3070);t.exports=function(t,e,n){for(var u=o(e),s=a.f,c=i.f,l=0;l<u.length;l++){var f=u[l];r(t,f)||n&&r(n,f)||s(t,f,c(e,f))}}},8880:function(t,e,n){var r=n(9781),o=n(3070),i=n(9114);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},9114:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},8052:function(t,e,n){var r=n(614),o=n(3070),i=n(6339),a=n(3072);t.exports=function(t,e,n,u){u||(u={});var s=u.enumerable,c=void 0!==u.name?u.name:e;if(r(n)&&i(n,c,u),u.global)s?t[e]=n:a(e,n);else{try{u.unsafe?t[e]&&(s=!0):delete t[e]}catch(l){}s?t[e]=n:o.f(t,e,{value:n,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return t}},3072:function(t,e,n){var r=n(7854),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},9781:function(t,e,n){var r=n(7293);t.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:function(t){var e="object"==typeof document&&document.all,n="undefined"==typeof e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:n}},317:function(t,e,n){var r=n(7854),o=n(111),i=r.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},7207:function(t){var e=TypeError,n=9007199254740991;t.exports=function(t){if(t>n)throw e("Maximum allowed index exceeded");return t}},8113:function(t){t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7392:function(t,e,n){var r,o,i=n(7854),a=n(8113),u=i.process,s=i.Deno,c=u&&u.versions||s&&s.version,l=c&&c.v8;l&&(r=l.split("."),o=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(o=+r[1]))),t.exports=o},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(t,e,n){var r=n(7854),o=n(1236).f,i=n(8880),a=n(8052),u=n(3072),s=n(9920),c=n(4705);t.exports=function(t,e){var n,l,f,p,d,v,h=t.target,g=t.global,m=t.stat;if(l=g?r:m?r[h]||u(h,{}):(r[h]||{}).prototype,l)for(f in e){if(d=e[f],t.dontCallGetSet?(v=o(l,f),p=v&&v.value):p=l[f],n=c(g?f:h+(m?".":"#")+f,t.forced),!n&&void 0!==p){if(typeof d==typeof p)continue;s(d,p)}(t.sham||p&&p.sham)&&i(d,"sham",!0),a(l,f,d,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(e){return!0}}},4374:function(t,e,n){var r=n(7293);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:function(t,e,n){var r=n(4374),o=Function.prototype.call;t.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},6530:function(t,e,n){var r=n(9781),o=n(2597),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,u=o(i,"name"),s=u&&"something"===function(){}.name,c=u&&(!r||r&&a(i,"name").configurable);t.exports={EXISTS:u,PROPER:s,CONFIGURABLE:c}},1702:function(t,e,n){var r=n(4374),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);t.exports=r?a:function(t){return function(){return i.apply(t,arguments)}}},5005:function(t,e,n){var r=n(7854),o=n(614),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t]):r[t]&&r[t][e]}},8173:function(t,e,n){var r=n(9662),o=n(8554);t.exports=function(t,e){var n=t[e];return o(n)?void 0:r(n)}},7854:function(t,e,n){var r=function(t){return t&&t.Math===Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||this||Function("return this")()},2597:function(t,e,n){var r=n(1702),o=n(7908),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},3501:function(t){t.exports={}},4664:function(t,e,n){var r=n(9781),o=n(7293),i=n(317);t.exports=!r&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,n){var r=n(1702),o=n(7293),i=n(4326),a=Object,u=r("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?u(t,""):a(t)}:a},2788:function(t,e,n){var r=n(1702),o=n(614),i=n(5465),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},9909:function(t,e,n){var r,o,i,a=n(4811),u=n(7854),s=n(111),c=n(8880),l=n(2597),f=n(5465),p=n(6200),d=n(3501),v="Object already initialized",h=u.TypeError,g=u.WeakMap,m=function(t){return i(t)?o(t):r(t,{})},y=function(t){return function(e){var n;if(!s(e)||(n=o(e)).type!==t)throw new h("Incompatible receiver, "+t+" required");return n}};if(a||f.state){var b=f.state||(f.state=new g);b.get=b.get,b.has=b.has,b.set=b.set,r=function(t,e){if(b.has(t))throw new h(v);return e.facade=t,b.set(t,e),e},o=function(t){return b.get(t)||{}},i=function(t){return b.has(t)}}else{var x=p("state");d[x]=!0,r=function(t,e){if(l(t,x))throw new h(v);return e.facade=t,c(t,x,e),e},o=function(t){return l(t,x)?t[x]:{}},i=function(t){return l(t,x)}}t.exports={set:r,get:o,has:i,enforce:m,getterFor:y}},3157:function(t,e,n){var r=n(4326);t.exports=Array.isArray||function(t){return"Array"===r(t)}},614:function(t,e,n){var r=n(4154),o=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===o}:function(t){return"function"==typeof t}},4705:function(t,e,n){var r=n(7293),o=n(614),i=/#|\.prototype\./,a=function(t,e){var n=s[u(t)];return n===l||n!==c&&(o(e)?r(e):!!e)},u=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},8554:function(t){t.exports=function(t){return null===t||void 0===t}},111:function(t,e,n){var r=n(614),o=n(4154),i=o.all;t.exports=o.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===i}:function(t){return"object"==typeof t?null!==t:r(t)}},1913:function(t){t.exports=!1},2190:function(t,e,n){var r=n(5005),o=n(614),i=n(7976),a=n(3307),u=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return o(e)&&i(e.prototype,u(t))}},6244:function(t,e,n){var r=n(7466);t.exports=function(t){return r(t.length)}},6339:function(t,e,n){var r=n(1702),o=n(7293),i=n(614),a=n(2597),u=n(9781),s=n(6530).CONFIGURABLE,c=n(2788),l=n(9909),f=l.enforce,p=l.get,d=String,v=Object.defineProperty,h=r("".slice),g=r("".replace),m=r([].join),y=u&&!o((function(){return 8!==v((function(){}),"length",{value:8}).length})),b=String(String).split("String"),x=t.exports=function(t,e,n){"Symbol("===h(d(e),0,7)&&(e="["+g(d(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||s&&t.name!==e)&&(u?v(t,"name",{value:e,configurable:!0}):t.name=e),y&&n&&a(n,"arity")&&t.length!==n.arity&&v(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?u&&v(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var r=f(t);return a(r,"source")||(r.source=m(b,"string"==typeof e?e:"")),t};Function.prototype.toString=x((function(){return i(this)&&p(this).source||c(this)}),"toString")},4758:function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},3070:function(t,e,n){var r=n(9781),o=n(4664),i=n(3353),a=n(9670),u=n(4948),s=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",d="writable";e.f=r?i?function(t,e,n){if(a(t),e=u(e),a(n),"function"===typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]){var r=l(t,e);r&&r[d]&&(t[e]=n.value,n={configurable:p in n?n[p]:r[p],enumerable:f in n?n[f]:r[f],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(a(t),e=u(e),a(n),o)try{return c(t,e,n)}catch(r){}if("get"in n||"set"in n)throw new s("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},1236:function(t,e,n){var r=n(9781),o=n(6916),i=n(5296),a=n(9114),u=n(5656),s=n(4948),c=n(2597),l=n(4664),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=u(t),e=s(e),l)try{return f(t,e)}catch(n){}if(c(t,e))return a(!o(i.f,t,e),t[e])}},8006:function(t,e,n){var r=n(6324),o=n(748),i=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},7976:function(t,e,n){var r=n(1702);t.exports=r({}.isPrototypeOf)},6324:function(t,e,n){var r=n(1702),o=n(2597),i=n(5656),a=n(1318).indexOf,u=n(3501),s=r([].push);t.exports=function(t,e){var n,r=i(t),c=0,l=[];for(n in r)!o(u,n)&&o(r,n)&&s(l,n);while(e.length>c)o(r,n=e[c++])&&(~a(l,n)||s(l,n));return l}},5296:function(t,e){var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},2140:function(t,e,n){var r=n(6916),o=n(614),i=n(111),a=TypeError;t.exports=function(t,e){var n,u;if("string"===e&&o(n=t.toString)&&!i(u=r(n,t)))return u;if(o(n=t.valueOf)&&!i(u=r(n,t)))return u;if("string"!==e&&o(n=t.toString)&&!i(u=r(n,t)))return u;throw new a("Can't convert object to primitive value")}},3887:function(t,e,n){var r=n(5005),o=n(1702),i=n(8006),a=n(5181),u=n(9670),s=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(u(t)),n=a.f;return n?s(e,n(t)):e}},4488:function(t,e,n){var r=n(8554),o=TypeError;t.exports=function(t){if(r(t))throw new o("Can't call method on "+t);return t}},6200:function(t,e,n){var r=n(2309),o=n(9711),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},5465:function(t,e,n){var r=n(7854),o=n(3072),i="__core-js_shared__",a=r[i]||o(i,{});t.exports=a},2309:function(t,e,n){var r=n(1913),o=n(5465);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.33.0",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6293:function(t,e,n){var r=n(7392),o=n(7293),i=n(7854),a=i.String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!a(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},1400:function(t,e,n){var r=n(9303),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},5656:function(t,e,n){var r=n(8361),o=n(4488);t.exports=function(t){return r(o(t))}},9303:function(t,e,n){var r=n(4758);t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},7466:function(t,e,n){var r=n(9303),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},7908:function(t,e,n){var r=n(4488),o=Object;t.exports=function(t){return o(r(t))}},7593:function(t,e,n){var r=n(6916),o=n(111),i=n(2190),a=n(8173),u=n(2140),s=n(5112),c=TypeError,l=s("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var n,s=a(t,l);if(s){if(void 0===e&&(e="default"),n=r(s,t,e),!o(n)||i(n))return n;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),u(t,e)}},4948:function(t,e,n){var r=n(7593),o=n(2190);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},6330:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(n){return"Object"}}},9711:function(t,e,n){var r=n(1702),o=0,i=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},3307:function(t,e,n){var r=n(6293);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,e,n){var r=n(9781),o=n(7293);t.exports=r&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4811:function(t,e,n){var r=n(7854),o=n(614),i=r.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},5112:function(t,e,n){var r=n(7854),o=n(2309),i=n(2597),a=n(9711),u=n(6293),s=n(3307),c=r.Symbol,l=o("wks"),f=s?c["for"]||c:c&&c.withoutSetter||a;t.exports=function(t){return i(l,t)||(l[t]=u&&i(c,t)?c[t]:f("Symbol."+t)),l[t]}},7658:function(t,e,n){var r=n(2109),o=n(7908),i=n(6244),a=n(3658),u=n(7207),s=n(7293),c=s((function(){return 4294967297!==[].push.call({length:4294967296},1)})),l=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},f=c||!l();r({target:"Array",proto:!0,arity:1,forced:f},{push:function(t){var e=o(this),n=i(e),r=arguments.length;u(n+r);for(var s=0;s<r;s++)e[n]=arguments[s],n++;return a(e,n),n}})}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}!function(){n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){n.p=""}();var r={};return function(){if(n.r(r),n.d(r,{default:function(){return $}}),"undefined"!==typeof window){var t=window.document.currentScript,e=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);e&&(n.p=e[1])}var o=function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{title:t.title,visible:t.isShow,width:"350px","append-to-body":!0},on:{close:t.handleClose}},[e("slide-verify",{ref:"slideblock",attrs:{l:42,r:10,w:310,h:155,imgs:t.imgs,accuracy:t.accuracy,"slider-text":t.sliderText},on:{success:t.onSuccess,fail:t.onFail,again:t.onAgain,refresh:t.onRefresh,fulfilled:t.onFulfilled}})],1)},i=[],a=(n(7658),{name:"YcSlideVerify",props:{title:{type:String,default:"滑动验证"},isShow:{type:Boolean,default:!0}},data(){return{accuracy:5,sliderText:"拖动完成上方拼图",countDownNum:120}},computed:{imgs(){const t=[];for(let e=1;e<9;e++)t.push(`/cloud-img/${e}.jpg`);return t}},created(){},methods:{onSuccess(){this.$emit("success")},onFail(){},onAgain(){},onRefresh(){},onFulfilled(){},handleClose(){this.$emit("close")}}}),u=a;function s(t,e,n,r,o,i,a,u){var s,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),a?(s=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=s):o&&(s=u?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),s)if(c.functional){c._injectStyles=s;var l=c.render;c.render=function(t,e){return s.call(e),l(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,s):[s]}return{exports:t,options:c}}var c=s(u,o,i,!1,null,"2248e29b",null),l=c.exports,f=function(){var t=this,e=t._self._c;return e("div",{ref:"customer",staticStyle:{display:"none"}},[e("chat-vue",{attrs:{visible:t.visible,jumpPage:t.jumpPage,title:t.title,json:t.json,regular:t.regular},on:{"update:visible":function(e){t.visible=e}}}),e("div",{staticClass:"customerService"},[e("div",{staticClass:"mobile"},[t._t("default")],2),e("div",{staticClass:"headset",on:{click:function(e){t.visible=!t.visible}}},[t._m(0),t._m(1)])])],1)},p=[function(){var t=this,e=t._self._c;return e("div",[e("i",{staticClass:"el-icon-headset"})])},function(){var t=this,e=t._self._c;return e("div",[e("a",[t._v("在线客服")])])}],d=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"chat"},[e("header",[e("img",{attrs:{src:"/cloud-img/customerService/admin.jpg"}}),e("span",[t._v(t._s(t.title))]),t.jumpPage?e("i",{staticClass:"icon-enlarge",on:{click:t.enlarge}},[e("img",{attrs:{src:"/cloud-img/customerService/enlarge.png"}})]):t._e(),e("i",{staticClass:"el-icon-close",on:{click:t.close}})]),e("main",{ref:"main"},t._l(t.messagelist,(function(n,r){return e("div",{key:r,class:["message",n.id]},[e("img",{staticClass:"avatar",attrs:{src:`/cloud-img/customerService/${n.id}.jpg`}}),e("div",{staticClass:"content"},[t._l(n.msg,(function(r,o){return e("span",{key:r+o,class:n.msg.length>1?"href":"",domProps:{innerHTML:t._s((n.msg.length>1?1+o+". ":" ")+r)},on:{click:function(e){n.msg.length>1&&t.regularClick(r)}}})})),n.based?e("div",{staticClass:"based",on:{click:function(e){return t.handExpand(n)}}},[e("span",[t._v("依据")]),e("span",{class:{"is-active":n.isActive}},[t._v(t._s(n.based)),e("i",{staticClass:"el-icon-d-arrow-right"})])]):t._e()],2)])})),0),e("nav",t._l(t.regular,(function(n,r){return e("el-button",{key:n+r,attrs:{size:"mini",round:""},on:{click:function(e){return t.regularClick(n)}}},[t._v(t._s(n))])})),1),e("el-input",{attrs:{type:"textarea",maxlength:"500",autosize:{minRows:2,maxRows:3},autofocus:"true",resize:"none",placeholder:"请反馈您的问题,我们将尽快回复"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.carriageReturn.apply(null,arguments)}},model:{value:t.textareaValue,callback:function(e){t.textareaValue=e},expression:"textareaValue"}}),e("el-button",{attrs:{type:"primary",size:"mini",disabled:!t.textareaValue},on:{click:t.send}},[t._v("发送")])],1)},v=[],h={props:{visible:Boolean,jumpPage:String,json:String,title:String,commit:String,regular:Array},data(){return{textareaValue:"",messagelist:[{id:"admin",msg:["您好,38号客服很高兴为你服务!"],isActive:!1}],isActive:!1}},computed:{questions(){return JSON.parse(this.json)}},methods:{close(){this.$emit("update:visible",!1)},carriageReturn(){let t=window.event||arguments[0];"Enter"!=t.key&&"Enter"!=t.code&&13!=t.keyCode||!this.textareaValue||this.send()},send(){this.textareaValue.replace(/[^\w\u4E00-\u9FA5]/g,"")&&(this.add(this.textareaValue,"personal",(()=>{this.textareaValue=""})),this.search(this.textareaValue))},regularClick(t){this.add(t),this.search(t)},search(t){const e=this.questions.filter((e=>e.faq.replace(/[^\w\u4E00-\u9FA5]/g,"").toLowerCase().includes(t.replace(/[^\w\u4E00-\u9FA5]/g,"").toLowerCase())));let[n,r]=["",""];e.length>1?n=e.reduce(((t,e)=>[...t,e.faq]),[]):1==e.length?[n,r]=[e[0].msg,e[0].based]:n=["您好","你好"].includes(t.replace(/[^\w\u4E00-\u9FA5]/g,""))?"您好!":'请提关键词问题?<br/> 比如: 税率<br/><br/><a href="tel:4000770168">客服热线:<span style="color: #FF575F;">400 0770 168</span></a>',this.add(n,"admin",null,r)},add(t,e="personal",n,r=""){this.messagelist.push({id:e,msg:Array.isArray(t)?t:[t],based:r,isActive:!1}),this.$nextTick((()=>{n&&n(),this.$refs.main.scrollTop=this.$refs.main.scrollHeight}))},enlarge(){window.open(this.jumpPage,"_blank")},handExpand(t){t.isActive=!t.isActive}}},g={name:"ChatMini",mixins:[h]},m=g,y=s(m,d,v,!1,null,null,null),b=y.exports,x={name:"YcCustomerService",components:{chatVue:b},props:{jumpPage:String,title:String,json:String,regular:Array},data(){return{visible:!1}},computed:{hasSlot(){return Boolean(this.$slots.default)}},watch:{$route(t){t.path!=this.jumpPage?this.$refs.customer.style.display="block":this.$refs.customer.style.display="none"}},mounted(){this.$refs.customer.style.display="block"}},w=x,_=s(w,f,p,!1,null,"849349a0",null),S=_.exports,j=function(){var t=this,e=t._self._c;return e("div",{staticClass:"chatPage"},[e("header",{staticStyle:{background:"url('/cloud-img/customerService/chatTop.png') center","background-size":"cover"}},[e("div",[e("h3",[t._v(t._s(t.title))]),e("span",[t._v("Problem Help")])]),e("p",[t._v("小优为您提供24小时服务")])]),e("div",{staticClass:"main"},[e("div",[e("main",{ref:"main"},[e("p",[t._v("今天"+t._s(t.currData))]),t._l(t.messagelist,(function(n,r){return e("div",{key:r,class:["message",n.id]},[e("img",{staticClass:"avatar",attrs:{src:"/cloud-img/customerService/"+n.id+".jpg"}}),e("div",{staticClass:"content"},[t._l(n.msg,(function(r,o){return e("span",{key:r+o,class:n.msg.length>1?"href":"",domProps:{innerHTML:t._s((n.msg.length>1?1+o+". ":" ")+r)},on:{click:function(e){n.msg.length>1&&t.regularClick(r)}}})})),n.based?e("div",{staticClass:"based",on:{click:function(e){return e.preventDefault(),t.handExpand(n)}}},[e("span",[t._v("依据")]),e("span",{class:{"is-active":n.isActive}},[t._v(t._s(n.based)),e("i",{staticClass:"el-icon-d-arrow-right"})])]):t._e()],2)])}))],2),e("footer",[e("el-input",{attrs:{type:"textarea",maxlength:"500",autosize:{minRows:6,maxRows:6},autofocus:"true",resize:"none",placeholder:"请输入你要咨询的问题"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.carriageReturn.apply(null,arguments)}},model:{value:t.textareaValue,callback:function(e){t.textareaValue=e},expression:"textareaValue"}}),e("el-button",{style:t.textareaValue?"":"background-color: #F7F7F9;color: #FF575F;border-color: transparent;",attrs:{type:"primary",disabled:!t.textareaValue},on:{click:t.send}},[t._v("发送")])],1)]),e("aside",[e("el-collapse",{attrs:{accordion:""},model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},t._l(t.questionsList,(function(n,r,o){return e("el-collapse-item",{key:r,attrs:{name:o}},[e("template",{slot:"title"},[e("img",{attrs:{src:"/cloud-img/customerService/ellipticalWenh.png"}}),t._v(t._s(r)+" ")]),t._l(n,(function(n){return e("div",{key:n,domProps:{innerHTML:t._s(n)},on:{click:function(e){return t.regularClick(n)}}})}))],2)})),1)],1)])])},O=[],k={name:"YcQuestion",mixins:[h],data(){return{activeNames:[1]}},computed:{currData(){const t=new Date;return`${t.getHours()}:${t.getMinutes()}`},questionsList(){return this.questions.reduce(((t,e)=>(t.hasOwnProperty(e.type)?t[e.type].push(e.faq):t[e.type]=[e.faq],t)),{})}}},C=k,P=s(C,j,O,!1,null,null,null),E=P.exports;const T=[l,S,E],A=function(t){T.forEach((e=>{t.component(e.name,e)})),"undefined"!==typeof window&&window.Vue&&A(window.Vue)};var F={install:A},$=F}(),r}()}));
|
1
|
+
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["yc-ui2"]=e():t["yc-ui2"]=e()})("undefined"!==typeof self?self:this,(function(){return function(){"use strict";var t={9662:function(t,e,n){var r=n(614),o=n(6330),i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not a function")}},9670:function(t,e,n){var r=n(111),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not an object")}},1318:function(t,e,n){var r=n(5656),o=n(1400),i=n(6244),a=function(t){return function(e,n,a){var s,u=r(e),c=i(u),l=o(a,c);if(t&&n!==n){while(c>l)if(s=u[l++],s!==s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},3658:function(t,e,n){var r=n(9781),o=n(3157),i=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(o(t)&&!a(t,"length").writable)throw new i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},4326:function(t,e,n){var r=n(1702),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},9920:function(t,e,n){var r=n(2597),o=n(3887),i=n(1236),a=n(3070);t.exports=function(t,e,n){for(var s=o(e),u=a.f,c=i.f,l=0;l<s.length;l++){var f=s[l];r(t,f)||n&&r(n,f)||u(t,f,c(e,f))}}},8880:function(t,e,n){var r=n(9781),o=n(3070),i=n(9114);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},9114:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},8052:function(t,e,n){var r=n(614),o=n(3070),i=n(6339),a=n(3072);t.exports=function(t,e,n,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:e;if(r(n)&&i(n,c,s),s.global)u?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(u=!0):delete t[e]}catch(l){}u?t[e]=n:o.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},3072:function(t,e,n){var r=n(7854),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},9781:function(t,e,n){var r=n(7293);t.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:function(t){var e="object"==typeof document&&document.all,n="undefined"==typeof e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:n}},317:function(t,e,n){var r=n(7854),o=n(111),i=r.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},7207:function(t){var e=TypeError,n=9007199254740991;t.exports=function(t){if(t>n)throw e("Maximum allowed index exceeded");return t}},8113:function(t){t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7392:function(t,e,n){var r,o,i=n(7854),a=n(8113),s=i.process,u=i.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(r=l.split("."),o=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(o=+r[1]))),t.exports=o},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(t,e,n){var r=n(7854),o=n(1236).f,i=n(8880),a=n(8052),s=n(3072),u=n(9920),c=n(4705);t.exports=function(t,e){var n,l,f,p,d,v,h=t.target,g=t.global,m=t.stat;if(l=g?r:m?r[h]||s(h,{}):(r[h]||{}).prototype,l)for(f in e){if(d=e[f],t.dontCallGetSet?(v=o(l,f),p=v&&v.value):p=l[f],n=c(g?f:h+(m?".":"#")+f,t.forced),!n&&void 0!==p){if(typeof d==typeof p)continue;u(d,p)}(t.sham||p&&p.sham)&&i(d,"sham",!0),a(l,f,d,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(e){return!0}}},4374:function(t,e,n){var r=n(7293);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:function(t,e,n){var r=n(4374),o=Function.prototype.call;t.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},6530:function(t,e,n){var r=n(9781),o=n(2597),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),u=s&&"something"===function(){}.name,c=s&&(!r||r&&a(i,"name").configurable);t.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},1702:function(t,e,n){var r=n(4374),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);t.exports=r?a:function(t){return function(){return i.apply(t,arguments)}}},5005:function(t,e,n){var r=n(7854),o=n(614),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t]):r[t]&&r[t][e]}},8173:function(t,e,n){var r=n(9662),o=n(8554);t.exports=function(t,e){var n=t[e];return o(n)?void 0:r(n)}},7854:function(t,e,n){var r=function(t){return t&&t.Math===Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||this||Function("return this")()},2597:function(t,e,n){var r=n(1702),o=n(7908),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},3501:function(t){t.exports={}},4664:function(t,e,n){var r=n(9781),o=n(7293),i=n(317);t.exports=!r&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,n){var r=n(1702),o=n(7293),i=n(4326),a=Object,s=r("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?s(t,""):a(t)}:a},2788:function(t,e,n){var r=n(1702),o=n(614),i=n(5465),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},9909:function(t,e,n){var r,o,i,a=n(4811),s=n(7854),u=n(111),c=n(8880),l=n(2597),f=n(5465),p=n(6200),d=n(3501),v="Object already initialized",h=s.TypeError,g=s.WeakMap,m=function(t){return i(t)?o(t):r(t,{})},y=function(t){return function(e){var n;if(!u(e)||(n=o(e)).type!==t)throw new h("Incompatible receiver, "+t+" required");return n}};if(a||f.state){var b=f.state||(f.state=new g);b.get=b.get,b.has=b.has,b.set=b.set,r=function(t,e){if(b.has(t))throw new h(v);return e.facade=t,b.set(t,e),e},o=function(t){return b.get(t)||{}},i=function(t){return b.has(t)}}else{var x=p("state");d[x]=!0,r=function(t,e){if(l(t,x))throw new h(v);return e.facade=t,c(t,x,e),e},o=function(t){return l(t,x)?t[x]:{}},i=function(t){return l(t,x)}}t.exports={set:r,get:o,has:i,enforce:m,getterFor:y}},3157:function(t,e,n){var r=n(4326);t.exports=Array.isArray||function(t){return"Array"===r(t)}},614:function(t,e,n){var r=n(4154),o=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===o}:function(t){return"function"==typeof t}},4705:function(t,e,n){var r=n(7293),o=n(614),i=/#|\.prototype\./,a=function(t,e){var n=u[s(t)];return n===l||n!==c&&(o(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},8554:function(t){t.exports=function(t){return null===t||void 0===t}},111:function(t,e,n){var r=n(614),o=n(4154),i=o.all;t.exports=o.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===i}:function(t){return"object"==typeof t?null!==t:r(t)}},1913:function(t){t.exports=!1},2190:function(t,e,n){var r=n(5005),o=n(614),i=n(7976),a=n(3307),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return o(e)&&i(e.prototype,s(t))}},6244:function(t,e,n){var r=n(7466);t.exports=function(t){return r(t.length)}},6339:function(t,e,n){var r=n(1702),o=n(7293),i=n(614),a=n(2597),s=n(9781),u=n(6530).CONFIGURABLE,c=n(2788),l=n(9909),f=l.enforce,p=l.get,d=String,v=Object.defineProperty,h=r("".slice),g=r("".replace),m=r([].join),y=s&&!o((function(){return 8!==v((function(){}),"length",{value:8}).length})),b=String(String).split("String"),x=t.exports=function(t,e,n){"Symbol("===h(d(e),0,7)&&(e="["+g(d(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||u&&t.name!==e)&&(s?v(t,"name",{value:e,configurable:!0}):t.name=e),y&&n&&a(n,"arity")&&t.length!==n.arity&&v(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&v(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var r=f(t);return a(r,"source")||(r.source=m(b,"string"==typeof e?e:"")),t};Function.prototype.toString=x((function(){return i(this)&&p(this).source||c(this)}),"toString")},4758:function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},3070:function(t,e,n){var r=n(9781),o=n(4664),i=n(3353),a=n(9670),s=n(4948),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",d="writable";e.f=r?i?function(t,e,n){if(a(t),e=s(e),a(n),"function"===typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]){var r=l(t,e);r&&r[d]&&(t[e]=n.value,n={configurable:p in n?n[p]:r[p],enumerable:f in n?n[f]:r[f],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(a(t),e=s(e),a(n),o)try{return c(t,e,n)}catch(r){}if("get"in n||"set"in n)throw new u("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},1236:function(t,e,n){var r=n(9781),o=n(6916),i=n(5296),a=n(9114),s=n(5656),u=n(4948),c=n(2597),l=n(4664),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=s(t),e=u(e),l)try{return f(t,e)}catch(n){}if(c(t,e))return a(!o(i.f,t,e),t[e])}},8006:function(t,e,n){var r=n(6324),o=n(748),i=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},7976:function(t,e,n){var r=n(1702);t.exports=r({}.isPrototypeOf)},6324:function(t,e,n){var r=n(1702),o=n(2597),i=n(5656),a=n(1318).indexOf,s=n(3501),u=r([].push);t.exports=function(t,e){var n,r=i(t),c=0,l=[];for(n in r)!o(s,n)&&o(r,n)&&u(l,n);while(e.length>c)o(r,n=e[c++])&&(~a(l,n)||u(l,n));return l}},5296:function(t,e){var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},2140:function(t,e,n){var r=n(6916),o=n(614),i=n(111),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&o(n=t.toString)&&!i(s=r(n,t)))return s;if(o(n=t.valueOf)&&!i(s=r(n,t)))return s;if("string"!==e&&o(n=t.toString)&&!i(s=r(n,t)))return s;throw new a("Can't convert object to primitive value")}},3887:function(t,e,n){var r=n(5005),o=n(1702),i=n(8006),a=n(5181),s=n(9670),u=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(s(t)),n=a.f;return n?u(e,n(t)):e}},4488:function(t,e,n){var r=n(8554),o=TypeError;t.exports=function(t){if(r(t))throw new o("Can't call method on "+t);return t}},6200:function(t,e,n){var r=n(2309),o=n(9711),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},5465:function(t,e,n){var r=n(7854),o=n(3072),i="__core-js_shared__",a=r[i]||o(i,{});t.exports=a},2309:function(t,e,n){var r=n(1913),o=n(5465);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.33.0",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6293:function(t,e,n){var r=n(7392),o=n(7293),i=n(7854),a=i.String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!a(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},1400:function(t,e,n){var r=n(9303),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},5656:function(t,e,n){var r=n(8361),o=n(4488);t.exports=function(t){return r(o(t))}},9303:function(t,e,n){var r=n(4758);t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},7466:function(t,e,n){var r=n(9303),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},7908:function(t,e,n){var r=n(4488),o=Object;t.exports=function(t){return o(r(t))}},7593:function(t,e,n){var r=n(6916),o=n(111),i=n(2190),a=n(8173),s=n(2140),u=n(5112),c=TypeError,l=u("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var n,u=a(t,l);if(u){if(void 0===e&&(e="default"),n=r(u,t,e),!o(n)||i(n))return n;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},4948:function(t,e,n){var r=n(7593),o=n(2190);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},6330:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(n){return"Object"}}},9711:function(t,e,n){var r=n(1702),o=0,i=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},3307:function(t,e,n){var r=n(6293);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,e,n){var r=n(9781),o=n(7293);t.exports=r&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4811:function(t,e,n){var r=n(7854),o=n(614),i=r.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},5112:function(t,e,n){var r=n(7854),o=n(2309),i=n(2597),a=n(9711),s=n(6293),u=n(3307),c=r.Symbol,l=o("wks"),f=u?c["for"]||c:c&&c.withoutSetter||a;t.exports=function(t){return i(l,t)||(l[t]=s&&i(c,t)?c[t]:f("Symbol."+t)),l[t]}},7658:function(t,e,n){var r=n(2109),o=n(7908),i=n(6244),a=n(3658),s=n(7207),u=n(7293),c=u((function(){return 4294967297!==[].push.call({length:4294967296},1)})),l=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},f=c||!l();r({target:"Array",proto:!0,arity:1,forced:f},{push:function(t){var e=o(this),n=i(e),r=arguments.length;s(n+r);for(var u=0;u<r;u++)e[n]=arguments[u],n++;return a(e,n),n}})}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}!function(){n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){n.p=""}();var r={};return function(){if(n.r(r),n.d(r,{default:function(){return $}}),"undefined"!==typeof window){var t=window.document.currentScript,e=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);e&&(n.p=e[1])}var o=function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{title:t.title,visible:t.isShow,width:"350px","append-to-body":!0},on:{close:t.handleClose}},[e("slide-verify",{ref:"slideblock",attrs:{l:42,r:10,w:310,h:155,imgs:t.imgs,accuracy:t.accuracy,"slider-text":t.sliderText},on:{success:t.onSuccess,fail:t.onFail,again:t.onAgain,refresh:t.onRefresh,fulfilled:t.onFulfilled}})],1)},i=[],a=(n(7658),{name:"YcSlideVerify",props:{title:{type:String,default:"滑动验证"},isShow:{type:Boolean,default:!0}},data(){return{accuracy:5,sliderText:"拖动完成上方拼图",countDownNum:120}},computed:{imgs(){const t=[];for(let e=1;e<9;e++)t.push(`/cloud-img/${e}.jpg`);return t}},watch:{isShow(t){t&&this.$refs.slideblock.reset()}},created(){},methods:{onSuccess(){this.$emit("success")},onFail(){},onAgain(){},onRefresh(){},onFulfilled(){},handleClose(){this.$emit("close")}}}),s=a;function u(t,e,n,r,o,i,a,s){var u,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=u):o&&(u=s?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:t,options:c}}var c=u(s,o,i,!1,null,"576db1f2",null),l=c.exports,f=function(){var t=this,e=t._self._c;return e("div",{ref:"customer",staticStyle:{display:"none"}},[e("chat-vue",{attrs:{visible:t.visible,jumpPage:t.jumpPage,title:t.title,json:t.json,regular:t.regular},on:{"update:visible":function(e){t.visible=e}}}),e("div",{staticClass:"customerService"},[e("div",{staticClass:"mobile"},[t._t("default")],2),e("div",{staticClass:"headset",on:{click:function(e){t.visible=!t.visible}}},[t._m(0),t._m(1)])])],1)},p=[function(){var t=this,e=t._self._c;return e("div",[e("i",{staticClass:"el-icon-headset"})])},function(){var t=this,e=t._self._c;return e("div",[e("a",[t._v("在线客服")])])}],d=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"chat"},[e("header",[e("img",{attrs:{src:"/cloud-img/customerService/admin.jpg"}}),e("span",[t._v(t._s(t.title))]),t.jumpPage?e("i",{staticClass:"icon-enlarge",on:{click:t.enlarge}},[e("img",{attrs:{src:"/cloud-img/customerService/enlarge.png"}})]):t._e(),e("i",{staticClass:"el-icon-close",on:{click:t.close}})]),e("main",{ref:"main"},t._l(t.messagelist,(function(n,r){return e("div",{key:r,class:["message",n.id]},[e("img",{staticClass:"avatar",attrs:{src:`/cloud-img/customerService/${n.id}.jpg`}}),e("div",{staticClass:"content"},[t._l(n.msg,(function(r,o){return e("span",{key:r+o,class:n.msg.length>1?"href":"",domProps:{innerHTML:t._s((n.msg.length>1?1+o+". ":" ")+r)},on:{click:function(e){n.msg.length>1&&t.regularClick(r)}}})})),n.based?e("div",{staticClass:"based",on:{click:function(e){return t.handExpand(n)}}},[e("span",[t._v("依据")]),e("span",{class:{"is-active":n.isActive}},[t._v(t._s(n.based)),e("i",{staticClass:"el-icon-d-arrow-right"})])]):t._e()],2)])})),0),e("nav",t._l(t.regular,(function(n,r){return e("el-button",{key:n+r,attrs:{size:"mini",round:""},on:{click:function(e){return t.regularClick(n)}}},[t._v(t._s(n))])})),1),e("el-input",{attrs:{type:"textarea",maxlength:"500",autosize:{minRows:2,maxRows:3},autofocus:"true",resize:"none",placeholder:"请反馈您的问题,我们将尽快回复"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.carriageReturn.apply(null,arguments)}},model:{value:t.textareaValue,callback:function(e){t.textareaValue=e},expression:"textareaValue"}}),e("el-button",{attrs:{type:"primary",size:"mini",disabled:!t.textareaValue},on:{click:t.send}},[t._v("发送")])],1)},v=[],h={props:{visible:Boolean,jumpPage:String,json:String,title:String,commit:String,regular:Array},data(){return{textareaValue:"",messagelist:[{id:"admin",msg:["您好,38号客服很高兴为你服务!"],isActive:!1}],isActive:!1}},computed:{questions(){return JSON.parse(this.json)}},methods:{close(){this.$emit("update:visible",!1)},carriageReturn(){let t=window.event||arguments[0];"Enter"!=t.key&&"Enter"!=t.code&&13!=t.keyCode||!this.textareaValue||this.send()},send(){this.textareaValue.replace(/[^\w\u4E00-\u9FA5]/g,"")&&(this.add(this.textareaValue,"personal",(()=>{this.textareaValue=""})),this.search(this.textareaValue))},regularClick(t){this.add(t),this.search(t)},search(t){const e=this.questions.filter((e=>e.faq.replace(/[^\w\u4E00-\u9FA5]/g,"").toLowerCase().includes(t.replace(/[^\w\u4E00-\u9FA5]/g,"").toLowerCase())));let[n,r]=["",""];e.length>1?n=e.reduce(((t,e)=>[...t,e.faq]),[]):1==e.length?[n,r]=[e[0].msg,e[0].based]:n=["您好","你好"].includes(t.replace(/[^\w\u4E00-\u9FA5]/g,""))?"您好!":'请提关键词问题?<br/> 比如: 税率<br/><br/><a href="tel:4000770168">客服热线:<span style="color: #FF575F;">400 0770 168</span></a>',this.add(n,"admin",null,r)},add(t,e="personal",n,r=""){this.messagelist.push({id:e,msg:Array.isArray(t)?t:[t],based:r,isActive:!1}),this.$nextTick((()=>{n&&n(),this.$refs.main.scrollTop=this.$refs.main.scrollHeight}))},enlarge(){window.open(this.jumpPage,"_blank")},handExpand(t){t.isActive=!t.isActive}}},g={name:"ChatMini",mixins:[h]},m=g,y=u(m,d,v,!1,null,null,null),b=y.exports,x={name:"YcCustomerService",components:{chatVue:b},props:{jumpPage:String,title:String,json:String,regular:Array},data(){return{visible:!1}},computed:{hasSlot(){return Boolean(this.$slots.default)}},watch:{$route(t){t.path!=this.jumpPage?this.$refs.customer.style.display="block":this.$refs.customer.style.display="none"}},mounted(){this.$refs.customer.style.display="block"}},w=x,S=u(w,f,p,!1,null,"849349a0",null),_=S.exports,j=function(){var t=this,e=t._self._c;return e("div",{staticClass:"chatPage"},[e("header",{staticStyle:{background:"url('/cloud-img/customerService/chatTop.png') center","background-size":"cover"}},[e("div",[e("h3",[t._v(t._s(t.title))]),e("span",[t._v("Problem Help")])]),e("p",[t._v("小优为您提供24小时服务")])]),e("div",{staticClass:"main"},[e("div",[e("main",{ref:"main"},[e("p",[t._v("今天"+t._s(t.currData))]),t._l(t.messagelist,(function(n,r){return e("div",{key:r,class:["message",n.id]},[e("img",{staticClass:"avatar",attrs:{src:"/cloud-img/customerService/"+n.id+".jpg"}}),e("div",{staticClass:"content"},[t._l(n.msg,(function(r,o){return e("span",{key:r+o,class:n.msg.length>1?"href":"",domProps:{innerHTML:t._s((n.msg.length>1?1+o+". ":" ")+r)},on:{click:function(e){n.msg.length>1&&t.regularClick(r)}}})})),n.based?e("div",{staticClass:"based",on:{click:function(e){return e.preventDefault(),t.handExpand(n)}}},[e("span",[t._v("依据")]),e("span",{class:{"is-active":n.isActive}},[t._v(t._s(n.based)),e("i",{staticClass:"el-icon-d-arrow-right"})])]):t._e()],2)])}))],2),e("footer",[e("el-input",{attrs:{type:"textarea",maxlength:"500",autosize:{minRows:6,maxRows:6},autofocus:"true",resize:"none",placeholder:"请输入你要咨询的问题"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.carriageReturn.apply(null,arguments)}},model:{value:t.textareaValue,callback:function(e){t.textareaValue=e},expression:"textareaValue"}}),e("el-button",{style:t.textareaValue?"":"background-color: #F7F7F9;color: #FF575F;border-color: transparent;",attrs:{type:"primary",disabled:!t.textareaValue},on:{click:t.send}},[t._v("发送")])],1)]),e("aside",[e("el-collapse",{attrs:{accordion:""},model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},t._l(t.questionsList,(function(n,r,o){return e("el-collapse-item",{key:r,attrs:{name:o}},[e("template",{slot:"title"},[e("img",{attrs:{src:"/cloud-img/customerService/ellipticalWenh.png"}}),t._v(t._s(r)+" ")]),t._l(n,(function(n){return e("div",{key:n,domProps:{innerHTML:t._s(n)},on:{click:function(e){return t.regularClick(n)}}})}))],2)})),1)],1)])])},O=[],k={name:"YcQuestion",mixins:[h],data(){return{activeNames:[1]}},computed:{currData(){const t=new Date;return`${t.getHours()}:${t.getMinutes()}`},questionsList(){return this.questions.reduce(((t,e)=>(t.hasOwnProperty(e.type)?t[e.type].push(e.faq):t[e.type]=[e.faq],t)),{})}}},C=k,P=u(C,j,O,!1,null,null,null),E=P.exports;const T=[l,_,E],A=function(t){T.forEach((e=>{t.component(e.name,e)})),"undefined"!==typeof window&&window.Vue&&A(window.Vue)};var F={install:A},$=F}(),r}()}));
|
2
2
|
//# sourceMappingURL=yc-ui2.umd.min.js.map
|