How to use the vux.Value2nameFilter 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 huahua0406 / pretty-vendor / src / pages / address / address.vue View on Github external
this.$vux.toast.text('请输入名字~', 'middle')
                return
            }
            if (!mobile) {
                this.$vux.toast.text('请输入手机号~', 'middle')
                return
            }
            if (!cityArr) {
                this.$vux.toast.text('请选择地区~', 'middle')
                return
            }
            if (!detail) {
                this.$vux.toast.text('请输入详情地址~', 'middle')
                return
            }
            let cityVal = value2name(cityArr, ChinaAddressV4Data)
            this.UPDATE_ADDRESS({
                name: name,
                mobile: mobile,
                cityArr: cityArr,
                cityVal: cityVal,
                detail: detail
            })
            this.$router.go(-1)
        }
    },