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
5.5 KiB
11 lines
5.5 KiB
3 months ago
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/pageFooter/index"],{"14a5":function(t,a,n){"use strict";(function(t){var e=n("47a9");Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var o=e(n("7ca3")),i=n("8f59"),r=n("6975"),c=n("152a"),l=n("a230");function s(t,a){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);a&&(e=e.filter((function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),n.push.apply(n,e)}return n}function u(t){for(var a=1;a<arguments.length;a++){var n=null!=arguments[a]?arguments[a]:{};a%2?s(Object(n),!0).forEach((function(a){(0,o.default)(t,a,n[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))}))}return t}var f={name:"pageFooter",props:{},computed:u(u({},(0,i.mapGetters)(["isLogin","cartNum"])),{},{txtActiveColor:function(){var t={};return this.newData.toneConfig&&this.newData.toneConfig.tabVal&&(t["color"]=this.newData.activeTxtColor.color[0].item),t},txtColor:function(){var t={};return this.newData.toneConfig&&this.newData.toneConfig.tabVal&&(t["color"]=this.newData.txtColor.color[0].item),t},bgColor:function(){var t={};return this.newData.name?(this.newData.navConfig.tabVal||(t["background"]=this.newData.bgColor.color[0].item),t):t},componentStyle:function(){var t={},a="";return this.newData.name?(this.newData.navConfig.tabVal?(a="".concat(2*this.newData.fillet.val,"rpx"),this.newData.fillet.type&&(a="".concat(2*this.newData.fillet.valList[0].val,"rpx ").concat(2*this.newData.fillet.valList[1].val,"rpx ").concat(2*this.newData.fillet.valList[3].val,"rpx ").concat(2*this.newData.fillet.valList[2].val,"rpx")),t["right"]="".concat(2*this.newData.prConfig.val,"rpx"),t["bottom"]="".concat(2*this.newData.mbConfig.val,"rpx"),t["left"]="".concat(2*this.newData.prConfig.val,"rpx"),t["padding-top"]="".concat(2*this.newData.topConfig.val,"rpx"),t["padding-bottom"]="".concat(2*this.newData.bottomConfig.val,"rpx"),t["border-radius"]=a,t["background"]=this.newData.bgColor2.color[0].item):(t["padding-top"]="".concat(2*this.newData.topConfig.val,"rpx"),t["padding-bottom"]="".concat(2*this.newData.bottomConfig.val,"rpx"),t["background"]=this.newData.bgColor.color[0].item),t):t}}),created:function(){var t=getCurrentPages(),a=t[t.length-1].route;this.activeRouter="/"+a},mounted:function(){this.navigationInfo(),this.isLogin&&this.getCartNum()},data:function(){return{newData:{},activeRouter:"",showTabBar:!1,footerHeight:0}},methods:{setNavigationInfo:function(a){this.newData=a,this.showTabBar=a.effectConfig.tabVal;var n=a.topConfig.val+a.bottomConfig.val;this.$emit("newDataStatus",a.effectConfig.tabVal,n),a.effectConfig.tabVal?t.hideTabBar():t.showTabBar()},getNavigationInfo:function(){var a=this;(0,r.getNavigation)().then((function(n){t.setStorageSync("diyVersionNav",n.data),a.setNavigationInfo(n.data)}))},navigationInfo:function(){var a=this,n=t.getStorageSync("footerNavigation");n?(0,l.getDiyVersion)(0).then((function(e){var o=t.getStorageSync("diyVersionNav");e.data.version+"0"===o?a.setNavigationInfo(n):(t.setStorageSync("diyVersionNav",e.data.version+"0"),a.getNavigationInfo())})):this.getNavigationInfo()},goRouter:function(a){var n=getCurrentPages(),e=n[n.length-1].$page.fullPath;a.link!=e&&("/pages/short_video/appSwiper/index"!=a.link&&"/pages/short_video/nvueSwiper/index"!=a.link||(a.link="/pages/short_video/nvueSwiper/index"),t.switchTab({url:a.link,fail:function(n){t.redirectTo({url:a.link})}}))},getCartNum:function(){var t=this;(0,c.getCartCounts)().then((function(a){t.$store.commit("indexData/setCartNum",a.data.count+"")})).catch((function(t){}))}}};a.default=f}).call(this,n("df3c")["default"])},"8ca2":function(t,a,n){"use strict";n.d(a,"b",(function(){return o})),n.d(a,"c",(function(){return i})),n.d(a,"a",(function(){return e}));var e={uniBadge:function(){return n.e("uni_modules/uni-badge/components/uni-badge/uni-badge").then(n.bind(null,"e7b9"))}},o=function(){var
|
||
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||
|
'components/pageFooter/index-create-component',
|
||
|
{
|
||
|
'components/pageFooter/index-create-component':(function(module, exports, __webpack_require__){
|
||
|
__webpack_require__('df3c')['createComponent'](__webpack_require__("9dbb"))
|
||
|
})
|
||
|
},
|
||
|
[['components/pageFooter/index-create-component']]
|
||
|
]);
|