|
|
@@ -46,11 +46,18 @@ Page({
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
this.setData({
|
|
|
+ classActions: wx.getStorageSync('templetList').map(v => {
|
|
|
+ return {
|
|
|
+ name: v.templetname,
|
|
|
+ index: v.templetid
|
|
|
+ }
|
|
|
+ }),
|
|
|
+ 'navList[0].label': wx.getStorageSync('templetList')[0].templetname,
|
|
|
+ "content.type": wx.getStorageSync('templetList')[0].templetid,
|
|
|
insert: wx.getStorageSync('auth').worderclue_public.options.some(v => v == 'insert'), //查询新增权限
|
|
|
allot: wx.getStorageSync('auth').worderclue_public.options.some(v => v == 'allot')
|
|
|
- })
|
|
|
+ });
|
|
|
this.getList();
|
|
|
- // this.getTypeList()
|
|
|
},
|
|
|
/* 获取列表 */
|
|
|
getList(init = false, data) {
|
|
|
@@ -89,37 +96,6 @@ Page({
|
|
|
this.getTags();
|
|
|
})
|
|
|
},
|
|
|
- /* 获取线索状态 */
|
|
|
- getTypeList() {
|
|
|
- _Http.basic({
|
|
|
- "classname": "sysmanage.develop.optiontype.optiontype",
|
|
|
- "method": "optiontypeselect",
|
|
|
- "content": {
|
|
|
- "typename": 'cluepublic'
|
|
|
- }
|
|
|
- }).then(res => {
|
|
|
- console.log("状态列表", res)
|
|
|
- if (res.msg != '成功') return wx.showToast({
|
|
|
- title: res.data,
|
|
|
- icon: "none"
|
|
|
- })
|
|
|
- let classActions = res.data.map(item => {
|
|
|
- return {
|
|
|
- name: item.value,
|
|
|
- index: item.remarks
|
|
|
- }
|
|
|
- })
|
|
|
- classActions.unshift({
|
|
|
- name: '全部',
|
|
|
- index: ''
|
|
|
- })
|
|
|
- this.setData({
|
|
|
- classActions: classActions
|
|
|
- });
|
|
|
- console.log(this.data.classActions);
|
|
|
- this.setListHeight();
|
|
|
- })
|
|
|
- },
|
|
|
/* 处理搜索 */
|
|
|
onSearch({
|
|
|
detail
|