1 line
2.4 KiB
JavaScript
1 line
2.4 KiB
JavaScript
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/product/index"],{"29c0":function(t,n,e){"use strict";(function(t,n){var i=e("4ea4");e("8886");i(e("66fd"));var a=i(e("c186"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(a.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},"40a2":function(t,n,e){"use strict";e.r(n);var i=e("4d82"),a=e.n(i);for(var u in i)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(u);n["default"]=a.a},"4c44":function(t,n,e){"use strict";e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return u})),e.d(n,"a",(function(){return i}));var i={uEmpty:function(){return e.e("uview-ui/components/u-empty/u-empty").then(e.bind(null,"38b8"))}},a=function(){var t=this.$createElement,n=(this._self._c,this.list.length);this.$mp.data=Object.assign({},{$root:{g0:n}})},u=[]},"4d33":function(t,n,e){"use strict";var i=e("658f"),a=e.n(i);a.a},"4d82":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e("76dd"),a=e("0c59"),u={components:{botScreen:function(){e.e("pagesA/product/bot_screen").then(function(){return resolve(e("172f"))}.bind(null,e)).catch(e.oe)}},data:function(){return{BASE_IMG_URL:a.BASE_IMG_URL,list:[],page:1,totalPage:1,name:"",typeObj:{id:0,name:"全部分类"}}},onLoad:function(){},onShow:function(){this.page=1,this.list=[],this.getList()},onReachBottom:function(){this.page>=this.totalPage||(this.page++,this.getList())},methods:{queryData:function(t){this.name=t.detail.value,this.init()},init:function(){this.page=1,this.list=[],this.getList()},getList:function(){var t=this,n={page:this.page,name:this.name,type_id:this.typeObj.id};(0,i.netContractProduct)(n).then((function(n){t.list=n.data}))},toDetail:function(n){t.navigateTo({url:"/pagesA/product/detail?id="+n.id})},screenClick:function(){this.$refs.screenChild.open()},sureObj:function(t){t.id?this.typeObj=t:this.typeObj={id:0,name:"全部分类"},this.init()}}};n.default=u}).call(this,e("543d")["default"])},"658f":function(t,n,e){},c186:function(t,n,e){"use strict";e.r(n);var i=e("4c44"),a=e("40a2");for(var u in a)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(u);e("4d33");var c=e("f0c5"),o=Object(c["a"])(a["default"],i["b"],i["c"],!1,null,"e09e81fe",null,!1,i["a"],void 0);n["default"]=o.exports}},[["29c0","common/runtime","common/vendor"]]]); |