123 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["other-page-components-SearchBox"],{2634:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
- e.default=function(){return t};var t={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(j){s=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof p?e:p,i=Object.create(o.prototype),c=new L(r||[]);return a(i,"_invoke",{value:E(t,n,c)}),i}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(j){return{type:"throw",arg:j}}}t.wrap=f;var d={};function p(){}function v(){}function g(){}var m={};s(m,c,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(P([])));b&&b!==n&&o.call(b,c)&&(m=b);var x=g.prototype=p.prototype=Object.create(m);function w(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){var n;a(this,"_invoke",{value:function(a,i){function c(){return new e((function(n,c){(function n(a,i,c,u){var l=h(t[a],t,i);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==(0,r.default)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):e.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return n("throw",t,c,u)}))}u(l.arg)})(a,i,n,c)}))}return n=n?n.then(c,c):c()}})}function E(t,e,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return O()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var c=T(i,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=h(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function T(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator["return"]&&(e.method="return",e.arg=void 0,T(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=h(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function k(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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function P(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:O}}function O(){return{value:void 0,done:!0}}return v.prototype=g,a(x,"constructor",{value:g,configurable:!0}),a(g,"constructor",{value:v,configurable:!0}),v.displayName=s(g,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,s(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},w(_.prototype),s(_.prototype,u,(function(){return this})),t.AsyncIterator=_,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new _(f(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},w(x),s(x,l,"Generator"),s(x,c,(function(){return this})),s(x,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=P,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return i.type="throw",i.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(i)},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),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:P(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t},n("6a54"),n("01a2"),n("e39c"),n("bf0f"),n("844d"),n("18f7"),n("de6c"),n("3872e"),n("4e9b"),n("114e"),n("c240"),n("926e"),n("7a76"),n("c9b5"),n("aa9c"),n("2797"),n("8a8d"),n("dc69"),n("f7a5");var r=function(t){return t&&t.__esModule?t:{default:t}}(n("fcf3"))},"2fdc":function(t,e,n){"use strict";function r(t,e,n,r,o,a,i){try{var c=t[a](i),u=c.value}catch(l){return void n(l)}c.done?e(u):Promise.resolve(u).then(r,o)}n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,a){var i=t.apply(e,n);function c(t){r(i,o,a,c,u,"next",t)}function u(t){r(i,o,a,c,u,"throw",t)}c(void 0)}))}},n("bf0f")},4098:function(t,e,n){"use strict";n("6a54");var r=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.formatTime=e.formatThousand=e.formatPrice=e.debounce=e.createYear=e.copyToClipBoard=e.callPhone=e.addZeroPrefix=void 0,e.isUnionpayApp=function(){var t=navigator.userAgent.toLowerCase(),e=new RegExp(/(com.unionpay.chsp)/).test(t)||new RegExp(/(com.unionpay.mobilepay)/).test(t);return e},e.throttle=void 0,e.unionPaySdkInit=function(){return i.apply(this,arguments)};var o=r(n("2634")),a=r(n("2fdc"));n("64aa"),n("5c47"),n("0506"),n("23f4"),n("7d2f"),n("9c4e"),n("ab80"),n("a1c1"),n("45da"),n("c9b5"),n("bf0f"),n("aa9c"),n("c223");e.throttle=function(t,e){var n,r,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=null,c=0,u=function(){c=!1===a.leading?0:Date.now(),i=null,o=t.apply(n,r),i||(n=r=null)};return function(){var l=Date.now();c||!1!==a.leading||(c=l);var s=e-(l-c);return n=this,r=arguments,s<=0||s>e?(i&&(clearTimeout(i),i=null),c=l,o=t.apply(n,r),i||(n=r=null)):i||!1===a.trailing||(i=setTimeout(u,s)),o}};e.debounce=function(t,e){var n=null;return function(){n||clearTimeout(n),n=setTimeout(t,e)}};e.formatPrice=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return t?("string"===typeof t&&(t=Number(t)),t.toFixed(e)):t};e.addZeroPrefix=function(t){return t?("string"===typeof t&&(t=Number(t)),t<10?"0"+t:t):""};e.copyToClipBoard=function(t){"number"===typeof t&&(t=String(t)),uni.setClipboardData({data:t,success:function(){uni.showToast({icon:"none",title:"复制成功"})}})};function i(){return i=(0,a.default)((0,o.default)().mark((function t(){var e;return(0,o.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=null,t.abrupt("return",new Promise((function(t,n){try{upsdk&&"function"===typeof upsdk.pluginReady&&t(!0)}catch(a){var r=document.createElement("script");r.src="https://open.95516.com/s/open/js/upsdk.js";var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(r,o),r.onerror=n,e=setInterval((function(){try{upsdk&&"function"===typeof upsdk.pluginReady&&(upsdk.pluginReady((function(){upsdk.setNavigationBarTitle({title:"可可校园"})})),t(!0),clearInterval(e))}catch(a){console.log("upsdk error")}}),300)}})));case 2:case"end":return t.stop()}}),t)}))),i.apply(this,arguments)}e.callPhone=function(t){"number"===typeof t&&(t=String(t)),uni.makePhoneCall({phoneNumber:t,success:function(){uni.showToast({icon:"none",title:"联系成功"})}})};e.formatTime=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dd/MM/yyyy HH:mm:ss";if(t){"string"===typeof t&&(t=t.replaceAll("-","/"));var n=new Date(t),r={"M+":n.getMonth()+1,"d+":n.getDate(),"H+":n.getHours(),"m+":n.getMinutes(),"s+":n.getSeconds()};for(var o in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(n.getFullYear()+"").substr(4-RegExp.$1.length))),r)new RegExp("("+o+")").test(e)&&(e=e.replace(RegExp.$1,1===RegExp.$1.length?r[o]:("00"+r[o]).substr((""+r[o]).length)));return e||""}};e.formatThousand=function(t){return isNaN(t)?(console.error("非数字"),""):t.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")};function c(t){var e=new Date(t),n=[e.getFullYear(),e.getMonth()+1,e.getDate()],r=n[0],o=n[1],a=n[2];return"".concat(r,"-").concat(o<10?"0"+o:o,"-").concat(a<10?"0"+a:a)}e.createYear=function(t){var e,n=[],r=new Date("".concat(t,"-01-01")),o=new Date("".concat(t,"-12-31"));e=r.getDay()<1?r.getTime()+864e5*(1-r.getDay()):r.getDay()>1?r.getTime()+5184e5:r.getTime();var a=o.getDay()<7?o.getTime()+864e5*(1-o.getDay()):o.getTime();return function t(e,n,r,o){var a=(new Date).getTime();r.push({week:o+1,value:"".concat(c(e),"至").concat(c(e+5184e5)),weekValue:"第".concat(o+1,"周"),start:c(e),end:c(e+5184e5)}),e+5184e5<a&&e+5184e5<n&&t(e+6048e5,n,r,o+1)}(e,a,n,0),n}},"4e1f":function(t,e,n){var r=n("c86c");e=r(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.search-box[data-v-2e2d1bec]{width:100%;height:31px;padding:%?10?% %?10?% %?10?% %?30?%;border-radius:%?100?%\n /* small 尺寸 搜索框 start */\n /* small 尺寸 搜索框 end */}.search-box__left-icon[data-v-2e2d1bec]{font-size:%?38?%;line-height:1}.search-box__input[data-v-2e2d1bec]{flex:1;padding-left:%?10?%}.search-box__input .input[data-v-2e2d1bec]{width:100%;background-color:initial;color:#838383;font-size:inherit;padding-left:%?0?%}.search-box__btn[data-v-2e2d1bec]{padding:%?10?% %?30?%;border-radius:%?100?%}.search-box.small[data-v-2e2d1bec]{padding:%?6?% %?10?% %?6?% %?20?%}.search-box.small .search-box__left-icon[data-v-2e2d1bec]{font-size:%?28?%}.search-box.small .search-box__input[data-v-2e2d1bec]{font-size:%?24?%}.search-box.small .search-box__btn[data-v-2e2d1bec]{font-size:%?24?%;padding:%?8?% %?20?%;background-color:#ffca28;color:#080808}',""]),t.exports=e},"59f9":function(t,e,n){"use strict";n("6a54");var r=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("aa9c");var o=r(n("7dcc")),a=n("4098"),i={options:{virtualHost:!0},props:{value:{type:String,default:""},leftIcon:{type:String,default:"search"},placholder:{type:String,default:""},buttonText:{type:String,default:"搜 索"},showbtn:{type:Boolean,default:!0},size:{type:String,default:"normal"}},mixins:[o.default],data:function(){return{inputValue:"",updateInner:!1}},computed:{searchBoxClass:function(){var t=[];return"small"===this.size&&t.push("small"),t.join(" ")}},watch:{value:{handler:function(t){this.updateInner?this.updateInner=!1:this.inputValue=t},immediate:!0}},methods:{inputChangeEvent:function(t){var e=this,n=t.detail.value;(0,a.debounce)((function(){e.$emit("input",n),e.$emit("change",n)}),50)()},btnClickEvent:function(){var t=this;(0,a.throttle)((function(){t.$emit("search-btn-click")}),250)()}}};e.default=i},"7dcc":function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={data:function(){return{}},computed:{themeBgColor:function(){return this.$isTheme()?"--theme-general-color":this.vuex_themeBgColor||""},themeOpacityBgColor:function(){return this.vuex_themeBgColor?"".concat(this.vuex_themeBgColor,"7F"):""},themeFontColor:function(){return this.$isTheme()?"--general-color-text":this.vuex_themeFontColor||""},themeBtnStyle:function(){var t={};return this.vuex_themeBgColor&&(t.backgroundColor=this.vuex_themeBgColor),this.vuex_themeFontColor&&(t.color=this.vuex_themeFontColor),this.$isTheme()&&(t.backgroundColor="var(--theme-general-color)",t.color="--general-color-text"),t},themeLineBtnStyle:function(){var t={};return this.vuex_themeBgColor&&(t.border="1rpx solid ".concat(this.vuex_themeBgColor),t.color=this.vuex_themeBgColor),this.$isTheme()&&(t.border="1rpx solid var(--theme-general-color)",t.color="var(--theme-general-color)"),t}},methods:{$isTheme:function(){return!1}}}},"874c":function(t,e,n){"use strict";n.r(e);var r=n("fa49a"),o=n("9722");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("c825");var i=n("828b"),c=Object(i["a"])(o["default"],r["b"],r["c"],!1,null,"2e2d1bec",null,!1,r["a"],void 0);e["default"]=c.exports},9722:function(t,e,n){"use strict";n.r(e);var r=n("59f9"),o=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=o.a},b8c0:function(t,e,n){var r=n("4e1f");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var o=n("967d").default;o("9be6a0f6",r,!0,{sourceMap:!1,shadowMode:!1})},c825:function(t,e,n){"use strict";var r=n("b8c0"),o=n.n(r);o.a},fa49a:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"search-box tn-flex-row-center tn-bg-gray--light theme-search-input",class:[t.searchBoxClass]},[t.leftIcon?n("v-uni-view",{staticClass:"search-box__left-icon"},[n("v-uni-text",{class:["tn-icon-"+t.leftIcon]})],1):t._e(),n("v-uni-view",{staticClass:"search-box__input"},[n("v-uni-input",{staticClass:"input",attrs:{type:"text",placeholder:t.placholder},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.inputChangeEvent.apply(void 0,arguments)}},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}})],1),t.buttonText&&t.showbtn?n("v-uni-view",{staticClass:"search-box__btn theme-search-btn",style:[t.themeBtnStyle],attrs:{"hover-class":"tn-btn-hover-class","hover-stay-time":150},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.btnClickEvent.apply(void 0,arguments)}}},[t._v(t._s(t.buttonText))]):t._e()],1)},o=[]}}]);
|