1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
| <template>
| <view class="footer flex supplier-footer">
| <view v-for="(item,index) in tabBar" :key="index" class="footer-item" :class="[flg==index?'cur':'']">
| <view class="item flex" @click="go(index,item)">
|
| <view v-if="index==0" class=" m-l-a m-r-6">
| <image src="../../static/imgs/footer/footer-home-1.png" class="footer-icon" :class="(''+index)"
| v-if="flg==0"></image>
| <image src="../../static/imgs/footer/footer-home-0.png" class="footer-icon " :class="(''+index)"
| v-if="flg!=0"></image>
| </view>
| <view v-if="index==1" class="m-l-a m-r-2">
| <image src="../../static/imgs/footer/footer-self-1.png" class="footer-icon" :class="(''+index)"
| v-if="flg==1"></image>
| <image src="../../static/imgs/footer/footer-self-0.png" class="footer-icon" :class="(''+index)"
| v-if="flg!=1"></image>
| </view>
| <view class="m-l-0 m-r-a">
| {{item.text}}
| </view>
|
|
| </view>
| </view>
|
|
| </view>
| </template>
| <script>
| export default {
| data() {
| return {
| tabBar: [
|
| {
| "pagePath": "/pages/home/supplier-home",
| "iconPath": "/static/tabbar/home.png",
| "selectedIconPath": "/static/tabbar/home_s.png",
| "text": "工作台"
| },
| {
| "pagePath": "/pages/user/supplier-user",
| "iconPath": "/static/tabbar/my.png",
| "selectedIconPath": "/static/tabbar/my_s.png",
| "text": "我的"
| }
|
| ],
| value: ''
| }
| },
| props: {
| flg: {
| type: String,
| },
| bussincess: {
| type: Boolean,
| default () {
| return false
| }
| }
| },
| created() {
|
| },
| methods: {
| go(index, item) {
| if (this.flg == ('' + index)) {
| return
| }
| uni.reLaunch({
| url: item.pagePath
|
| });
| },
|
| }
| }
| </script>
| <style lang="scss">
| @import "./main.scss";
| </style>
|
|