(window.webpackJsonp=window.webpackJsonp||[]).push([[191],{"1115":function(t,e,o){"use strict";o(897)},"1116":function(t,e,o){(e=o(7)(!1)).push([t.i,"#orderCouponCode .btn {\n  width: 3.15733rem;\n  height: 1.10933rem;\n}\n#orderCouponCode .van-button--normal {\n  padding: 0;\n}\n#orderCouponCode .van-button--default {\n  border: 1px solid #757575;\n}\n",""]),t.exports=e},"1202":function(t,e,o){"use strict";var n={"name":"CouponCode","props":{"couponCode":{"type":Object,"default":function _default(){}},"shopName":{"type":Boolean,"default":function _default(){return!1}},"orderMode":{"type":String,"default":function _default(){return""}}},"components":{},"data":function data(){return{"url":"https://gfs16.gomein.net.cn/T1eobcB4DT1RCvBVdK"}},"methods":{"refreshCouponCode":function refreshCouponCode(){this.$emit("refreshCouponCode")},"applyRefund":function applyRefund(t){this.$router.push({"path":"/pages/routeController/index","query":{"rid":"groupApplyRefund","orderNo":t.orderNo,"orderType":t.orderType}})}}},s=(o(1115),o(3)),r=Object(s.a)(n,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{"attrs":{"id":"orderCouponCode"}},[o("gm-m-card-container",[o("div",{"staticClass":"flex justify-between align-center"},[o("div",[o("p",{"staticClass":"text-3xl text-fw5"},[t._v(t._s(t.shopName?t.couponCode.goodsName:"券码"))]),t._v(" "),o("p",{"staticClass":"text-c6 text-2xl"},[t._v("可使用 ("+t._s(t.couponCode.residueNum)+"张) | 有效期至"+t._s(t.couponCode.validEndTime))])]),t._v(" "),"UNUSED"!==t.couponCode.state&&"INUSE"!==t.couponCode.state||0===t.couponCode.residueNum||"EXCHANGE"===t.orderMode?t._e():o("gm-m-button",{"staticClass":"text-c6 text-2xl flex-shrink-0 btn","attrs":{"round":""},"on":{"click":function(e){return t.applyRefund(t.couponCode)}}},[t._v("申请退款")])],1),t._v(" "),o("div",{"staticClass":"mt-12 text-line"}),t._v(" "),o("div",{"staticClass":"mt-12 text-2xl"},[t._l(t.couponCode.userRightsUseList,(function(e,n){return[o("div",{"key":n,"class":"UNUSED"===e.state?"mt-8 flex justify-between":"mt-8 flex justify-between text-c2"},[o("span",[t._v(t._s(e.code))]),t._v(" "),"UNUSED"===e.state?o("span",[t._v("待使用")]):t._e(),t._v(" "),"INUSE"===e.state?o("span",[t._v("使用中")]):t._e(),t._v(" "),"BEENUSED"===e.state?o("span",[t._v("已使用")]):t._e(),t._v(" "),"EXPIRE"===e.state?o("span",[t._v("已到期")]):t._e(),t._v(" "),"CANCELLATION"===e.state?o("span",[t._v("作废")]):t._e(),t._v(" "),"USER_CANCEL"===e.state||"AUTO_CANCEL"===e.state?o("span",[t._v("已退款")]):t._e()])]}))],2),t._v(" "),o("div",{"staticClass":"mt-12 text-line"}),t._v(" "),o("div",{"staticClass":"mt-12 flex flex-col align-center"},[t.couponCode.codeUrl?t._e():o("p",{"staticClass":"flex align-center text-2xl text-c2 mb-12"},[o("img",{"staticStyle":{"width":"12px","height":"12px","margin-right":"4px"},"attrs":{"src":"https://gfs15.gomein.net.cn/T1A5AcByKT1RCvBVdK"}}),t._v("\n        二维码加载失败，请点击"),o("span",{"staticClass":"text-c8","on":{"click":t.refreshCouponCode}},[t._v("刷新")])]),t._v(" "),o("img",{"staticStyle":{"width":"136px","height":"136px"},"attrs":{"src":t.couponCode.codeUrl?t.couponCode.codeUrl:t.url}}),t._v(" "),o("p",{"staticClass":"my-16 text-2xl"},[t._v("向商家出示二维码或券号即可消费")]),t._v(" "),o("p",{"staticClass":"text-xl text-c6"},[t._v("为保障您的权益，未到店前请勿将券码提供给商家")])])])],1)}),[],!1,null,null,null);e.a=r.exports},"3664":function(t,e,o){"use strict";o.r(e);var n=o(1202),s=o(821),r={"name":"CouponCode","components":{"CouponCode":n.a},"data":function data(){return{"couponCode":{}}},"mounted":function mounted(){this.getCouponCode()},"methods":{"getCouponCode":function getCouponCode(){var t=this;s.a.toast(this);var e={"orderNo":this.$route.query.orderNo};this.$route.query.type&&(e={"cardNo":this.$route.query.cardNo}),this.$api.getGroupOrderCouponCode(e).then((function(e){0===e.code&&(t.$toast.clear(),t.couponCode=e.data.length>0?e.data[0]:{})}))}}},a=o(3),u=Object(a.a)(r,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("gm-m-container",[o("gm-m-header",[o("gm-m-nav-header",{"attrs":{"slotsShow":["center"]},"scopedSlots":t._u([{"key":"dynamicsCenter","fn":function(){return[t._v("\n          查看券码\n        ")]},"proxy":!0}])})],1),t._v(" "),o("gm-m-main",[o("CouponCode",{"ref":"couponCode","attrs":{"shopName":!0,"couponCode":t.couponCode}})],1)],1)],1)}),[],!1,null,null,null);e.default=u.exports},"897":function(t,e,o){var n=o(6),s=o(1116);"string"==typeof(s=s.__esModule?s.default:s)&&(s=[[t.i,s,""]]);var r={"insert":"head","singleton":!1};n(s,r);t.exports=s.locals||{}}}]);