Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
Support
提交反馈
为 GitLab 提交贡献
登录/注册
切换导航
M
mcep-h5
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
jiangzaicheng
mcep-h5
提交
0b1d2784
提交
0b1d2784
编写于
8月 31, 2022
作者:
donghuawangliang0612
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改
上级
175ec4d3
变更
5
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
99 行增加
和
4 行删除
+99
-4
PicketAcced.vue
src/components/common/PicketAcced.vue
+11
-1
CountResult.vue
src/views/DepositInterestTrial/CountResult.vue
+1
-1
CountResultB.vue
src/views/DepositInterestTrial/CountResultB.vue
+1
-1
LoanTrial.vue
src/views/DepositInterestTrial/LoanTrial.vue
+80
-0
Accommodation.vue
src/views/workbench/Accommodation.vue
+6
-1
未找到文件。
src/components/common/PicketAcced.vue
浏览文件 @
0b1d2784
...
@@ -56,6 +56,13 @@
...
@@ -56,6 +56,13 @@
</svg>
</svg>
</van-col>
</van-col>
</van-row>
</van-row>
<van-row
v-if=
"item.status === 1"
type=
"flex"
class=
"bottom"
style=
"margin-top: 4px"
@
click=
"toTrial()"
>
<van-col
span=
"24"
class=
"lablel"
><span>
计算器
</span>
<svg
class=
"iconl"
aria-hidden=
"true"
>
<use
xlink:href=
"#icon-a-xiayiye24x24px"
></use>
</svg>
</van-col>
</van-row>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -75,6 +82,9 @@ export default class PicketAcced extends Vue {
...
@@ -75,6 +82,9 @@ export default class PicketAcced extends Vue {
onClickPicket
()
{
onClickPicket
()
{
this
.
$emit
(
"
onClickPicket
"
)
this
.
$emit
(
"
onClickPicket
"
)
}
}
toTrial
()
{
this
.
$emit
(
"
toTrial
"
)
}
//调用父组件的值
//调用父组件的值
onClickDetails
(
status
:
any
)
{
onClickDetails
(
status
:
any
)
{
this
.
$emit
(
"
onClickDetails
"
,
status
)
this
.
$emit
(
"
onClickDetails
"
,
status
)
...
@@ -90,7 +100,7 @@ export default class PicketAcced extends Vue {
...
@@ -90,7 +100,7 @@ export default class PicketAcced extends Vue {
.card
{
.card
{
border-radius
:
2%
;
border-radius
:
2%
;
height
:
28
vh
;
height
:
32
vh
;
margin
:
3%
3%
3%
3%
;
margin
:
3%
3%
3%
3%
;
background
:
#ffffff
;
background
:
#ffffff
;
}
}
...
...
src/views/DepositInterestTrial/CountResult.vue
浏览文件 @
0b1d2784
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
<van-col
span=
"12"
style=
"text-align: right"
>
{{
repayType
}}
</van-col>
<van-col
span=
"12"
style=
"text-align: right"
>
{{
repayType
}}
</van-col>
</van-row>
</van-row>
</div>
</div>
<van-button
style=
"width: 90%;margin-left: 5%;background-color: #1890ff;position: absolute;margin-top: 16%;height: 6%;border-radius: 5px;"
type=
"primary"
>
确定
</van-button>
<van-button
style=
"width: 90%;margin-left: 5%;background-color: #1890ff;position: absolute;margin-top: 16%;height: 6%;border-radius: 5px;"
type=
"primary"
@
click=
"returnCount"
>
确定
</van-button>
<van-button
style=
"width: 90%;margin-left: 5%;position: absolute;margin-top: 28%;height: 6%;border-radius: 5px;border-color: #1890ff"
@
click=
"returnCount"
><span
style=
"color: #1890ff"
>
重新计算
</span></van-button>
<van-button
style=
"width: 90%;margin-left: 5%;position: absolute;margin-top: 28%;height: 6%;border-radius: 5px;border-color: #1890ff"
@
click=
"returnCount"
><span
style=
"color: #1890ff"
>
重新计算
</span></van-button>
</div>
</div>
</div>
</div>
...
...
src/views/DepositInterestTrial/CountResultB.vue
浏览文件 @
0b1d2784
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
<van-col
span=
"12"
style=
"text-align: right"
>
{{
depositAmt
}}
</van-col>
<van-col
span=
"12"
style=
"text-align: right"
>
{{
depositAmt
}}
</van-col>
</van-row>
</van-row>
</div>
</div>
<van-button
style=
"width: 90%;margin-left: 5%;background-color: #1890ff;position: absolute;margin-top: 26%;height: 6%;border-radius: 5px;"
type=
"primary"
>
确定
</van-button>
<van-button
style=
"width: 90%;margin-left: 5%;background-color: #1890ff;position: absolute;margin-top: 26%;height: 6%;border-radius: 5px;"
type=
"primary"
@
click=
"returnCount"
>
确定
</van-button>
<van-button
style=
"width: 90%;margin-left: 5%;position: absolute;margin-top: 40%;height: 6%;border-radius: 5px;border-color: #1890ff"
@
click=
"returnCount"
><span
style=
"color: #1890ff"
>
重新计算
</span></van-button>
<van-button
style=
"width: 90%;margin-left: 5%;position: absolute;margin-top: 40%;height: 6%;border-radius: 5px;border-color: #1890ff"
@
click=
"returnCount"
><span
style=
"color: #1890ff"
>
重新计算
</span></van-button>
</div>
</div>
</div>
</div>
...
...
src/views/DepositInterestTrial/LoanTrial.vue
0 → 100644
浏览文件 @
0b1d2784
<
template
>
<div>
<div
class=
"card"
:model=
"test2"
>
<div
class=
"d-flex"
style=
"margin-top: 6%;margin-left: 5%"
>
贷款金额(元)
<van-field
v-model=
"test2.loanAmt"
placeholder=
"请输入贷款金额"
style=
"width: 50%;margin-top: -4%;margin-left: auto;"
></van-field></div>
<div
class=
"d-flex"
style=
"margin-top: 6%;margin-left: 5%"
>
贷款期限(月)
<van-field
v-model=
"test2.loanTime"
placeholder=
"请输入贷款期限"
style=
"width: 50%;margin-top: -4%;margin-left: auto"
></van-field></div>
<div
class=
"d-flex"
style=
"margin-top: 6%;margin-left: 5%"
>
计划月还款(元)
<van-field
v-model=
"test2.planMonthRepay"
placeholder=
"请输入计划月还款"
style=
"width: 50%;margin-top: -4%;margin-left: auto"
></van-field></div>
<div
class=
"d-flex"
style=
"margin-top: 6%;margin-left: 5%"
>
贷款利率(%)
<van-field
v-model=
"test2.loanRate"
placeholder=
"请输入贷款利率"
style=
"width: 50%;margin-top: -4%;margin-left: auto;"
></van-field></div>
<div
class=
"d-flex"
style=
"margin-top: 6%;margin-left: 5%"
>
贷款种类
<a-select
v-model:value=
"test2.loanType"
:options=
"loanTypes"
placeholder=
"请选择贷款种类"
style=
"width: 50%;margin-top: -2%;margin-left: auto"
>
</a-select>
</div>
<div
class=
"d-flex"
style=
"margin-top: 6%;margin-left: 5%;margin-bottom: 6%"
>
还款方式
<a-select
:v-model=
"test2.repayType"
@
change=
"handleChoiceChange"
placeholder=
"请选择还款方式"
style=
"width: 50%;margin-top: -2%;margin-left: auto"
>
<a-select-option
v-for=
"(item, index) in choices"
:key=
"index"
:value=
"item"
>
{{
item
}}
</a-select-option>
</a-select></div>
</div>
<div>
<van-button
style=
"width: 90%;margin-left: 5%;background-color: #1890ff;position: absolute;margin-top: 86%;height: 6%;border-radius: 5px;"
type=
"primary"
@
click=
"countB"
>
计算
</van-button>
<van-button
style=
"width: 90%;margin-left: 5%;position: absolute;margin-top: 102%;height: 6%;border-radius: 5px;border-color: #1890ff"
><span
style=
"color: #1890ff"
>
清除
</span></van-button>
</div>
</div>
</
template
>
<
script
lang=
"ts"
>
import
{
Component
,
Vue
}
from
"
vue-property-decorator
"
;
@
Component
({
name
:
"
LoanTrial
"
})
export
default
class
LoanTrial
extends
Vue
{
choices
:
string
[]
=
[
"
利随本清
"
,
"
等额本金
"
,
"
等额本息
"
];
test2
:
any
=
{
loanAmt
:
""
,
loanTime
:
""
,
planMonthRepay
:
""
,
loanRate
:
""
,
loanType
:
undefined
,
repayType
:
""
,
};
loanTypes
:
any
[]
=
[
{
value
:
"
有抵押
"
,
label
:
"
有抵押
"
,
},{
value
:
"
无抵押
"
,
label
:
"
无抵押
"
,
}
];
handleChoiceChange
(
value
:
any
)
{
this
.
test2
.
repayType
=
value
;
}
countB
()
{
let
result
=
0
;
result
=
parseInt
(
this
.
test2
.
loanAmt
)
*
parseInt
(
this
.
test2
.
loanRate
)
/
100
*
parseInt
(
this
.
test2
.
loanTime
)
/
12
;
this
.
$router
.
push
({
name
:
"
CountResult
"
,
params
:
{
loanAmt
:
this
.
test2
.
loanAmt
,
loanTime
:
this
.
test2
.
loanTime
,
planMonthRepay
:
this
.
test2
.
planMonthRepay
,
loanRate
:
this
.
test2
.
loanRate
,
loanType
:
this
.
test2
.
loanType
,
repayType
:
this
.
test2
.
repayType
,
result
:
result
.
toString
(),
}
})
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.card
{
position
:
absolute
;
background-color
:
#ffffff
;
width
:
90%
;
margin-left
:
5%
;
margin-top
:
-30%
;
}
</
style
>
src/views/workbench/Accommodation.vue
浏览文件 @
0b1d2784
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<van-tabs>
<van-tabs>
<van-tab
title=
"未结清"
>
<van-tab
title=
"未结清"
>
<picket-acced
:productParam=
"productParam"
class=
"acced"
@
onClickDetails=
"onClickDetails"
<picket-acced
:productParam=
"productParam"
class=
"acced"
@
onClickDetails=
"onClickDetails"
@
onClickPicket=
"onClickPicket"
></picket-acced>
@
onClickPicket=
"onClickPicket"
@
toTrial=
"toTrial"
></picket-acced>
</van-tab>
</van-tab>
<van-tab
title=
"已结清"
>
<van-tab
title=
"已结清"
>
<picket-acced
:productParam=
"productParamlist"
@
onClickDetails=
"onClickDetails"
class=
"acced"
></picket-acced>
<picket-acced
:productParam=
"productParamlist"
@
onClickDetails=
"onClickDetails"
class=
"acced"
></picket-acced>
...
@@ -78,6 +78,11 @@ export default class Accommodation extends Vue {
...
@@ -78,6 +78,11 @@ export default class Accommodation extends Vue {
name
:
"
Repaymentlond
"
name
:
"
Repaymentlond
"
})
})
}
}
toTrial
()
{
this
.
$router
.
push
({
name
:
"
DepositInterestTrial
"
});
}
}
}
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录