|
|
|
@ -16,7 +16,7 @@ Page({ |
|
|
|
currentProjectName: '', |
|
|
|
currentProjectName: '', |
|
|
|
projectIndex: 0, |
|
|
|
projectIndex: 0, |
|
|
|
|
|
|
|
|
|
|
|
// 药师列表
|
|
|
|
// 店员列表
|
|
|
|
pharmacistList: [] as any[], |
|
|
|
pharmacistList: [] as any[], |
|
|
|
totalCount: 0, |
|
|
|
totalCount: 0, |
|
|
|
|
|
|
|
|
|
|
|
@ -32,7 +32,7 @@ Page({ |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
onLoad() { |
|
|
|
onLoad() { |
|
|
|
// 地推端药师页面,仅允许地推人员访问
|
|
|
|
// 地推端店员页面,仅允许地推人员访问
|
|
|
|
app.waitLogin({ types: [3] }).then(() => { |
|
|
|
app.waitLogin({ types: [3] }).then(() => { |
|
|
|
this.getProjectList() |
|
|
|
this.getProjectList() |
|
|
|
}) |
|
|
|
}) |
|
|
|
@ -56,7 +56,7 @@ Page({ |
|
|
|
projectIndex: projectIndex >= 0 ? projectIndex : 0, |
|
|
|
projectIndex: projectIndex >= 0 ? projectIndex : 0, |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
// 获取药师列表
|
|
|
|
// 获取店员列表
|
|
|
|
this.getPharmacistList() |
|
|
|
this.getPharmacistList() |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
@ -103,7 +103,7 @@ Page({ |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 获取药师列表
|
|
|
|
// 获取店员列表
|
|
|
|
getPharmacistList() { |
|
|
|
getPharmacistList() { |
|
|
|
if (this.data.loading || !this.data.hasMore) return |
|
|
|
if (this.data.loading || !this.data.hasMore) return |
|
|
|
|
|
|
|
|
|
|
|
@ -141,7 +141,7 @@ Page({ |
|
|
|
this.setData({ loading: false }) |
|
|
|
this.setData({ loading: false }) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 搜索药师
|
|
|
|
// 搜索店员
|
|
|
|
handleSearch(e: WechatMiniprogram.CustomEvent) { |
|
|
|
handleSearch(e: WechatMiniprogram.CustomEvent) { |
|
|
|
this.setData({ |
|
|
|
this.setData({ |
|
|
|
keyword: e.detail.value, |
|
|
|
keyword: e.detail.value, |
|
|
|
|