pages-home-pointsgoods-PointVoucher.c78f3461.js 29 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-home-pointsgoods-PointVoucher"],{"0731":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={uniPopup:i("3ae3").default,uniPopupDialog:i("b44c").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"div main-content"},[i("v-uni-view",{staticClass:"div list-wrap-item hongbao-list-wrap-item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.exchangeVoucher(t.item)}}},[i("v-uni-view",{staticClass:"div img-box"},[i("v-uni-view",{staticClass:"div img-content"},[i("v-uni-image",{staticClass:"img",attrs:{mode:"aspectFit",src:t.hongbaobg}})],1)],1),i("v-uni-view",{staticClass:"div content"},[i("v-uni-view",{staticClass:"div coupon hongbao"},[i("v-uni-view",{staticClass:"div coupon_left"},[i("v-uni-view",{staticClass:"div price "},[i("v-uni-text",{staticClass:"span text-content"},[i("v-uni-text",{staticClass:"span"},[t._v("¥")])],1),t._v(t._s(t.item.vouchertemplate_price))],1),i("v-uni-view",{staticClass:"div coupon_condition font-size-activity-tag"},[i("v-uni-text",{staticClass:"span text-content"},[i("v-uni-text",{staticClass:"span"},[t._v(t._s(t.item.vouchertemplate_storename))])],1)],1)],1),i("v-uni-view",{staticClass:"div coupon_right flex"},[i("v-uni-view",{staticClass:"div coupon_btn"},[t._v("兑换")])],1)],1)],1)],1),i("uni-popup",{ref:"confirm",attrs:{"background-color":"#fff",type:"dialog"}},[i("uni-popup-dialog",{attrs:{mode:t.dialog.mode,title:t.dialog.title,content:t.dialog.content,placeholder:t.dialog.content},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.confirmDialog.apply(void 0,arguments)},close:function(e){arguments[0]=e=t.$handleEvent(e),t.closeDialog.apply(void 0,arguments)}}})],1)],1)},o=[]},"07d0":function(t,e,i){var n=i("6d69");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("8da7eac6",n,!0,{sourceMap:!1,shadowMode:!1})},"13fc":function(t,e,i){var n=i("24fb");e=n(!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-43c3fc04]{display:flex;flex-direction:column}.scroll-view[data-v-43c3fc04]{flex:1}.list-wrap[data-v-43c3fc04]{padding:0 15px;box-sizing:border-box}.list-wrap .list-wrap-item[data-v-43c3fc04]{display:inline-block;margin-top:10px;width:50%}.list-wrap .list-wrap-item[data-v-43c3fc04]:nth-child(2n+2){text-align:right}',""]),t.exports=e},"1a2e":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("5530")),o=i("26cb"),r=i("de79"),s={name:"HomeBase",data:function(){return{page:"",cartNumber:0}},props:{show:{type:Boolean,default:!0}},computed:(0,a.default)((0,a.default)({},(0,o.mapState)({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.page.options&&this.page.options.inviter_id&&this.memberInviterId({inviterId:this.page.options.inviter_id}),this.getCartCount()},methods:(0,a.default)((0,a.default)({},(0,o.mapMutations)({memberInviterId:"memberInviterId"})),{},{getCartCount:function(){var t=this;this.isOnline&&(0,r.cartQuantity)().then((function(e){e&&(t.cartNumber=e.result.cart_count)}))}})};e.default=s},2382:function(t,e,i){var n=i("24fb");e=n(!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-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}',""]),t.exports=e},"24f2":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"div home-base"},[n("v-uni-view",{staticClass:"status-holder"}),n("v-uni-view",{staticClass:"content"},[t._t("default")],2),t.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"==t.page.route}},[n("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/home/index/Index","open-type":"reLaunch"}},["pages/home/index/Index"==t.page.route?n("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("0207")}}):n("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("241a")}}),n("v-uni-text",{staticClass:"span text"},[t._v("首页")])],1)],1),n("v-uni-view",{staticClass:"item-wrap",class:{active:"pages/home/goodsclass/Goodsclass"==t.page.route}},[n("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/home/goodsclass/Goodsclass"}},["pages/home/goodsclass/Goodsclass"==t.page.route?n("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("79bf")}}):n("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("d86e")}}),n("v-uni-text",{staticClass:"span text"},[t._v("分类")])],1)],1),n("v-uni-view",{staticClass:"item-wrap",class:{active:"pages/home/search/Search"==t.page.route}},[n("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/home/search/Search"}},["pages/home/search/Search"==t.page.route?n("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("492b")}}):n("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("1702")}}),n("v-uni-text",{staticClass:"span text"},[t._v("搜索")])],1)],1),n("v-uni-view",{staticClass:"item-wrap",class:{active:"pages/member/cart/Cart"==t.page.route}},[n("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/member/cart/Cart"}},["pages/member/cart/Cart"==t.page.route?n("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("62a8")}}):n("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("8559")}}),n("v-uni-text",{staticClass:"span text"},[t._v("购物车")]),t.cartNumber>0?n("v-uni-text",{staticClass:"span icon"},[t._v(t._s(t.getCarCount))]):t._e()],1)],1),n("v-uni-view",{staticClass:"item-wrap",class:{active:"pages/member/index/Index"==t.page.route}},[n("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/member/index/Index","open-type":"reLaunch"}},["pages/member/index/Index"==t.page.route?n("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("857e")}}):n("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("e31d")}}),n("v-uni-text",{staticClass:"span text"},[t._v("我的")])],1)],1)],1)],1):t._e()],1)},a=[]},"31a9":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={pageMeta:i("6d42").default,uniNavBar:i("7bfb").default},a=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("home-base",{attrs:{show:!0}},[i("v-uni-view",{staticClass:"scroll-view-wrapper div",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 list-wrap",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._l(t.voucherList,(function(t){return i("index-voucher-item",{key:t.vouchertemplate_id,staticClass:"list-wrap-item",attrs:{item:t}})})),1),0===t.voucherList.length?i("empty-record"):t._e()],1)],1)],1)],1)},o=[]},"350e":function(t,e,i){var n=i("13fc");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("635125da",n,!0,{sourceMap:!1,shadowMode:!1})},"392a":function(t,e,i){var n=i("24fb");e=n(!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/* 文章场景相关 */.font-size-activity-tag[data-v-05d018fa]{font-size:.5rem!important}.color-tip[data-v-05d018fa]{color:#909399!important}.color-base-text[data-v-05d018fa]{color:#ff4544!important}.img-content > img[data-v-05d018fa]{width:100%;height:100%}.list-wrap-item[data-v-05d018fa]{display:inline-block;width:165px;overflow:hidden;position:relative}.list-wrap-item.hongbao-list-wrap-item[data-v-05d018fa]{height:70px}.list-wrap-item .img-box[data-v-05d018fa]{width:100%;height:100%;position:absolute;top:0;left:0}.list-wrap-item .img-box .img-content[data-v-05d018fa]{width:100%;height:100%}.list-wrap-item .content[data-v-05d018fa]{position:relative;z-index:9}.list-wrap-item .content .coupon[data-v-05d018fa]{background-size:100% 100%;background-repeat:no-repeat;border-radius:5px;display:flex;padding:10px 0}.list-wrap-item .content .coupon .coupon_right[data-v-05d018fa]{position:relative;width:70px;min-width:70px}.list-wrap-item .content .coupon .coupon_right.flex[data-v-05d018fa]{display:flex;align-items:center}.list-wrap-item .content .coupon .coupon_right .coupon_btn[data-v-05d018fa]{margin:0 auto 0;width:40px;height:20px;line-height:20px;font-size:.6rem;text-align:center;border-radius:20px;border-width:1px;border-style:solid}.list-wrap-item .content .coupon .coupon_right .coupon_num[data-v-05d018fa]{margin-top:5px;text-align:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.list-wrap-item .content .coupon .coupon_right[data-v-05d018fa]::after{position:absolute;top:0;margin-left:0;content:"";width:0;height:100%;border-left:1px dashed;opacity:.2}.list-wrap-item .content .coupon .coupon_left[data-v-05d018fa]{-webkit-box-flex:1;-webkit-flex:1;flex:1;text-align:left;padding:0 0 0 10px}.list-wrap-item .content .coupon .coupon_left .price[data-v-05d018fa]{font-size:1.2rem;font-weight:500;margin-top:0!important;padding:0;font-weight:600}.list-wrap-item .content .coupon .coupon_left .price .text-content[data-v-05d018fa]{font-size:.6rem}.list-wrap-item .content .coupon .coupon_left .coupon_condition[data-v-05d018fa]{width:85px;margin-top:10px;line-height:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.list-wrap-item .content .hongbao .coupon_left .price[data-v-05d018fa], .list-wrap-item .content .hongbao .coupon_left .coupon_condition[data-v-05d018fa]{color:#fff}.list-wrap-item .content .hongbao .coupon_right .coupon_num[data-v-05d018fa]{color:#fff}.list-wrap-item .content .hongbao .coupon_right .coupon_btn[data-v-05d018fa]{color:#fff;border-color:#fff}.list-wrap-item .content .hongbao .coupon_right[data-v-05d018fa]::after{position:absolute;top:0;margin-left:0;content:"";width:0;height:100%;border-left:0;opacity:.2}.list-wrap-item .content .coupon-price-wrap[data-v-05d018fa]{width:100%;height:52px;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.list-wrap-item .content .coupon-price-wrap .coupon-price[data-v-05d018fa]{font-size:1.2rem;margin-top:5px;margin-left:10px}.list-wrap-item .content .coupon-price-wrap .coupon-price .text-content[data-v-05d018fa]{font-size:.6rem}.list-wrap-item .content .coupon-point .coupon-point-num[data-v-05d018fa]{width:80px;height:22px;position:relative}.list-wrap-item .content .coupon-point .coupon-point-num .img-content[data-v-05d018fa]{width:100%;height:100%;position:absolute}.list-wrap-item .content .coupon-point .coupon-point-num .text-content[data-v-05d018fa]{position:relative;z-index:9;color:#fff;font-size:.6rem;display:inline-block;width:100%;line-height:22px;text-align:center;vertical-align:top}.list-wrap-item .content .coupon-point .coupon-conditions[data-v-05d018fa]{font-size:.5rem;color:#909399;line-height:1;margin-top:12px}.list-wrap-item .content .coupon-name[data-v-05d018fa]{font-size:.6rem;color:#303133;margin-top:11px;line-height:1;padding:0 11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.list-wrap-item .content.hongbao-content[data-v-05d018fa]{background-color:#fff;border-radius:10px;padding-bottom:15px}.list-wrap-item .content .hongbao-img[data-v-05d018fa]{height:165px}.list-wrap-item .content .hongbao-img .img-content[data-v-05d018fa]{width:100%;height:100%}.list-wrap-item .content .price[data-v-05d018fa]{font-size:.7rem;color:#303133;line-height:1;padding-left:13px;margin-top:10px}.list-wrap-item .content .point[data-v-05d018fa]{font-size:.8rem;padding-left:13px;margin-top:8px;line-height:1}.list-wrap-item .content .point .text-content[data-v-05d018fa]{font-size:.6rem}.list-wrap-item .content .stock[data-v-05d018fa]{font-size:.5rem;color:#909399;line-height:1;padding-left:13px;margin-top:10px}',""]),t.exports=e},"3d3d":function(t,e,i){"use strict";i.r(e);var n=i("24f2"),a=i("ee69");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("9697");var r=i("f0c5"),s=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"cb006efa",null,!1,n["a"],void 0);e["default"]=s.exports},4305:function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("a9e3");var a=n(i("e8e6")),o=i("37dc"),r=n(i("6789")),s=(0,o.initVueI18n)(r.default),c=s.t,u={name:"uniPopupDialog",mixins:[a.default],emits:["confirm","close"],props:{value:{type:[String,Number],default:""},placeholder:{type:[String,Number],default:""},type:{type:String,default:"error"},mode:{type:String,default:"base"},title:{type:String,default:""},content:{type:String,default:""},beforeClose:{type:Boolean,default:!1}},data:function(){return{dialogType:"error",focus:!1,val:""}},computed:{okText:function(){return c("uni-popup.ok")},cancelText:function(){return c("uni-popup.cancel")},placeholderText:function(){return this.placeholder||c("uni-popup.placeholder")},titleText:function(){return this.title||c("uni-popup.title")}},watch:{type:function(t){this.dialogType=t},mode:function(t){"input"===t&&(this.dialogType="info")},value:function(t){this.val=t}},created:function(){this.popup.disableMask(),"input"===this.mode?(this.dialogType="info",this.val=this.value):this.dialogType=this.type},mounted:function(){this.focus=!0},methods:{onOk:function(){"input"===this.mode?this.$emit("confirm",this.val):this.$emit("confirm"),this.beforeClose||this.popup.close()},closeDialog:function(){this.$emit("close"),this.beforeClose||this.popup.close()},close:function(){this.popup.close()}}};e.default=u},"566d":function(t,e,i){"use strict";i.r(e);var n=i("cc71"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"5a85":function(t,e,i){"use strict";var n=i("dfa0"),a=i.n(n);a.a},"667f":function(t,e,i){"use strict";i.r(e);var n=i("76c9"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},6789:function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("7310")),o=n(i("be7d")),r=n(i("bbf3")),s={en:a.default,"zh-Hans":o.default,"zh-Hant":r.default};e.default=s},"6d69":function(t,e,i){var n=i("24fb");e=n(!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/* 文章场景相关 */.uni-popup-dialog[data-v-426fce18]{width:300px;border-radius:15px;background-color:#fff}.uni-dialog-title[data-v-426fce18]{display:flex;flex-direction:row;justify-content:center;padding-top:15px;padding-bottom:5px}.uni-dialog-title-text[data-v-426fce18]{font-size:16px;font-weight:500}.uni-dialog-content[data-v-426fce18]{display:flex;flex-direction:row;justify-content:center;align-items:center;padding:5px 15px 15px 15px}.uni-dialog-content-text[data-v-426fce18]{font-size:14px;color:#6e6e6e}.uni-dialog-button-group[data-v-426fce18]{display:flex;flex-direction:row;border-top-color:#f5f5f5;border-top-style:solid;border-top-width:1px}.uni-dialog-button[data-v-426fce18]{display:flex;flex:1;flex-direction:row;justify-content:center;align-items:center;height:45px}.uni-border-left[data-v-426fce18]{border-left-color:#f0f0f0;border-left-style:solid;border-left-width:1px}.uni-dialog-button-text[data-v-426fce18]{font-size:14px}.uni-button-color[data-v-426fce18]{color:#007aff}.uni-dialog-input[data-v-426fce18]{flex:1;font-size:14px;border:1px #eee solid;height:40px;padding:0 10px;border-radius:5px;color:#555}.uni-popup__success[data-v-426fce18]{color:#4cd964}.uni-popup__warn[data-v-426fce18]{color:#f0ad4e}.uni-popup__error[data-v-426fce18]{color:#dd524d}.uni-popup__info[data-v-426fce18]{color:#909399}',""]),t.exports=e},7310:function(t){t.exports=JSON.parse('{"uni-popup.cancel":"cancel","uni-popup.ok":"ok","uni-popup.placeholder":"pleace enter","uni-popup.title":"Hint","uni-popup.shareTitle":"Share to"}')},"76c9":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("99af");var a=i("0b9f"),o=n(i("cce0")),r=n(i("3d3d")),s=n(i("79b8")),c=n(i("970a")),u=i("784d"),p={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,voucherList:[]}},components:{TitleHeader:o.default,HomeBase:r.default,EmptyRecord:s.default,IndexVoucherItem:c.default},created:function(){this.loadMore()},methods:{goBack:function(){uni.navigateBack({delta:1})},getPointVoucherList:function(t){var e=this;uni.showLoading({title:"加载中"});var i=this.params;(0,u.getPointVoucherList)(i).then((function(i){uni.hideLoading(),e.voucherList=t?e.voucherList.concat(i.result.voucherlist):i.result.voucherlist,e.pageTotal=i.result.page_total,i.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.getPointVoucherList(!0))}}};e.default=p},"784d":function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.getPointsorderList=e.getPointshop=e.getPointsgoodsList=e.getPointsgoodsInfo=e.getPointVoucherList=e.getPointMallVoucherList=e.exchangePointVoucher=e.exchangePointMallVoucher=void 0;var n=i("887c");e.getPointshop=function(){return(0,n.requestApi)("/Pointshop/index","POST",{})};e.getPointVoucherList=function(t){return(0,n.requestApi)("/Pointvoucher/index","POST",{page:t.page,per_page:t.per_page,client_type:"wap"})};e.exchangePointVoucher=function(t){return(0,n.requestApi)("/Pointvoucher/voucherexchange_save","POST",t)};e.getPointMallVoucherList=function(t){return(0,n.requestApi)("/Pointmallvoucher/index","POST",{page:t.page,per_page:t.per_page,gc_id:t.gc_id,client_type:"wap"})};e.exchangePointMallVoucher=function(t){return(0,n.requestApi)("/Pointmallvoucher/mallvoucherexchange_save","POST",t)};e.getPointsgoodsList=function(t){return(0,n.requestApi)("/Pointprod/index","POST",{page:t.page,per_page:t.per_page,client_type:"wap"})};e.getPointsgoodsInfo=function(t){return(0,n.requestApi)("/Pointprod/pinfo","POST",{id:t})};e.getPointsorderList=function(t,e){return(0,n.requestApi)("/Pointprod/get_order_list","POST",{page:t.page,per_page:t.per_page,pgoods_id:e})}},"79b8":function(t,e,i){"use strict";i.r(e);var n=i("bba65"),a=i("8909");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);var r=i("f0c5"),s=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=s.exports},8909:function(t,e,i){"use strict";i.r(e);var n=i("a2ce"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},9048:function(t,e,i){"use strict";var n=i("350e"),a=i.n(n);a.a},9697:function(t,e,i){"use strict";var n=i("fe46"),a=i.n(n);a.a},"970a":function(t,e,i){"use strict";i.r(e);var n=i("0731"),a=i("566d");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("5a85");var r=i("f0c5"),s=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"05d018fa",null,!1,n["a"],void 0);e["default"]=s.exports},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:{}}},ae75:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"uni-popup-dialog"},[i("v-uni-view",{staticClass:"uni-dialog-title"},[i("v-uni-text",{staticClass:"uni-dialog-title-text",class:["uni-popup__"+t.dialogType]},[t._v(t._s(t.titleText))])],1),"base"===t.mode?i("v-uni-view",{staticClass:"uni-dialog-content"},[t._t("default",[i("v-uni-text",{staticClass:"uni-dialog-content-text"},[t._v(t._s(t.content))])])],2):i("v-uni-view",{staticClass:"uni-dialog-content"},[t._t("default",[i("v-uni-input",{staticClass:"uni-dialog-input",attrs:{type:"text",placeholder:t.placeholderText,focus:t.focus},model:{value:t.val,callback:function(e){t.val=e},expression:"val"}})])],2),i("v-uni-view",{staticClass:"uni-dialog-button-group"},[i("v-uni-view",{staticClass:"uni-dialog-button",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.closeDialog.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"uni-dialog-button-text"},[t._v(t._s(t.cancelText))])],1),i("v-uni-view",{staticClass:"uni-dialog-button uni-border-left",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onOk.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"uni-dialog-button-text uni-button-color"},[t._v(t._s(t.okText))])],1)],1)],1)},a=[]},b0cc:function(t,e,i){"use strict";var n=i("07d0"),a=i.n(n);a.a},b44c:function(t,e,i){"use strict";i.r(e);var n=i("ae75"),a=i("d6b8");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("b0cc");var r=i("f0c5"),s=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"426fce18",null,!1,n["a"],void 0);e["default"]=s.exports},bba65:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=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=[]},bbf3:function(t){t.exports=JSON.parse('{"uni-popup.cancel":"取消","uni-popup.ok":"確定","uni-popup.placeholder":"請輸入","uni-popup.title":"提示","uni-popup.shareTitle":"分享到"}')},be7d:function(t){t.exports=JSON.parse('{"uni-popup.cancel":"取消","uni-popup.ok":"确定","uni-popup.placeholder":"请输入","uni-popup.title":"提示","uni-popup.shareTitle":"分享到"}')},c4de:function(t,e,i){"use strict";i.r(e);var n=i("31a9"),a=i("667f");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("9048");var r=i("f0c5"),s=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"43c3fc04",null,!1,n["a"],void 0);e["default"]=s.exports},cc71:function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("5530")),o=i("26cb"),r=i("784d"),s=i("0d25"),c={name:"index",data:function(){return{dialog:{},hongbaobg:s.env.SITE_URL+"/uploads/home/h5/home/hongbao_bg.png"}},computed:(0,a.default)({},(0,o.mapState)({isOnline:function(t){return t.member.isOnline},token:function(t){return t.member.token}})),props:["item"],components:{},methods:{closeDialog:function(){},confirmDialog:function(t){(0,r.exchangePointVoucher)({vid:this.dialog.data.vouchertemplate_id,key:this.token}).then((function(t){uni.showToast({icon:"none",title:t.message})})).catch((function(t){uni.showToast({icon:"none",title:t.message})}))},exchangeVoucher:function(t){this.dialog={content:"您确定需要使用"+t.vouchertemplate_points+"积分兑换代金券吗?",data:t},this.$refs.confirm.open()}}};e.default=c},d6b8:function(t,e,i){"use strict";i.r(e);var n=i("4305"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},dfa0:function(t,e,i){var n=i("392a");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("60221fb6",n,!0,{sourceMap:!1,shadowMode:!1})},e8e6:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{}},created:function(){this.popup=this.getParent()},methods:{getParent:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"uniPopup",e=this.$parent,i=e.$options.name;while(i!==t){if(e=e.$parent,!e)return!1;i=e.$options.name}return e}}};e.default=n},ee69:function(t,e,i){"use strict";i.r(e);var n=i("1a2e"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},fe46:function(t,e,i){var n=i("2382");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("c0a246c6",n,!0,{sourceMap:!1,shadowMode:!1})}}]);