You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jiaojiu/dist/js/chunk-6d860914.8aa44845.js

2 lines
12 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6d860914"],{1276:function(t,e,r){"use strict";var n=r("d784"),i=r("44e7"),a=r("825a"),o=r("1d80"),c=r("4840"),s=r("8aa5"),u=r("50c4"),l=r("14c3"),h=r("9263"),f=r("d039"),p=[].push,d=Math.min,v=4294967295,g=!f((function(){return!RegExp(v,"y")}));n("split",2,(function(t,e,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var n=String(o(this)),a=void 0===r?v:r>>>0;if(0===a)return[];if(void 0===t)return[n];if(!i(t))return e.call(n,t,a);var c,s,u,l=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,g=new RegExp(t.source,f+"g");while(c=h.call(g,n)){if(s=g.lastIndex,s>d&&(l.push(n.slice(d,c.index)),c.length>1&&c.index<n.length&&p.apply(l,c.slice(1)),u=c[0].length,d=s,l.length>=a))break;g.lastIndex===c.index&&g.lastIndex++}return d===n.length?!u&&g.test("")||l.push(""):l.push(n.slice(d)),l.length>a?l.slice(0,a):l}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:e.call(this,t,r)}:e,[function(e,r){var i=o(this),a=void 0==e?void 0:e[t];return void 0!==a?a.call(e,i,r):n.call(String(i),e,r)},function(t,i){var o=r(n,t,this,i,n!==e);if(o.done)return o.value;var h=a(t),f=String(this),p=c(h,RegExp),y=h.unicode,m=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(g?"y":"g"),w=new p(g?h:"^(?:"+h.source+")",m),b=void 0===i?v:i>>>0;if(0===b)return[];if(0===f.length)return null===l(w,f)?[f]:[];var x=0,k=0,E=[];while(k<f.length){w.lastIndex=g?k:0;var L,_=l(w,g?f:f.slice(k));if(null===_||(L=d(u(w.lastIndex+(g?0:k)),f.length))===x)k=s(f,k,y);else{if(E.push(f.slice(x,k)),E.length===b)return E;for(var O=1;O<=_.length-1;O++)if(E.push(_[O]),E.length===b)return E;k=x=L}}return E.push(f.slice(x)),E}]}),!g)},"1da1":function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));r("d3b7");function n(t,e,r,n,i,a,o){try{var c=t[a](o),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,a){var o=t.apply(e,r);function c(t){n(o,i,a,c,s,"next",t)}function s(t){n(o,i,a,c,s,"throw",t)}c(void 0)}))}}},"36c0":function(t,e,r){},"37b7":function(t,e,r){"use strict";var n=r("42de"),i=r.n(n);i.a},"380a":function(t,e,r){"use strict";var n=r("36c0"),i=r.n(n);i.a},"42de":function(t,e,r){},"44e7":function(t,e,r){var n=r("861d"),i=r("c6b6"),a=r("b622"),o=a("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},"5aa0":function(t,e,r){t.exports=r.p+"img/back.8059563a.svg"},"96cf":function(t,e,r){var n=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(I){s=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),o=new j(n||[]);return a._invoke=_(t,r,o),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(I){return{type:"throw",arg:I}}}t.wrap=u;var h="suspendedStart",f="suspendedYield",p="executing",d="completed",v={};function g(){}function y(){}function m(){}var w={};w[a]=function(){return this};var b=Object.getPrototypeOf,x=b&&b(b(C([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=m.prototype=g.prototype=Object.create(w);function E(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(i,a,o,c){var s=l(t[i],t,a);if("throw"!==s.type){var u=s.arg,h=u.value;return h&&"object"===typeof h&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,o,c)}),(function(t){r("throw",t,o,c)})):e.resolve(h).then((function(t){u.value=t,o(u)}),(function(t){return r("throw",t,o,c)}))}c(s.arg)}var i;function a(t,n){function a(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(a,a):a()}this._invoke=a}function _(t,e,r){var n=h;return function(i,a){if(n===p)throw new Error("Generator is already running");if(n===d){if("throw"===i)throw a;return S()}r.method=i,r.arg=a;while(1){var o=r.delegate;if(o){var c=O(o,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var s=l(t,e,r);if("normal"===s.type){if(n=r.done?d:f,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=d,r.method="throw",r.arg=s.arg)}}}function O(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator["return"]&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=l(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(t){if(t){var r=t[a];if(r)return r.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){while(++i<t.length)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}return{next:S}}function S(){return{value:e,done:!0}}return y.prototype=k.constructor=m,m.constructor=y,y.displayName=s(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},t.awrap=function(t){return{__await:t}},E(L.prototype),L.prototype[o]=function(){return this},t.AsyncIterator=L,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new L(u(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},E(k),s(k,c,"Generator"),k[a]=function(){return this},k.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){while(e.length){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=C,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(R),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return c.type="throw",c.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],c=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),R(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;R(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=n}catch(i){Function("r","regeneratorRuntime = r")(n)}},a7ac:function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"nav-bar"},[r("div",{staticClass:"left"},[t._t("left")],2),r("div",{staticClass:"center"},[t._t("center")],2),r("div",{staticClass:"right"},[t._t("right")],2)])},i=[],a={name:"NavBar"},o=a,c=(r("37b7"),r("2877")),s=Object(c["a"])(o,n,i,!1,null,"cfeec936",null);e["a"]=s.exports},c8e2:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"content"},[n("NavBar",{staticClass:"nav-bar"},[n("div",{staticClass:"back",attrs:{slot:"left"},on:{click:t.backClick},slot:"left"},[n("img",{attrs:{src:r("5aa0"),alt:""}})]),n("div",{attrs:{slot:"center"},slot:"center"},[t._v("扫描设备")])]),n("div",{staticClass:"Detail"},[t._m(0),n("p",{staticStyle:{"text-align":"center"}},[t._v("将二维码放入框内,即可自动扫描")]),n("div",{staticClass:"sweep",staticStyle:{"text-align":"center"},on:{click:t.sweep}},[t._v(" 开始扫码 ")])])],1)},i=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{attrs:{id:"code"}},[r("div",{staticStyle:{width:"100%",height:"50vh","background-color":"#000",margin:"15% auto 5%","text-align":"center"}})])}],a=(r("c975"),r("ac1f"),r("5319"),r("1276"),r("96cf"),r("1da1")),o=r("a7ac"),c={name:"scan",components:{NavBar:o["a"]},methods:{plusReady:function(){var t=this;t.scan=new plus.barcode.Barcode("code"),t.scan.onmarked=t.onmarked},sweep:function(){var t=this;t.scan.start()},onmarked:function(t,e){var r=this;return Object(a["a"])(regeneratorRuntime.mark((function n(){var i,a,o,c,s,u,l,h;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:i=r,"未知:",n.t0=t,n.next=n.t0===plus.barcode.QR?5:n.t0===plus.barcode.EAN13?7:n.t0===plus.barcode.EAN8?9:11;break;case 5:return t="QR",n.abrupt("break",13);case 7:return t="EAN13",n.abrupt("break",13);case 9:return t="EAN8",n.abrupt("break",13);case 11:return t="其他"+t,n.abrupt("break",13);case 13:if(e=e.replace(/\n/g,""),0!=e.indexOf("http://")&&0!=e.indexOf("https://")){n.next=18;break}plus.nativeUI.confirm(e,(function(t){0==t.index?(plus.runtime.openURL(e),i.scan.cancel(),i.scan.close(),i.$router.push({path:"Info",query:{id:e}})):(this.$message.success(e),i.scan.close(),i.scan.cancel(),window.localStorage.scan=e,i.$router.push({path:"Info",query:{id:e}}))}),"",["打开","取消"]),n.next=30;break;case 18:return a=e,o=a.split("="),c=a.split("/"),s=c[2].split("?"),u={},u.shopId=s[0],u.checkshop=o[1],n.next=27,r.$http.post("users/ischeckshop",u);case 27:l=n.sent,h=l.data,h.message?r.$message.success("本平台正品"):r.$message.error("本平台盗版");case 30:case"end":return n.stop()}}),n)})))()},backClick:function(){this.$router.push("/home"),this.scan.cancel(),this.scan.close()}},activated:function(){var t=this;window.plus?t.plusReady():document.addEventListener("plusready",t.plusReady,!1),document.addEventListener("DOMContentLoaded",(function(){t.domready=!0,t.plusReady()}),!1),setTimeout((function(){t.sweep()}),1e3)}},s=c,u=(r("380a"),r("2877")),l=Object(u["a"])(s,n,i,!1,null,"64c67cbc",null);e["default"]=l.exports}}]);
//# sourceMappingURL=chunk-6d860914.8aa44845.js.map