var that = this
        plus.contacts.getAddressBook(plus.contacts.ADDRESSBOOK_PHONE, (addressbook) = > {
          console.info('Obtaining the address book object succeeded')
          // console.info(addressbook)
          plus.contacts.getAddressBook(plus.contacts.ADDRESSBOOK_PHONE, (addressbook) = > {
            // Add contacts to the address book
            var contact = addressbook.create()
            console.info(that.shuju.length)

            for (let i = 0; i < that.shuju.length; i++) {
              console.info(i)

              contact.name = {
                givenName:   that.shuju[i].company
              }
              // for(let i1=0; i1
              contact.phoneNumbers = [{
                type: 'mobile phone'.value: that.shuju[i].mobile[0].preferred: true
              }]
              // }

              contact.save((res4) = > {
                console.log()
                uni.$showMsg('Import successful'.'success')
                uni.$showMsg(res4)
                this.$refs.popup2.hide()
                this.duxuan = true
                that.api.msg("Import successful".1)})}})Copy the code