Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
project-online-old
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
project-online-old
Commits
7415c3dc
提交
7415c3dc
authored
1月 26, 2025
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: update
上级
2f4d4a85
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
13 行增加
和
18 行删除
+13
-18
presence.vue
src/pages/product/components/presence.vue
+1
-1
listItem.vue
src/pages/train/components/listItem.vue
+1
-3
pay.vue
src/pages/train/components/pay.vue
+5
-5
form.vue
src/pages/train/form.vue
+0
-0
httpRequest.js
src/utils/httpRequest.js
+2
-9
validate.js
src/utils/validate.js
+4
-0
没有找到文件。
src/pages/product/components/presence.vue
浏览文件 @
7415c3dc
...
...
@@ -45,7 +45,7 @@ export default {
form
:
{
name
:
''
,
phone
:
''
,
project_id
:
1000
,
project_id
:
5009
,
},
}
},
...
...
src/pages/train/components/listItem.vue
浏览文件 @
7415c3dc
...
...
@@ -39,11 +39,9 @@ export default {
font-weight
:
bold
;
color
:
#c01540
;
line-height
:
25px
;
width
:
400px
;
}
.des-box
{
width
:
400px
;
margin-top
:
24px
;
margin-top
:
10px
;
p
{
font-size
:
14px
;
color
:
#717171
;
...
...
src/pages/train/components/pay.vue
浏览文件 @
7415c3dc
<
template
>
<div
class=
"pay-pop-box"
>
<div
class=
"content-box"
v-if=
"!isCodeShow"
>
<i
class=
"el-icon-close"
@
click=
"$emit('close
PayPop
')"
></i>
<i
class=
"el-icon-close"
@
click=
"$emit('close')"
></i>
<div
class=
"tips-cen"
>
<div
class=
"name"
>
活动名称:
</div>
<div
class=
"js"
>
{{
train
.
title
}}
</div>
...
...
@@ -72,7 +72,7 @@ export default {
.
createOrder
({
pay_type
:
this
.
payMethod
,
shop_id
:
this
.
train
.
shop_id
,
spu_id
:
this
.
train
.
s
hop
_id
,
spu_id
:
this
.
train
.
s
pu
_id
,
sku_id
:
this
.
train
.
sku_id
,
form_id
:
this
.
form
.
id
,
})
...
...
@@ -111,14 +111,14 @@ export default {
},
closeClear
()
{
this
.
isCodeShow
=
false
this
.
$emit
(
'close
PayPop
'
)
this
.
$emit
(
'close'
)
},
payEnd
(
orderOn
)
{
const
param
=
{
order_no
:
orderOn
,
form_id
:
this
.
form
.
id
.
toString
()
,
form_id
:
this
.
form
.
id
,
}
api
.
payEnd
(
param
)
.
then
((
res
)
=>
{})
api
.
payEnd
(
param
)
},
},
beforeDestroy
()
{
...
...
src/pages/train/form.vue
浏览文件 @
7415c3dc
差异被折叠。
点击展开。
src/utils/httpRequest.js
浏览文件 @
7415c3dc
...
...
@@ -59,15 +59,8 @@ httpRequest.interceptors.request.use(
// 响应拦截
httpRequest
.
interceptors
.
response
.
use
(
function
(
response
)
{
const
{
data
}
=
response
if
(
parseInt
(
data
.
error
)
&&
data
.
message
===
'需要登录才能调用接口'
)
{
location
.
href
=
`
${
process
.
env
.
loginURL
}
/login/index?redirect_uri=
${
encodeURIComponent
(
location
.
href
)}
`
return
Promise
.
reject
(
data
)
}
// enrollment
if
(
parseInt
(
data
.
error
))
{
const
{
config
,
data
}
=
response
if
(
config
.
url
.
includes
(
'/api/microservices'
)
&&
data
.
code
!==
200
)
{
Message
.
error
(
data
.
message
)
return
Promise
.
reject
(
data
)
}
...
...
src/utils/validate.js
0 → 100644
浏览文件 @
7415c3dc
export
const
IDCARD_REG
=
/
(
^
[
1-9
]\d{5}(
18|19|
([
23
]\d))\d{2}((
0
[
1-9
])
|
(
10|11|12
))(([
0-2
][
1-9
])
|10|20|30|31
)\d{3}[
0-9Xx
]
$
)
|
(
^
[
1-9
]\d{5}\d{2}((
0
[
1-9
])
|
(
10|11|12
))(([
0-2
][
1-9
])
|10|20|30|31
)\d{2}[
0-9Xx
]
$
)
/
export
const
MOBILE_REG
=
/^1
(
3
[
0-9
]
|4
[
01456879
]
|5
[
0-35-9
]
|6
[
2567
]
|7
[
0-8
]
|8
[
0-9
]
|9
[
0-35-9
])\d{8}
$/
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论