Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-psp-show-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-psp-show-h5
Commits
bdf12d9c
提交
bdf12d9c
authored
7月 13, 2022
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: update
上级
9b9c9974
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
25 行增加
和
6 行删除
+25
-6
package.json
package.json
+1
-1
AppContainer.vue
src/components/base/AppContainer.vue
+7
-1
FormDialog.vue
src/modules/exam/components/FormDialog.vue
+3
-0
Index.vue
src/modules/exam/views/Index.vue
+1
-1
View.vue
src/modules/exam/views/View.vue
+1
-1
Index.vue
src/modules/my/views/Index.vue
+12
-2
没有找到文件。
package.json
浏览文件 @
bdf12d9c
...
...
@@ -7,7 +7,7 @@
"build"
:
"npm run typecheck && vite build --mode prod && npm run deploy"
,
"build:test"
:
"npm run typecheck && vite build --mode test"
,
"build:pre"
:
"npm run typecheck && vite build --mode pre"
,
"preview"
:
"vite preview --port
5050
"
,
"preview"
:
"vite preview --port
4173
"
,
"typecheck"
:
"vue-tsc --noEmit"
,
"lint"
:
"eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
,
"deploy"
:
"node ./deploy.js"
...
...
src/components/base/AppContainer.vue
浏览文件 @
bdf12d9c
...
...
@@ -12,9 +12,15 @@ const props = withDefaults(defineProps<Props>(), {
backgroundColor
:
'transparent'
})
const
emit
=
defineEmits
([
'back'
])
const
router
=
useRouter
()
function
handleBack
()
{
router
.
back
()
try
{
router
.
back
()
}
catch
(
e
)
{
router
.
replace
(
'/'
)
}
emit
(
'back'
)
}
const
containerPaddingValue
=
computed
(()
=>
{
return
props
.
backgroundColor
===
'transparent'
?
'0'
:
'.24rem'
...
...
src/modules/exam/components/FormDialog.vue
浏览文件 @
bdf12d9c
...
...
@@ -4,6 +4,8 @@ import { useUserStore } from '@/stores/user'
import
type
{
ExamType
}
from
'../types'
import
{
Toast
}
from
'vant'
const
router
=
useRouter
()
const
userStore
=
useUserStore
()
interface
Props
{
...
...
@@ -20,6 +22,7 @@ function onSubmit() {
if
(
res
.
code
===
0
)
{
emit
(
'update'
)
emit
(
'update:show'
,
false
)
router
.
push
(
`/exam/
${
props
.
data
.
exam_id
}
`
)
}
else
{
Toast
.
fail
(
res
.
message
)
}
...
...
src/modules/exam/views/Index.vue
浏览文件 @
bdf12d9c
...
...
@@ -18,7 +18,7 @@ const tabActive = $ref<number>(2)
const
dataset
=
reactive
<
Info
>
({
address
:
''
,
can_choose
:
true
,
id_number
:
''
,
list
:
[]
})
// 日期转换
function
formatDate
(
startTime
:
string
,
endTime
:
string
)
{
return
dayjs
(
startTime
).
format
(
'YYYY年MM月DD日
hh:mm'
)
+
'-'
+
dayjs
(
endTime
).
format
(
'hh
:mm'
)
return
dayjs
(
startTime
).
format
(
'YYYY年MM月DD日
HH:mm'
)
+
'-'
+
dayjs
(
endTime
).
format
(
'HH
:mm'
)
}
// 获取列表
const
fetchList
=
()
=>
{
...
...
src/modules/exam/views/View.vue
浏览文件 @
bdf12d9c
...
...
@@ -18,7 +18,7 @@ const props = defineProps<{ id: string }>()
const
dataset
=
reactive
<
Info
>
({
address
:
''
,
can_choose
:
true
,
id_number
:
''
,
list
:
[]
})
// 日期转换
function
formatDate
(
time
:
string
)
{
return
dayjs
(
time
).
format
(
'YYYY年MM月DD日
hh
:mm:ss'
)
return
dayjs
(
time
).
format
(
'YYYY年MM月DD日
HH
:mm:ss'
)
}
// 获取列表
const
fetchList
=
()
=>
{
...
...
src/modules/my/views/Index.vue
浏览文件 @
bdf12d9c
...
...
@@ -19,8 +19,9 @@ onMounted(() => {
const
menus
=
computed
<
Array
<
{
name
:
string
path
:
string
path
?
:
string
icon
:
string
href
?:
string
}
>
>
(()
=>
{
return
[
...
...
@@ -34,6 +35,11 @@ const menus = computed<
name
:
'我的团队'
,
icon
:
'https://webapp-pub.ezijing.com/project/prp-h5/my_menu_2.png'
},
{
href
:
'https://account-show.ezijing.com/h5/payment'
,
name
:
'我的发票'
,
icon
:
'https://webapp-pub.ezijing.com/project/prp-h5/my_menu_7.png'
},
{
path
:
'/qa'
,
name
:
'知识输出者'
,
...
...
@@ -96,7 +102,11 @@ function onUploadSuccess(url: string) {
<nav
class=
"menus"
>
<ul>
<li
v-for=
"(item, index) in menus"
:key=
"index"
>
<router-link
:to=
"item.path"
>
<a
:href=
"item.href"
target=
"_blank"
v-if=
"item.href"
>
<img
:src=
"item.icon"
/>
<p>
{{
item
.
name
}}
</p>
</a>
<router-link
:to=
"item.path"
v-if=
"item.path"
>
<img
:src=
"item.icon"
/>
<p>
{{
item
.
name
}}
</p>
</router-link>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论