1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-home-pointsgoods-Index~pages-home-pointsgoods-PointMallVoucher"],{"07d0":function(t,e,n){var i=n("6d69");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("4f06").default;o("8da7eac6",i,!0,{sourceMap:!1,shadowMode:!1})},"231a":function(t,e,n){"use strict";n.r(e);var i=n("c2d6"),o=n("5692e");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("eb21");var r=n("f0c5"),c=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,"54f28e89",null,!1,i["a"],void 0);e["default"]=c.exports},4305:function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("a9e3");var o=i(n("e8e6")),a=n("37dc"),r=i(n("6789")),c=(0,a.initVueI18n)(r.default),p=c.t,u={name:"uniPopupDialog",mixins:[o.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 p("uni-popup.ok")},cancelText:function(){return p("uni-popup.cancel")},placeholderText:function(){return this.placeholder||p("uni-popup.placeholder")},titleText:function(){return this.title||p("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},"5692e":function(t,e,n){"use strict";n.r(e);var i=n("9be5"),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},"5b92":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/* 文章场景相关 */.font-size-activity-tag[data-v-54f28e89]{font-size:.5rem!important}.color-tip[data-v-54f28e89]{color:#909399!important}.color-base-text[data-v-54f28e89]{color:#ff4544!important}.img-content > img[data-v-54f28e89]{width:100%;height:100%}.list-wrap-item[data-v-54f28e89]{display:inline-block;width:165px;overflow:hidden;position:relative}.list-wrap-item.hongbao-list-wrap-item[data-v-54f28e89]{height:70px}.list-wrap-item .img-box[data-v-54f28e89]{width:100%;height:100%;position:absolute;top:0;left:0}.list-wrap-item .img-box .img-content[data-v-54f28e89]{width:100%;height:100%}.list-wrap-item .content[data-v-54f28e89]{position:relative;z-index:9}.list-wrap-item .content .coupon[data-v-54f28e89]{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-54f28e89]{position:relative;width:70px;min-width:70px}.list-wrap-item .content .coupon .coupon_right.flex[data-v-54f28e89]{display:flex;align-items:center}.list-wrap-item .content .coupon .coupon_right .coupon_btn[data-v-54f28e89]{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-54f28e89]{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-54f28e89]::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-54f28e89]{-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-54f28e89]{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-54f28e89]{font-size:.6rem}.list-wrap-item .content .coupon .coupon_left .coupon_condition[data-v-54f28e89]{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-54f28e89], .list-wrap-item .content .hongbao .coupon_left .coupon_condition[data-v-54f28e89]{color:#fff}.list-wrap-item .content .hongbao .coupon_right .coupon_num[data-v-54f28e89]{color:#fff}.list-wrap-item .content .hongbao .coupon_right .coupon_btn[data-v-54f28e89]{color:#fff;border-color:#fff}.list-wrap-item .content .hongbao .coupon_right[data-v-54f28e89]::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-54f28e89]{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-54f28e89]{font-size:1.2rem;margin-top:5px;margin-left:10px}.list-wrap-item .content .coupon-price-wrap .coupon-price .text-content[data-v-54f28e89]{font-size:.6rem}.list-wrap-item .content .coupon-point .coupon-point-num[data-v-54f28e89]{width:80px;height:22px;position:relative}.list-wrap-item .content .coupon-point .coupon-point-num .img-content[data-v-54f28e89]{width:100%;height:100%;position:absolute}.list-wrap-item .content .coupon-point .coupon-point-num .text-content[data-v-54f28e89]{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-54f28e89]{font-size:.5rem;color:#909399;line-height:1;margin-top:12px}.list-wrap-item .content .coupon-name[data-v-54f28e89]{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-54f28e89]{background-color:#fff;border-radius:10px;padding-bottom:15px}.list-wrap-item .content .hongbao-img[data-v-54f28e89]{height:165px}.list-wrap-item .content .hongbao-img .img-content[data-v-54f28e89]{width:100%;height:100%}.list-wrap-item .content .price[data-v-54f28e89]{font-size:.7rem;color:#303133;line-height:1;padding-left:13px;margin-top:10px}.list-wrap-item .content .point[data-v-54f28e89]{font-size:.8rem;padding-left:13px;margin-top:8px;line-height:1}.list-wrap-item .content .point .text-content[data-v-54f28e89]{font-size:.6rem}.list-wrap-item .content .stock[data-v-54f28e89]{font-size:.5rem;color:#909399;line-height:1;padding-left:13px;margin-top:10px}',""]),t.exports=e},6789:function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("7310")),a=i(n("be7d")),r=i(n("bbf3")),c={en:o.default,"zh-Hans":a.default,"zh-Hant":r.default};e.default=c},"6b1d":function(t,e,n){var i=n("5b92");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("4f06").default;o("2a2ee648",i,!0,{sourceMap:!1,shadowMode:!1})},"6d69":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/* 文章场景相关 */.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"}')},"79b8":function(t,e,n){"use strict";n.r(e);var i=n("bba65"),o=n("8909");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);var r=n("f0c5"),c=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=c.exports},8909:function(t,e,n){"use strict";n.r(e);var i=n("a2ce"),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},"9be5":function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("5530")),a=n("26cb"),r=n("784d"),c=n("0d25"),p={name:"index",data:function(){return{dialog:{},hongbaobg:c.env.SITE_URL+"/uploads/home/h5/home/hongbao_bg.png"}},computed:(0,o.default)({},(0,a.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.exchangePointMallVoucher)({vid:this.dialog.data.mallvouchertemplate_id,key:this.token}).then((function(t){uni.showToast({icon:"none",title:t.message})})).catch((function(t){uni.showToast({icon:"none",title:t.message})}))},exchangeMallVoucher:function(t){this.dialog={content:"您确定需要使用"+t.mallvouchertemplate_points+"积分兑换代金券吗?",data:t},this.$refs.confirm.open()}}};e.default=p},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:{}}},ae75:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"uni-popup-dialog"},[n("v-uni-view",{staticClass:"uni-dialog-title"},[n("v-uni-text",{staticClass:"uni-dialog-title-text",class:["uni-popup__"+t.dialogType]},[t._v(t._s(t.titleText))])],1),"base"===t.mode?n("v-uni-view",{staticClass:"uni-dialog-content"},[t._t("default",[n("v-uni-text",{staticClass:"uni-dialog-content-text"},[t._v(t._s(t.content))])])],2):n("v-uni-view",{staticClass:"uni-dialog-content"},[t._t("default",[n("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),n("v-uni-view",{staticClass:"uni-dialog-button-group"},[n("v-uni-view",{staticClass:"uni-dialog-button",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.closeDialog.apply(void 0,arguments)}}},[n("v-uni-text",{staticClass:"uni-dialog-button-text"},[t._v(t._s(t.cancelText))])],1),n("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)}}},[n("v-uni-text",{staticClass:"uni-dialog-button-text uni-button-color"},[t._v(t._s(t.okText))])],1)],1)],1)},o=[]},b0cc:function(t,e,n){"use strict";var i=n("07d0"),o=n.n(i);o.a},b44c:function(t,e,n){"use strict";n.r(e);var i=n("ae75"),o=n("d6b8");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("b0cc");var r=n("f0c5"),c=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,"426fce18",null,!1,i["a"],void 0);e["default"]=c.exports},bba65:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),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)},o=[]},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":"分享到"}')},c2d6:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var i={uniPopup:n("3ae3").default,uniPopupDialog:n("b44c").default},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"div main-content"},[n("v-uni-view",{staticClass:"div list-wrap-item hongbao-list-wrap-item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.exchangeMallVoucher(t.item)}}},[n("v-uni-view",{staticClass:"div img-box"},[n("v-uni-view",{staticClass:"div img-content"},[n("v-uni-image",{staticClass:"img",attrs:{mode:"aspectFit",src:t.hongbaobg}})],1)],1),n("v-uni-view",{staticClass:"div content"},[n("v-uni-view",{staticClass:"div coupon hongbao"},[n("v-uni-view",{staticClass:"div coupon_left"},[n("v-uni-view",{staticClass:"div price "},[n("v-uni-text",{staticClass:"span text-content"},[n("v-uni-text",{staticClass:"span"},[t._v("¥")])],1),t._v(t._s(t.item.mallvouchertemplate_price))],1),n("v-uni-view",{staticClass:"div coupon_condition font-size-activity-tag"},[n("v-uni-text",{staticClass:"span text-content"},[n("v-uni-text",{staticClass:"span"},[t._v(t._s(t.item.mallvouchertemplate_gcname))])],1)],1)],1),n("v-uni-view",{staticClass:"div coupon_right flex"},[n("v-uni-view",{staticClass:"div coupon_btn"},[t._v("兑换")])],1)],1)],1)],1),n("uni-popup",{ref:"confirm",attrs:{"background-color":"#fff",type:"dialog"}},[n("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)},a=[]},d6b8:function(t,e,n){"use strict";n.r(e);var i=n("4305"),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},e8e6:function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={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,n=e.$options.name;while(n!==t){if(e=e.$parent,!e)return!1;n=e.$options.name}return e}}};e.default=i},eb21:function(t,e,n){"use strict";var i=n("6b1d"),o=n.n(i);o.a}}]);
|