app-goods-preview-poster.js 2.3 KB

12345678910
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/page-component/goods/app-goods-preview-poster"],{"25b7":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"app-goods-preview-poster",components:{},props:{value:{type:Boolean,default:function(){return!1}},url:{type:String,default:function(){return""}},disabled:{type:Boolean,default:function(){return!1}}},created:function(){this.value=this.value+""},watch:{value:function(t,e){t&&this.getShareImg()}},data:function(){return{showHidden:this.value,loading:!0,shareImage:""}},methods:{showHiddenClick:function(){this.$emit("close",!1)},savePicture:function(){this.$utils.batchSave(this.shareImage,"image").then((function(e){t.showToast({title:"保存成功"})}))},getShareImg:function(){var e=this;this.url&&(this.loading=!0,this.$request({url:this.url}).then((function(n){0===n.code?(e.shareImage=n.data.pic_url,e.loading=!1):t.showModal({content:n.msg,showCancel:!1})})))},preview:function(){t.previewImage({urls:[this.shareImage]})}}};e.default=n}).call(this,n("543d")["default"])},4596:function(t,e,n){},"4de6":function(t,e,n){"use strict";n.r(e);var a=n("55f0"),u=n("ae83");for(var o in u)"default"!==o&&function(t){n.d(e,t,(function(){return u[t]}))}(o);n("dc48");var i,r=n("f0c5"),c=Object(r["a"])(u["default"],a["b"],a["c"],!1,null,"77459f9a",null,!1,a["a"],i);e["default"]=c.exports},"55f0":function(t,e,n){"use strict";var a,u=function(){var t=this,e=t.$createElement;t._self._c},o=[];n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}))},ae83:function(t,e,n){"use strict";n.r(e);var a=n("25b7"),u=n.n(a);for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=u.a},dc48:function(t,e,n){"use strict";var a=n("4596"),u=n.n(a);u.a}}]);
  2. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  3. 'components/page-component/goods/app-goods-preview-poster-create-component',
  4. {
  5. 'components/page-component/goods/app-goods-preview-poster-create-component':(function(module, exports, __webpack_require__){
  6. __webpack_require__('543d')['createComponent'](__webpack_require__("4de6"))
  7. })
  8. },
  9. [['components/page-component/goods/app-goods-preview-poster-create-component']]
  10. ]);