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-28688dd5.6e6a065e.js

2 lines
14 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-28688dd5"],{"1da1":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("d3b7");function r(t,e,n,r,i,a,o){try{var c=t[a](o),s=c.value}catch(u){return void n(u)}c.done?e(s):Promise.resolve(s).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise((function(i,a){var o=t.apply(e,n);function c(t){r(o,i,a,c,s,"next",t)}function s(t){r(o,i,a,c,s,"throw",t)}c(void 0)}))}}},"37b7":function(t,e,n){"use strict";var r=n("42de"),i=n.n(r);i.a},"3b55":function(t,e,n){},"42de":function(t,e,n){},"47f0":function(t,e,n){"use strict";var r=n("3b55"),i=n.n(r);i.a},5081:function(t,e,n){"use strict";var r=n("c5b1"),i=n.n(r);i.a},"79db":function(t,e,n){t.exports=n.p+"img/backIcon.a73c74d4.svg"},"96cf":function(t,e,n){var r=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",c=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(S){s=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),o=new O(r||[]);return a._invoke=L(t,n,o),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(S){return{type:"throw",arg:S}}}t.wrap=u;var h="suspendedStart",f="suspendedYield",d="executing",v="completed",m={};function p(){}function g(){}function y(){}var b={};b[a]=function(){return this};var x=Object.getPrototypeOf,w=x&&x(x(B([])));w&&w!==n&&r.call(w,a)&&(b=w);var _=y.prototype=p.prototype=Object.create(b);function k(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(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&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,o,c)}),(function(t){n("throw",t,o,c)})):e.resolve(h).then((function(t){u.value=t,o(u)}),(function(t){return n("throw",t,o,c)}))}c(s.arg)}var i;function a(t,r){function a(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(a,a):a()}this._invoke=a}function L(t,e,n){var r=h;return function(i,a){if(r===d)throw new Error("Generator is already running");if(r===v){if("throw"===i)throw a;return $()}n.method=i,n.arg=a;while(1){var o=n.delegate;if(o){var c=I(o,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var s=l(t,e,n);if("normal"===s.type){if(r=n.done?v:f,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=v,n.method="throw",n.arg=s.arg)}}}function I(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator["return"]&&(n.method="return",n.arg=e,I(t,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=l(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function j(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 O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function B(t){if(t){var n=t[a];if(n)return n.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){while(++i<t.length)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}return{next:$}}function $(){return{value:e,done:!0}}return g.prototype=_.constructor=y,y.constructor=g,g.displayName=s(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,s(t,c,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},k(E.prototype),E.prototype[o]=function(){return this},t.AsyncIterator=E,t.async=function(e,n,r,i,a){void 0===a&&(a=Promise);var o=new E(u(e,n,r,i),a);return t.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},k(_),s(_,c,"Generator"),_[a]=function(){return this},_.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){while(e.length){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=B,O.prototype={constructor:O,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(C),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function i(r,i){return c.type="throw",c.arg=t,n.next=r,i&&(n.method="next",n.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=r.call(o,"catchLoc"),u=r.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 n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.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,m):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),m},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),m}},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 i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:B(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}(t.exports);try{regeneratorRuntime=r}catch(i){Function("r","regeneratorRuntime = r")(r)}},a259:function(t,e,n){},a7ac:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nav-bar"},[n("div",{staticClass:"left"},[t._t("left")],2),n("div",{staticClass:"center"},[t._t("center")],2),n("div",{staticClass:"right"},[t._t("right")],2)])},i=[],a={name:"NavBar"},o=a,c=(n("37b7"),n("2877")),s=Object(c["a"])(o,r,i,!1,null,"cfeec936",null);e["a"]=s.exports},bb51:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{attrs:{id:"category"}},[r("NavBar",{staticClass:"nav-bar"},[r("div",{attrs:{slot:"center"},slot:"center"},[t._v("选酒")])]),r("div",{staticClass:"headSearch"},[r("div",{staticClass:"searchInput"},[r("label",{attrs:{for:"text"}},[this.iconisexit?r("img",{attrs:{src:n("e0e0"),alt:""}}):t._e(),this.iconisexit?t._e():r("img",{attrs:{src:n("79db"),alt:""},on:{click:function(e){return t.backicon()}}})]),r("input",{attrs:{type:"text",id:"text",placeholder:"搜索你喜欢的酒吧!",value:""},on:{input:t.inputFunc}}),r("input",{staticClass:"btn",attrs:{type:"button",value:"搜索"},on:{click:function(e){return t.submitcontent()}}})])]),this.isexit?r("div",{staticClass:"item-categoty"},[r("div",{on:{click:function(e){return t.searchbaijiu()}}},[r("i",{staticClass:"item1"}),r("span",[t._v("白酒")])]),r("div",{on:{click:function(e){return t.searchputaojiu()}}},[r("i",{staticClass:"item2"}),r("span",[t._v("葡萄酒")])]),r("div",{on:{click:function(e){return t.searchyangjiu()}}},[r("i",{staticClass:"item3"}),r("span",[t._v("洋酒")])]),r("div",{on:{click:function(e){return t.searchzhengxianggou()}}},[r("i",{staticClass:"item4"}),r("span",[t._v("整箱购")])]),r("div",{on:{click:function(e){return t.searchlaojiu()}}},[r("i",{staticClass:"item5"}),r("span",[t._v("老酒")])]),r("div",{on:{click:function(e){return t.searchqingcang()}}},[r("i",{staticClass:"item6"}),r("span",[t._v("清仓特卖")])]),r("div",{on:{click:function(e){return t.searchhaiwai()}}},[r("i",{staticClass:"item7"}),r("span",[t._v("海外直采")])]),r("div",{on:{click:function(e){return t.searchjingmei()}}},[r("i",{staticClass:"item8"}),r("span",[t._v("精美大坛")])]),r("div",{on:{click:function(e){return t.searchhongjiu()}}},[r("i",{staticClass:"item9"}),r("span",[t._v("红酒整箱")])]),r("div",{on:{click:function(e){return t.searchvalue()}}},[r("i",{staticClass:"item10"}),r("span",[t._v("值得买")])]),r("div",{on:{click:function(e){return t.searchxiaoliang()}}},[r("i",{staticClass:"item11"}),r("span",[t._v("销量排行")])]),r("div",{on:{click:function(e){return t.searchlishang()}}},[r("i",{staticClass:"item12"}),r("span",[t._v("礼尚往来")])])]):t._e(),this.isexit?t._e():r("SearchList",{attrs:{list:this.list}})],1)},i=[],a=(n("c975"),n("96cf"),n("1da1")),o=n("a7ac"),c=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cart"},t._l(t.list,(function(e,r){return n("SearchListItem",{key:r,attrs:{"item-info":e}},[t._v(t._s(e)+"> ")])})),1)},s=[],u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"shop-item"}},[n("van-swipe-cell",[n("van-card",{staticClass:"goods-card",attrs:{num:t.itemInfo.count,price:t.itemInfo.price,desc:t.itemInfo.desc,title:t.itemInfo.title,thumb:t.itemInfo.picture},on:{click:function(e){return t.itemClick()}}})],1)],1)},l=[],h={name:"SearchListItem",components:{},data:function(){return{orderdata:{name:"",telephone:"",address:"",image:"",title:"",desc:"",price:""}}},props:{itemInfo:{type:Object,default:function(){return{}}}},methods:{checkClick:function(){this.itemInfo.checked=!this.itemInfo.checked},itemClick:function(){this.$router.push("/detail/"+this.itemInfo.brand_id)}}},f=h,d=(n("5081"),n("2877")),v=Object(d["a"])(f,u,l,!1,null,"5b5f0c1d",null),m=v.exports,p={name:"SearchList",components:{SearchListItem:m},props:{list:{type:Array,default:function(){return[]}}},computed:{}},g=p,y=(n("f894"),Object(d["a"])(g,c,s,!1,null,"430e6555",null)),b=y.exports,x={name:"Category",components:{NavBar:o["a"],SearchList:b},data:function(){return{categoryData:{},currentIndex:-1,categories:[],saveY:0,list:[],isexit:!0,iconisexit:!0,submitdata:{key:""},listexit:!0,clientHeight:document.documentElement.clientHeight}},computed:{},methods:{backicon:function(){var t=document.getElementById("text");t.value="",this.iconisexit=!0,this.isexit=!0},searchlishang:function(){var t=document.getElementById("text");t.value="酒",this.submitcontent()},searchxiaoliang:function(){var t=document.getElementById("text");t.value="酒",this.submitcontent()},searchvalue:function(){var t=document.getElementById("text");t.value="酒",this.submitcontent()},searchhongjiu:function(){var t=document.getElementById("text");t.value="红酒",this.submitcontent()},searchjingmei:function(){var t=document.getElementById("text");t.value="酒",this.submitcontent()},searchhaiwai:function(){var t=document.getElementById("text");t.value="洋酒",this.submitcontent()},searchqingcang:function(){var t=document.getElementById("text");t.value="酒",this.submitcontent()},searchlaojiu:function(){var t=document.getElementById("text");t.value="老酒",this.submitcontent()},searchzhengxianggou:function(){var t=document.getElementById("text");t.value="酒",this.submitcontent()},searchyangjiu:function(){var t=document.getElementById("text");t.value="洋酒",this.submitcontent()},searchputaojiu:function(){var t=document.getElementById("text");t.value="葡萄酒",this.submitcontent()},searchbaijiu:function(){var t=document.getElementById("text");t.value="白酒",this.submitcontent()},inputFunc:function(){var t=document.getElementById("text").value;""==t?(this.isexit=!0,this.submitdata.key="",this.iconisexit=!0):this.iconisexit=!1},activated:function(){this.$refs.scroll.refresh(),this.$refs.scroll.scrollTo(0,this.saveY,0)},deactivated:function(){this.saveY=this.$refs.scroll.getScrollY(),this.$bus.$off("itemImgLoad",this.itemImgListener)},submitcontent:function(){var t=this;return Object(a["a"])(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.iconisexit=!1,t.submitdata.key=document.getElementById("text").value,""!==t.submitdata.key){e.next=5;break}e.next=17;break;case 5:return e.prev=5,e.next=8,t.$http.post("/search/getdata",t.submitdata);case 8:n=e.sent,t.list=n.data,t.isexit=!1,0==t.list.length&&t.$message.success("可尝试关键词酒、洋酒、白酒等"),e.next=17;break;case 14:e.prev=14,e.t0=e["catch"](5),t.$message.success("搜索失败");case 17:case"end":return e.stop()}}),e,null,[[5,14]])})))()}},mounted:function(){var t=this,e=navigator.userAgent;e.indexOf("iPhone")<=-1&&(window.onresize=function(){"/category"==location.pathname&&(t.clientHeight>document.documentElement.clientHeight?t.$bus.$emit("isShowTabbar",!1):t.$bus.$emit("isShowTabbar",!0))})}},w=x,_=(n("47f0"),Object(d["a"])(w,r,i,!1,null,"406534a9",null));e["default"]=_.exports},c5b1:function(t,e,n){},e0e0:function(t,e,n){t.exports=n.p+"img/search-icon.32439968.svg"},f894:function(t,e,n){"use strict";var r=n("a259"),i=n.n(r);i.a}}]);
//# sourceMappingURL=chunk-28688dd5.6e6a065e.js.map