Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-wx-pay
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-wx-pay
提交
dd3371bb
提交
dd3371bb
编写于
1月 21, 2020
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加详情页面
上级
ab70a33c
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
85 行增加
和
4 行删除
+85
-4
index.html
public/index.html
+3
-3
detail.vue
src/detail.vue
+66
-0
router.js
src/router.js
+16
-1
未找到文件。
public/index.html
浏览文件 @
dd3371bb
...
...
@@ -5,12 +5,12 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<!-- <link rel="icon" href="<%= BASE_URL %>favicon.ico"> -->
<title>
hello-world
</title>
<title>
微信支付Demo
</title>
</head>
<body>
<noscript>
<
!-- <
noscript>
<strong>We're sorry but hello-world doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
</noscript>
-->
<div
id=
"app"
></div>
<!-- built files will be auto injected -->
</body>
...
...
src/detail.vue
0 → 100644
浏览文件 @
dd3371bb
<
template
>
<section>
<div
class=
"detailsAndBuy"
>
<div>
<p>
订单详情
</p>
<p>
商品名:
{{
orderDetails
.
goodsLabel
}}
</p>
<p>
单价:
{{
orderDetails
.
price
}}
</p>
<p>
数量:
{{
orderDetails
.
quantity
}}
</p>
<p>
总价:
{{
orderDetails
.
totalFee
}}
</p>
<p>
付款状态:
{{
orderDetails
.
status
}}
</p>
</div>
</div>
</section>
</
template
>
<
script
>
export
default
{
name
:
"detail"
,
data
()
{
return
{
token
:
"0E5B3FC9A588458DA44DB7DDC3BC8068"
||
"08A7A6D8AA224AB7BC2E7BC44D44F34E"
,
orderId
:
null
,
prePayId
:
null
,
isDisabled
:
false
,
orderDetails
:
{}
};
},
created
()
{
this
.
orderId
=
this
.
$route
&&
this
.
$route
.
query
&&
this
.
$route
.
query
.
orderId
||
123
this
.
getOrderDetails
();
},
mounted
()
{},
methods
:
{
getOrderDetails
()
{
this
.
axios
({
method
:
"GET"
,
headers
:
{
token
:
this
.
token
},
url
:
`
${
this
.
APIDOMAIN
}
/trade/center/order/
${
this
.
orderId
}
`
}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
"000000"
)
{
this
.
orderDetails
=
res
.
data
.
data
;
}
})
.
catch
(
res
=>
{
//do somethings
});
},
}
};
</
script
>
<
style
scoped
>
input
{
margin
:
0
auto
;
border
:
1px
solid
#000
;
margin-bottom
:
10px
;
}
button
{
display
:
block
;
margin
:
0
auto
;
background
:
#42b983
;
color
:
#fff
;
}
</
style
>
\ No newline at end of file
src/router.js
浏览文件 @
dd3371bb
...
...
@@ -9,13 +9,28 @@ Vue.use(Router)
const
router
=
new
Router
({
mode
:
'hash'
,
// base: '/',
// base: '/pica-wx-pay/',
routes
:
[{
path
:
'/'
,
name
:
'index'
,
name
:
'index
-1
'
,
component
:
()
=>
import
(
/* webpackChunkName: "lazy" */
'./index.vue'
),
meta
:
{
title
:
'首页'
,
},
},{
path
:
'/index'
,
name
:
'index-2'
,
component
:
()
=>
import
(
/* webpackChunkName: "lazy" */
'./index.vue'
),
meta
:
{
title
:
'首页'
,
},
},
{
path
:
'/detail'
,
name
:
'detail'
,
component
:
()
=>
import
(
/* webpackChunkName: "lazy" */
'./detail.vue'
),
meta
:
{
title
:
'支付详情页面'
,
}
}]
});
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录