Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
occloud-server
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yangjiarong
occloud-server
Commits
8a865fd2
Commit
8a865fd2
authored
Jul 20, 2022
by
liuliufashi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
94304c18
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
21 deletions
+23
-21
index.ts
web-vue-admin/src/router/index.ts
+16
-16
index.vue
web-vue-admin/src/views/pay-bind/index.vue
+2
-2
index.vue
web-vue-admin/src/views/pay-list/index.vue
+5
-3
No files found.
web-vue-admin/src/router/index.ts
View file @
8a865fd2
...
...
@@ -31,14 +31,6 @@ const routes: Array<RouteRecordRaw> = [
component
:
()
=>
import
(
'@/views/pay-bind/index.vue'
)
},
{
path
:
'/home/payconfig'
,
name
:
'支付配置'
,
meta
:{
icon
:
'icon-fencengpeizhi'
},
component
:
()
=>
import
(
'@/views/pay-config/index.vue'
)
},
{
path
:
'/home/goodscabinet'
,
name
:
'商品橱柜'
,
meta
:{
...
...
@@ -54,6 +46,14 @@ const routes: Array<RouteRecordRaw> = [
},
component
:
()
=>
import
(
'@/views/pay-list/index.vue'
)
},
{
path
:
'/home/payconfig'
,
name
:
'支付配置'
,
meta
:{
icon
:
'icon-fencengpeizhi'
},
component
:
()
=>
import
(
'@/views/pay-config/index.vue'
)
},
]
},
{
...
...
@@ -66,12 +66,12 @@ const router = createRouter({
history
:
createWebHistory
(),
routes
})
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
const
token
:
any
=
getToken
if
(
token
){
next
()
}
else
{
router
.
push
(
'/login'
)
}
})
//
router.beforeEach((to,from,next)=>{
//
const token:any = getToken
//
if(token){
//
next()
//
}else{
//
router.push('/login')
//
}
//
})
export
default
router
web-vue-admin/src/views/pay-bind/index.vue
View file @
8a865fd2
...
...
@@ -301,8 +301,8 @@ const onSetShowTable = async (data: any) => {
if
(
query
.
value
.
paytype
==
1
){
const
{
mchid
,
mchkey
,
appid
,
name
}
=
data
const
uid
:
any
=
getUid
()
modelRef
.
mchid
=
mchid
modelRef
.
mch
key
=
mchkey
modelRef
.
privatekey
=
mchid
modelRef
.
alipaypublic
key
=
mchkey
modelRef
.
appid
=
appid
modelRef
.
name
=
name
// modelRef.server_url =server_url
...
...
web-vue-admin/src/views/pay-list/index.vue
View file @
8a865fd2
...
...
@@ -97,9 +97,9 @@
</div>
</a-checkbox-group>
</a-form-item> -->
<a-form-item
label=
"支付前填写手机号"
name=
"price"
:label-col=
"{ span:
2
}"
labelAlign=
"left"
>
<a-form-item
label=
"支付前填写手机号"
name=
"price"
:label-col=
"{ span:
3
}"
labelAlign=
"left"
>
<div
style=
"display: flex;"
>
<a-switch
v-model:checked=
"formState.fullphone
"
/>
<a-switch
:checked=
"formState.fullphone === '0'
"
/>
</div>
</a-form-item>
<a-form-item
label=
"开始时间"
name=
"price"
:label-col=
"{ span: 2 }"
labelAlign=
"left"
>
...
...
@@ -147,6 +147,7 @@ const disabledDate = (current: any) => {
const
popupScroll
=
()
=>
{
console
.
log
(
'popupScroll'
);
};
const
uid
=
getUid
()
const
value
=
ref
<
string
>
(
''
);
const
checkboxValue
=
ref
<
any
>
([])
const
optionss
=
ref
<
Array
<
Object
>>
([])
...
...
@@ -271,7 +272,7 @@ const onCopy = async(e:any) => {
// ?ditch=1&goodsid=1&phone=1&studentid=1
const
value
=
localStorage
.
getItem
(
'url'
)
||
''
try
{
await
toClipboard
(
`
${
value
}
?ditch=
${
e
.
goodspayditch
[
0
].
appointpay
}
&goodsid=
${
e
.
goodspayditch
[
0
]
.
goodsid
}
&phone=
${
e
.
fullphone
}
`
)
await
toClipboard
(
`
${
value
}
?ditch=
${
uid
}
&goodsid=
${
e
.
goodsid
}
&phone=
${
e
.
fullphone
}
`
)
message
.
success
(
'复制成功'
)
}
catch
(
e
)
{
console
.
error
(
e
)
...
...
@@ -339,6 +340,7 @@ defineExpose({
value3
,
value4
,
value5
,
uid
,
onSet
,
onSearch
,
columns
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment