mall_client/zyhs3_uniapp/pages/interaction/modules/publish.vue

56 lines
1.2 KiB
Vue
Raw Normal View History

2026-03-13 07:50:35 +00:00
<template>
<view style="height: 100%;">
<!-- #ifdef APP-PLUS -->
<v-tabs :tabs="tabs" :value="current" fontSize="30rpx" height="90rpx" :fixed="true" :scroll="false" @change="tabsChange"></v-tabs>
<scroll-view scroll-y="true" style="height: 100%;">
<view v-if="current === 0">
<send-video></send-video>
<view style="height: 180px;"></view>
</view>
<view v-else>
<view style="height: 30rpx;"></view>
<send-dynamic></send-dynamic>
</view>
</scroll-view>
<!-- #endif -->
<!-- #ifndef APP-PLUS -->
<send-dynamic></send-dynamic>
<!-- #endif -->
</view>
</template>
<script>
import vTabs from "@/components/v-tabs/v-tabs.vue"
import sendDynamic from "../add.vue"
// #ifdef APP-PLUS
import sendVideo from "../../video/sendVideo.vue"
// #endif
export default{
components: {
vTabs,
// #ifdef APP-PLUS
sendVideo,
// #endif
sendDynamic
},
data(){
return {
statusBarHeight: uni.getSystemInfoSync().statusBarHeight, // 状态栏高度
// #ifdef APP-PLUS
tabs: ["发布视频", "发布动态"],
// #endif
current: 0
}
},
methods:{
tabsChange(e){
this.current = e
}
}
}
</script>
<style>
</style>