3 lines
22 KiB
JavaScript
3 lines
22 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-647527f3"],{"04a1":function(t,e,r){t.exports=r.p+"static/app/img/qhm_sharepicbg@2x.5286b03c.png"},"118a5":function(t,e,r){"use strict";r("a9d7")},"1da1":function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));r("d3b7");function a(t,e,r,a,n,i,o){try{var c=t[i](o),s=c.value}catch(l){return void r(l)}c.done?e(s):Promise.resolve(s).then(a,n)}function n(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function c(t){a(o,n,i,c,s,"next",t)}function s(t){a(o,n,i,c,s,"throw",t)}c(void 0)}))}}},"25cd":function(t,e,r){var a=r("8b08");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=r("499e").default;n("4e2a1716",a,!0,{sourceMap:!1,shadowMode:!1})},4082:function(t,e,r){var a=r("24fb"),n=r("1de5"),i=r("04a1");e=a(!1);var o=n(i);e.push([t.i,".page[data-v-49967c81]{background:#f9f9f9;min-height:100vh;padding-bottom:3.0625rem}.wrapper[data-v-49967c81]{width:21.813rem;background-color:#fff;border-radius:1.125rem;margin-top:1rem;padding-bottom:.875rem;margin-left:.781rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.wrapper .img[data-v-49967c81]{margin-top:1.625rem;width:15.719rem;height:15.719rem;border:1px dashed #c0ccda;padding:.3rem}.wrapper .img img[data-v-49967c81]{width:100%;height:100%}.wrapper .desc[data-v-49967c81],.wrapper .not-join[data-v-49967c81]{margin-top:.75rem;font-size:.875rem;font-weight:400;font-stretch:normal;line-height:1.5rem;letter-spacing:.044rem;color:#333}.wrapper .not-join[data-v-49967c81]{color:#e87d75}.wrapper .tips[data-v-49967c81]{margin-top:.419rem;font-size:.875rem;font-weight:400;font-stretch:normal;line-height:1.5rem;letter-spacing:.044rem;color:#999}.wrapper .hr[data-v-49967c81]{padding-top:1.938rem;margin:0 auto;width:20.781rem;border-bottom:1px dashed #c0ccda}.wrapper .opts[data-v-49967c81]{margin-top:1.094rem;width:100%;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}.wrapper .opts[data-v-49967c81],.wrapper .opts .opt .iconfont[data-v-49967c81]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.wrapper .opts .opt .iconfont[data-v-49967c81]{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:2.75rem;height:2.75rem;border-radius:50%}.wrapper .opts .opt .icon-share[data-v-49967c81]{background-color:#dee9ff;color:#3678ff}.wrapper .opts .opt .icon-qhm_service[data-v-49967c81]{background-color:#adf1da;color:#00b075}.wrapper .opts .opt .icon-qhm_shuoming[data-v-49967c81]{background-color:#ddd;color:#838383}.wrapper .opts .opt p[data-v-49967c81]{margin-top:.563rem;font-size:.875rem}.qrCodeTips[data-v-49967c81],.wrapper .opts .opt p[data-v-49967c81]{font-weight:400;font-stretch:normal;line-height:1.5rem;letter-spacing:0;color:#666}.qrCodeTips[data-v-49967c81]{text-align:left;margin-top:.656rem;font-size:.75rem;margin-left:.781rem;padding-bottom:3rem}.explainWrapper[data-v-49967c81]{width:21.25rem;max-height:24rem;background-color:#fff;border-radius:1.531rem;padding-bottom:3rem;-webkit-transition:.3s;transition:.3s;padding-top:.5rem}.explainWrapper .header[data-v-49967c81]{height:2.596rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;position:relative}.explainWrapper .header .img[data-v-49967c81]{width:2.25rem;height:2.25rem;margin-right:.625rem}.explainWrapper .header .img canvas[data-v-49967c81],.explainWrapper .header .img img[data-v-49967c81]{width:2.25rem;height:2.25rem;border-radius:50%}.explainWrapper .header .title[data-v-49967c81]{font-size:1rem;letter-spacing:.05rem;color:#000}.explainWrapper .header .icon-guanbi[data-v-49967c81]{position:absolute;top:.875rem;right:1.25rem;color:#000}.explainWrapper .content[data-v-49967c81]{max-height:20rem;padding:.5rem 1rem;font-size:.875rem;letter-spacing:.066rem;color:#666;text-align:left;text-indent:1.75rem;line-height:1.5rem}.explainWrapper .img[data-v-49967c81]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:100%;height:14rem}.explainWrapper .img img[data-v-49967c81]{width:13rem;height:13rem}.explainWrapper .kf_guide[data-v-49967c81]{max-height:3rem;padding-top:.506rem;padding-left:2.688rem;padding-right:2.688rem;font-size:.875rem;letter-spacing:0;color:#666;overflow-y:scroll}.shareWrapper[data-v-49967c81]{height:29rem;width:18rem}.shareWrapper .imgContent[data-v-49967c81],.shareWrapper .imgContent img[data-v-49967c81]{width:18rem;height:25rem}.shareWrapper .divContent[data-v-49967c81]{width:18rem;height:25rem;padding:3rem 1rem;background-image:url("+o+");background-size:cover}.shareWrapper .divContent .header[data-v-49967c81]{height:8rem;width:16rem}.shareWrapper .divContent .header .userInfo[data-v-49967c81]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:1rem 0 0 1rem}.shareWrapper .divContent .header .userInfo .image .img[data-v-49967c81]{width:2rem;height:2rem;border-radius:50%}.shareWrapper .divContent .header .userInfo .title[data-v-49967c81]{margin-left:1rem;font-size:1rem;color:#333}.shareWrapper .divContent .header .desc[data-v-49967c81]{height:4rem;text-align:left;padding:.3rem 1rem 2rem 1rem;color:#999;overflow:hidden;text-overflow:ellipsis}.shareWrapper .divContent .footer[data-v-49967c81]{width:7rem;height:7rem;margin-top:2rem;margin-left:1rem;background-color:red}.shareWrapper .divContent .footer .canvas[data-v-49967c81]{width:7rem;height:7rem}.shareWrapper .close[data-v-49967c81]{height:4rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.shareWrapper .close .icon-adsystem_icon_cancle[data-v-49967c81]{font-size:3rem;color:#fff;width:3rem;height:3rem}.auth-dialog[data-v-49967c81]{width:80%;padding:2rem;font-size:14px;color:#102636;text-align:left}.auth-dialog .auth-tip[data-v-49967c81]{font-weight:700;margin-bottom:1.2rem}.auth-dialog ol[data-v-49967c81]{list-style:auto;padding-left:1.2rem}.auth-dialog li[data-v-49967c81]{list-style:auto;margin-bottom:1.2rem}.auth-dialog .link-text[data-v-49967c81]{color:#6fbcaf}.auth-dialog .van-tag[data-v-49967c81]{margin:.8rem .8rem 0 0}",""]),t.exports=e},"47f4":function(t,e,r){"use strict";r("25cd")},"73f3":function(t,e,r){"use strict";var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("img",{attrs:{src:t.imgSrc,alt:""}})},n=[],i=r("53ca"),o=(r("d3b7"),r("b64b"),r("d055")),c=r.n(o),s={data:function(){return{imgSrc:""}},created:function(){},methods:{createQrc:function(t){var e=this;return new Promise((function(r,a){var n="i="+e.fun.getKeyByI();if(n+="&mid="+e.fun.getKeyByMid(),"object"==Object(i["a"])(t)&&Object.keys(t).length>=1)for(var o in t)n+="&"+o+"="+t[o];var s=e.fun.getSiteRoot()+"/addons/yun_shop/?menu#/member/groupCodeLabel?"+n;c.a.toDataURL(s).then((function(t){e.imgSrc=t,e.$nextTick((function(){setTimeout(r,1e3)}))}))}))}}},l=s,d=(r("47f4"),r("2877")),p=Object(d["a"])(l,a,n,!1,null,"ff1749a8",null);e["a"]=p.exports},"8b08":function(t,e,r){var a=r("24fb");e=a(!1),e.push([t.i,"canvas[data-v-ff1749a8],img[data-v-ff1749a8]{width:13rem;height:13rem}",""]),t.exports=e},a9d7:function(t,e,r){var a=r("4082");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=r("499e").default;n("2a53bf2e",a,!0,{sourceMap:!1,shadowMode:!1})},c7eb:function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));r("a4d3"),r("e01a"),r("d3b7"),r("d28b"),r("3ca3"),r("ddb0"),r("b636"),r("944a"),r("0c47"),r("23dc"),r("d9e2"),r("3410"),r("159b"),r("b0c0"),r("131a"),r("fb6a");var a=r("53ca");function n(){
|
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
n=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(F){l=function(t,e,r){return t[e]=r}}function d(t,e,r,a){var n=e&&e.prototype instanceof h?e:h,i=Object.create(n.prototype),o=new j(a||[]);return i._invoke=function(t,e,r){var a="suspendedStart";return function(n,i){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===n)throw i;return W()}for(r.method=n,r.arg=i;;){var o=r.delegate;if(o){var c=_(o,r);if(c){if(c===u)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===a)throw a="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a="executing";var s=p(t,e,r);if("normal"===s.type){if(a=r.done?"completed":"suspendedYield",s.arg===u)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(a="completed",r.method="throw",r.arg=s.arg)}}}(t,r,o),i}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(F){return{type:"throw",arg:F}}}t.wrap=d;var u={};function h(){}function f(){}function g(){}var m={};l(m,o,(function(){return this}));var v=Object.getPrototypeOf,b=v&&v(v(L([])));b&&b!==e&&r.call(b,o)&&(m=b);var w=g.prototype=h.prototype=Object.create(m);function y(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(i,o,c,s){var l=p(t[i],t,o);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==Object(a["a"])(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,c,s)}),(function(t){n("throw",t,c,s)})):e.resolve(u).then((function(t){d.value=t,c(d)}),(function(t){return n("throw",t,c,s)}))}s(l.arg)}var i;this._invoke=function(t,r){function a(){return new e((function(e,a){n(t,r,e,a)}))}return i=i?i.then(a,a):a()}}function _(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator["return"]&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var a=p(r,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,u;var n=a.arg;return n?n.done?(e[t.resultName]=n.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):n:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function L(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,n=function e(){for(;++a<t.length;)if(r.call(t,a))return e.value=t[a],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:W}}function W(){return{value:void 0,done:!0}}return f.prototype=g,l(w,"constructor",g),l(g,"constructor",f),f.displayName=l(g,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},y(x.prototype),l(x.prototype,c,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,a,n,i){void 0===i&&(i=Promise);var o=new x(d(e,r,a,n),i);return t.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},y(w),l(w,s,"Generator"),l(w,o,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var a=e.pop();if(a in t)return r.value=a,r.done=!1,r}return r.done=!0,r}},t.values=L,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function a(r,a){return o.type="throw",o.arg=t,e.next=r,a&&(e.method="next",e.arg=void 0),!!a}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(t,e){for(var a=this.tryEntries.length-1;a>=0;--a){var n=this.tryEntries[a];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,u):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),u},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),u}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var a=r.completion;if("throw"===a.type){var n=a.arg;C(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},t}},f743:function(t,e,r){"use strict";r.r(e);var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"page"},[r("c-title",{attrs:{text:t.group_code.code_name||"群活码"}}),r("div",{staticClass:"notice"},[r("van-notice-bar",{attrs:{"left-icon":"volume-o",text:t.group_code.code_guide}})],1),r("div",{staticClass:"wrapper"},[r("div",{staticClass:"img"},[r("img",{attrs:{src:t.groupCodeInfo.code_url_img,alt:""}})]),1==t.groupCodeInfo.code_type&&0==t.groupCodeInfo.is_can_join?r("p",{staticClass:"not-join"},[t._v("所有群已经满员,请联系客服!")]):t._e(),0==t.groupCodeInfo.code_type?r("p",{staticClass:"desc"},[t._v("该二维码"+t._s(t.groupCodeInfo.expire)+"前有效")]):t._e(),r("p",{staticClass:"tips"},[t._v("长按识别二维码")]),r("p",{staticClass:"hr"}),r("div",{staticClass:"opts"},[r("div",{staticClass:"opt",on:{click:function(e){t.shareFlag=!0}}},[r("i",{staticClass:"iconfont icon-share"}),r("p",[t._v("分享")])]),r("div",{staticClass:"opt",on:{click:function(e){t.kfFlag=!0}}},[r("i",{staticClass:"iconfont icon-qhm_service"}),r("p",[t._v("客服")])]),t.group_code.explain?r("div",{staticClass:"opt",on:{click:function(e){t.explainFlag=!0}}},[r("i",{staticClass:"iconfont icon-qhm_shuoming"}),r("p",[t._v("说明")])]):t._e()])]),r("p",{staticClass:"qrCodeTips"},[t._v("注:若二维码无法进入,请联系客服")]),r("van-overlay",{attrs:{show:t.shareFlag},on:{click:function(e){t.shareFlag=!1}}},[r("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center",height:"100%"}},[r("transition",{attrs:{name:"van-slide-up"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:t.shareFlag,expression:"shareFlag"}],staticClass:"shareWrapper",on:{click:function(t){t.stopPropagation()}}},[t.qrCodeCanvasSrc?r("div",{staticClass:"imgContent"},[r("img",{attrs:{src:t.qrCodeCanvasSrc,alt:""}})]):r("div",{staticClass:"divContent"},[r("div",{staticClass:"header"},[r("div",{staticClass:"userInfo"},[r("div",{staticClass:"image"},[t.groupCodeInfo.member_id?r("img",{staticClass:"img",attrs:{src:t.groupCodeInfo.has_one_member.avatar_image,alt:"图片无效"}}):r("img",{staticClass:"img",attrs:{src:t.shop_log,alt:"图片无效"}})]),r("div",{staticClass:"title"},[t._v(t._s(t.group_code.code_name))])]),r("div",{staticClass:"desc"},[t._v(" "+t._s(t.group_code.code_guide)+" ")])]),r("div",{staticClass:"footer"},[r("share-canvas",{ref:"share_canvas",staticClass:"canvas"})],1)]),r("div",{staticClass:"close"},[r("i",{staticClass:"iconfont icon-adsystem_icon_cancle",on:{click:function(e){t.shareFlag=!1}}})])])])],1)]),r("van-overlay",{attrs:{show:t.kfFlag},on:{click:function(e){t.kfFlag=!1}}},[r("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center",height:"100%"}},[r("transition",{attrs:{name:"van-slide-up"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:t.kfFlag,expression:"kfFlag"}],staticClass:"explainWrapper",on:{click:function(t){t.stopPropagation()}}},[r("div",{staticClass:"header"},[r("div",{staticClass:"title"},[t._v("客服")]),r("i",{staticClass:"iconfont icon-guanbi",on:{click:function(e){t.kfFlag=!1}}})]),r("div",{staticClass:"img"},[r("img",{attrs:{src:t.group_code.customer_service_img,alt:""}})]),r("div",{staticClass:"kf_guide"},[t._v(" "+t._s(t.group_code.customer_service_guide)+" ")])])])],1)]),r("van-overlay",{attrs:{show:t.explainFlag,"lock-scroll":!1},on:{click:function(e){t.explainFlag=!1}}},[r("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center",height:"100%"}},[r("transition",{attrs:{name:"van-slide-up"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:t.explainFlag,expression:"explainFlag"}],staticClass:"explainWrapper",on:{click:function(t){t.stopPropagation()}}},[r("div",{staticClass:"header"},[r("div",{staticClass:"title"},[t._v("说明")]),r("i",{staticClass:"iconfont icon-guanbi",on:{click:function(e){t.explainFlag=!1}}})]),r("div",{staticClass:"content",attrs:{id:"a_content"},domProps:{innerHTML:t._s(t.group_code.explain_content)}})])])],1)]),r("van-popup",{staticClass:"auth-dialog",attrs:{round:""},on:{"click-overlay":t.onCloseAuthDialog},model:{value:t.showAuthDialog,callback:function(e){t.showAuthDialog=e},expression:"showAuthDialog"}},[r("p",{staticClass:"auth-tip"},[t._v("您不满足进群条件,加入当前的群需要满足一下条件:")]),t.openAuthData?r("ol",[t.openAuthData.pay.is_open?r("li",[t._v(" 累计消费金额满"+t._s(t.openAuthData.pay.data)+"元! "),r("span",{staticClass:"link-text",on:{click:function(e){return t.toPage("home")}}},[t._v("去消费")])]):t._e(),t.openAuthData.member_level.is_open?r("li",[t._v(" 升级到 "),r("span",[t._v(t._s(t.levelNames))]),r("span",{staticClass:"link-text",on:{click:function(e){return t.toPage("MemberGradeList")}}},[t._v("查看会员级别")])]):t._e(),t.openAuthData.member_tags.is_open?r("li",[t._v(" 获得以下标签身份: "),r("div",t._l(t.openAuthData.member_tags.data,(function(e,a){return r("van-tag",{key:a,attrs:{plain:"",type:"primary"}},[t._v(t._s(e.title))])})),1)]):t._e(),t.openAuthData.goods.is_open?r("li",[t._v(" 购买指定商品 "),r("span",{staticClass:"link-text",on:{click:function(e){return t.toPage("groupCodeGoodsList",{id:t.$route.query.groupCodeId})}}},[t._v("查看商品")])]):t._e()]):t._e()])],1)},n=[],i=r("c7eb"),o=(r("e7e5"),r("d399")),c=r("1da1"),s=(r("d3b7"),r("159b"),r("73f3")),l={components:{shareCanvas:s["a"]},data:function(){return{explainFlag:!1,kfFlag:!1,shareFlag:!1,groupCodeInfo:{},group_code:{},shop_log:"",qrCodeCanvasSrc:"",openAuthData:null,showAuthDialog:!1}},activated:function(){this.getGroupCodeShowInfo(),this.getSharePoster()},created:function(){},mounted:function(){},methods:{getGroupCodeShowInfo:function(){var t=this;return Object(c["a"])(Object(i["a"])().mark((function e(){var r,a;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o["a"].loading({message:"加载中",forbidClick:!0}),r={id:t.$route.query.groupCodeId},t.$route.query.groupCodeLabel&&!t.fun.isTextEmpty(t.$route.query.groupCodeLabel)&&(r.label=t.$route.query.groupCodeLabel),e.next=5,$http.get("plugin.group-code.api.group-code.get-group-code-data",r);case 5:if(a=e.sent,o["a"].clear(),!a.data||!a.data.status){e.next=11;break}return t.openAuthData=a.data.auth_data,t.showAuthDialog=!0,e.abrupt("return");case 11:if(1===a.result){e.next=14;break}return t.$toast(a.msg),e.abrupt("return",t.$dialog.alert({title:"提示",message:a.msg}).then((function(){window.history.length<=1?t.$router.push(t.fun.getUrl("home",{})):t.$router.go(-1)})));case 14:t.shop_log=a.data.shop_log,t.groupCodeInfo=a.data.data,t.group_code=t.groupCodeInfo.group_code||{},t.fun.setWXTitle(t.group_code.code_name);case 18:case"end":return e.stop()}}),e)})))()},getSharePoster:function(){var t=this;return Object(c["a"])(Object(i["a"])().mark((function e(){var r;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,$http.get("plugin.group-code.api.group-code.get-share-poster",{id:t.$route.query.groupCodeId});case 2:r=e.sent,1==r.result?t.qrCodeCanvasSrc=r.data.image_url:Object(o["a"])(r.msg);case 4:case"end":return e.stop()}}),e)})))()},onCloseAuthDialog:function(){this.$router.go(-1)},toPage:function(t,e){this.$router.push(this.fun.getUrl(t,e))}},computed:{levelNames:function(){var t=this,e="";return this.openAuthData.member_level.data.forEach((function(r,a){e+="[".concat(r.level_name,"]"),e+=a<t.openAuthData.member_level.data.length-1?"、":" "})),e}},watch:{shareFlag:function(t,e){}}},d=l,p=d,u=(r("118a5"),r("2877")),h=Object(u["a"])(p,a,n,!1,null,"49967c81",null);e["default"]=h.exports}}]); |