Explorar el Código

需求类型改成从后端获取

pull/1/head
王露 hace 1 año
padre
commit
34a47bc474
Se han modificado 1 ficheros con 38 adiciones y 35 borrados
  1. 38
    35
      pages/index/index.js

+ 38
- 35
pages/index/index.js Ver fichero

@@ -17,42 +17,42 @@ Page({
text: "我关注的",
value: "my"
},
{
text: "工商类",
value: "工商类"
},
{
text: "财税类",
value: "财税类"
},
{
text: "公司转让",
value: "公司转让"
},
// {
// text: "工商类",
// value: "工商类"
// },
// {
// text: "财税类",
// value: "财税类"
// },
// {
// text: "公司转让",
// value: "公司转让"
// },
],
currentTab: "all",
// 更多tab
moreTabOption: [
{
text: "资质类",
value: "资质类"
},
{
text: "知识产权",
value: "知识产权"
},
{
text: "银行服务",
value: "银行服务"
},
{
text: "法律服务",
value: "法律服务"
},
{
text: "其他",
value: "其他"
},
// {
// text: "资质类",
// value: "资质类"
// },
// {
// text: "知识产权",
// value: "知识产权"
// },
// {
// text: "银行服务",
// value: "银行服务"
// },
// {
// text: "法律服务",
// value: "法律服务"
// },
// {
// text: "其他",
// value: "其他"
// },
],
moreTab: "gengduo",
moreTitle: "更多",
@@ -92,7 +92,8 @@ Page({
customerId: businessCommunicationCustomer.customerId
})
}
this.toSearch();
this.getAllType();
// this.toSearch();
},
onShow() {
if(this.data.currentTab == 'my'){
@@ -110,7 +111,8 @@ Page({
})
}
console.log(`刷新页面`);
this.toSearch();
this.getAllType();
// this.toSearch();
}
},
toggleMore() {
@@ -203,7 +205,8 @@ Page({
tabData,
moreTabOption
})
this.getListData();
// this.getListData();
this.toSearch();
}
}).catch(error => {
console.log(error, 'error appletLogin')

Cargando…
Cancelar
Guardar