How to use the vux.AlertModule.show function in vux

To help you get started, we’ve selected a few vux examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github enilu / guns-lite / guns-h5 / src / page / official_site / contact.js View on Github external
submit () {
      if (this.valid()) {
        api.saveContact(this.form).then(res => {
          AlertModule.show({content: '提交成功'})
          console.log(res)
        })
      } else {
        AlertModule.show({content: '请填写完整信息'})
      }
    },
    valid () {
github enilu / web-flash / flash-vue-h5 / src / page / official_site / more.js View on Github external
}).catch(err => {
            AlertModule.show({
              title: '',
              content: err.data.msg
            })
          })