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

2.1

上级 02b80a2d
...@@ -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() {
......
...@@ -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.POST.code, method: MethodType.GET.code,
header: HeaderType.AUTH.code, header: HeaderType.AUTH.code,
}, },
......
...@@ -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请求 文件上传
......
...@@ -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 + "");
} }
}); });
} }
......
...@@ -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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册