Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
Support
提交反馈
为 GitLab 提交贡献
登录/注册
切换导航
M
mcep-h5
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
jiangzaicheng
mcep-h5
提交
0e3653b4
提交
0e3653b4
编写于
12月 21, 2022
作者:
“grape”
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
产品相关联调与优化
上级
484df916
变更
10
展开全部
显示空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
825 行增加
和
502 行删除
+825
-502
.env.dev
.env.dev
+3
-2
Picket.vue
src/components/common/Picket.vue
+3
-2
ProductCard.vue
src/components/common/ProductCard.vue
+12
-7
common.api.ts
src/constants/api/login/common.api.ts
+7
-1
property.d.ts
src/constants/types/property.d.ts
+7
-0
main.ts
src/main.ts
+11
-4
api.service.ts
src/services/api.service.ts
+2
-0
dict.service.ts
src/services/dict.service.ts
+18
-4
ProductDetails.vue
src/views/ProductDetail/ProductDetails.vue
+21
-3
Main.vue
src/views/main/Main.vue
+741
-479
未找到文件。
.env.dev
浏览文件 @
0e3653b4
...
@@ -12,7 +12,7 @@ VUE_APP_CLIENT_SECRET = web-loong-secret
...
@@ -12,7 +12,7 @@ VUE_APP_CLIENT_SECRET = web-loong-secret
VUE_APP_API_PREFIX = /api/v1
VUE_APP_API_PREFIX = /api/v1
// 网关服务
// 网关服务
VUE_APP_MS_GATEWAY_API = http://
localhost
:9140
VUE_APP_MS_GATEWAY_API = http://
192.168.14.1
:9140
// 业务服务
// 业务服务
...
@@ -31,7 +31,8 @@ VUE_APP_ENABLE_GATEWAY = on
...
@@ -31,7 +31,8 @@ VUE_APP_ENABLE_GATEWAY = on
VUE_APP_SYS_API = http://10.2.3.118:9165/online-financial-service/api/v1/cust-info/permit_endpoint
VUE_APP_SYS_API = http://10.2.3.118:9165/online-financial-service/api/v1/cust-info/permit_endpoint
VUE_APP_ONLINE_API = http://10.2.3.118:9165/online-financial-service/api/v1/cust-info/permit_endpoint
VUE_APP_ONLINE_API = http://192.168.14.1:9155/ms-online/api/v1
//http://10.0.3.144:9165/online-financial-service/api/v1/cust-info/permit_endpointy
//http://10.0.3.144:9165/online-financial-service/api/v1/cust-info/permit_endpointy
//服务器http://10.2.3.118:9165/online-financial-service/api/v1/cust-info/permit_endpoint
//服务器http://10.2.3.118:9165/online-financial-service/api/v1/cust-info/permit_endpoint
...
...
src/components/common/Picket.vue
浏览文件 @
0e3653b4
...
@@ -29,8 +29,8 @@
...
@@ -29,8 +29,8 @@
<van-row
type=
"flex"
justify=
"center"
style=
"line-height: 30px;font-weight: 700;"
>
<van-row
type=
"flex"
justify=
"center"
style=
"line-height: 30px;font-weight: 700;"
>
<van-col
span=
"8"
class=
"loanterm"
style=
"text-align: center;"
>
{{
crowd
}}
</van-col>
<van-col
span=
"8"
class=
"loanterm"
style=
"text-align: center;"
>
{{
crowd
}}
</van-col>
<van-col
span=
"8"
class=
"interestrate"
style=
"text-align: center;"
>
{{
assureMeans
}}
</van-col>
<van-col
span=
"8"
class=
"interestrate"
style=
"text-align: center;"
>
{{
this
.
$dictData
.
getText
(
assureMeans
,
"
LOAN_TYPE
"
)
}}
</van-col>
<van-col
span=
"8"
class=
"loanterm"
style=
"text-align: center;"
>
{{
t
ype
}}
</van-col>
<van-col
span=
"8"
class=
"loanterm"
style=
"text-align: center;"
>
{{
t
his
.
$dictData
.
getText
(
type
,
"
PROD_TYPE
"
)
}}
</van-col>
</van-row>
</van-row>
<van-row
type=
"flex"
justify=
"center"
style=
"line-height: 30px;color: #999999;font-weight: 400;font-size: 12px;"
>
<van-row
type=
"flex"
justify=
"center"
style=
"line-height: 30px;color: #999999;font-weight: 400;font-size: 12px;"
>
<van-col
span=
"8"
class=
"loantermlot"
>
面向人群
</van-col>
<van-col
span=
"8"
class=
"loantermlot"
>
面向人群
</van-col>
...
@@ -105,6 +105,7 @@ export default class Picket extends Vue {
...
@@ -105,6 +105,7 @@ export default class Picket extends Vue {
background
:
#eaf5ff
;
background
:
#eaf5ff
;
font-size
:
12px
;
font-size
:
12px
;
margin-left
:
3%
;
margin-left
:
3%
;
margin-right
:
3%
;
color
:
#1890FF
;
color
:
#1890FF
;
text-rendering
:
optimizeLegibility
;
text-rendering
:
optimizeLegibility
;
font-feature-settings
:
"kern"
1
;
font-feature-settings
:
"kern"
1
;
...
...
src/components/common/ProductCard.vue
浏览文件 @
0e3653b4
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
<van-row
type=
"flex"
justify=
"center"
class=
"integral"
>
<van-row
type=
"flex"
justify=
"center"
class=
"integral"
>
<van-col
span=
"24"
style=
"z-index:2; font-size: 36px;font-weight: 900; margin-top: 5%;"
>
{{
money
}}
</van-col>
<van-col
span=
"24"
style=
"z-index:2; font-size: 36px;font-weight: 900; margin-top: 5%;"
>
¥
{{
productData
.
amtMax
}}
</van-col>
</van-row>
</van-row>
<van-row
type=
"flex"
justify=
"center"
class=
"integrall"
>
<van-row
type=
"flex"
justify=
"center"
class=
"integrall"
>
<van-col
span=
"24"
>
{{
moneyName
}}
</van-col>
<van-col
span=
"24"
>
{{
moneyName
}}
</van-col>
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
</div>
</div>
<div
style=
""
>
<div
style=
""
>
<scroller-view
v-calculate-height
:height=
"10000"
>
<scroller-view
v-calculate-height
:height=
"10000"
>
<van-collapse
v-model=
"activeNames"
style=
"
<van-collapse
v-model=
"activeNames"
v-if=
"this.productData.prodDesc!=undefined"
style=
"
width: 100%;
width: 100%;
height: 100%;
height: 100%;
...
@@ -64,12 +64,12 @@
...
@@ -64,12 +64,12 @@
padding: 20px 10px;
padding: 20px 10px;
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
"
>
"
>
<van-collapse-item
title=
"产品介绍"
name=
"1"
>
农村信用社向符合条件的客户发放的用于满足个人消费、生产经营流动资金等需求的一项贷款业务。
</van-collapse-item>
<van-collapse-item
v-for=
"(item,index) in JSON.parse(this.productData.prodDesc)"
:key=
"index"
:title=
"item.title"
:name=
"index"
>
{{
item
.
desc
}}
</van-collapse-item>
<van-collapse-item
title=
"产品特点"
name=
"2"
>
一次核定,三年有效,随用随贷,循环使用。
</van-collapse-item>
<
!--
<
van-collapse-item
title=
"产品特点"
name=
"2"
>
一次核定,三年有效,随用随贷,循环使用。
</van-collapse-item>
<van-collapse-item
title=
"货款对象"
name=
"3"
>
货款对象
</van-collapse-item>
<van-collapse-item
title=
"货款对象"
name=
"3"
>
货款对象
</van-collapse-item>
<van-collapse-item
title=
"货款期限"
name=
"4"
>
最长不超过3年。
</van-collapse-item>
<van-collapse-item
title=
"货款期限"
name=
"4"
>
最长不超过3年。
</van-collapse-item>
<van-collapse-item
title=
"担保方式"
name=
"5"
>
以借款人自有或第三人提供有权处置的有效资产抵押担保。
</van-collapse-item>
<van-collapse-item
title=
"担保方式"
name=
"5"
>
以借款人自有或第三人提供有权处置的有效资产抵押担保。
</van-collapse-item>
<
!--
<
van-collapse-item
title=
"担保方式"
name=
"5"
>
以借款人自有或第三人提供有权处置的有效资产抵押担保。
</van-collapse-item>
-->
<van-collapse-item
title=
"担保方式"
name=
"5"
>
以借款人自有或第三人提供有权处置的有效资产抵押担保。
</van-collapse-item>
-->
</van-collapse>
</van-collapse>
</scroller-view>
</scroller-view>
</div>
</div>
...
@@ -85,8 +85,13 @@ import { Component, Vue, Prop, Watch, Emit } from "vue-property-decorator";
...
@@ -85,8 +85,13 @@ import { Component, Vue, Prop, Watch, Emit } from "vue-property-decorator";
name
:
"
ProductCard
"
name
:
"
ProductCard
"
})
})
export
default
class
ProductCard
extends
Vue
{
export
default
class
ProductCard
extends
Vue
{
@
Prop
({
default
:
""
})
money
:
string
|
undefined
;
//额度
// @Prop({ default: "" }) money: string | undefined; //额度
@
Prop
({
default
:
""
})
moneyName
:
string
|
undefined
;
//额度大写
// @Prop({ default: "" }) moneyName: string | undefined;//额度大写
@
Prop
({
default
:
{
prodDesc
:
""
}
})
productData
:
any
|
{};
//产品数据
@
Prop
({
default
:
{
prodDesc
:
""
}
})
desc
:
any
|
{};
//产品数据
//立即登录
//立即登录
activeNames
=
[
""
];
activeNames
=
[
""
];
lodiing
()
{
lodiing
()
{
...
...
src/constants/api/login/common.api.ts
浏览文件 @
0e3653b4
...
@@ -11,7 +11,7 @@ import { HeaderType } from "@/constants/enum/general/header-type.enum";
...
@@ -11,7 +11,7 @@ import { HeaderType } from "@/constants/enum/general/header-type.enum";
//网关
//网关
// const prefix = process.env.VUE_APP_MS_GATEWAY_API + process.env.VUE_APP_AUTH_API ;
// const prefix = process.env.VUE_APP_MS_GATEWAY_API + process.env.VUE_APP_AUTH_API ;
const
onlinePrefix
=
process
.
env
.
VUE_APP_ONLINE_API
//本地
//本地
const
prefix
=
"
http://localhost:9130
"
+
process
.
env
.
VUE_APP_AUTH_API
;
const
prefix
=
"
http://localhost:9130
"
+
process
.
env
.
VUE_APP_AUTH_API
;
const
commonApi
=
{
const
commonApi
=
{
...
@@ -21,6 +21,12 @@ const commonApi = {
...
@@ -21,6 +21,12 @@ const commonApi = {
header
:
HeaderType
.
AUTH
.
code
,
header
:
HeaderType
.
AUTH
.
code
,
},
},
getProductList
:
{
url
:
onlinePrefix
+
"
/prodSub/getProductList
"
,
method
:
MethodType
.
POST
.
code
,
header
:
HeaderType
.
AUTH
.
code
,
},
};
};
export
default
commonApi
;
export
default
commonApi
;
src/constants/types/property.d.ts
浏览文件 @
0e3653b4
...
@@ -2,8 +2,15 @@ import Vue from "vue";
...
@@ -2,8 +2,15 @@ import Vue from "vue";
declare
module
"
vue/types/vue
"
{
declare
module
"
vue/types/vue
"
{
import
{
GlobalStateService
}
from
"
@/services/global-state.service
"
;
import
{
GlobalStateService
}
from
"
@/services/global-state.service
"
;
import
dictData
from
"
@/services/dict.service
"
;
interface
Vue
{
interface
Vue
{
$globalStateService
:
GlobalStateService
;
$globalStateService
:
GlobalStateService
;
$dictData
:
dictData
;
/* $ebus: any;
push: any;
pop: any;
replace: any;
transitionName: string;*/
}
}
}
}
src/main.ts
浏览文件 @
0e3653b4
...
@@ -16,7 +16,7 @@ import filterService from "./filtres/filter.service";
...
@@ -16,7 +16,7 @@ import filterService from "./filtres/filter.service";
import
directiveService
from
"
./directives/directive.service
"
;
import
directiveService
from
"
./directives/directive.service
"
;
import
apiService
from
"
@/services/api.service
"
;
import
apiService
from
"
@/services/api.service
"
;
import
dbService
from
"
@/services/db.service
"
;
import
dbService
from
"
@/services/db.service
"
;
import
dictService
from
"
@/services/dict.service
"
;
//
import dictService from "@/services/dict.service";
import
"
./assets/iconfont/iconfont.css
"
;
import
"
./assets/iconfont/iconfont.css
"
;
import
"
./assets/iconfont/iconfont.js
"
;
import
"
./assets/iconfont/iconfont.js
"
;
import
{
NativeUI
}
from
"
@/public/ts/NativeUI
"
;
import
{
NativeUI
}
from
"
@/public/ts/NativeUI
"
;
...
@@ -37,6 +37,8 @@ import ant from 'ant-design-vue'
...
@@ -37,6 +37,8 @@ import ant from 'ant-design-vue'
import
'
ant-design-vue/dist/antd.css
'
import
'
ant-design-vue/dist/antd.css
'
import
{
VanComponent
}
from
"
vant/types/component
"
import
{
VanComponent
}
from
"
vant/types/component
"
import
'
element-ui/lib/theme-chalk/index.css
'
;
import
'
element-ui/lib/theme-chalk/index.css
'
;
import
*
as
echarts
from
'
echarts
'
;
import
dictData
from
"
@/services/dict.service
"
;
Vue
.
use
(
Element
);
Vue
.
use
(
Element
);
Vue
.
use
(
Vant
);
Vue
.
use
(
Vant
);
Vue
.
use
(
ant
);
Vue
.
use
(
ant
);
...
@@ -45,6 +47,8 @@ Vue.use(Step);
...
@@ -45,6 +47,8 @@ Vue.use(Step);
Vue
.
use
(
Steps
);
Vue
.
use
(
Steps
);
Vue
.
config
.
productionTip
=
process
.
env
.
PRODUCTION_TIP
;
Vue
.
config
.
productionTip
=
process
.
env
.
PRODUCTION_TIP
;
Vue
.
prototype
.
$dictData
=
dictData
;
/*注册组件*/
/*注册组件*/
...
@@ -62,9 +66,12 @@ directiveService.init();
...
@@ -62,9 +66,12 @@ directiveService.init();
/*注册axios*/
/*注册axios*/
apiService
.
init
();
apiService
.
init
();
dbService
.
initDB
().
then
(()
=>
{
/**注册字典**/
dictService
.
init
();
dictData
.
init
();
});
// dbService.initDB().then(() => {
// dictService.init();
// });
new
Vconsole
();
new
Vconsole
();
/*h5+插件*/
/*h5+插件*/
nativeService
.
init
();
nativeService
.
init
();
...
...
src/services/api.service.ts
浏览文件 @
0e3653b4
...
@@ -344,6 +344,8 @@ class ApiService {
...
@@ -344,6 +344,8 @@ class ApiService {
return
data
;
return
data
;
}
}
}
}
}
else
{
NativeUI
.
toast
(
"
网络异常!
"
);
}
}
return
response
;
return
response
;
};
};
...
...
src/services/dict.service.ts
浏览文件 @
0e3653b4
...
@@ -15,7 +15,7 @@ class DictService {
...
@@ -15,7 +15,7 @@ class DictService {
* @Author zhangmk
* @Author zhangmk
* @Date 2021年12月31日17:58:48
* @Date 2021年12月31日17:58:48
*/
*/
private
dicData
=
([
private
dic
t
Data
=
([
{
s_field_name
:
'
是否撤销
'
,
s_field
:
'
ISREVOCATION
'
,
value
:
'
1
'
,
text
:
'
是
'
},
{
s_field_name
:
'
是否撤销
'
,
s_field
:
'
ISREVOCATION
'
,
value
:
'
1
'
,
text
:
'
是
'
},
{
s_field_name
:
'
是否撤销
'
,
s_field
:
'
ISREVOCATION
'
,
value
:
'
0
'
,
text
:
'
否
'
},
{
s_field_name
:
'
是否撤销
'
,
s_field
:
'
ISREVOCATION
'
,
value
:
'
0
'
,
text
:
'
否
'
},
{
s_field_name
:
'
经济类型分类
'
,
s_field
:
'
ECOTYPE
'
,
value
:
'
100
'
,
text
:
'
内资企业
'
},
{
s_field_name
:
'
经济类型分类
'
,
s_field
:
'
ECOTYPE
'
,
value
:
'
100
'
,
text
:
'
内资企业
'
},
...
@@ -2591,6 +2591,19 @@ class DictService {
...
@@ -2591,6 +2591,19 @@ class DictService {
{
s_field_name
:
'
流程业务类型
'
,
s_field
:
'
PROCESS_TYPE
'
,
value
:
'
977
'
,
text
:
'
企业债主体授信-分支行
'
},
{
s_field_name
:
'
流程业务类型
'
,
s_field
:
'
PROCESS_TYPE
'
,
value
:
'
977
'
,
text
:
'
企业债主体授信-分支行
'
},
{
s_field_name
:
'
流程业务类型
'
,
s_field
:
'
PROCESS_TYPE
'
,
value
:
'
978
'
,
text
:
'
企业债主体授信-资金部
'
},
{
s_field_name
:
'
流程业务类型
'
,
s_field
:
'
PROCESS_TYPE
'
,
value
:
'
978
'
,
text
:
'
企业债主体授信-资金部
'
},
/*****************************对公营销* 开始 *********************************************/
/*****************************对公营销* 开始 *********************************************/
/*****************************线上金融产品 *********************************************/
{
s_field_name
:
'
担保方式
'
,
s_field
:
'
LOAN_TYPE
'
,
value
:
'
01
'
,
text
:
'
抵押
'
},
{
s_field_name
:
'
担保方式
'
,
s_field
:
'
LOAN_TYPE
'
,
value
:
'
02
'
,
text
:
'
质押
'
},
{
s_field_name
:
'
担保方式
'
,
s_field
:
'
LOAN_TYPE
'
,
value
:
'
03
'
,
text
:
'
保证
'
},
{
s_field_name
:
'
担保方式
'
,
s_field
:
'
LOAN_TYPE
'
,
value
:
'
04
'
,
text
:
'
信用
'
},
{
s_field_name
:
'
贷款种类
'
,
s_field
:
'
PROD_TYPE
'
,
value
:
'
0
'
,
text
:
'
消费贷
'
},
{
s_field_name
:
'
贷款种类
'
,
s_field
:
'
PROD_TYPE
'
,
value
:
'
1
'
,
text
:
'
购房贷
'
},
]);
]);
/**
/**
...
@@ -2600,7 +2613,8 @@ class DictService {
...
@@ -2600,7 +2613,8 @@ class DictService {
*/
*/
init
()
{
init
()
{
//TODO 需要通过接口先进行查询然后保存。
//TODO 需要通过接口先进行查询然后保存。
localStorage
.
setItem
(
"
dictData
"
,
JSON
.
stringify
(
this
.
dicData
));
localStorage
.
setItem
(
"
dictData
"
,
JSON
.
stringify
(
this
.
dictData
));
console
.
log
(
"
dicDataInit
"
)
// this.queryDictList().then((data: any) => {
// this.queryDictList().then((data: any) => {
// const dictData: any = {};
// const dictData: any = {};
// data.forEach((item: any) => {
// data.forEach((item: any) => {
...
@@ -2687,5 +2701,5 @@ class DictService {
...
@@ -2687,5 +2701,5 @@ class DictService {
return
result
;
return
result
;
}
}
}
}
const
dict
Service
=
new
DictService
();
const
dict
Data
=
new
DictService
();
export
default
dict
Service
;
export
default
dict
Data
;
src/views/ProductDetail/ProductDetails.vue
浏览文件 @
0e3653b4
...
@@ -8,24 +8,42 @@
...
@@ -8,24 +8,42 @@
-->
-->
<
template
>
<
template
>
<div>
<div>
<product-detail
class=
"productName"
:productName=
"productName"
></product-detail>
<product-detail
class=
"productName"
:productName=
"productData.prodSubName"
></product-detail>
<product-card
:money=
"money"
:moneyName=
"moneyName"
class=
"productCard"
>
</product-card>
<!--
<product-card
:money=
"money"
:moneyName=
"moneyName"
class=
"productCard"
>
</product-card>
-->
<product-card
:productData=
"productData"
class=
"productCard"
>
</product-card>
</div>
</div>
</
template
>
</
template
>
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
import
{
Component
,
Vue
}
from
"
vue-property-decorator
"
;
import
{
Component
,
Prop
,
Vue
}
from
"
vue-property-decorator
"
;
import
{
ProductData
}
from
'
@/model/entity/ProductData
'
import
{
ProductData
}
from
'
@/model/entity/ProductData
'
import
eventBus
from
"
@/services/goBackEntity
"
;
@
Component
({
@
Component
({
name
:
"
ProductDetails
"
,
name
:
"
ProductDetails
"
,
})
})
export
default
class
ProductDetails
extends
Vue
{
export
default
class
ProductDetails
extends
Vue
{
// @Prop({ default: {} }) productParam: any | {}; // 产品信息
productData
=
{};
productName
=
"
小微企业---互助贷款
"
productName
=
"
小微企业---互助贷款
"
money
:
string
=
"
¥5000000
"
//最高额度
money
:
string
=
"
¥5000000
"
//最高额度
moneyName
:
string
=
"
五百万元整
"
//最高额度汉字
moneyName
:
string
=
"
五百万元整
"
//最高额度汉字
activeNames
=
[
"
1
"
]
activeNames
=
[
"
1
"
]
mounted
(){
console
.
log
(
"
details
"
);
if
(
this
.
$route
.
params
.
productData
!=
undefined
){
this
.
productData
=
this
.
$route
.
params
.
productData
;
}
else
{
this
.
$router
.
back
();
}
console
.
log
(
this
.
productData
);
}
}
}
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
...
...
src/views/main/Main.vue
浏览文件 @
0e3653b4
此差异已折叠。
点击以展开。
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录