frontend_h5/static/js/pages-directory-index.e2209...

1 line
3.7 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-directory-index"],{"0f57":function(t,e,i){"use strict";var a=i("440f"),n=i.n(a);n.a},"1a2a":function(t,e,i){"use strict";i.r(e);var a=i("f62d"),n=i.n(a);for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);e["default"]=n.a},"440f":function(t,e,i){var a=i("bfea");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("eedfe3a8",a,!0,{sourceMap:!1,shadowMode:!1})},5238:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.istrue?i("v-uni-view",{},[0!=t.list.length?i("v-uni-view",t._l(t.list,(function(e,a){return i("v-uni-view",{key:a,staticClass:"mt30 bgwhite ptb30 plr50"},[i("v-uni-view",[i("v-uni-view",{staticClass:"flex_start flex_items mt30"},[i("v-uni-image",{staticStyle:{width:"120rpx",height:"120rpx","boredr-radius":"12rpx"},attrs:{src:e.main_image,mode:""}}),i("v-uni-view",{staticClass:"ml30 flex_column",staticStyle:{width:"440rpx"}},[i("v-uni-view",{staticClass:"flex_between flex_items"},[i("v-uni-view",{staticClass:"f30 bold three"},[t._v(t._s(e.name))])],1),i("v-uni-text",{staticClass:"f24 mt30",staticStyle:{color:"#888"}},[t._v("价格:"+t._s(e.real_price))])],1)],1),i("v-uni-view",{staticClass:"mt40 flex_between flex_items"},[i("v-uni-text",{staticClass:"f28",staticStyle:{color:"#4d4d4d"}},[t._v("兑换积分:"+t._s(e.price)+"积分")]),i("v-uni-image",{staticStyle:{width:"168rpx",height:"64rpx"},attrs:{src:t.buyimg,mode:""},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.gofen(e)}}})],1)],1)],1)})),1):i("v-uni-view",{staticClass:"flex_center flex_items f24",staticStyle:{color:"#888",height:"600rpx",width:"100%"}},[i("v-uni-text",[t._v("--暂无数据--")])],1)],1):t._e()},n=[]},bfea:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,"uni-page-body[data-v-860d4f1e]{background:#f5f5f5!important}body.?%PAGE?%[data-v-860d4f1e]{background:#f5f5f5!important}.three[data-v-860d4f1e]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical\n\t/* width: 200rpx; */}",""]),t.exports=e},dc41:function(t,e,i){t.exports=i.p+"static/img/again.b5079266.png"},f281:function(t,e,i){"use strict";i.r(e);var a=i("5238"),n=i("1a2a");for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);i("0f57");var o=i("f0c5"),u=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"860d4f1e",null,!1,a["a"],void 0);e["default"]=u.exports},f62d:function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("14d9");var n=a(i("ade3")),s={data:function(){return(0,n.default)({buyimg:i("dc41"),istrue:!1,form:{page:1,pageSize:10},list:[]},"istrue",!1)},onLoad:function(){this.getData()},methods:{getData:function(){var t=this;uni.showLoading({title:"加载中..."}),this.api.getProducts(this.form).then((function(e){if(console.log(e),200==e.data.code){if(uni.stopPullDownRefresh(),uni.hideLoading(),0==e.data.data.data.length)return uni.showToast({title:"暂无数据",icon:"none"}),t.istrue=!0,!1;for(var i=0;i<e.data.data.data.length;i++)t.list.push(e.data.data.data[i])}else uni.hideLoading(),uni.showToast({icon:"none",title:e.data.message});t.istrue=!0}))},gofen:function(t){uni.switchTab({url:"/pages/distribute/index"})},bufagain:function(t){uni.navigateTo({url:"/pages/product/detail?id="+t})}},onReachBottom:function(){uni.showLoading({title:"加载中..."}),this.form.page+=1,this.getData()},onPullDownRefresh:function(){this.form.page=1,this.list=[],this.getData()}};e.default=s}}]);