47 lines
1.3 KiB
Vue
47 lines
1.3 KiB
Vue
<template>
|
|
<view>
|
|
<basics v-if="PageCur=='basics'"></basics>
|
|
<components v-if="PageCur=='component'"></components>
|
|
<plugin v-if="PageCur=='plugin'"></plugin>
|
|
<view class="cu-bar tabbar bg-white shadow foot">
|
|
<view class="action" @click="NavChange" data-cur="basics">
|
|
<view class='cuIcon-cu-image'>
|
|
<image :src="'/static/tabbar/basics' + [PageCur=='basics'?'_cur':''] + '.png'"></image>
|
|
</view>
|
|
<view :class="PageCur=='basics'?'text-cyan':'text-gray'">概览</view>
|
|
</view>
|
|
<view class="action" @click="NavChange" data-cur="component">
|
|
<view class='cuIcon-cu-image'>
|
|
<image :src="'/static/tabbar/component' + [PageCur == 'component'?'_cur':''] + '.png'"></image>
|
|
</view>
|
|
<view :class="PageCur=='component'?'text-cyan':'text-gray'">追溯</view>
|
|
</view>
|
|
<view class="action" @click="NavChange" data-cur="plugin">
|
|
<view class='cuIcon-cu-image'>
|
|
<image :src="'/static/tabbar/about' + [PageCur == 'plugin'?'_cur':''] + '.png'"></image>
|
|
</view>
|
|
<view :class="PageCur=='plugin'?'text-cyan':'text-gray'">我的</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
PageCur: 'basics',
|
|
}
|
|
},
|
|
methods: {
|
|
NavChange: function(e) {
|
|
this.PageCur = e.currentTarget.dataset.cur
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
|
|
</style>
|