setting-system-subscribe.72459b5d.js 3.0 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["setting-system-subscribe"],{"19cc":function(t,e,n){"use strict";n.r(e);var o=n("30bc"),i=n.n(o);for(var s in o)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(s);e["default"]=i.a},"2e0f":function(t,e,n){var o=n("6b42");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=n("967d").default;i("19728d2e",o,!0,{sourceMap:!1,shadowMode:!1})},"30bc":function(t,e,n){"use strict";n("6a54");var o=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n("d630")),s=o(n("7225")),c={data:function(){return{tmplIds:"",showSubscribe:!0}},onLoad:function(){this.onSubscribe()},onReady:function(){var t=this;this.$nextTick((function(){var e=t.$refs.subscribeBtn;e.addEventListener("success",(function(e){var n=e.detail;console.log("success1",n),t.clickSubscribe()})),e.addEventListener("error",(function(e){var n=e.detail;console.log("fail1",n),t.clickSubscribe()}))}))},methods:{onSubscribe:function(){var t=this;s.default.getWechatSubscribeNotice().then((function(e){console.log(i.default,"wx"),t.tmplIds=e.data.tmplIds,i.default.config({beta:!0,debug:!1,appId:e.data.appId,timestamp:e.data.timestamp,nonceStr:e.data.nonceStr,signature:e.data.signature,jsApiList:[],openTagList:["wx-open-subscribe"]}),i.default.ready((function(){console.log(i.default,"wx")})),i.default.error((function(t){console.log(t,"errpr")}))}))},clickSubscribe:function(){this.showSubscribe=!1}}};e.default=c},"6b42":function(t,e,n){var o=n("c86c");e=o(!1),e.push([t.i,"uni-button[data-v-7867f3d5]{background-color:#33aafc;color:#f0f8ff;margin-bottom:30px}.subscribeBlock[data-v-7867f3d5]{z-index:99999;position:fixed;width:100vw;height:100vh;left:0;right:0;top:0;bottom:0}",""]),t.exports=e},"9bf2":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var o=function(){var t=this.$createElement,e=this._self._c||t;return e("wx-open-subscribe",{ref:"subscribeBtn",staticStyle:{position:"absolute",width:"100%",top:"50px"},attrs:{id:"subscribe-btn",template:this.tmplIds}},[e("script",{attrs:{type:"text/wxtag-template"}},[this._v('<style scoped>\n .subscribe-btn {\n color: #fff;\n background-color: #07c160;\n bottom:300px;\n left:0;\n width:100%;\n height:60px;\n }\n </style>\n\t\t\t\t\t<button class="subscribe-btn">\n 模版消息订阅\n </button>')])])},i=[]},d87a:function(t,e,n){"use strict";n.r(e);var o=n("9bf2"),i=n("19cc");for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);n("e212");var c=n("828b"),a=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,"7867f3d5",null,!1,o["a"],void 0);e["default"]=a.exports},e212:function(t,e,n){"use strict";var o=n("2e0f"),i=n.n(o);i.a}}]);