homepage.js
3.7 KB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/homepage/homepage"],{"067f":function(e,n,t){"use strict";t.r(n);var o=t("0a0b"),a=t("3594");for(var u in a)"default"!==u&&function(e){t.d(n,e,function(){return a[e]})}(u);t("4949");var i=t("2877"),r=Object(i["a"])(a["default"],o["a"],o["b"],!1,null,null,null);n["default"]=r.exports},"0a0b":function(e,n,t){"use strict";var o=function(){var e=this,n=e.$createElement;e._self._c},a=[];t.d(n,"a",function(){return o}),t.d(n,"b",function(){return a})},"147a":function(e,n,t){"use strict";(function(e){t("2679"),t("921b");o(t("66fd"));var n=o(t("067f"));function o(e){return e&&e.__esModule?e:{default:e}}e(n.default)}).call(this,t("6e42")["createPage"])},"1e80":function(e,n,t){},"29f7":function(e,n,t){},"330d":function(e,n,t){"use strict";t.r(n);var o=t("7f83");for(var a in o)"default"!==a&&function(e){t.d(n,e,function(){return o[e]})}(a);t("db39");var u,i,r=t("2877"),l=Object(r["a"])(o["default"],u,i,!1,null,null,null);n["default"]=l.exports},3594:function(e,n,t){"use strict";t.r(n);var o=t("6554"),a=t.n(o);for(var u in o)"default"!==u&&function(e){t.d(n,e,function(){return o[e]})}(u);n["default"]=a.a},4949:function(e,n,t){"use strict";var o=t("1e80"),a=t.n(o);a.a},"559c":function(e,n,t){"use strict";(function(e,t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o={onLaunch:function(){console.log(e("App Launch"," at App.vue:4"))},onShow:function(){console.log(e("App Show"," at App.vue:7"))},post:function(n,o,a){var u=this,i=new Promise(function(i,r){var l=t.getStorageSync("token"),f={token:l||""};t.request({url:u.globalData.baseUrl+n,data:o,method:a,header:f,success:function(n){1==n.data.code?(console.log(e(8888," at App.vue:36")),i(n)):r(n.data)},fail:function(n){console.log(e(n," at App.vue:47")),r("网络出错"),wx.hideNavigationBarLoading()},complete:function(e){}})});return i},globalData:{userInfo:null,baseUrl:"http://zhongmian.w.brotop.cn/api/"},onHide:function(){console.log(e("App Hide"," at App.vue:66"))}};n.default=o}).call(this,t("0de9")["default"],t("6e42")["default"])},6554:function(e,n,t){"use strict";(function(e,o){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=u(t("330d"));function u(e){return e&&e.__esModule?e:{default:e}}var i={data:function(){return{showbanben:!1,footersel:1,jifenshow:!1,keyword:"",order:"",page:1,shoplist:[]}},onLoad:function(){this.getfoodlist()},methods:{getfoodlist:function(){var n=this,t="flour_goods/get_flour_goods",o={keyword:n.keyword,order:n.order,page:n.page,pageNum:6};a.default.post(t,o).then(function(t){console.log(e(t," at pages\\homepage\\homepage.vue:283")),n.shoplist=t.data.data}).catch(function(e){})},hidebanben:function(){this.showbanben=!1},hidejifen:function(){this.jifenshow=!1},mianfang:function(){o.navigateTo({url:"/pages/homepage/shoplist"})},goodkind:function(){o.navigateTo({url:"/pages/homepage/shoplist"})},jifenshop:function(){o.navigateTo({url:"/pages/homepage/jifenshop"})},search:function(){o.navigateTo({url:"/pages/homepage/search"})},miaosha:function(){o.navigateTo({url:"/pages/homepage/miaosha"})},selnav:function(n){console.log(e(n," at pages\\homepage\\homepage.vue:331"));var t=n.currentTarget.dataset.id;console.log(e(t," at pages\\homepage\\homepage.vue:334")),1==t?o.navigateTo({url:"../homepage/homepage"}):2==t?o.navigateTo({url:"../nearshop/nearshop"}):3==t?o.navigateTo({url:"../luntan/luntan"}):4==t&&o.navigateTo({url:"../usercenter/my"})}}};n.default=i}).call(this,t("0de9")["default"],t("6e42")["default"])},"7f83":function(e,n,t){"use strict";t.r(n);var o=t("559c"),a=t.n(o);for(var u in o)"default"!==u&&function(e){t.d(n,e,function(){return o[e]})}(u);n["default"]=a.a},db39:function(e,n,t){"use strict";var o=t("29f7"),a=t.n(o);a.a}},[["147a","common/runtime","common/vendor"]]]);