text: (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{2942:function(t,n,e){"use strict";var i=function(){var t=this,n=t.$createElement;t._self._c},r=[];e.d(n,"a",function(){return i}),e.d(n,"b",function(){return r})},4498:function(t,n,e){},5320:function(t,n,e){"use strict";e.r(n);var i=e("2942"),r=e("9463");for(var a in r)"default"!==a&&function(t){e.d(n,t,function(){return r[t]})}(a);e("c41f");var u=e("2877"),o=Object(u["a"])(r["default"],i["a"],i["b"],!1,null,null,null);n["default"]=o.exports},5966:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("a34a"));function r(t){return t&&t.__esModule?t:{default:t}}function a(t,n,e,i,r,a,u){try{var o=t[a](u),s=o.value}catch(c){return void e(c)}o.done?n(s):Promise.resolve(s).then(i,r)}function u(t){return function(){var n=this,e=arguments;return new Promise(function(i,r){var u=t.apply(n,e);function o(t){a(u,i,r,o,s,"next",t)}function s(t){a(u,i,r,o,s,"throw",t)}o(void 0)})}}var o={data:function(){return{titleNViewBackground:"",swiperCurrent:0,swiperLength:0,carouselList:[],goodsList:[]}},onLoad:function(){this.loadData()},methods:{loadData:function(){var t=u(i.default.mark(function t(){var n,e;return i.default.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$api.json("carouselList");case 2:return n=t.sent,this.titleNViewBackground=n[0].background,this.swiperLength=n.length,this.carouselList=n,t.next=8,this.$api.json("goodsList");case 8:e=t.sent,this.goodsList=e||[];case 10:case"end":return t.stop()}},t,this)}));function n(){return t.apply(this,arguments)}return n}(),swiperChange:function(t){var n=t.detail.current;this.swiperCurrent=n,this.titleNViewBackground=this.carouselList[n].background},navToDetailPage:function(n){var e=n.title;t.navigateTo({url:"/pages/product/product?id=".concat(e)})}},onNavigationBarSearchInputClicked:function(){var t=u(i.default.mark(function t(n){return i.default.wrap(function(t){while(1)switch(t.prev=t.next){case 0:this.$api.msg("点击了搜索框");case 1:case"end":return t.stop()}},t,this)}));function n(n){return t.apply(this,arguments)}return n}(),onNavigationBarButtonTap:function(n){var e=n.index;if(0===e)this.$api.msg("点击了扫描");else if(1===e){var i=getCurrentPages(),r=i[i.length-1],a=r.$getAppWebview();a.hideTitleNViewButtonRedDot({index:e}),t.navigateTo({url:"/pages/notice/notice"})}}};n.default=o}).call(this,e("6e42")["default"])},9463:function(t,n,e){"use strict";e.r(n);var i=e("5966"),r=e.n(i);for(var a in i)"default"!==a&&function(t){e.d(n,t,function(){return i[t]})}(a);n["default"]=r.a},c41f:function(t,n,e){"use strict";var i=e("4498"),r=e.n(i);r.a}},[["229c","common/runtime","common/vendor"]]]);