122 lines
2.7 KiB
Vue
Raw Permalink Normal View History

2025-06-06 03:08:19 +08:00
<template>
<view>
<nav-bar backState="2000" title="新增功能"></nav-bar>
<!-- 公共组件-每个页面必须引入 -->
<public-module></public-module>
<view class="time">版本1.0.7</view>
<view class="nav_list" @click="onPageJump('/pages/template/goodsPoster')">
<image src="../../static/demo/icon_case.png" mode="aspectFit"></image>
<text>商品海报生成</text>
</view>
<view class="nav_list" @click="onTokenJump('/pages/template/scanCode')">
<image src="../../static/demo/icon_case.png" mode="aspectFit"></image>
<text>推广海报生成</text>
</view>
<view class="time">版本1.0.6</view>
<view class="nav_list" @click="onPageJump('/pages/template/editInfo')">
<image src="../../static/demo/icon_case.png" mode="aspectFit"></image>
<text>个人信息</text>
</view>
<view class="time">版本1.0.5</view>
<view class="nav_list" @click="onPageJump('/pages/demo/waterfall/common')">
<image src="../../static/demo/icon_case.png" mode="aspectFit"></image>
<text>瀑布流列表</text>
</view>
<view class="nav_list" @click="onPageJump('/pages/demo/shortVideo')">
<image src="../../static/demo/icon_case.png" mode="aspectFit"></image>
<text>防抖音滑动视频带进度加载(微信小程序H5)</text>
</view>
<z-navigation></z-navigation>
</view>
</template>
<script>
import zNavigation from '@/components/module/navigation.vue';
export default {
components: {
zNavigation
},
data() {
return {};
},
//第一次加载
onLoad(e) {
// 隐藏原生的tabbar
uni.hideTabBar();
},
//页面显示
onShow() {
// 隐藏原生的tabbar
uni.hideTabBar();
},
//方法
methods: {
onPageJump(url) {
uni.navigateTo({
url: url
});
},
onTokenJump(url) {
this.judgeLogin(() => {
uni.navigateTo({
url: url
});
});
}
},
//页面隐藏
onHide() {},
//页面卸载
onUnload() {},
//页面下来刷新
onPullDownRefresh() {},
//页面上拉触底
onReachBottom() {},
//用户点击分享
onShareAppMessage(e) {
return this.wxShare();
}
};
</script>
<style lang="scss" scoped>
@import '@/style/mixin.scss';
.nav_list {
background-color: #fff;
padding: 30upx;
display: flex;
align-items: center;
position: relative;
margin-bottom: 10upx;
&:active {
background-color: #f5f5f5;
}
image {
width: 40upx;
height: 40upx;
}
text {
font-size: 28upx;
color: #333;
margin-left: 30upx;
}
&::after {
content: '';
position: absolute;
right: 30upx;
top: 50%;
transform: translateY(-50%);
width: 40upx;
height: 40upx;
background-image: url('../../static/demo/icon_right.png');
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
}
}
.time {
padding: 20upx 30upx;
font-size: 24rpx;
color: #666;
}
</style>