1 |
- require('./common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageA/shoplist"],{"06be":function(t,i,e){"use strict";e.r(i);var n=e("a9fd"),a=e.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){e.d(i,t,(function(){return n[t]}))}(s);i["default"]=a.a},"470f":function(t,i,e){"use strict";var n=e("b939"),a=e.n(n);a.a},a9fd:function(t,i,e){"use strict";(function(t){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e={data:function(){return{yes:!1,shai:!1,current1:0,current:0,index:"",list1:[],data:[],columns:2,goodsid:"",title:"",parent_id:"",language:"zh-CN",page:1,weight_range_start:"",weight_range_end:"",brand_id:"",price_range_start:"",price_range_end:"",brandlist:[],static:"",desc:!0,brand_idone:""}},onLoad:function(t){this.goodsid=t.id,this.title=t.title,this.parent_id=t.parent_id,this.current=Number(t.index)},onShow:function(){t.setNavigationBarTitle({title:this.title}),this.goods(this.goodsid),this.category(this.parent_id),""!=t.getStorageSync("language")&&(this.language=t.getStorageSync("language"))},computed:{i18n:function(){return this.$t("index")}},methods:{first:function(){this.current1=0,this.reset()},reset:function(){this.weight_range_start="",this.weight_range_end="",this.brand_id=this.brand_idone,this.price_range_start="",this.price_range_end="",this.yes=!1,this.shai=!1,this.goods(this.goodsid)},weightty:function(){this.current1=3,this.weight_range_start=0,this.weight_range_end=1,this.goods(this.goodsid)},sale_num:function(){this.current1=1,this.static="sale_num",this.desc=!this.desc,this.goods(this.goodsid)},price:function(){this.current1=2,this.static="price",this.desc=!this.desc,this.goods(this.goodsid)},enter:function(){this.shai=!1,this.goods(this.goodsid)},yesa:function(){this.yes=!this.yes},detail:function(i){console.log(i),t.navigateTo({url:"/pageA/productdetails?id="+i.id})},category:function(i){var e=this;t.$u.http.get("/api/goods/category",{params:{parent_id:i,limit:10,page:this.page}}).then((function(t){var i=t;"en-US"==e.language&&i.forEach((function(t){t.name=t.name_en})),"es-ES"==e.language&&i.forEach((function(t){t.name=t.name_es})),"it-IT"==e.language&&i.forEach((function(t){t.name=t.name_ita})),"zh-CN"==e.language&&i.forEach((function(t){t.name=t.name_cn})),e.list1=i.reverse(),console.log(e.list1)})).catch((function(){}))},goods:function(i){var e=this;t.$u.http.get("/api/goods",{params:{category_id:i,limit:10,page:this.page,weight_range_start:this.weight_range_start,weight_range_end:this.weight_range_end,brand_id:this.brand_id,price_range_start:this.price_range_start,price_range_end:this.price_range_end,order:this.static,order_type:this.desc?"desc":"asc",source:this.yes?1:0}}).then((function(t){e.data=t.data})).catch((function(){}))},brand:function(){var i=this;t.$u.http.get("/api/goods/brand",{params:{}}).then((function(t){i.brandlist=t,i.brand_id=brandlist[0].id,i.brand_idone=brandlist[0].id})).catch((function(){}))},shaixuan:function(){this.shai=!0,this.current1=4,this.weight_range_start="",this.weight_range_end="",this.desc=!0,this.brand(),this.goods(this.goodsid)},click:function(i){console.log("item",i),this.current=i.index,this.title=i.title,this.goodsid=i.id,this.goods(i.id),"en-US"==this.language&&t.setNavigationBarTitle({title:i.name_en}),"es-ES"==this.language&&t.setNavigationBarTitle({title:i.name_es}),"it-IT"==this.language&&t.setNavigationBarTitle({title:i.name_ita}),"zh-CN"==this.language&&t.setNavigationBarTitle({title:i.name_cn})},changei:function(t,i){this.brand_id=t.id,this.index=i}}};i.default=e}).call(this,e("543d")["default"])},aec2:function(t,i,e){"use strict";e.r(i);var n=e("bf9c"),a=e("06be");for(var s in a)["default"].indexOf(s)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(s);e("470f");var r,o=e("f0c5"),c=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"1141e5a4",null,!1,n["a"],r);i["default"]=c.exports},b764:function(t,i,e){"use strict";(function(t,i){var n=e("4ea4");e("f93b");n(e("66fd"));var a=n(e("aec2"));t.__webpack_require_UNI_MP_PLUGIN__=e,i(a.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},b939:function(t,i,e){},bf9c:function(t,i,e){"use strict";e.d(i,"b",(function(){return a})),e.d(i,"c",(function(){return s})),e.d(i,"a",(function(){return n}));var n={uTabs:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-tabs/u-tabs")]).then(e.bind(null,"5506"))},uIcon:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-icon/u-icon")]).then(e.bind(null,"01eb"))},liuWaterfall:function(){return e.e("uni_modules/liu-waterfall/components/liu-waterfall/liu-waterfall").then(e.bind(null,"cc26"))}},a=function(){var t=this,i=t.$createElement;t._self._c},s=[]}},[["b764","common/runtime","common/vendor"]]]);
|