1.31 财务分析,财务数据模块完善,产业链桑基图展示
This commit is contained in:
1
unpackage/dist/build/mp-weixin/components/navBar/navBar.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/components/navBar/navBar.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),t=require("../../common/assets.js");getApp();const a={name:"navBar",data(){return{navH:e.inject("navHeight"),menuH:e.inject("menuHeight"),navBarStyle:"",backTitleStyle:"",navTitleStyle:"",titleColor:this.navTitleColor,bgColor:this.navBgColor,num:this.peopleNum}},props:{leftText:{type:String,default:""},backBlack:{type:Boolean,default:!1},navTitle:{type:String,default:""},navBgColor:{type:String,default:""},navTitleColor:{type:String,default:"white"},hideBack:{type:Boolean,default:!1},hideNavBg:{type:Boolean,default:!1},backLevel:{type:Number,default:1},peopleNum:{type:Number,default:0}},mounted(){let t=this.navH,a=e.inject("menuHeight"),l=e.inject("menuTop"),i=`background-color:${this.bgColor};height:${t}px;`,n=`height:${a}px;margin-top:${l}px;color:${this.titleColor}`,o=`height:${a}px;line-height:${a}px;top:${l}px;color:${this.titleColor}`;this.navBarStyle=i,this.backTitleStyle=n,this.navTitleStyle=o},watch:{navTitleColor:{handler(e,t){this.titleColor=e}},navBgColor:{handler(e,t){this.bgColor=e}},peopleNum:{handler(e,t){this.num=e}}},methods:{clickBack(){e.index.navigateBack({fail(){e.index.switchTab({url:"/pages/index/index"})}})}}};const l=e._export_sfc(a,[["render",function(a,l,i,n,o,r){return e.e({a:!i.hideNavBg},i.hideNavBg?{}:{b:t._imports_0},{c:!i.hideBack&&!i.backBlack},i.hideBack||i.backBlack?{}:{d:t._imports_1$15},{e:!i.hideBack&&i.backBlack},!i.hideBack&&i.backBlack?{f:t._imports_2}:{},{g:e.t(i.leftText),h:e.s(o.backTitleStyle),i:e.o(((...e)=>r.clickBack&&r.clickBack(...e))),j:e.t(i.navTitle),k:o.num>0},o.num>0?{l:e.t(o.num)}:{},{m:e.s(o.navTitleStyle),n:e.s(o.navBarStyle)})}]]);wx.createComponent(l);
|
||||
4
unpackage/dist/build/mp-weixin/components/navBar/navBar.json
vendored
Normal file
4
unpackage/dist/build/mp-weixin/components/navBar/navBar.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/components/navBar/navBar.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/components/navBar/navBar.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="nav flex fixed" style="{{n}}"><image wx:if="{{a}}" class="bg absolute" src="{{b}}" mode="widthFix"></image><view class="backC relative flex" style="{{h}}" bindtap="{{i}}"><image wx:if="{{c}}" class="icon" src="{{d}}" mode="widthFix"></image><image wx:if="{{e}}" class="icon" src="{{f}}" mode="widthFix"></image><text class="title">{{g}}</text></view><view class="titleC relative" style="{{m}}">{{j}} <view wx:if="{{k}}" class="peopleNum absolute"><view class="num">{{l}}人</view></view></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/components/navBar/navBar.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/components/navBar/navBar.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.nav{top:0;left:0;right:0;z-index:99;overflow:hidden}.nav .bg{top:0;left:0;width:100%;height:auto}.nav .backC{padding:0 25rpx}.nav .backC .icon{margin-right:12rpx;width:32rpx;height:auto}.nav .title{font-size:36rpx;font-weight:700}.nav .titleC{position:absolute;left:calc((100% - 400rpx)/2);width:400rpx;white-space:nowrap;text-overflow:ellipsis;text-align:center;font-size:36rpx;font-weight:500}.nav .titleC .peopleNum{background-color:#3b9174;top:-15rpx;left:270rpx;height:30rpx;border-radius:15px 15px 15px 0;line-height:30rpx;font-size:24rpx;color:#fff}.nav .titleC .peopleNum .num{margin:0 16rpx}
|
||||
Reference in New Issue
Block a user