Salon 侧全场景脱敏与拨号单次取号改造:收掉预约选择客户的完整手机号出口,新增按门店与订单上下文授权的拨号取号端点及隐私号占位渠道,前端改为脱敏展示加呼叫取号,并同步更新协议条款
自动发布开发环境 Nacos 配置 / publish (push) Successful in 24s
自动发布开发环境 Nacos 配置 / publish (push) Successful in 24s
This commit is contained in:
@@ -36,17 +36,17 @@ function createPage() {
|
||||
|
||||
async function run() {
|
||||
const page = createPage()
|
||||
page.selectCustomer({ detail: { item: { id: 18, name: '小周', phone: '13800138000' } } })
|
||||
page.selectCustomer({ detail: { item: { id: 18, name: '小周', phone: '138****8000' } } })
|
||||
assert.strictEqual(page.data.form.customerUserId, 18)
|
||||
assert.strictEqual(page.data.form.customerName, '小周')
|
||||
assert.strictEqual(page.data.form.phone, '13800138000')
|
||||
assert.strictEqual(page.data.form.phone, '')
|
||||
assert.strictEqual(page.data.customerSheetVisible, false)
|
||||
|
||||
page.data.form.customerUserId = 18
|
||||
page.onCustomerInput({ currentTarget: { dataset: { field: 'customerName' } }, detail: { value: '新客户' } })
|
||||
assert.strictEqual(page.data.form.customerUserId, '')
|
||||
assert.strictEqual(page.data.form.customerName, '新客户')
|
||||
assert.strictEqual(page.data.form.phone, '13800138000')
|
||||
assert.strictEqual(page.data.form.phone, '')
|
||||
|
||||
customersApi.matchIdentityForAppointment = async () => []
|
||||
customersApi.create = async () => { throw new Error('预约客户建档应随预约请求提交') }
|
||||
@@ -61,10 +61,11 @@ async function run() {
|
||||
assert.strictEqual(name, '小周')
|
||||
assert.strictEqual(wechatId, undefined)
|
||||
assert.strictEqual(phone, '13800138000')
|
||||
return [{ id: '18', name: '小周', phone: '13800138000' }]
|
||||
return [{ id: '18', name: '小周', phone: '138****8000' }]
|
||||
}
|
||||
assert.strictEqual(await page.ensureCustomerBeforeSubmit(), true)
|
||||
assert.strictEqual(page.data.form.customerUserId, '18')
|
||||
assert.strictEqual(page.data.form.phone, '13800138000')
|
||||
|
||||
page.data.artists = [{ id: 1, name: '小周' }, { id: 2, name: '小李' }]
|
||||
page.onArtistSearch({ detail: { value: '李' } })
|
||||
|
||||
Reference in New Issue
Block a user