1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-member-bonusreceive-Bonusreceive"],{"0868":function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=a(i("5530")),n=i("26cb"),r=i("de79"),o={name:"MemberBase",data:function(){return{page:"",cartNumber:0}},props:{show:{type:Boolean,default:!0}},computed:(0,s.default)((0,s.default)({},(0,n.mapState)({user:function(t){return t.member.info},isOnline:function(t){return t.member.isOnline}})),{},{getCarCount:function(){return this.cartNumber>0&&this.cartNumber<100?this.cartNumber:this.cartNumber>=100?"99+":void 0}}),mounted:function(){var t=getCurrentPages(),e=t[t.length-1];this.page={route:e.route,options:e.options},this.user||uni.navigateTo({url:"/pages/home/memberlogin/Login?clear=1"}),this.getCartCount()},methods:{getCartCount:function(){var t=this;this.isOnline&&(0,r.cartQuantity)().then((function(e){e&&(t.cartNumber=e.result.cart_count)}))}}};e.default=o},"117c":function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.receiveBonus=e.getReceiveList=e.getBonusDetail=void 0;var a=i("887c");e.getBonusDetail=function(t){return(0,a.requestApi)("/Bonus/detail","GET",{bonus_id:t})};e.receiveBonus=function(t){return(0,a.requestApi)("/Memberbonus/receive","GET",{bonus_id:t},"member")};e.getReceiveList=function(t){return(0,a.requestApi)("/Memberbonus/get_receive_list","GET",{page:t.page,per_page:t.per_page},"member")}},"292c":function(t,e,i){"use strict";i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){return a}));var a={pageMeta:i("6d42").default,uniNavBar:i("7bfb").default},s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("page-meta",{attrs:{"root-font-size":t.fontSize+"px"}}),i("member-base",{attrs:{show:!1}},[i("v-uni-view",{staticClass:"scroll-view-wrapper div container",staticStyle:{position:"absolute",top:"0",right:"0",left:"0",bottom:"0"}},[i("v-uni-view",{staticClass:"div common-header-wrap"},[i("v-uni-view",{staticClass:"status-holder"}),i("v-uni-view",{style:"height:"+t.navHeight+"px"}),i("v-uni-view",{staticClass:"common-header-holder"}),i("v-uni-view",{staticClass:"common-header-fixed"},[i("title-header"),i("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),i("v-uni-view",{staticClass:"scroll-view div",staticStyle:{position:"relative"}},[i("v-uni-scroll-view",{staticClass:"div",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)}}},[t.log_list&&t.log_list.length?i("v-uni-view",{staticClass:"div list-wrapper"},t._l(t.log_list,(function(e,a){return i("v-uni-view",{key:e.bonusreceive_id,staticClass:"div point-list"},[i("v-uni-view",{staticClass:"div info"},[i("v-uni-view",{staticClass:"div title"}),i("v-uni-view",{staticClass:"div time"},[t._v(t._s(t.$moment.unix(e.bonusreceive_time).format("YYYY年MM月DD日")))])],1),i("v-uni-view",{staticClass:"div number"},[t._v("+"+t._s(e.bonusreceive_price))])],1)})),1):t.log_list&&!t.log_list.length?i("empty-record"):t._e()],1)],1)],1)],1)],1)},n=[]},"2f66":function(t,e,i){var a=i("361d");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=i("4f06").default;s("2e41a516",a,!0,{sourceMap:!1,shadowMode:!1})},"361d":function(t,e,i){var a=i("24fb");e=a(!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-5db56533]{display:flex;flex-direction:column}.scroll-view[data-v-5db56533]{flex:1}.container[data-v-5db56533]{height:100%;display:flex;position:relative;flex-direction:column;justify-content:flex-start;align-items:stretch}.header[data-v-5db56533]{border-bottom:1px solid #e8eaed}.list-wrapper[data-v-5db56533]{flex:1;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch}.list-wrapper .point-list[data-v-5db56533]{background-color:#fff;border-bottom:1px solid #e8eaed;display:flex;justify-content:space-between;align-items:center;padding:.55rem .75rem}.list-wrapper .point-list .right[data-v-5db56533]{width:2.5rem}.list-wrapper .point-list .info[data-v-5db56533]{flex:1}.list-wrapper .point-list .info .title[data-v-5db56533]{font-size:.7rem;color:#333}.list-wrapper .point-list .info .time[data-v-5db56533]{font-size:.6rem;color:#999;margin-top:.25rem}.list-wrapper .point-list .number[data-v-5db56533]{font-size:.9rem;color:#fb2630}.list-wrapper .point-list .diture[data-v-5db56533]{font-size:.9rem;color:#666}',""]),t.exports=e},"4df43":function(t,e,i){"use strict";i.r(e);var a=i("292c"),s=i("573b");for(var n in s)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return s[t]}))}(n);i("b0de");var r=i("f0c5"),o=Object(r["a"])(s["default"],a["b"],a["c"],!1,null,"5db56533",null,!1,a["a"],void 0);e["default"]=o.exports},"573b":function(t,e,i){"use strict";i.r(e);var a=i("6dd6"),s=i.n(a);for(var n in a)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(n);e["default"]=s.a},"69f5":function(t,e,i){"use strict";i.r(e);var a=i("0868"),s=i.n(a);for(var n in a)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(n);e["default"]=s.a},"6dd6":function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("99af");var s=i("0b9f"),n=a(i("cce0")),r=a(i("7b4a")),o=i("117c"),c=a(i("79b8")),u={components:{TitleHeader:n.default,MemberBase:r.default,EmptyRecord:c.default},computed:{fontSize:function(){return(0,s.getFontSize)()}},data:function(){return{navHeight:0,params:{page:0,per_page:10},loading:!1,isMore:!0,wrapperHeight:0,log_list:!1}},created:function(){this.loadMore()},mounted:function(){this.wrapperHeight=uni.getSystemInfoSync().windowHeight-90},methods:{goBack:function(){uni.navigateBack({delta:1})},loadMore:function(){this.loading=!0,this.params.page=++this.params.page,this.isMore&&(this.loading=!1,this.getReceiveList(!0))},getReceiveList:function(){var t=this;uni.showLoading({title:"加载中"}),(0,o.getReceiveList)(this.params).then((function(e){uni.hideLoading(),e.result.hasmore?t.isMore=!0:t.isMore=!1;var i=e.result.log_list;i&&(t.log_list?t.log_list=t.log_list.concat(i):t.log_list=i)})).catch((function(t){uni.hideLoading(),uni.showToast({icon:"none",title:t.message})}))}}};e.default=u},"79b8":function(t,e,i){"use strict";i.r(e);var a=i("bba65"),s=i("8909");for(var n in s)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return s[t]}))}(n);var r=i("f0c5"),o=Object(r["a"])(s["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);e["default"]=o.exports},"7b4a":function(t,e,i){"use strict";i.r(e);var a=i("8034"),s=i("69f5");for(var n in s)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return s[t]}))}(n);i("dacb");var r=i("f0c5"),o=Object(r["a"])(s["default"],a["b"],a["c"],!1,null,"3e6c03f6",null,!1,a["a"],void 0);e["default"]=o.exports},8034:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"div member-base"},[a("v-uni-view",{staticClass:"status-holder"}),a("v-uni-view",{staticClass:"content"},[t._t("default")],2),t.show?a("v-uni-view",{staticClass:"div common-footer-wrap"},[a("v-uni-view",{staticClass:"common-footer"},[a("v-uni-view",{staticClass:"item-wrap",class:{active:"pages/home/index/Index"==t.page.route}},[a("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/home/index/Index","open-type":"reLaunch"}},["pages/home/index/Index"==t.page.route?a("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("0207")}}):a("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("241a")}}),a("v-uni-text",{staticClass:"span text"},[t._v("首页")])],1)],1),a("v-uni-view",{staticClass:"item-wrap",class:{active:"pages/home/goodsclass/Goodsclass"==t.page.route}},[a("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/home/goodsclass/Goodsclass"}},["pages/home/goodsclass/Goodsclass"==t.page.route?a("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("79bf")}}):a("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("d86e")}}),a("v-uni-text",{staticClass:"span text"},[t._v("分类")])],1)],1),a("v-uni-view",{staticClass:"item-wrap",class:{active:"pages/home/search/Search"==t.page.route}},[a("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/home/search/Search"}},["pages/home/search/Search"==t.page.route?a("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("492b")}}):a("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("1702")}}),a("v-uni-text",{staticClass:"span text"},[t._v("搜索")])],1)],1),a("v-uni-view",{staticClass:"item-wrap",class:{active:"pages/member/cart/Cart"==t.page.route}},[a("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/member/cart/Cart"}},["pages/member/cart/Cart"==t.page.route?a("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("62a8")}}):a("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("8559")}}),a("v-uni-text",{staticClass:"span text"},[t._v("购物车")]),t.cartNumber>0?a("v-uni-text",{staticClass:"span icon"},[t._v(t._s(t.getCarCount))]):t._e()],1)],1),a("v-uni-view",{staticClass:"item-wrap",class:{active:"pages/member/index/Index"==t.page.route}},[a("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/member/index/Index","open-type":"reLaunch"}},["pages/member/index/Index"==t.page.route?a("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("857e")}}):a("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("e31d")}}),a("v-uni-text",{staticClass:"span text"},[t._v("我的")])],1)],1)],1)],1):t._e()],1)},s=[]},8909:function(t,e,i){"use strict";i.r(e);var a=i("a2ce"),s=i.n(a);for(var n in a)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(n);e["default"]=s.a},"8a0c":function(t,e,i){var a=i("24fb");e=a(!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/* 文章场景相关 */.status-holder[data-v-3e6c03f6]{background-color:#fff}.member-base[data-v-3e6c03f6]{display:flex;flex-direction:column}.content[data-v-3e6c03f6]{flex:1}.item-wrap[data-v-3e6c03f6]{position:relative}.image[data-v-3e6c03f6]{width:1rem;height:1rem;display:block;margin-left:auto;margin-right:auto;margin-top:.2rem;margin-bottom:.2rem}.icon[data-v-3e6c03f6]{position:absolute;right:.8rem;top:.2rem;font-size:.5rem;line-height:.7rem;width:.9rem;height:.7rem;background:#ef3338;border-radius:1rem;text-align:center;color:#fff}',""]),t.exports=e},a2ce:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"EmptyRecord",data:function(){return{}},props:{},methods:{}}},b0de:function(t,e,i){"use strict";var a=i("2f66"),s=i.n(a);s.a},bba65:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){}));var a=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)},s=[]},dacb:function(t,e,i){"use strict";var a=i("f6c0"),s=i.n(a);s.a},f6c0:function(t,e,i){var a=i("8a0c");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=i("4f06").default;s("11f8896b",a,!0,{sourceMap:!1,shadowMode:!1})}}]);
|