第一次提交

This commit is contained in:
wangxiaowei
2025-06-11 10:21:51 +08:00
commit 52932d54b1
2341 changed files with 185283 additions and 0 deletions

View File

@ -0,0 +1,10 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/tabbar/footTabbar"],{"31b4":function(t,e,a){"use strict";a.r(e);var n=a("5b78"),i=a("45b7");for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("46ef");var o=a("828b"),u=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=u.exports},"3de6":function(t,e,a){},"45b7":function(t,e,a){"use strict";a.r(e);var n=a("e3f2"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},"46ef":function(t,e,a){"use strict";var n=a("3de6"),i=a.n(n);i.a},"5b78":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,a=(t._self._c,0!=t.detail.is_auto&&t.hasTab&&""!=t.detail.list?t.__map(t.detail.list,(function(e,a){var n=t.__get_orig(e),i=t.getRoute(),r=t.getRoute(),o=2!=t.detail.type?t.getRoute():null,u=1!=t.detail.type?t.getRoute():null;return{$orig:n,m0:i,m1:r,m2:o,m3:u}})):null);t.$mp.data=Object.assign({},{$root:{l0:a}})},i=[]},e3f2:function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={data:function(){return{activeTabber:"首页",open_liveMenu:!1,detail:{},platform:"wx",hasTab:!1}},watch:{},created:function(){var e=getCurrentPages();if(e.length){var a=e[e.length-1];"pages/index/index"==a.route&&this.$store.commit("changefootTab","首页")}this.platform=this.getPlatform(),this.detail=t.getStorageSync("TabBar"),this.getData()},methods:{hasmenu:function(){var e=this.getRoute(),a=this.detail.list.some((function(t){if(t.link_url==e)return!0}));this.hasTab=a,t.getStorageSync("TabBar").is_auto&&0!=t.getStorageSync("TabBar").is_auto&&t.hideTabBar()},getRoute:function(){var t=getCurrentPages(),e="/"+t[t.length-1].route;return"/pages/diy-page/diy-page"!=e&&"/pages/article/detail/detail"!=e||t[t.length-1]["$page"]&&(e=t[t.length-1]["$page"].fullPath),e},tabBarFunc:function(t){this.footTabberData.active!=t.text&&(this.$store.commit("changefootTab",t.text),this.gotoPage(t.link_url))},getData:function(){var e=this;e._get("index/nav",{},(function(a){e.detail=a.data.vars.data,t.setStorageSync("TabBar",a.data.vars.data),e.hasmenu()}))}}};e.default=a}).call(this,a("df3c")["default"])}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'components/tabbar/footTabbar-create-component',
{
'components/tabbar/footTabbar-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("31b4"))
})
},
[['components/tabbar/footTabbar-create-component']]
]);

View File

@ -0,0 +1,4 @@
{
"usingComponents": {},
"component": true
}

View File

@ -0,0 +1 @@
<block wx:if="{{detail.is_auto!=0&&hasTab}}"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" catchtap="__e"><view class="foot-bottom"></view><block wx:if="{{detail.list!=''}}"><view class="foot-tavbar-container d-a-c" style="{{('background:'+detail.backgroundColor||''+';')}}"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['tabBarFunc',['$0'],[[['detail.list','',index]]]]]]]}}" class="{{['item','d-c-c',(item.$orig.link_url==item.m0)?'active':'']}}" bindtap="__e"><view style="height:0;width:0;opacity:0;">{{item.m1}}</view><view class="inner d-c-c d-c"><block wx:if="{{detail.type!=2}}"><image src="{{item.$orig.link_url==item.m2?item.$orig.selectedIconPath:item.$orig.iconPath}}" mode="aspectFill"></image></block><block wx:if="{{detail.type!=1}}"><text class="text-name" style="{{(item.$orig.link_url==item.m3?'color:'+detail.textHoverColor+';':'color:'+detail.textColor+';')}}">{{item.$orig.text}}</text></block></view></view></block></view></block></view></block>

View File

@ -0,0 +1 @@
.foot-bottom{width:100%;height:98rpx;padding-bottom:env(safe-area-inset-bottom)}.foot-tavbar-container{box-shadow:0 0 6rpx 0 rgba(0,0,0,.3);position:fixed;right:0;bottom:0;left:0;height:98rpx;background:#fff;z-index:90;padding-bottom:env(safe-area-inset-bottom)}.foot-tavbar-container .item{flex:1;height:98rpx}.foot-tavbar-container .item.add-btn .inner{margin-bottom:70rpx;width:100rpx;height:100rpx;border-radius:50%;background:#e2231a;box-shadow:0 0 10rpx 0 rgba(232,38,100,.6)}.foot-tavbar-container image{width:50rpx;height:50rpx}.foot-tavbar-container .text-name{font-size:24rpx;color:#666}.foot-tavbar-container .item.active .text-name{color:#f8c341}