diff --git a/App.vue b/App.vue index ee7b1c7..0fa925e 100644 --- a/App.vue +++ b/App.vue @@ -216,6 +216,10 @@ page { margin-right: 20rpx; } +.ml-10 { + margin-left: 30rpx; +} + .ml-15 { margin-left: 30rpx; } diff --git a/pages/archive/archive-manage.vue b/pages/archive/archive-manage.vue index 99e4f0a..9bf6019 100644 --- a/pages/archive/archive-manage.vue +++ b/pages/archive/archive-manage.vue @@ -31,8 +31,8 @@ 关联档案 - 完善个人信息 - 删除档案 + 完善个人信息 + diff --git a/pages/archive/edit-archive.vue b/pages/archive/edit-archive.vue index 5164395..aab9a26 100644 --- a/pages/archive/edit-archive.vue +++ b/pages/archive/edit-archive.vue @@ -11,7 +11,8 @@ 0) { - const res = await api('updateCustomer', { id: customerId.value, ...form.value }); + const res = await api('updateCustomer', { id: customerId.value, params: { ...form.value } }); if (res && res.success) { await toast('修改成功'); + uni.$emit('reloadTeamCustomers') uni.navigateBack(); } else { toast(res?.message || '修改失败'); @@ -184,6 +185,18 @@ async function updateArchive() { } } +async function unBindArchive() { + await uniConfirm('确定删除档案吗?') + const res = await api('unbindMiniAppArchive', { id: customer.value._id, corpId: corpId.value, teamId: teamId.value, miniAppId: account.value.openid }); + if (res && res.success) { + await toast('删除成功'); + uni.$emit('reloadTeamCustomers') + uni.navigateBack(); + } else { + toast(res?.message || '删除失败') + } +} + // async updateCustomer() { // if (Object.keys(this.form).length === 0) return this.editMemberId; // const { success, message } = await updateCustomer( @@ -200,6 +213,7 @@ onLoad(options => { customerId.value = options.id || ''; uni.setNavigationBarTitle({ title: customerId.value ? '编辑档案' : '新增档案' }) }) + useLoad(options => { teamId.value = options.teamId; corpId.value = options.corpId; diff --git a/pages/home/customer-archive.vue b/pages/home/customer-archive.vue index 6323910..a35c88c 100644 --- a/pages/home/customer-archive.vue +++ b/pages/home/customer-archive.vue @@ -15,8 +15,7 @@ - - + {{ i.age > 0 ? i.age + '岁' : '' }} @@ -49,24 +45,25 @@ - 该档案还未授权本服务团队,点击右侧授权按钮。我们将更精准的为您服务。 + 点击右侧授权按钮, 我们将更精准的为您服务 授权 - + 个人基本信息 - 完善个人信息 + 请完善您的个人信息 + 完善个人信息 - + @@ -80,7 +77,7 @@