Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
Support
提交反馈
为 GitLab 提交贡献
登录/注册
切换导航
M
mcep-h5
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
jiangzaicheng
mcep-h5
提交
b223b97e
提交
b223b97e
编写于
9月 01, 2022
作者:
zhangwen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新增store
上级
fd719dee
变更
4
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
46 行增加
和
42 行删除
+46
-42
index.ts
src/stores/index.ts
+3
-1
CountResultStore.module.ts
src/stores/modules/CountResultStore.module.ts
+28
-0
tsts.module.ts
src/stores/modules/tsts.module.ts
+0
-37
CountResult.vue
src/views/DepositInterestTrial/CountResult.vue
+15
-4
未找到文件。
src/stores/index.ts
浏览文件 @
b223b97e
...
@@ -6,6 +6,8 @@
...
@@ -6,6 +6,8 @@
* @FilePath: \mcep-h5\src\stores\index.ts
* @FilePath: \mcep-h5\src\stores\index.ts
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
import
CountResultStore
from
"
@/stores/modules/CountResultStore.module
"
;
export
*
from
"
./token.store
"
;
export
*
from
"
./token.store
"
;
export
*
from
"
./user.store
"
;
export
*
from
"
./user.store
"
;
import
dict
from
"
@/services/dict.service
"
;
import
dict
from
"
@/services/dict.service
"
;
...
@@ -16,7 +18,7 @@ Vue.use(Vuex);
...
@@ -16,7 +18,7 @@ Vue.use(Vuex);
export
default
new
Vuex
.
Store
({
export
default
new
Vuex
.
Store
({
modules
:
{
modules
:
{
CountResultStore
,
}
}
});
});
...
...
src/stores/modules/CountResultStore.module.ts
0 → 100644
浏览文件 @
b223b97e
const
state
=
{
resultData
:{}
};
const
mutations
=
{
setResultData
:
(
state
:
any
,
resultData
:
any
)
=>
{
state
.
resultData
=
resultData
},
};
const
actions
=
{
setResultData
({
commit
}:
any
,
params
:
any
)
{
commit
(
"
setApproveParams
"
,
params
);
},
};
const
getters
=
{
getResultData
:
(
state
:
any
)
=>
{
return
state
.
resultData
;
},
};
export
default
{
state
,
mutations
,
actions
,
getters
};
src/stores/modules/tsts.module.ts
已删除
100644 → 0
浏览文件 @
fd719dee
const
state
=
{
questionAnswerObj
:
{},
faceSignInfo
:
{},
imageFileObj
:
[]
};
const
mutations
=
{
setQuestionAnswerObj
:
(
state
:
any
,
questionAnswerObj
:
any
)
=>
{
state
.
questionAnswerObj
=
questionAnswerObj
},
setFaceSignInfo
:
(
state
:
any
,
faceSignListInfo
:
any
)
=>
{
state
.
faceSignInfo
=
faceSignListInfo
},
setImageFileObj
:
(
state
:
any
,
imageFileObj
:
any
)
=>
{
state
.
imageFileObj
=
imageFileObj
},
addImageFileObj
:
(
state
:
any
,
imageFileObj
:
any
)
=>
{
state
.
imageFileObj
.
push
(
imageFileObj
);
}
};
const
actions
=
{};
const
getters
=
{
getQuestionAnswerObj
:
(
state
:
any
)
=>
{
return
state
.
questionAnswerObj
;
},
getFaceSignInfo
:
(
state
:
any
)
=>
{
return
state
.
faceSignInfo
;
},
getImageFileObj
:
(
state
:
any
)
=>
{
return
state
.
imageFileObj
;
}
};
export
default
{
state
,
mutations
,
actions
,
getters
};
src/views/DepositInterestTrial/CountResult.vue
浏览文件 @
b223b97e
...
@@ -70,6 +70,7 @@ Vue.use(VueRouter);
...
@@ -70,6 +70,7 @@ Vue.use(VueRouter);
name
:
"
CountResult
"
,
name
:
"
CountResult
"
,
})
})
export
default
class
CountResult
extends
Vue
{
export
default
class
CountResult
extends
Vue
{
resultData
:
any
=
{};
flag
=
true
;
flag
=
true
;
resultPlus
:
any
=
""
;
resultPlus
:
any
=
""
;
result
:
any
=
""
;
result
:
any
=
""
;
...
@@ -98,23 +99,33 @@ export default class CountResult extends Vue{
...
@@ -98,23 +99,33 @@ export default class CountResult extends Vue{
//router.beforeEach((to,from,next) => {});
//router.beforeEach((to,from,next) => {});
//beforeRouteLeave(to:any,from,next){}
//beforeRouteLeave(to:any,from,next){}
created
()
{
created
()
{
this
.
result
=
window
.
localStorage
.
getItem
(
"
result
"
);
/*
this.result = window.localStorage.getItem("result");
this.loanAmt= window.localStorage.getItem("loanAmt");
this.loanAmt= window.localStorage.getItem("loanAmt");
this.resultPlus=window.localStorage.getItem("resultPlus");
this.resultPlus=window.localStorage.getItem("resultPlus");
this.loanRate=window.localStorage.getItem("loanRate");
this.loanRate=window.localStorage.getItem("loanRate");
this.loanTime=window.localStorage.getItem("loanTime");
this.loanTime=window.localStorage.getItem("loanTime");
this
.
repayType
=
window
.
localStorage
.
getItem
(
"
repayType
"
);
this.repayType=window.localStorage.getItem("repayType");*/
let
getStoreData
=
this
.
$store
.
getters
[
"
CountResultStore/getResultData
"
];
console
.
log
(
"
获取到getStoreData的数据
"
);
console
.
log
(
getStoreData
);
}
}
returnCount
()
{
returnCount
()
{
this
.
$router
.
back
();
this
.
$router
.
back
();
}
}
toSeeRepayPlan
()
{
toSeeRepayPlan
()
{
window
.
localStorage
.
setItem
(
"
result
"
,
this
.
result
);
/*
window.localStorage.setItem("result",this.result);
window.localStorage.setItem("loanAmt",this.loanAmt);
window.localStorage.setItem("loanAmt",this.loanAmt);
window.localStorage.setItem("resultPlus",this.resultPlus);
window.localStorage.setItem("resultPlus",this.resultPlus);
window.localStorage.setItem("loanRate",this.loanRate);
window.localStorage.setItem("loanRate",this.loanRate);
window.localStorage.setItem("loanTime",this.loanTime);
window.localStorage.setItem("loanTime",this.loanTime);
window
.
localStorage
.
setItem
(
"
repayType
"
,
this
.
repayType
);
window.localStorage.setItem("repayType",this.repayType);*/
this
.
resultData
.
result
=
this
.
result
;
this
.
resultData
.
loanAmt
=
this
.
loanAmt
;
this
.
resultData
.
resultPlus
=
this
.
resultPlus
;
this
.
resultData
.
loanRate
=
this
.
loanRate
;
this
.
resultData
.
loanTime
=
this
.
loanTime
;
this
.
resultData
.
repayType
=
this
.
repayType
;
this
.
$store
.
commit
(
"
CountResultStore/setResultData
"
,
this
.
resultData
);
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
"
RepayPlan
"
,
name
:
"
RepayPlan
"
,
});
});
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录