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
fd12b9a3
Commit
fd12b9a3
authored
2 years ago
by
liuliufashi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updatye
parent
74dd8590
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
109 additions
and
12 deletions
+109
-12
.env.dev
web-vue-admin/.env.dev
+2
-1
.env.prod
web-vue-admin/.env.prod
+2
-1
request.ts
web-vue-admin/src/utils/request.ts
+2
-0
index.vue
web-vue-admin/src/views/goods-cabinet/index.vue
+25
-2
index.vue
web-vue-admin/src/views/pay-bind/index.vue
+0
-0
index.vue
...vue-admin/src/views/pay-config/compoents/header/index.vue
+1
-1
index.vue
web-vue-admin/src/views/pay-config/index.vue
+3
-3
index.vue
web-vue-admin/src/views/pay-list/index.vue
+73
-3
vue.config.js
web-vue-admin/vue.config.js
+1
-1
No files found.
web-vue-admin/.env.dev
View file @
fd12b9a3
VUE_APP_MODE = 'dev'
VUE_APP_MODE = 'dev'
NODE_ENV = 'development'
NODE_ENV = 'development'
VUE_APP_BASE_URL = ''
VUE_APP_BASE_URL = '
http://47.102.211.197:8092
'
VUE_APP_TEXT = '测试环境'
VUE_APP_TEXT = '测试环境'
\ No newline at end of file
This diff is collapsed.
Click to expand it.
web-vue-admin/.env.pro
→
web-vue-admin/.env.pro
d
View file @
fd12b9a3
VUE_APP_MODE = 'prod'
VUE_APP_MODE = 'prod'
NODE_ENV = 'production'
NODE_ENV = 'production'
VUE_APP_BASE_URL
=
''
VUE_APP_BASE_URL = '
http://47.102.211.197:8092
'
VUE_APP_TEXT = '生产环境'
VUE_APP_TEXT = '生产环境'
\ No newline at end of file
This diff is collapsed.
Click to expand it.
web-vue-admin/src/utils/request.ts
View file @
fd12b9a3
...
@@ -2,6 +2,8 @@ import axios from "axios";
...
@@ -2,6 +2,8 @@ import axios from "axios";
import
{
message
}
from
"ant-design-vue"
;
import
{
message
}
from
"ant-design-vue"
;
import
{
getToken
}
from
"./token"
;
import
{
getToken
}
from
"./token"
;
// 创建axios实例
// 创建axios实例
console
.
log
(
process
.
env
.
VUE_APP_BASE_URL
,
'process.env'
);
const
instance
=
axios
.
create
({
const
instance
=
axios
.
create
({
baseURL
:
"http://192.168.3.131:8080/"
,
baseURL
:
"http://192.168.3.131:8080/"
,
// 设置相应的时间
// 设置相应的时间
...
...
This diff is collapsed.
Click to expand it.
web-vue-admin/src/views/goods-cabinet/index.vue
View file @
fd12b9a3
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
</div>
</div>
</div>
</div>
<div
class=
"goods-list"
v-if=
"!isShowGoods"
>
<div
class=
"goods-list"
v-if=
"!isShowGoods"
>
<a-table
:columns=
"columns"
:data-source=
"data"
>
<a-table
:columns=
"columns"
:data-source=
"data"
>
<template
#
headerCell=
"
{ column }">
<template
#
headerCell=
"
{ column }">
<template
v-if=
"column.key === 'name'"
>
<template
v-if=
"column.key === 'name'"
>
...
@@ -69,13 +70,20 @@
...
@@ -69,13 +70,20 @@
</a-table>
</a-table>
</div>
</div>
<div
v-if=
"isShowGoods"
>
<div
v-if=
"isShowGoods"
>
<GoodsBags
:props=
"{ propsData }"
@
onBack=
"onBack"
></GoodsBags>
<div
style=
"display: flex; align-items: center; justify-content: space-between"
v-if=
"isShowGoods"
>
<a-button
class=
"small left"
@
click=
"onBack"
>
<
template
#
icon
>
<LeftOutlined
/>
</
template
>
</a-button>
</div>
<GoodsBags
:props=
"{ propsData }"
></GoodsBags>
</div>
</div>
</div>
</div>
</template>
</template>
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
{
ref
,
reactive
,
defineExpose
}
from
"vue"
;
import
{
ref
,
reactive
,
defineExpose
}
from
"vue"
;
import
{
SmileOutlined
,
DownOutlined
}
from
"@ant-design/icons-vue"
;
import
{
SmileOutlined
,
DownOutlined
,
LeftOutlined
}
from
"@ant-design/icons-vue"
;
import
GoodsBags
from
"./components/index.vue"
;
import
GoodsBags
from
"./components/index.vue"
;
const
columns
=
[
const
columns
=
[
{
{
...
@@ -177,5 +185,20 @@ defineExpose({
...
@@ -177,5 +185,20 @@ defineExpose({
.goods-list
{
.goods-list
{
margin-top
:
10px
;
margin-top
:
10px
;
}
}
.small
{
border
:
none
;
height
:
30px
;
width
:
50px
;
}
.left
{
border-left
:
1px
solid
rgb
(
236
,
236
,
236
);
border-top
:
1px
solid
rgb
(
236
,
236
,
236
);
border-bottom
:
1px
solid
rgb
(
236
,
236
,
236
);
border-right-width
:
80%
;
border-right
:
1px
solid
rgb
(
236
,
236
,
236
);
border-bottom-left-radius
:
25px
;
border-top-left-radius
:
25px
;
}
}
}
</
style
>
</
style
>
This diff is collapsed.
Click to expand it.
web-vue-admin/src/views/pay-bind/index.vue
View file @
fd12b9a3
This diff is collapsed.
Click to expand it.
web-vue-admin/src/views/pay-config/compoents/header/index.vue
View file @
fd12b9a3
...
@@ -92,7 +92,7 @@ const onOpenInfo = (record:any, index:any, column:any) => {
...
@@ -92,7 +92,7 @@ const onOpenInfo = (record:any, index:any, column:any) => {
path
:
'/home/paybind'
,
path
:
'/home/paybind'
,
query
:{
query
:{
isShow
:
1
,
isShow
:
1
,
mode
:
record
.
mod
e
paytype
:
record
.
paytyp
e
}
}
})
})
};
};
...
...
This diff is collapsed.
Click to expand it.
web-vue-admin/src/views/pay-config/index.vue
View file @
fd12b9a3
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<ContentHeaders
v-if=
"ShowIcon.HeaderIcon"
:list=
"list"
></ContentHeaders>
<ContentHeaders
v-if=
"ShowIcon.HeaderIcon"
:list=
"list"
></ContentHeaders>
</div>
</div>
</a-layout-content>
</a-layout-content>
<a-layout-content
class=
"body-content"
>
<
!--
<
a-layout-content
class=
"body-content"
>
<div>
<div>
<div
class=
"header-title"
>
<div
class=
"header-title"
>
<span>
域名配置
</span
<span>
域名配置
</span
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
</div>
</div>
<ContentFooters
v-if=
"ShowIcon.FooterIcon"
></ContentFooters>
<ContentFooters
v-if=
"ShowIcon.FooterIcon"
></ContentFooters>
</div>
</div>
</a-layout-footer>
</a-layout-footer>
-->
</a-layout>
</a-layout>
</
template
>
</
template
>
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
...
@@ -52,7 +52,7 @@ import { DownOutlined, UpOutlined } from "@ant-design/icons-vue";
...
@@ -52,7 +52,7 @@ import { DownOutlined, UpOutlined } from "@ant-design/icons-vue";
BodyIcon
:
Boolean
;
BodyIcon
:
Boolean
;
FooterIcon
:
Boolean
;
FooterIcon
:
Boolean
;
}
}
let
list
=
ref
<
Object
>
([{
name
:
'1'
,
num
:
2
,
status
:
'0'
,
mode
:
'zfb'
},{
name
:
'2'
,
num
:
2
,
status
:
'1'
,
mode
:
'wx'
},{
name
:
'3'
,
num
:
2
,
status
:
'0'
,
mode
:
'jd'
},{
name
:
'4'
,
num
:
2
,
status
:
'0'
,
mode
:
'hb'
},{
name
:
'5'
,
num
:
2
,
status
:
'0'
,
mode
:
'yl
'
}])
let
list
=
ref
<
Object
>
([{
name
:
'1'
,
num
:
2
,
status
:
'0'
,
paytype
:
'2'
},{
name
:
'2'
,
num
:
2
,
status
:
'1'
,
paytype
:
'1'
},{
name
:
'3'
,
num
:
2
,
status
:
'0'
,
paytype
:
'3'
},{
name
:
'4'
,
num
:
2
,
status
:
'0'
,
paytype
:
'4'
},{
name
:
'5'
,
num
:
2
,
status
:
'0'
,
paytype
:
'5
'
}])
const
ShowIcon
=
reactive
<
ShowIcon
>
({
const
ShowIcon
=
reactive
<
ShowIcon
>
({
HeaderIcon
:
true
,
HeaderIcon
:
true
,
BodyIcon
:
true
,
BodyIcon
:
true
,
...
...
This diff is collapsed.
Click to expand it.
web-vue-admin/src/views/pay-list/index.vue
View file @
fd12b9a3
<
template
>
<
template
>
<div>
支付链接
</div>
<div>
<div
style=
"display: flex;align-items: center;justify-content: space-between;"
>
<div>
<a-space
direction=
"vertical"
>
<a-select
v-model:value=
"value1"
:size=
"size"
style=
"width: 200px"
:options=
"options"
></a-select>
</a-space>
<a-input-search
v-model:value=
"value"
placeholder=
"input search text"
style=
"width: 200px"
@
search=
"onSearch"
/>
<a-space
direction=
"vertical"
>
<a-select
v-model:value=
"value1"
:size=
"size"
style=
"width: 200px"
:options=
"options"
></a-select>
</a-space>
</div>
<div>
<a-button
type=
"primary"
block
>
新建支付项
</a-button>
</div>
</div>
<div
style=
"margin-top: 10px;"
>
<a-table
:dataSource=
"dataSource"
:columns=
"columns"
/>
</div>
</div>
</
template
>
</
template
>
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
type
{
SelectProps
}
from
'ant-design-vue'
;
import
{
ref
,
defineExpose
}
from
'vue'
;
const
popupScroll
=
()
=>
{
console
.
log
(
'popupScroll'
);
};
const
value
=
ref
<
string
>
(
''
);
const
onSearch
=
(
searchValue
:
string
)
=>
{
console
.
log
(
'use value'
,
searchValue
);
console
.
log
(
'or use this.value'
,
value
.
value
);
};
const
options
=
[...
Array
(
25
)].
map
((
_
,
i
)
=>
({
value
:
(
i
+
10
).
toString
(
36
)
+
(
i
+
1
)
}))
const
dataSource
=
[
{
key
:
'1'
,
name
:
'胡彦斌'
,
age
:
32
,
address
:
'西湖区湖底公园1号'
,
},
{
key
:
'2'
,
name
:
'胡彦祖'
,
age
:
42
,
address
:
'西湖区湖底公园1号'
,
},
]
const
columns
=
[
{
title
:
'姓名'
,
dataIndex
:
'name'
,
key
:
'name'
,
},
{
title
:
'年龄'
,
dataIndex
:
'age'
,
key
:
'age'
,
},
{
title
:
'住址'
,
dataIndex
:
'address'
,
key
:
'address'
,
},
]
defineExpose
({
size
:
ref
<
SelectProps
[
'size'
]
>
(
'middle'
),
value1
:
ref
(
'a1'
),
options
,
value
,
onSearch
,
dataSource
,
columns
})
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
</
style
>
</
style
>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
web-vue-admin/vue.config.js
View file @
fd12b9a3
...
@@ -28,7 +28,7 @@ module.exports = {
...
@@ -28,7 +28,7 @@ module.exports = {
devServer
:
{
devServer
:
{
proxy
:
{
proxy
:
{
'/api'
:
{
'/api'
:
{
target
:
'http://47.102.211.197:8092'
,
//请求对象
target
:
process
.
env
.
VUE_APP_BASE_URL
,
ws
:
true
,
//代理websocked
ws
:
true
,
//代理websocked
changeOrigin
:
true
,
changeOrigin
:
true
,
secure
:
false
,
//target是否为https接口
secure
:
false
,
//target是否为https接口
...
...
This diff is collapsed.
Click to expand it.
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