12 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/shopping/shopping"],{191:function(n,e,t){"use strict";(function(n,e){var a=t(4);t(26);a(t(25));var o=a(t(192));n.__webpack_require_UNI_MP_PLUGIN__=t,e(o.default)}).call(this,t(1)["default"],t(2)["createPage"])},192:function(n,e,t){"use strict";t.r(e);var a=t(193),o=t(195);for(var i in o)["default"].indexOf(i)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(i);t(197);var r,s=t(45),c=Object(s["default"])(o["default"],a["render"],a["staticRenderFns"],!1,null,"24f06b86",null,!1,a["components"],r);c.options.__file="pages/shopping/shopping.vue",e["default"]=c.exports},193:function(n,e,t){"use strict";t.r(e);var a=t(194);t.d(e,"render",(function(){return a["render"]})),t.d(e,"staticRenderFns",(function(){return a["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return a["recyclableRender"]})),t.d(e,"components",(function(){return a["components"]}))},194:function(n,e,t){"use strict";var a;t.r(e),t.d(e,"render",(function(){return o})),t.d(e,"staticRenderFns",(function(){return r})),t.d(e,"recyclableRender",(function(){return i})),t.d(e,"components",(function(){return a}));try{a={uNavbar:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-navbar/u-navbar")]).then(t.bind(null,856))},uTabs:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-tabs/u-tabs")]).then(t.bind(null,930))},kjTabbar:function(){return Promise.all([t.e("common/vendor"),t.e("components/kj-tabbar/kj-tabbar")]).then(t.bind(null,894))}}}catch(s){if(-1===s.message.indexOf("Cannot find module")||-1===s.message.indexOf(".vue"))throw s;console.error(s.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var n=this,e=n.$createElement;n._self._c},i=!1,r=[];o._withStripped=!0},195:function(n,e,t){"use strict";t.r(e);var a=t(196),o=t.n(a);for(var i in a)["default"].indexOf(i)<0&&function(n){t.d(e,n,(function(){return a[n]}))}(i);e["default"]=o.a},196:function(n,e,t){"use strict";(function(n){var a=t(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(t(11)),i=(0,o.default)({data:function(){return{list1:[],language:"zh-CN",list:[],keyword:"",parent_id:"",page:1,last_page:""}},computed:{i18n:function(){return this.$t("index")}},onShow:function(){""!=n.getStorageSync("language")&&(this.language=n.getStorageSync("language")),this.category(),this.shipp(),this.$refs.kjTabbar.getNumber()},methods:{onReachBottom:function(){this.page==this.last_page?this.$u.toast(this.i18n.Nofurtherdata):(this.page++,this.shipp())},todetail:function(e){n.navigateTo({url:"/pageA/productdetails?id="+e})},search:function(){this.shipp(this.parent_id)},shipp:function(){var e=this;n.$u.http.post("/api/goods/ten_yuan_goods",{parent_id:this.parent_id,keyword:this.keyword,page:this.page}).then((function(n){console.log(n),e.last_page=n.last_page,1==e.page?e.list=n.data:e.list=e.list.concat(n.data)})).catch((function(){}))},category:function(){var e=this;n.$u.http.get("/api/goods/category",{params:{parent_id:0}}).then((function(n){var t=n;e.list1=[{name:"",category_id:""}],"en-US"==e.language&&(t.forEach((function(n){n.name=n.name_en})),e.list1[0].name="selection"),"es-ES"==e.language&&(t.forEach((function(n){n.name=n.name_es})),e.list1[0].name="Una selección de"),"it-IT"==e.language&&(t.forEach((function(n){n.name=n.name_ita})),e.list1[0].name="selezionate"),"zh-CN"==e.language&&(t.forEach((function(n){n.name=n.name_cn})),e.list1[0].name="精选"),e.list1=e.list1.concat(t),console.log(e.list1)})).catch((function(){}))},changetab:function(n){this.list=[],this.page=1,this.parent_id=n.id,console.log("item",n),this.shipp(n.id)}}},"computed",{i18n:function(){return this.$t("index")}});e.default=i}).call(this,t(2)["default"])},197:function(n,e,t){"use strict";t.r(e);var a=t(198),o=t.n(a);for(var i in a)["default"].indexOf(i)<0&&function(n){t.d(e,n,(function(){return a[n]}))}(i);e["default"]=o.a},198:function(n,e,t){}},[[191,"common/runtime","common/vendor"]]]);
- //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/shopping/shopping.js.map
|