import{d as t,r as e,m as n,k as r,q as o,L as i,a,o as s,c as u,w as l,n as c,u as f,b as d,z as h,A as g,f as p,Q as m,R as w,I as y,j as v,E as x,C as E,g as b,i as A,F as C}from"./index-ed377420.js";import{_}from"./loading-page.vue_vue_type_script_setup_true_lang.1c79156d.js";import{t as B}from"./topTabbar.5c01942d.js";import{c as T,b as I}from"./coupon.a3db00c1.js";import{_ as M}from"./_plugin-vue_export-helper.1b428a4d.js";import"./u-loading-icon.9ec5388c.js";import"./u-transition.62225ebb.js";var P={},N={},R={};let L;const k=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];R.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},R.getSymbolTotalCodewords=function(t){return k[t]},R.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},R.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');L=t},R.isKanjiModeEnabled=function(){return void 0!==L},R.toSJIS=function(t){return L(t)};var U,S={};function D(){this.buffer=[],this.length=0}(U=S).L={bit:1},U.M={bit:0},U.Q={bit:3},U.H={bit:2},U.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},U.from=function(t,e){if(U.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return U.L;case"m":case"medium":return U.M;case"q":case"quartile":return U.Q;case"h":case"high":return U.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(n){return e}},D.prototype={get:function(t){const e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(let n=0;n>>e-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var F=D;function j(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}j.prototype.set=function(t,e,n,r){const o=t*this.size+e;this.data[o]=n,r&&(this.reservedBit[o]=!0)},j.prototype.get=function(t,e){return this.data[t*this.size+e]},j.prototype.xor=function(t,e,n){this.data[t*this.size+e]^=n},j.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var z=j,H={};!function(t){const e=R.getSymbolSize;t.getRowColCoords=function(t){if(1===t)return[];const n=Math.floor(t/7)+2,r=e(t),o=145===r?26:2*Math.ceil((r-13)/(2*n-2)),i=[r-7];for(let e=1;e=0&&t<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(t){const n=t.size;let r=0,o=0,i=0,a=null,s=null;for(let u=0;u=5&&(r+=e+(o-5)),a=n,o=1),n=t.get(l,u),n===s?i++:(i>=5&&(r+=e+(i-5)),s=n,i=1)}o>=5&&(r+=e+(o-5)),i>=5&&(r+=e+(i-5))}return r},t.getPenaltyN2=function(t){const e=t.size;let r=0;for(let n=0;n=10&&(1488===o||93===o)&&n++,i=i<<1&2047|t.get(a,r),a>=10&&(1488===i||93===i)&&n++}return n*r},t.getPenaltyN4=function(t){let e=0;const n=t.data.length;for(let r=0;r=0;){const t=r[0];for(let i=0;i0){const t=new Uint8Array(this.degree);return t.set(n,r),t}return n};var et=tt,nt={},rt={},ot={isValid:function(t){return!isNaN(t)&&t>=1&&t<=40}},it={};const at="[0-9]+";let st="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";st=st.replace(/u/g,"\\u");const ut="(?:(?![A-Z0-9 $%*+\\-./:]|"+st+")(?:.|[\r\n]))+";it.KANJI=new RegExp(st,"g"),it.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),it.BYTE=new RegExp(ut,"g"),it.NUMERIC=new RegExp(at,"g"),it.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const lt=new RegExp("^"+st+"$"),ct=new RegExp("^"+at+"$"),ft=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");it.testKanji=function(t){return lt.test(t)},it.testNumeric=function(t){return ct.test(t)},it.testAlphanumeric=function(t){return ft.test(t)},function(t){const e=ot,n=it;t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(t,n){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!e.isValid(n))throw new Error("Invalid version: "+n);return n>=1&&n<10?t.ccBits[0]:n<27?t.ccBits[1]:t.ccBits[2]},t.getBestModeForData=function(e){return n.testNumeric(e)?t.NUMERIC:n.testAlphanumeric(e)?t.ALPHANUMERIC:n.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},t.isValid=function(t){return t&&t.bit&&t.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(r){return n}}}(rt),function(t){const e=R,n=V,r=S,o=rt,i=ot,a=e.getBCHDigit(7973);function s(t,e){return o.getCharCountIndicator(t,e)+4}function u(t,e){let n=0;return t.forEach((function(t){const r=s(t.mode,e);n+=r+t.getBitsLength()})),n}t.from=function(t,e){return i.isValid(t)?parseInt(t,10):e},t.getCapacity=function(t,r,a){if(!i.isValid(t))throw new Error("Invalid QR Code version");void 0===a&&(a=o.BYTE);const u=8*(e.getSymbolTotalCodewords(t)-n.getTotalCodewordsCount(t,r));if(a===o.MIXED)return u;const l=u-s(a,t);switch(a){case o.NUMERIC:return Math.floor(l/10*3);case o.ALPHANUMERIC:return Math.floor(l/11*2);case o.KANJI:return Math.floor(l/13);case o.BYTE:default:return Math.floor(l/8)}},t.getBestVersionForData=function(e,n){let i;const a=r.from(n,r.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let r=1;r<=40;r++)if(u(e,r)<=t.getCapacity(r,n,o.MIXED))return r}(e,a);if(0===e.length)return 1;i=e[0]}else i=e;return function(e,n,r){for(let o=1;o<=40;o++)if(n<=t.getCapacity(o,r,e))return o}(i.mode,i.getLength(),a)},t.getEncodedBits=function(t){if(!i.isValid(t)||t<7)throw new Error("Invalid QR Code version");let n=t<<12;for(;e.getBCHDigit(n)-a>=0;)n^=7973<=0;)r^=1335<0&&(n=this.data.substr(e),r=parseInt(n,10),t.put(r,3*o+1))};var yt=wt;const vt=rt,xt=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Et(t){this.mode=vt.ALPHANUMERIC,this.data=t}Et.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},Et.prototype.getLength=function(){return this.data.length},Et.prototype.getBitsLength=function(){return Et.getBitsLength(this.data.length)},Et.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let n=45*xt.indexOf(this.data[e]);n+=xt.indexOf(this.data[e+1]),t.put(n,11)}this.data.length%2&&t.put(xt.indexOf(this.data[e]),6)};var bt=Et;const At=function(t){for(var e=[],n=t.length,r=0;r=55296&&o<=56319&&n>r+1){var i=t.charCodeAt(r+1);i>=56320&&i<=57343&&(o=1024*(o-55296)+i-56320+65536,r+=1)}o<128?e.push(o):o<2048?(e.push(o>>6|192),e.push(63&o|128)):o<55296||o>=57344&&o<65536?(e.push(o>>12|224),e.push(o>>6&63|128),e.push(63&o|128)):o>=65536&&o<=1114111?(e.push(o>>18|240),e.push(o>>12&63|128),e.push(o>>6&63|128),e.push(63&o|128)):e.push(239,191,189)}return new Uint8Array(e).buffer},Ct=rt;function _t(t){this.mode=Ct.BYTE,"string"==typeof t&&(t=At(t)),this.data=new Uint8Array(t)}_t.getBitsLength=function(t){return 8*t},_t.prototype.getLength=function(){return this.data.length},_t.prototype.getBitsLength=function(){return _t.getBitsLength(this.data.length)},_t.prototype.write=function(t){for(let e=0,n=this.data.length;e=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),t.put(n,13)}};var Pt,Nt=Mt,Rt={};Pt={single_source_shortest_paths:function(t,e,n){var r={},o={};o[e]=0;var i,a,s,u,l,c,f,d=Pt.PriorityQueue.make();for(d.push(e,0);!d.empty();)for(s in a=(i=d.pop()).value,u=i.cost,l=t[a]||{})l.hasOwnProperty(s)&&(c=u+l[s],f=o[s],(void 0===o[s]||f>c)&&(o[s]=c,d.push(s,c),r[s]=a));if(void 0!==n&&void 0===o[n]){var h=["Could not find a path from ",e," to ",n,"."].join("");throw new Error(h)}return r},extract_shortest_path_from_predecessor_list:function(t,e){for(var n=[],r=e;r;)n.push(r),t[r],r=t[r];return n.reverse(),n},find_path:function(t,e,n){var r=Pt.single_source_shortest_paths(t,e,n);return Pt.extract_shortest_path_from_predecessor_list(r,n)},PriorityQueue:{make:function(t){var e,n=Pt.PriorityQueue,r={};for(e in t=t||{},n)n.hasOwnProperty(e)&&(r[e]=n[e]);return r.queue=[],r.sorter=t.sorter||n.default_sorter,r},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var n={value:t,cost:e};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}},{get exports(){return Rt},set exports(t){Rt=t}}.exports=Pt,function(t){const e=rt,n=yt,r=bt,o=Bt,i=Nt,a=it,s=R,u=Rt;function l(t){return unescape(encodeURIComponent(t)).length}function c(t,e,n){const r=[];let o;for(;null!==(o=t.exec(n));)r.push({data:o[0],index:o.index,mode:e,length:o[0].length});return r}function f(t){const n=c(a.NUMERIC,e.NUMERIC,t),r=c(a.ALPHANUMERIC,e.ALPHANUMERIC,t);let o,i;s.isKanjiModeEnabled()?(o=c(a.BYTE,e.BYTE,t),i=c(a.KANJI,e.KANJI,t)):(o=c(a.BYTE_KANJI,e.BYTE,t),i=[]);return n.concat(r,o,i).sort((function(t,e){return t.index-e.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function d(t,a){switch(a){case e.NUMERIC:return n.getBitsLength(t);case e.ALPHANUMERIC:return r.getBitsLength(t);case e.KANJI:return i.getBitsLength(t);case e.BYTE:return o.getBitsLength(t)}}function h(t,a){let u;const l=e.getBestModeForData(t);if(u=e.from(a,l),u!==e.BYTE&&u.bit=0?t[t.length-1]:null;return n&&n.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)}),[])}(c))},t.rawSplit=function(e){return t.fromArray(f(e,s.isKanjiModeEnabled()))}}(pt);const Lt=R,kt=S,Ut=F,St=z,Dt=H,Ft=J,jt=Y,zt=V,Ht=et,Jt=nt,Kt=dt,Yt=rt,Vt=pt;function Ot(t,e,n){const r=t.size,o=Kt.getEncodedBits(e,n);let i,a;for(i=0;i<15;i++)a=1==(o>>i&1),i<6?t.set(i,8,a,!0):i<8?t.set(i+1,8,a,!0):t.set(r-15+i,8,a,!0),i<8?t.set(8,r-i-1,a,!0):i<9?t.set(8,15-i-1+1,a,!0):t.set(8,15-i-1,a,!0);t.set(r-8,8,1,!0)}function qt(t,e,n){const r=new Ut;n.forEach((function(e){r.put(e.mode.bit,4),r.put(e.getLength(),Yt.getCharCountIndicator(e.mode,t)),e.write(r)}));const o=8*(Lt.getSymbolTotalCodewords(t)-zt.getTotalCodewordsCount(t,e));for(r.getLengthInBits()+4<=o&&r.put(0,4);r.getLengthInBits()%8!=0;)r.putBit(0);const i=(o-r.getLengthInBits())/8;for(let a=0;a=0&&r<=6&&(0===o||6===o)||o>=0&&o<=6&&(0===r||6===r)||r>=2&&r<=4&&o>=2&&o<=4?t.set(e+r,i+o,!0,!0):t.set(e+r,i+o,!1,!0))}}(u,e),function(t){const e=t.size;for(let n=8;n=7&&function(t,e){const n=t.size,r=Jt.getEncodedBits(e);let o,i,a;for(let s=0;s<18;s++)o=Math.floor(s/3),i=s%3+n-8-3,a=1==(r>>s&1),t.set(o,i,a,!0),t.set(i,o,a,!0)}(u,e),function(t,e){const n=t.size;let r=-1,o=n-1,i=7,a=0;for(let s=n-1;s>0;s-=2)for(6===s&&s--;;){for(let n=0;n<2;n++)if(!t.isReserved(o,s-n)){let r=!1;a>>i&1)),t.set(o,s-n,r),i--,-1===i&&(a++,i=7)}if(o+=r,o<0||n<=o){o-=r,r=-r;break}}}(u,a),isNaN(r)&&(r=jt.getBestMask(u,Ot.bind(null,u,n))),jt.applyMask(r,u),Ot(u,n,r),{modules:u,version:e,errorCorrectionLevel:n,maskPattern:r,segments:o}}N.create=function(t,e){if(void 0===t||""===t)throw new Error("No input text");let n,r,o=kt.M;return void 0!==e&&(o=kt.from(e.errorCorrectionLevel,kt.M),n=Jt.from(e.version),r=jt.from(e.maskPattern),e.toSJISFunc&&Lt.setToSJISFunction(e.toSJISFunc)),Qt(t,n,o,r)};var $t={},Xt={};!function(t){function e(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map((function(t){return[t,t]})))),6===e.length&&e.push("F","F");const n=parseInt(e.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+e.slice(0,6).join("")}}t.getOptions=function(t){t||(t={}),t.color||(t.color={});const n=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,r=t.width&&t.width>=21?t.width:void 0,o=t.scale||4;return{width:r,scale:r?4:o,margin:n,color:{dark:e(t.color.dark||"#000000ff"),light:e(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},t.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},t.getImageWidth=function(e,n){const r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){const o=n.modules.size,i=n.modules.data,a=t.getScale(o,r),s=Math.floor((o+2*r.margin)*a),u=r.margin*a,l=[r.color.light,r.color.dark];for(let t=0;t=u&&n>=u&&t':"",u="0&&u>0&&t[s-1]||(r+=i?te("M",u+n,.5+l+n):te("m",o,0),o=0,i=!1),u+1',l='viewBox="0 0 '+a+" "+a+'"',c=''+s+u+"\n";return"function"==typeof n&&n(null,c),c};const ee=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then},ne=N,re=$t,oe=Zt;function ie(t,e,n,r,o){const i=[].slice.call(arguments,1),a=i.length,s="function"==typeof i[a-1];if(!s&&!ee())throw new Error("Callback required as last argument");if(!s){if(a<1)throw new Error("Too few arguments provided");return 1===a?(n=e,e=r=void 0):2!==a||e.getContext||(r=n,n=e,e=void 0),new Promise((function(o,i){try{const i=ne.create(n,r);o(t(i,e,r))}catch(a){i(a)}}))}if(a<2)throw new Error("Too few arguments provided");2===a?(o=n,n=e,e=r=void 0):3===a&&(e.getContext&&void 0===o?(o=r,r=void 0):(o=r,r=n,n=e,e=void 0));try{const i=ne.create(n,r);o(null,t(i,e,r))}catch(u){o(u)}}P.create=ne.create,P.toCanvas=ie.bind(null,re.render),P.toDataURL=ie.bind(null,re.renderToDataURL),P.toString=ie.bind(null,(function(t,e,n){return oe.render(t,n)}));const ae=M(t({__name:"detail",setup(t){const M=e(!1),N=e(""),R=e({}),L=n(),k=r((()=>L.info));B().setTopTabbarParam({title:"优惠券详情"}),o((t=>{if(t.coupon_id)U(t.coupon_id),S(t.coupon_id);else{i({url:"/addon/shop/pages/coupon/list",title:"优惠券不存在"})}}));const U=t=>{M.value=!0,T(t).then((t=>{R.value=t.data,-1!=R.value.sum_count&&R.value.receive_count===R.value.sum_count?R.value.btnType="collected":k.value&&R.value.is_receive&&R.value.limit_count===R.value.member_receive_count?R.value.btnType="using":R.value.btnType="collecting",M.value=!1})).catch((()=>{M.value=!1,R.value={},setTimeout((()=>{a({url:"/addon/shop/pages/index",mode:"reLaunch"})}),600)}))},S=t=>{P.toDataURL(window.location.href,{errorCorrectionLevel:"L",margin:0,width:100}).then((t=>{N.value=t}))};return(t,e)=>{const n=v,r=x,o=E,i=b(A("loading-page"),_);return s(),u(n,{style:c(t.themeColor())},{default:l((()=>[Object.keys(R.value).length&&!M.value?(s(),u(n,{key:0,class:"overflow-hidden min-h-screen bg-style relative",style:c({background:"url("+f(C)("addon/shop/coupon/coupon_bg.png")+") no-repeat"})},{default:l((()=>[d(n,{class:"relative mt-[236rpx] w-[100%] h-[932rpx]",style:c({background:"url("+f(C)("addon/shop/coupon/coupon_bg_02.png")+") center / contain no-repeat"})},{default:l((()=>[R.value.limit_count?(s(),u(n,{key:0,style:c({background:"url("+f(C)("addon/shop/coupon/top_tab.png")+") center / cover no-repeat",transform:"translateX(-50%)"}),class:"text-[32rpx] leading-[56rpx] top-[2rpx] left-[50%] px-[30rpx] box-border justify-center absolute min-w-[196rpx] h-[56rpx] flex items-center text-[#FFF9DD]"},{default:l((()=>[h(" 限领"+g(R.value.limit_count)+"张 ",1)])),_:1},8,["style"])):p("v-if",!0),d(n,{class:"flex justify-center pt-[90rpx]"},{default:l((()=>[d(r,{class:"max-w-[380rpx] text-[var(--price-text-color)] text-[140rpx] truncate price-font"},{default:l((()=>[h(g(R.value.coupon_price||0),1)])),_:1}),d(r,{class:"flex items-center justify-center text-[44rpx] mt-[54rpx] ml-[8rpx] text-[#F7D894] bg-[var(--price-text-color)] rounded-full w-[70rpx] h-[70rpx]"},{default:l((()=>[h("元")])),_:1})])),_:1}),d(n,{class:"h-[64rpx] leading-[64rpx] text-[42rpx] text-[#E22D17] mt-[10rpx] text-center"},{default:l((()=>["0.00"===R.value.min_condition_money?(s(),u(r,{key:0},{default:l((()=>[h("无门槛")])),_:1})):(s(),u(r,{key:1},{default:l((()=>[h("满"+g(R.value.coupon_min_price)+"元可用",1)])),_:1}))])),_:1}),d(n,{class:"text-[26rpx] h-[36rpx] text-[#E22D17] mt-[44rpx] text-center flex justify-center items-center"},{default:l((()=>[1==R.value.valid_type?(s(),m(w,{key:0},[d(r,null,{default:l((()=>[h("领取之日起")])),_:1}),d(r,null,{default:l((()=>[h(g(R.value.length),1)])),_:1}),d(r,null,{default:l((()=>[h("天内有效")])),_:1})],64)):(s(),m(w,{key:1},[d(r,null,{default:l((()=>[h("有效期至")])),_:1}),d(r,null,{default:l((()=>[h(g(R.value.valid_end_time?R.value.valid_end_time.slice(0,10):""),1)])),_:1})],64))])),_:1}),d(n,{class:"flex justify-center items-center mt-[20rpx]"},{default:l((()=>["collected"===R.value.btnType?(s(),u(r,{key:0,class:"!leading-[100rpx] text-center text-[rgba(255,255,255,1)] text-[46rpx] min-w-[240rpx] h-[106rpx]",style:c({background:"url("+f(C)("addon/shop/coupon/coupon_btn_02.png")+") center / contain no-repeat"})},{default:l((()=>[h("已领完 ")])),_:1},8,["style"])):p("v-if",!0),"collecting"===R.value.btnType?(s(),u(r,{key:1,class:"!leading-[100rpx] text-center text-[#E22D17] text-[46rpx] min-w-[240rpx] h-[106rpx]",style:c({background:"url("+f(C)("addon/shop/coupon/coupon_btn.png")+") center / contain no-repeat"}),onClick:e[0]||(e[0]=t=>(t=>{if(!k.value)return y().setLoginBack({url:"/addon/shop/pages/coupon/list"}),!1;I({coupon_id:t,number:1}).then((t=>{R.value.btnType="using"}))})(R.value.id))},{default:l((()=>[h("领取 ")])),_:1},8,["style"])):p("v-if",!0),"using"===R.value.btnType?(s(),u(r,{key:2,class:"!leading-[100rpx] text-center text-[#E22D17] text-[46rpx] min-w-[240rpx] h-[106rpx]",style:c({background:"url("+f(C)("addon/shop/coupon/coupon_btn.png")+") center / contain no-repeat"}),onClick:e[1]||(e[1]=t=>{return e=R.value.id,void a({url:"/addon/shop/pages/goods/list",param:{coupon_id:e}});var e})},{default:l((()=>[h("去使用 ")])),_:1},8,["style"])):p("v-if",!0)])),_:1}),d(n,{class:"w-[230rpx] h-[230rpx] box-border p-[15rpx] bg-[#fff] mx-[auto] mt-[50rpx]"},{default:l((()=>[d(o,{class:"w-[200rpx] h-[200rpx]",src:N.value,mode:"aspectFill"},null,8,["src"])])),_:1}),d(n,{class:"text-[24rpx] text-[rgba(255,255,255,0.7)] mt-[30rpx] text-center"},{default:l((()=>[h("注:扫描二维码或点击右上角进行分享")])),_:1})])),_:1},8,["style"])])),_:1},8,["style"])):p("v-if",!0),d(i,{loading:M.value},null,8,["loading"])])),_:1},8,["style"])}}}),[["__scopeId","data-v-e0eebccf"]]);export{ae as default};