bztang-admin/addons/yun_shop/static/app/js/chunk-8867d8f6.4bc5c687.js

1 line
3.0 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8867d8f6"],{"0fd09":function(t,o,e){"use strict";e.r(o);var i,n=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",{staticClass:"content"},[e("c-title",{attrs:{hide:!1,text:"微店二维码"}}),e("div",{staticClass:"microshop flex-j-c flex-a-c"},[e("view",{staticClass:"microshop-box"}),e("div",{staticClass:"qr-code ",on:{touchstart:function(o){return t.touchStart()},touchend:function(o){return t.touchEnd()}}},[e("img",{attrs:{src:t.qrCode}})]),e("p",[t._v("扫描微店二维码,跳转至微店页面")])])],1)},c=[],a=e("ade3"),r=(e("b0c0"),e("6968")),s=(i={components:{cTitle:r["a"]},name:""},Object(a["a"])(i,"components",{}),Object(a["a"])(i,"data",(function(){return{shopId:"",qrCode:"",Loop:""}})),Object(a["a"])(i,"computed",{}),Object(a["a"])(i,"watch",{}),Object(a["a"])(i,"methods",{touchEnd:function(){clearTimeout(this.Loop)},touchStart:function(){var t=this;clearTimeout(this.Loop),this.Loop=setTimeout((function(){t.downImg()}),1e3)},downImg:function(){window.plus&&plus.gallery.save(this.imgUrl,(function(){}),(function(){}))},posterImg:function(){var t=this;$http.get("plugin.micro.frontend.controllers.MicroShop.index.poster",{shop_id:this.shopId,basic_info:1},"加载中").then((function(o){if(1==o.result){var e=o.basic_info,i=o.data;t.qrCode=i.qr_code,t.$nextTick((function(){var o,i;t.fun.wxShare("",{mid:t.fun.getKeyByMid()},{link:window.location.href,title:null===e||void 0===e||null===(o=e.home.mailInfo)||void 0===o?void 0:o.name,imgUrl:null===e||void 0===e||null===(i=e.home.mailInfo)||void 0===i?void 0:i.logo_url,description:""})}),50)}}),(function(t){}))}}),Object(a["a"])(i,"created",(function(){this.shopId=this.$route.params.shop_id,this.shopId&&this.posterImg()})),Object(a["a"])(i,"mounted",(function(){})),Object(a["a"])(i,"beforeCreate",(function(){})),Object(a["a"])(i,"beforeMount",(function(){})),Object(a["a"])(i,"beforeUpdate",(function(){})),Object(a["a"])(i,"updated",(function(){})),Object(a["a"])(i,"beforeDestroy",(function(){})),Object(a["a"])(i,"destroyed",(function(){})),Object(a["a"])(i,"activated",(function(){})),i),u=s,d=(e("6f52"),e("2877")),l=Object(d["a"])(u,n,c,!1,null,"117482a4",null);o["default"]=l.exports},"1b13":function(t,o,e){var i=e("24fb");o=i(!1),o.push([t.i,".microshop[data-v-117482a4]{margin:1.25rem auto;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.microshop p[data-v-117482a4]{padding:1.25rem 0 0 0;font-size:1rem}.microshop-box[data-v-117482a4]{height:1.25rem;clear:both}.qr-code[data-v-117482a4]{display:inline-block;background-color:#fff}.qr-code img[data-v-117482a4]{width:100%;height:auto;display:block}",""]),t.exports=o},6018:function(t,o,e){var i=e("1b13");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=e("499e").default;n("217b0a6e",i,!0,{sourceMap:!1,shadowMode:!1})},"6f52":function(t,o,e){"use strict";e("6018")}}]);