(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["subpackage/diyComponents/follow"],{"0420":function(t,o,e){"use strict";e.r(o);var i=e("f31e"),n=e.n(i);for(var l in i)["default"].indexOf(l)<0&&function(t){e.d(o,t,(function(){return i[t]}))}(l);o["default"]=n.a},"253b":function(t,o,e){},"6d7e":function(t,o,e){"use strict";e.d(o,"b",(function(){return n})),e.d(o,"c",(function(){return l})),e.d(o,"a",(function(){return i}));var i={easyLoadimage:function(){return e.e("components/easy-loadimage/easy-loadimage").then(e.bind(null,"94dd"))}},n=function(){var t=this,o=t.$createElement,e=(t._self._c,t.dataConfig.isHide?null:t.__get_style([t.followWrapStyle])),i=t.dataConfig.isHide?null:t.__get_style([t.followStyle]),n=t.dataConfig.isHide?null:t.__get_style([t.buttonStyle]);t.$mp.data=Object.assign({},{$root:{s0:e,s1:i,s2:n}})},l=[]},"9d0f4":function(t,o,e){"use strict";var i=e("253b"),n=e.n(i);n.a},aa6a:function(t,o,e){"use strict";e.r(o);var i=e("6d7e"),n=e("0420");for(var l in n)["default"].indexOf(l)<0&&function(t){e.d(o,t,(function(){return n[t]}))}(l);e("9d0f4");var a=e("828b"),c=Object(a["a"])(n["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);o["default"]=c.exports},f31e:function(t,o,e){"use strict";(function(t){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;e("360a");var i=e("48a0"),n={name:"follow",props:{dataConfig:{type:Object,default:function(){}},isSortType:{type:String|Number,default:0}},data:function(){return{followCode:!1,followUrl:"",bgColor:"",imgConfig:"",mbConfig:0,themeColor:"",titleConfig:0,subscribe:!1}},computed:{buttonStyle:function(){return{"border-color":this.dataConfig.themeColor.color[0].item,color:this.dataConfig.themeColor.color[0].item}},followStyle:function(){var t=[];if(this.dataConfig.fillet.type)for(var o=0;o<this.dataConfig.fillet.valList.length;o++)t.push("".concat(2*this.dataConfig.fillet.valList[o].val,"rpx"));else t=["".concat(2*this.dataConfig.fillet.val,"rpx")];return{"border-radius":t.join(" "),background:"linear-gradient(90deg, ".concat(this.dataConfig.bgColor.color[0].item," 0%, ").concat(this.dataConfig.bgColor.color[1].item," 100%)"),color:this.dataConfig.themeColor.color[0].item}},followWrapStyle:function(){return{padding:"0 ".concat(2*this.dataConfig.prConfig.val,"rpx"),"margin-top":"".concat(2*this.dataConfig.mbConfig.val,"rpx")}}},created:function(){},mounted:function(){var t=this;(0,i.getSubscribe)().then((function(o){t.subscribe=o.data.subscribe||!1})).catch((function(){}))},methods:{savePic:function(){var o=this;t.downloadFile({url:o.dataConfig.codeConfig.url,success:function(e){t.getSetting({success:function(i){i.authSetting["scope.writePhotosAlbum"]?t.saveImageToPhotosAlbum({filePath:e.tempFilePath,success:function(t){o.closeFollowCode(),o.$util.Tips({title:"保存成功",icon:"success"})},fail:function(t){o.$util.Tips({title:"保存失败"})}}):t.authorize({scope:"scope.writePhotosAlbum",success:function(){t.saveImageToPhotosAlbum({filePath:e.tempFilePath,success:function(t){o.closeFollowCode(),o.$util.Tips({title:"保存成功",icon:"success"})},fail:function(t){o.$util.Tips({title:"保存失败"})}})}})}})}})},followTap:function(){this.followCode=!0},closeFollowCode:function(){this.followCode=!1},hideFollow:function(){this.$emit("hideFollow")}}};o.default=n}).call(this,e("df3c")["default"])}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'subpackage/diyComponents/follow-create-component',
    {
        'subpackage/diyComponents/follow-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("aa6a"))
        })
    },
    [['subpackage/diyComponents/follow-create-component']]
]);
