1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-home-pointsgoods-PointProd"],{"035f":function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.scroll-view-wrapper[data-v-23c04ed1]{display:flex;flex-direction:column}.scroll-view[data-v-23c04ed1]{flex:1}.goods-list[data-v-23c04ed1]{padding-left:.6rem}.goods-list.double-column[data-v-23c04ed1]{display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;margin-top:10px}.goods-list.double-column .goods-item-wrapper[data-v-23c04ed1]{width:50%;padding-right:.6rem;box-sizing:border-box}',""]),t.exports=e},"0f95":function(t,e,n){"use strict";n.r(e);var i=n("a2a1"),a=n("6ac0");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("ae40");var r=n("f0c5"),s=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"23c04ed1",null,!1,i["a"],void 0);e["default"]=s.exports},"6ac0":function(t,e,n){"use strict";n.r(e);var i=n("b902"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},"79b8":function(t,e,n){"use strict";n.r(e);var i=n("bba65"),a=n("8909");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);var r=n("f0c5"),s=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=s.exports},8909:function(t,e,n){"use strict";n.r(e);var i=n("a2ce"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},"9e69":function(t,e,n){var i=n("035f");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("cee3d59e",i,!0,{sourceMap:!1,shadowMode:!1})},a2a1:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var i={pageMeta:n("6d42").default,uniNavBar:n("7bfb").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("page-meta",{attrs:{"root-font-size":t.fontSize+"px"}}),n("home-base",{attrs:{show:!0}},[n("v-uni-view",{staticClass:"scroll-view-wrapper div",staticStyle:{position:"absolute",top:"0",right:"0",left:"0",bottom:"0"}},[n("v-uni-view",{staticClass:"div common-header-wrap"},[n("v-uni-view",{staticClass:"status-holder"}),n("v-uni-view",{style:"height:"+t.navHeight+"px"}),n("v-uni-view",{staticClass:"common-header-holder"}),n("v-uni-view",{staticClass:"common-header-fixed"},[n("title-header"),n("uni-nav-bar",{staticClass:"common-header",attrs:{title:"积分礼品","left-icon":"back"},on:{clickLeft:function(e){arguments[0]=e=t.$handleEvent(e),t.goBack()}}})],1)],1),n("v-uni-view",{staticClass:"scroll-view div",staticStyle:{position:"relative"}},[n("v-uni-scroll-view",{staticStyle:{position:"absolute",top:"0",right:"0",left:"0",bottom:"0"},attrs:{"scroll-y":"true"},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.loadMore.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"goods-list double-column"},t._l(t.goodsList,(function(t){return n("index-prod-item",{key:t.pgoods_id,staticClass:"goods-item-wrapper",attrs:{item:t}})})),1)],1),0===t.goodsList.length?n("empty-record"):t._e()],1)],1)],1)],1)},o=[]},a2ce:function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"EmptyRecord",data:function(){return{}},props:{},methods:{}}},ae40:function(t,e,n){"use strict";var i=n("9e69"),a=n.n(i);a.a},b902:function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("99af");var a=n("0b9f"),o=i(n("cce0")),r=i(n("3d3d")),s=i(n("79b8")),d=i(n("b7d0")),u=n("784d"),c={name:"index",mounted:function(){},computed:{fontSize:function(){return(0,a.getFontSize)()}},data:function(){return{navHeight:0,params:{page:0,per_page:10},loading:!1,isMore:!0,pageTotal:1,goodsList:[]}},components:{TitleHeader:o.default,HomeBase:r.default,EmptyRecord:s.default,IndexProdItem:d.default},created:function(){this.loadMore()},methods:{goBack:function(){uni.navigateBack({delta:1})},getPointsgoodsList:function(t){var e=this;uni.showLoading({title:"加载中"});var n=this.params;(0,u.getPointsgoodsList)(n).then((function(n){uni.hideLoading(),e.goodsList=t?e.goodsList.concat(n.result.goods_list):n.result.goods_list,e.pageTotal=n.result.page_total,n.result.hasmore?e.isMore=!0:e.isMore=!1}))},loadMore:function(){this.loading=!0,this.params.page=++this.params.page,this.isMore&&this.params.page<=this.pageTotal&&(this.loading=!1,this.getPointsgoodsList(!0))}}};e.default=c},bba65:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"div common-empty-record"},[e("v-uni-text",{staticClass:"i iconfont"},[this._v("")]),e("v-uni-view",{staticClass:"p"},[this._v("没有找到相关记录")])],1)},a=[]}}]);
|