pages-home-bonus-Detail.fa1402b8.js 15 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-home-bonus-Detail"],{"05a7":function(e,t,a){var n=a("bd2b");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=a("4f06").default;i("17846eed",n,!0,{sourceMap:!1,shadowMode:!1})},"0a92":function(e,t,a){"use strict";a.r(t);var n=a("744c"),i=a("4397");for(var s in i)["default"].indexOf(s)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(s);a("e070");var r=a("f0c5"),o=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"439ae8fb",null,!1,n["a"],void 0);t["default"]=o.exports},"117c":function(e,t,a){"use strict";a("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.receiveBonus=t.getReceiveList=t.getBonusDetail=void 0;var n=a("887c");t.getBonusDetail=function(e){return(0,n.requestApi)("/Bonus/detail","GET",{bonus_id:e})};t.receiveBonus=function(e){return(0,n.requestApi)("/Memberbonus/receive","GET",{bonus_id:e},"member")};t.getReceiveList=function(e){return(0,n.requestApi)("/Memberbonus/get_receive_list","GET",{page:e.page,per_page:e.per_page},"member")}},"1a2e":function(e,t,a){"use strict";a("7a82");var n=a("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(a("5530")),s=a("26cb"),r=a("de79"),o={name:"HomeBase",data:function(){return{page:"",cartNumber:0}},props:{show:{type:Boolean,default:!0}},computed:(0,i.default)((0,i.default)({},(0,s.mapState)({isOnline:function(e){return e.member.isOnline}})),{},{getCarCount:function(){return this.cartNumber>0&&this.cartNumber<100?this.cartNumber:this.cartNumber>=100?"99+":void 0}}),mounted:function(){var e=getCurrentPages(),t=e[e.length-1];this.page={route:t.route,options:t.options},this.page.options&&this.page.options.inviter_id&&this.memberInviterId({inviterId:this.page.options.inviter_id}),this.getCartCount()},methods:(0,i.default)((0,i.default)({},(0,s.mapMutations)({memberInviterId:"memberInviterId"})),{},{getCartCount:function(){var e=this;this.isOnline&&(0,r.cartQuantity)().then((function(t){t&&(e.cartNumber=t.result.cart_count)}))}})};t.default=o},"1de5":function(e,t,a){"use strict";e.exports=function(e,t){return t||(t={}),e=e&&e.__esModule?e.default:e,"string"!==typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},2382:function(e,t,a){var n=a("24fb");t=n(!1),t.push([e.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-cb006efa]{background-color:#fff}.home-base[data-v-cb006efa]{display:flex;flex-direction:column}.content[data-v-cb006efa]{flex:1}.item-wrap[data-v-cb006efa]{position:relative}.image[data-v-cb006efa]{width:1rem;height:1rem;display:block;margin-left:auto;margin-right:auto;margin-top:.2rem;margin-bottom:.2rem}.icon[data-v-cb006efa]{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}',""]),e.exports=t},"24f2":function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return i})),a.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"div home-base"},[n("v-uni-view",{staticClass:"status-holder"}),n("v-uni-view",{staticClass:"content"},[e._t("default")],2),e.show?n("v-uni-view",{staticClass:"div common-footer-wrap"},[n("v-uni-view",{staticClass:"common-footer"},[n("v-uni-view",{staticClass:"item-wrap",class:{active:"pages/home/index/Index"==e.page.route}},[n("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/home/index/Index","open-type":"reLaunch"}},["pages/home/index/Index"==e.page.route?n("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:a("0207")}}):n("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:a("241a")}}),n("v-uni-text",{staticClass:"span text"},[e._v("首页")])],1)],1),n("v-uni-view",{staticClass:"item-wrap",class:{active:"pages/home/goodsclass/Goodsclass"==e.page.route}},[n("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/home/goodsclass/Goodsclass"}},["pages/home/goodsclass/Goodsclass"==e.page.route?n("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:a("79bf")}}):n("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:a("d86e")}}),n("v-uni-text",{staticClass:"span text"},[e._v("分类")])],1)],1),n("v-uni-view",{staticClass:"item-wrap",class:{active:"pages/home/search/Search"==e.page.route}},[n("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/home/search/Search"}},["pages/home/search/Search"==e.page.route?n("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:a("492b")}}):n("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:a("1702")}}),n("v-uni-text",{staticClass:"span text"},[e._v("搜索")])],1)],1),n("v-uni-view",{staticClass:"item-wrap",class:{active:"pages/member/cart/Cart"==e.page.route}},[n("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/member/cart/Cart"}},["pages/member/cart/Cart"==e.page.route?n("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:a("62a8")}}):n("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:a("8559")}}),n("v-uni-text",{staticClass:"span text"},[e._v("购物车")]),e.cartNumber>0?n("v-uni-text",{staticClass:"span icon"},[e._v(e._s(e.getCarCount))]):e._e()],1)],1),n("v-uni-view",{staticClass:"item-wrap",class:{active:"pages/member/index/Index"==e.page.route}},[n("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/member/index/Index","open-type":"reLaunch"}},["pages/member/index/Index"==e.page.route?n("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:a("857e")}}):n("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:a("e31d")}}),n("v-uni-text",{staticClass:"span text"},[e._v("我的")])],1)],1)],1)],1):e._e()],1)},i=[]},"3d3d":function(e,t,a){"use strict";a.r(t);var n=a("24f2"),i=a("ee69");for(var s in i)["default"].indexOf(s)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(s);a("9697");var r=a("f0c5"),o=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"cb006efa",null,!1,n["a"],void 0);t["default"]=o.exports},"3f63":function(e,t,a){var n=a("24fb");t=n(!1),t.push([e.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/* 文章场景相关 */.navigation[data-v-5b0dd974]{text-align:center;font-size:.7rem;background-color:#fff}',""]),e.exports=t},4397:function(e,t,a){"use strict";a.r(t);var n=a("7181"),i=a.n(n);for(var s in n)["default"].indexOf(s)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(s);t["default"]=i.a},"5f8c":function(e,t,a){"use strict";a.r(t);var n=a("e9cf"),i=a.n(n);for(var s in n)["default"].indexOf(s)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(s);t["default"]=i.a},"69db":function(e,t,a){var n=a("3f63");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=a("4f06").default;i("36e3ea70",n,!0,{sourceMap:!1,shadowMode:!1})},7181:function(e,t,a){"use strict";a("7a82");var n=a("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a("0b9f"),s=n(a("cce0")),r=n(a("3d3d")),o=a("0d25"),u=a("117c"),c={name:"Bonusdetail",computed:{fontSize:function(){return(0,i.getFontSize)()}},data:function(){return{bonus:"",bonusreceive_list:"",message:"",red_packet_bg:"bg-w",detailbg:o.env.SITE_URL+"/uploads/home/h5/home/home-bonus-bg.png"}},components:{TitleHeader:s.default,HomeBase:r.default},onLoad:function(e){var t=this,a=e.bonus_id;(0,u.getBonusDetail)(a).then((function(e){t.bonus=e.result.bonus,t.bonusreceive_list=e.result.bonusreceive_list})).catch((function(e){uni.showToast({icon:"none",title:e.message})}))},methods:{receiveBonus:function(e){var t=this;(0,u.receiveBonus)(e.bonus_id).then((function(e){t.message=e.message,t.red_packet_bg="bg-y"})).catch((function(e){uni.showToast({icon:"none",title:e.message})}))},goMemberBonusreceive:function(){uni.navigateTo({url:"/pages/member/bonusreceive/Bonusreceive"})}}};t.default=c},"744c":function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return s})),a.d(t,"a",(function(){return n}));var n={pageMeta:a("6d42").default},i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",[a("page-meta",{attrs:{"root-font-size":e.fontSize+"px"}}),a("home-base",{attrs:{show:!1}},[a("v-uni-view",{staticClass:"div distributor-article-list"},[a("title-header"),a("v-uni-view",{staticClass:"div detail_bg",style:"background-image:url("+e.detailbg+")"},[a("v-uni-view",{staticClass:"div red_packet"},[a("v-uni-text",{staticClass:"span",class:e.red_packet_bg}),e.message?e._e():a("v-uni-text",{staticClass:"button",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.receiveBonus(e.bonus)}}},[e._v("领取红包")]),e.message?a("v-uni-view",{staticClass:"div red-jg"},[a("v-uni-text",{staticClass:"h1"},[e._v("恭喜您!")]),a("v-uni-text",{staticClass:"h5"},[e._v(e._s(e.message))])],1):e._e()],1),a("v-uni-view",{staticClass:"p tips"},[e._v("领取的红包将转入到商城预存款")]),a("v-uni-view",{staticClass:"p rule",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goMemberBonusreceive.apply(void 0,arguments)}}},[e._v("查看领取记录")]),e.bonus?a("v-uni-view",{staticClass:"div bonus-info"},[a("v-uni-view",{staticClass:"p"},[e._v("红包名称:"+e._s(e.bonus.bonus_name))]),a("v-uni-view",{staticClass:"p"},[e._v("红包祝福语:"+e._s(e.bonus.bonus_blessing))]),a("v-uni-view",{staticClass:"p"},[e._v("红包有效时间:"+e._s(e.bonus.bonus_begintime_text)+"至"+e._s(e.bonus.bonus_endtime_text))])],1):e._e()],1)],1)],1)],1)},s=[]},8329:function(e,t,a){"use strict";var n=a("69db"),i=a.n(n);i.a},"8b60":function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return i})),a.d(t,"a",(function(){}));var n=function(){var e=this.$createElement,t=this._self._c||e;return t("v-uni-view")},i=[]},9697:function(e,t,a){"use strict";var n=a("fe46"),i=a.n(n);i.a},a0ec:function(e,t,a){e.exports=a.p+"static/img/home-bonus-red-y.0612c993.png"},bd2b:function(e,t,a){var n=a("24fb"),i=a("1de5"),s=a("ec12"),r=a("a0ec");t=n(!1);var o=i(s),u=i(r);t.push([e.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/* 文章场景相关 */.detail_bg[data-v-439ae8fb]{background-size:100% 100%;position:absolute;width:100%;height:100%;top:0;left:0}.red_packet[data-v-439ae8fb]{margin:2rem 20% 1rem 20%;width:60%;position:relative;padding-top:100%}.red_packet .span[data-v-439ae8fb]{width:100%;height:100%;background-size:100%;background-position:50%;background-repeat:no-repeat;top:0;left:0;position:absolute}.red_packet .button[data-v-439ae8fb]{position:absolute;top:38%;left:30%;font-size:.7rem;display:flex;align-items:center;justify-content:center;width:40%;height:24%;border-radius:100%;background:#fdc339;color:#fff;border:none}.red_packet .red-jg[data-v-439ae8fb]{position:absolute;top:40%;text-align:center;width:100%}.red_packet .red-jg > .h1[data-v-439ae8fb]{font-size:.9rem;color:#ffc000;line-height:2rem}.red_packet .red-jg > .h5[data-v-439ae8fb]{color:#fff;font-size:.7rem}.bg-w[data-v-439ae8fb]{background-image:url('+o+")}.bg-y[data-v-439ae8fb]{background-image:url("+u+")}.tips[data-v-439ae8fb]{font-size:.7rem;color:#bf6b1d;text-align:center}.rule[data-v-439ae8fb]{font-size:.6rem;color:#bf6b1d;text-align:center;margin-top:.4rem}.bonus-info[data-v-439ae8fb]{color:#bf6b1d;padding:0 1rem;margin-top:1rem;font-size:.6rem;line-height:1rem}",""]),e.exports=t},cce0:function(e,t,a){"use strict";a.r(t);var n=a("8b60"),i=a("5f8c");for(var s in i)["default"].indexOf(s)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(s);a("8329");var r=a("f0c5"),o=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"5b0dd974",null,!1,n["a"],void 0);t["default"]=o.exports},e070:function(e,t,a){"use strict";var n=a("05a7"),i=a.n(n);i.a},e9cf:function(e,t,a){"use strict";a("7a82");var n=a("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(a("5530")),s=a("26cb"),r={name:"flexLine",data:function(){return{navHeight:0}},props:{backgroundColor:{type:String,default:""}},computed:(0,i.default)({},(0,s.mapState)({config:function(e){return e.config.config}})),methods:{},mounted:function(){}};t.default=r},ec12:function(e,t,a){e.exports=a.p+"static/img/home-bonus-red-w.332a559f.png"},ee69:function(e,t,a){"use strict";a.r(t);var n=a("1a2e"),i=a.n(n);for(var s in n)["default"].indexOf(s)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(s);t["default"]=i.a},fe46:function(e,t,a){var n=a("2382");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=a("4f06").default;i("c0a246c6",n,!0,{sourceMap:!1,shadowMode:!1})}}]);