提交 a1f9e72c 编写于 作者: “grape”'s avatar “grape”

2.1

上级 02b80a2d
......@@ -18,7 +18,7 @@ const onlinePrefix = process.env.VUE_APP_MS_GATEWAY_API + process.env.VUE_APP_ON
const commonApi = {
getPicCode: {
url: prefix + "/get_phone_verify_code",
method: MethodType.POST.code,
method: MethodType.GET.code,
header: HeaderType.AUTH.code,
},
......
......@@ -183,7 +183,7 @@ class ApiService {
return Vue.axios.post(`${path}`, params, requestConfig).then(res=>{
//TODO
return res.data
});
}).catch(this.createErrorHandler());;
}
/**
* POST请求 文件上传
......
......@@ -284,7 +284,7 @@ export default class LoginView extends Vue {
} else {
// this._updatePicCode();
// Toast(response.msg + "");
Toast(response.msg + "");
}
});
}
......
......@@ -416,12 +416,13 @@
<div>
<van-list
:v-model="loading"
:loading="loading"
:finished="finished"
finished-text="没有更多了"
loading-text="加载中"
@load="onLoad"
:offset="0"
style="height: calc(100% - 50px); padding-bottom: 50px"
style="padding-bottom: 50px"
>
<div v-for="(item, index) in productList" :key="index">
<picket-bar
......@@ -674,6 +675,7 @@ export default class Main extends Vue {
this.scrollTop = tableScorll.scrollTop; //data中定义scrollTop为0
// console.log(tableScorll.scrollTop+"scroll");
});
this.onLoad();
}
@Watch("scrollTop")
scrollTopChange(newVal: any) {
......@@ -702,7 +704,8 @@ export default class Main extends Vue {
// 重新加载数据
// 将 loading 设置为 true,表示处于加载状态
this.loading = true;
// this.loading = true;
console.log("refresh")
this.onLoad();
}
onLoad() {
......@@ -714,7 +717,7 @@ export default class Main extends Vue {
}
this.getProductList();
this.loading = false;
// this.loading = false;
console.log("loading-----------");
......@@ -736,6 +739,7 @@ export default class Main extends Vue {
termMin: this.termMin,
loanType: this.loanType,
};
console.log("data")
apiService
.general(commonApi.getProductList, query, param, undefined)
.then((response: RestfulResponse) => {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册