You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
3.5 KiB
11 lines
3.5 KiB
3 months ago
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/components/follow"],{"08b4":function(t,o,e){"use strict";(function(t){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;e("a230");var i=e("6975"),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}}};o.default=n}).call(this,e("df3c")["default"])},"0cf9":function(t,o,e){"use strict";var i=e("0f4e"),n=e.n(i);n.a},"0f4e":function(t,o,e){},1290:function(t,o,e){"use strict";e.r(o);var i=e("afcf"),n=e("b9fa");for(var l in n)["default"].indexOf(l)<0&&function(t){e.d(o,t,(function(){return n[t]}))}(l);e("0cf9");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},afcf: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,"a9c6"))}},n=function(){var t=this.$createElement,o=(this._self._c,this.__get_style([this.followWrapStyle])),e=this.__get_style([this.followStyle]),i=this.__get_style([this.buttonStyle]);this.$mp.data=Object.assign({},{$root:{s0:o,s1:e,s2:i}})},l=[]},b9fa:function(t,o,e){"use strict";e.r(o);var i=e("08b4"),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}}]);
|
||
|
;(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__("1290"))
|
||
|
})
|
||
|
},
|
||
|
[['pages/index/components/follow-create-component']]
|
||
|
]);
|