Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
Support
提交反馈
为 GitLab 提交贡献
登录/注册
切换导航
M
mcep-h5
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
jiangzaicheng
mcep-h5
提交
a1f9e72c
提交
a1f9e72c
编写于
2月 01, 2023
作者:
“grape”
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
2.1
上级
02b80a2d
变更
5
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
12 行增加
和
8 行删除
+12
-8
ProductCard.vue
src/components/common/ProductCard.vue
+1
-1
common.api.ts
src/constants/api/login/common.api.ts
+1
-1
api.service.ts
src/services/api.service.ts
+1
-1
LoginView.vue
src/views/authentication/LoginView.vue
+1
-1
Main.vue
src/views/main/Main.vue
+8
-4
未找到文件。
src/components/common/ProductCard.vue
浏览文件 @
a1f9e72c
...
@@ -90,8 +90,8 @@ export default class ProductCard extends Vue {
...
@@ -90,8 +90,8 @@ export default class ProductCard extends Vue {
@
Prop
({
default
:
{
prodDesc
:
""
}
})
productData
:
any
|
{};
//产品数据
@
Prop
({
default
:
{
prodDesc
:
""
}
})
productData
:
any
|
{};
//产品数据
@
Prop
({
default
:
{
prodDesc
:
""
}
})
desc
:
any
|
{};
//产品数据
@
Prop
({
default
:
{
prodDesc
:
""
}
})
desc
:
any
|
{};
//产品数据
//立即登录
//立即登录
activeNames
=
[
""
];
activeNames
=
[
""
];
lodiing
()
{
lodiing
()
{
...
...
src/constants/api/login/common.api.ts
浏览文件 @
a1f9e72c
...
@@ -18,7 +18,7 @@ const onlinePrefix = process.env.VUE_APP_MS_GATEWAY_API + process.env.VUE_APP_ON
...
@@ -18,7 +18,7 @@ const onlinePrefix = process.env.VUE_APP_MS_GATEWAY_API + process.env.VUE_APP_ON
const
commonApi
=
{
const
commonApi
=
{
getPicCode
:
{
getPicCode
:
{
url
:
prefix
+
"
/get_phone_verify_code
"
,
url
:
prefix
+
"
/get_phone_verify_code
"
,
method
:
MethodType
.
POS
T
.
code
,
method
:
MethodType
.
GE
T
.
code
,
header
:
HeaderType
.
AUTH
.
code
,
header
:
HeaderType
.
AUTH
.
code
,
},
},
...
...
src/services/api.service.ts
浏览文件 @
a1f9e72c
...
@@ -183,7 +183,7 @@ class ApiService {
...
@@ -183,7 +183,7 @@ class ApiService {
return
Vue
.
axios
.
post
(
`
${
path
}
`
,
params
,
requestConfig
).
then
(
res
=>
{
return
Vue
.
axios
.
post
(
`
${
path
}
`
,
params
,
requestConfig
).
then
(
res
=>
{
//TODO
//TODO
return
res
.
data
return
res
.
data
});
})
.
catch
(
this
.
createErrorHandler
());
;
}
}
/**
/**
* POST请求 文件上传
* POST请求 文件上传
...
...
src/views/authentication/LoginView.vue
浏览文件 @
a1f9e72c
...
@@ -284,7 +284,7 @@ export default class LoginView extends Vue {
...
@@ -284,7 +284,7 @@ export default class LoginView extends Vue {
}
else
{
}
else
{
// this._updatePicCode();
// this._updatePicCode();
//
Toast(response.msg + "");
Toast
(
response
.
msg
+
""
);
}
}
});
});
}
}
...
...
src/views/main/Main.vue
浏览文件 @
a1f9e72c
...
@@ -416,12 +416,13 @@
...
@@ -416,12 +416,13 @@
<div>
<div>
<van-list
<van-list
:
v-model
=
"loading"
:
loading
=
"loading"
:finished=
"finished"
:finished=
"finished"
finished-text=
"没有更多了"
finished-text=
"没有更多了"
loading-text=
"加载中"
@
load=
"onLoad"
@
load=
"onLoad"
:offset=
"0"
:offset=
"0"
style=
"
height: calc(100% - 50px);
padding-bottom: 50px"
style=
"padding-bottom: 50px"
>
>
<div
v-for=
"(item, index) in productList"
:key=
"index"
>
<div
v-for=
"(item, index) in productList"
:key=
"index"
>
<picket-bar
<picket-bar
...
@@ -674,6 +675,7 @@ export default class Main extends Vue {
...
@@ -674,6 +675,7 @@ export default class Main extends Vue {
this
.
scrollTop
=
tableScorll
.
scrollTop
;
//data中定义scrollTop为0
this
.
scrollTop
=
tableScorll
.
scrollTop
;
//data中定义scrollTop为0
// console.log(tableScorll.scrollTop+"scroll");
// console.log(tableScorll.scrollTop+"scroll");
});
});
this
.
onLoad
();
}
}
@
Watch
(
"
scrollTop
"
)
@
Watch
(
"
scrollTop
"
)
scrollTopChange
(
newVal
:
any
)
{
scrollTopChange
(
newVal
:
any
)
{
...
@@ -702,7 +704,8 @@ export default class Main extends Vue {
...
@@ -702,7 +704,8 @@ export default class Main extends Vue {
// 重新加载数据
// 重新加载数据
// 将 loading 设置为 true,表示处于加载状态
// 将 loading 设置为 true,表示处于加载状态
this
.
loading
=
true
;
// this.loading = true;
console
.
log
(
"
refresh
"
)
this
.
onLoad
();
this
.
onLoad
();
}
}
onLoad
()
{
onLoad
()
{
...
@@ -714,7 +717,7 @@ export default class Main extends Vue {
...
@@ -714,7 +717,7 @@ export default class Main extends Vue {
}
}
this
.
getProductList
();
this
.
getProductList
();
this
.
loading
=
false
;
//
this.loading = false;
console
.
log
(
"
loading-----------
"
);
console
.
log
(
"
loading-----------
"
);
...
@@ -736,6 +739,7 @@ export default class Main extends Vue {
...
@@ -736,6 +739,7 @@ export default class Main extends Vue {
termMin
:
this
.
termMin
,
termMin
:
this
.
termMin
,
loanType
:
this
.
loanType
,
loanType
:
this
.
loanType
,
};
};
console
.
log
(
"
data
"
)
apiService
apiService
.
general
(
commonApi
.
getProductList
,
query
,
param
,
undefined
)
.
general
(
commonApi
.
getProductList
,
query
,
param
,
undefined
)
.
then
((
response
:
RestfulResponse
)
=>
{
.
then
((
response
:
RestfulResponse
)
=>
{
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录