Bladeren bron

名字需要填写

tags/AL.0.8.0_20240113_base
yuan 1 jaar geleden
bovenliggende
commit
2c0e729875
2 gewijzigde bestanden met toevoegingen van 32 en 0 verwijderingen
  1. +17
    -0
      src/pages/contact-edit/index.vue
  2. +15
    -0
      src/pages/contact-new/index.vue

+ 17
- 0
src/pages/contact-edit/index.vue Bestand weergeven

@@ -22,6 +22,14 @@ const goBack = () => {
Router.back()
}
const onSaveClicked = (isSmsSend: boolean) => {
if (contactData.name === ""){
Taro.showToast({
title: '名字不能为空',
icon: 'none',
duration: 2000})
return
}

Taro.showLoading({
title: 'loading',
})
@@ -123,6 +131,15 @@ const onDeleteConfirm = (item) => {
})
}
const onSaveAndSendMessage = () => {

if (contactData.name === ""){
Taro.showToast({
title: '名字不能为空',
icon: 'none',
duration: 2000})
return
}

if (contactData.phone.length !== 11){
Taro.showToast({
title: '请正确填写手机号',


+ 15
- 0
src/pages/contact-new/index.vue Bestand weergeven

@@ -19,6 +19,14 @@ contactVisitRecord.reset()


const onSaveClicked = (isSmsSend: boolean) => {
if (contact.contact.name === ""){
Taro.showToast({
title: '名字不能为空',
icon: 'none',
duration: 2000})
return
}

Taro.showLoading({
title: 'loading',
})
@@ -53,6 +61,13 @@ const onSaveClicked = (isSmsSend: boolean) => {
}

const onSaveAndSendMessage = () => {
if (contact.contact.name === ""){
Taro.showToast({
title: '名字不能为空',
icon: 'none',
duration: 2000})
return
}
if (contact.contact.phone.length !== 11){
Taro.showToast({
title: '请正确填写手机号',


Laden…
Annuleren
Opslaan