Kaynağa Gözat

需求类型改成从后端获取

pull/1/head
王露 1 yıl önce
ebeveyn
işleme
34a47bc474
1 değiştirilmiş dosya ile 38 ekleme ve 35 silme
  1. 38
    35
      pages/index/index.js

+ 38
- 35
pages/index/index.js Dosyayı Görüntüle

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

Loading…
İptal
Kaydet