ppt页面修改

This commit is contained in:
zoujiandong 2026-03-05 14:50:50 +08:00
parent ddbfac11c3
commit 54f8132cee
4 changed files with 32 additions and 7 deletions

View File

@ -1,5 +1,16 @@
<template> <template>
<navBar title="我的课件" /> <!-- <navBar title="我的课件" /> -->
<view class="navbox">
<view class="status_bar"></view>
<uni-nav-bar
left-icon="left"
title="我的课件"
@clickLeft="goBack"
color="#8B2316"
:border="false"
backgroundColor="#eeeeee"
/>
</view>
<view class="my-courseware-page"> <view class="my-courseware-page">
<!-- 顶部导航栏 --> <!-- 顶部导航栏 -->
@ -87,7 +98,7 @@
import { ref, onMounted } from 'vue'; import { ref, onMounted } from 'vue';
import api from '@/api/api'; import api from '@/api/api';
import navTo from '@/utils/navTo.js'; import navTo from '@/utils/navTo.js';
import { onLoad } from '@dcloudio/uni-app'; import { onLoad,onBackPress } from '@dcloudio/uni-app';
import downLoadImg from "@/static/course_download.png" import downLoadImg from "@/static/course_download.png"
import moneyImg from "@/static/course_yuan.png" import moneyImg from "@/static/course_yuan.png"
const activeTab = ref('download'); const activeTab = ref('download');
@ -100,13 +111,28 @@ const downloadCount = ref(0);
const totalAmount = ref(0); const totalAmount = ref(0);
const coursewareList = ref([]); const coursewareList = ref([]);
const from = ref('');
onBackPress(() => {
if(!from.value){
plus.runtime.quit();
return true;
}
});
onLoad((options) => {
if(options.from){
from.value = options.from;
}
});
onMounted(() => { onMounted(() => {
onRefresh(); onRefresh();
}); });
const goBack = () => { const goBack = () => {
if(!from.value){
plus.runtime.quit();
}else{
uni.navigateBack(); uni.navigateBack();
}
}; };
onLoad((options) => { onLoad((options) => {

View File

@ -108,7 +108,7 @@
<!-- 投稿按钮 --> <!-- 投稿按钮 -->
<view class="submit-btn" @click="submitCourseware"> <view class="submit-btn" @click="submitCourseware">
<up-image :src="tougaoImg" width="152rpx" height="80rpx" ></up-image> <up-image :src="getPptImg" width="152rpx" height="80rpx" ></up-image>
</view> </view>
</view> </view>
<unidialog <unidialog
@ -140,6 +140,7 @@
import upImg from "@/static/cb_up.png" import upImg from "@/static/cb_up.png"
import downImg from "@/static/cb_up.png" import downImg from "@/static/cb_up.png"
import tougaoImg from "@/static/kejiantougao.png" import tougaoImg from "@/static/kejiantougao.png"
import getPptImg from "@/static/getPpt.png"
import downLoadImg from "@/static/wdxz.png" import downLoadImg from "@/static/wdxz.png"
import pptImg from "@/static/pdf.png" import pptImg from "@/static/pdf.png"
import wordImg from "@/static/word.png" import wordImg from "@/static/word.png"

View File

@ -7,9 +7,7 @@
left-icon="left" left-icon="left"
title="课件详情" title="课件详情"
@clickLeft="goBack" @clickLeft="goBack"
color="#8B2316" color="#8B2316"
:border="false" :border="false"
backgroundColor="#eeeeee" backgroundColor="#eeeeee"
> >

BIN
static/getPpt.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB