hookehuyr

✨ feat(客户端): 新增上传完成提示页

...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
10 <script type="module" src="/src/main.js"></script> 10 <script type="module" src="/src/main.js"></script>
11 <script src="https://cdn.bootcdn.net/ajax/libs/vConsole/3.9.0/vconsole.min.js"></script> 11 <script src="https://cdn.bootcdn.net/ajax/libs/vConsole/3.9.0/vconsole.min.js"></script>
12 <script> 12 <script>
13 - var vConsole = new VConsole(); 13 + // var vConsole = new VConsole();
14 </script> 14 </script>
15 </body> 15 </body>
16 </html> 16 </html>
......
1 import { createApp } from 'vue'; 1 import { createApp } from 'vue';
2 -import { Button, Image as VanImage, Col, Row, Icon, Form, Field, CellGroup, ConfigProvider, Toast, Uploader, Empty, Tab, Tabs, Overlay, NumberKeyboard, Lazyload, List, PullRefresh, Popup, Picker, Sticky } from 'vant'; 2 +import { Button, Image as VanImage, Col, Row, Icon, Form, Field, CellGroup, ConfigProvider, Toast, Uploader, Empty, Tab, Tabs, Overlay, NumberKeyboard, Lazyload, List, PullRefresh, Popup, Picker, Sticky, Stepper } from 'vant';
3 import router from './router'; 3 import router from './router';
4 import App from './App.vue'; 4 import App from './App.vue';
5 import axios from './utils/axios'; 5 import axios from './utils/axios';
...@@ -31,6 +31,7 @@ app.use(PullRefresh); ...@@ -31,6 +31,7 @@ app.use(PullRefresh);
31 app.use(Popup); 31 app.use(Popup);
32 app.use(Picker); 32 app.use(Picker);
33 app.use(Sticky); 33 app.use(Sticky);
34 +app.use(Stepper);
34 35
35 app.use(ConfigProvider); 36 app.use(ConfigProvider);
36 37
......
...@@ -3,7 +3,7 @@ export default [{ ...@@ -3,7 +3,7 @@ export default [{
3 name: '首页', 3 name: '首页',
4 component: () => import('./views/client/index.vue'), 4 component: () => import('./views/client/index.vue'),
5 meta: { 5 meta: {
6 - title: '' 6 + title: '童声无界'
7 }, 7 },
8 children: [] 8 children: []
9 }, { 9 }, {
...@@ -68,7 +68,15 @@ export default [{ ...@@ -68,7 +68,15 @@ export default [{
68 title: '实名认证' 68 title: '实名认证'
69 }, 69 },
70 children: [] 70 children: []
71 -}, { 71 + }, {
72 + path: '/client/finishUpload',
73 + name: '客户端上传作品成功跳转页面',
74 + component: () => import('./views/client/finishUpload.vue'),
75 + meta: {
76 + title: '作品上传'
77 + },
78 + children: []
79 + }, {
72 path: '/image', 80 path: '/image',
73 name: 'html转图片', 81 name: 'html转图片',
74 component: () => import('./views/html2canvas.vue'), 82 component: () => import('./views/html2canvas.vue'),
......
1 +<template>
2 + <div class="finishUpload-page">
3 + <div style="background-color: #F7F7F7; padding-top: 2rem; padding-bottom: 2rem;">
4 + <van-image round width="6rem" height="6rem" style="vertical-align: bottom;" :src="icon_success" />
5 + <p style="font-size: 1.05rem; margin: 0.5rem; font-weight: bold;">提交成功!</p>
6 + <p style="font-size: 0.9rem; margin-bottom: 0.5rem;">您的作品正在等待老师审核</p>
7 + <p style="font-size: 0.9rem;">请耐心等待~~</p>
8 + </div>
9 + <div style=" padding-top: 2rem; padding-bottom: 2rem; font-size: 0.9rem; color: #713610;">
10 + <p style=" margin-bottom: 0.5rem;">您是否愿意与偏远山区的小朋友</p>
11 + <p>共读这么精彩的书籍</p>
12 + </div>
13 + <div style="padding: 0 15% 0.5rem 15%;">
14 + <my-button @on-click="toDonate" type="plain">我要爱心捐书</my-button>
15 + </div>
16 + <div style="padding: 0 15% 1rem 15%;">
17 + <my-button @on-click="goBack" type="primary">返回</my-button>
18 + </div>
19 + </div>
20 +
21 + <donate-book :showPopup="showDonate" @on-close="closeDonate"></donate-book>
22 +</template>
23 +
24 +<script setup>
25 +import icon_success from '@images/que-sucess@2x.png'
26 +
27 +import MyButton from '@/components/MyButton/index.vue'
28 +import DonateBook from '@/components/DonateBook/index.vue'
29 +
30 +import { ref, reactive, onMounted } from 'vue'
31 +import { useRoute, useRouter } from 'vue-router'
32 +import axios from '@/utils/axios';
33 +import $ from 'jquery'
34 +import { Toast } from 'vant';
35 +const $route = useRoute();
36 +const $router = useRouter();
37 +
38 +// 弹出捐赠弹框模块
39 +const showDonate = ref(false);
40 +const closeDonate = (v) => { // 查看更多回复
41 + showDonate.value = v;
42 +}
43 +const toDonate = () => {
44 + showDonate.value = true;
45 +}
46 +const goBack = () => {
47 + $router.push({
48 + path: '/client/bookDetail'
49 + })
50 +}
51 +
52 +
53 +onMounted(() => {
54 +
55 +})
56 +</script>
57 +
58 +<script>
59 +import mixin from 'common/mixin';
60 +
61 +export default {
62 + mixins: [mixin.init],
63 + data() {
64 + return {
65 +
66 + }
67 + },
68 + mounted() {
69 +
70 + },
71 + methods: {
72 +
73 + }
74 +}
75 +</script>
76 +
77 +<style lang="less" scoped>
78 +.finishUpload-page {
79 + color: #222222;
80 + text-align: center;
81 +}
82 +</style>
...\ No newline at end of file ...\ No newline at end of file