2025-07-24 09:53:10 +08:00

11 lines
3.8 KiB
JavaScript

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/components/follow"],{"376f":function(t,o,e){"use strict";e.d(o,"b",(function(){return i})),e.d(o,"c",(function(){return l})),e.d(o,"a",(function(){return n}));var n={easyLoadimage:function(){return e.e("components/easy-loadimage/easy-loadimage").then(e.bind(null,"1bea"))}},i=function(){var t=this,o=t.$createElement,e=(t._self._c,t.__get_style([t.followWrapStyle])),n=t.__get_style([t.followStyle]),i=t.__get_style([t.buttonStyle]),l=t.$t("关注"),a=t.followCode?t.$t("关注公众号"):null,c=t.followCode?t.$t("活动福利,第一时间了解"):null,s=t.followCode?t.$t("保存图片"):null;t.$mp.data=Object.assign({},{$root:{s0:e,s1:n,s2:i,m0:l,m1:a,m2:c,m3:s}})},l=[]},"7de5":function(t,o,e){"use strict";(function(t){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;e("d369");var n=e("2e42"),i={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="".concat(2*this.dataConfig.fillet.val,"rpx");return this.dataConfig.fillet.type&&(t="".concat(2*this.dataConfig.fillet.valList[0].val,"rpx ").concat(2*this.dataConfig.fillet.valList[1].val,"rpx ").concat(2*this.dataConfig.fillet.valList[3].val,"rpx ").concat(2*this.dataConfig.fillet.valList[2].val,"rpx")),{"border-radius":t,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,n.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(n){n.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}}};o.default=i}).call(this,e("df3c")["default"])},"7ebe":function(t,o,e){},a833:function(t,o,e){"use strict";e.r(o);var n=e("376f"),i=e("bc5e");for(var l in i)["default"].indexOf(l)<0&&function(t){e.d(o,t,(function(){return i[t]}))}(l);e("fdda");var a=e("828b"),c=Object(a["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);o["default"]=c.exports},bc5e:function(t,o,e){"use strict";e.r(o);var n=e("7de5"),i=e.n(n);for(var l in n)["default"].indexOf(l)<0&&function(t){e.d(o,t,(function(){return n[t]}))}(l);o["default"]=i.a},fdda:function(t,o,e){"use strict";var n=e("7ebe"),i=e.n(n);i.a}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'pages/index/components/follow-create-component',
{
'pages/index/components/follow-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("a833"))
})
},
[['pages/index/components/follow-create-component']]
]);