diff --git a/pages.json b/pages.json index 39d107c..7b8094b 100644 --- a/pages.json +++ b/pages.json @@ -1486,6 +1486,12 @@ "navigationBarTitleText": "编辑名片" } }, + { + "path": "card/apply", + "style": { + "navigationBarTitleText": "申请名片" + } + }, { "path": "card/leads", "style": { diff --git a/pages_tool/card/apply.vue b/pages_tool/card/apply.vue new file mode 100644 index 0000000..8714f33 --- /dev/null +++ b/pages_tool/card/apply.vue @@ -0,0 +1,155 @@ + + + + + diff --git a/pages_tool/card/list.vue b/pages_tool/card/list.vue index ee2f730..bf36d49 100644 --- a/pages_tool/card/list.vue +++ b/pages_tool/card/list.vue @@ -9,6 +9,7 @@ 新建 + 申请 认领 @@ -54,7 +55,7 @@ export default { count: 0, keyword: '', isLoading: false, - emptyText: '暂无名片,可点击右上角「新建」或「认领」添加' + emptyText: '暂无名片,可「新建」「申请」或「认领」添加' }; }, onLoad() { @@ -105,7 +106,7 @@ export default { this.list = pageNo === 1 ? rows : this.list.concat(rows); this.emptyText = this.keyword.trim() ? '未找到匹配的名片' - : '暂无名片,可点击右上角「新建」或「认领」添加'; + : '暂无名片,可「新建」「申请」或「认领」添加'; } else { this.handleApiError(res); } @@ -130,6 +131,12 @@ export default { url: '/pages_tool/card/edit' }); }, + // 员工已注册但没有名片时, 向商家提交建卡申请(商家后台审批后自动归属) + goApply() { + uni.navigateTo({ + url: '/pages_tool/card/apply' + }); + }, onClaimTap() { uni.showModal({ title: '认领名片', @@ -240,6 +247,13 @@ export default { background-color: var(--main-color-shallow, #e8f1fb); color: var(--main-color, #0054a5); } + + /* 「申请」: 仅空态出现的第三入口, 边框幽灵式再弱一档 */ + &.apply-btn { + background-color: #ffffff; + color: #666666; + border: 1rpx solid #dcdfe6; + } } }