Skip to content

Commit 3009f43

Browse files
committed
style: 移除不必要的条件编译
1 parent 3da06be commit 3009f43

2 files changed

Lines changed: 6 additions & 15 deletions

File tree

‎pages/tabBar/API/API.vue‎

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
<template>
2-
<!-- #ifndef MP-ALIPAY || MP-TOUTIAO -->
32
<view>
43
<template v-if="showSetTabBarPage">
54
<set-tab-bar @unmount="leaveSetTabBarPage"></set-tab-bar>
65
</template>
76
<template v-else>
8-
<!-- #endif -->
97
<view class="uni-padding-wrap uni-common-pb">
108
<view class="uni-header-logo">
11-
<image src="../../../static/apiIndex.png"></image>
9+
<image src="/static/apiIndex.png"></image>
1210
</view>
1311
<view class="uni-hello-text uni-common-pb">
14-
以下将演示uni-app接口能力,详细文档见:<u-link :href="'https://uniapp.dcloud.io/api/'" :text="'https://uniapp.dcloud.io/api/'" :inWhiteList="true"></u-link>
12+
以下将演示uni-app接口能力,详细文档见:<u-link :href="'https://uniapp.dcloud.io/api/'" :text="'https://uniapp.dcloud.io/api/'"
13+
:inWhiteList="true"></u-link>
1514
</view>
1615
<view class="uni-card" v-for="(list,index) in lists" :key="index">
1716
<view class="uni-list">
@@ -30,25 +29,17 @@
3029
</view>
3130
</view>
3231
</view>
33-
<!-- #ifndef MP-ALIPAY || MP-TOUTIAO -->
3432
</template>
3533
</view>
36-
<!-- #endif -->
3734
</template>
3835
<script>
39-
// #ifndef MP-ALIPAY || MP-TOUTIAO
4036
import setTabBar from '@/components/api-set-tabbar.vue';
41-
// #endif
42-
import uLink from "@/components/uLink.vue"
37+
import uLink from '@/components/uLink.vue'
4338
export default {
44-
// #ifndef MP-ALIPAY || MP-TOUTIAO
4539
components: {
46-
// #ifndef MP-ALIPAY || MP-TOUTIAO
47-
setTabBar,
48-
// #endif
40+
setTabBar,
4941
uLink
5042
},
51-
// #endif
5243
data() {
5344
// 暂时这么写,后面看怎么优化。
5445
let mediaPages = [{

‎pages/tabBar/component/component.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<view class="uni-padding-wrap uni-common-pb">
33
<view class="uni-header-logo">
4-
<image src="../../../static/componentIndex.png"></image>
4+
<image src="/static/componentIndex.png"></image>
55
</view>
66
<view class="uni-hello-text uni-common-pb">
77
uni-app内置组件,展示样式仅供参考,文档详见<u-link :href="'https://uniapp.dcloud.io/component/'" :text="'https://uniapp.dcloud.io/component/'" :inWhiteList="true"></u-link>

0 commit comments

Comments
 (0)