天天看点

前端工作总结263-判断绑定逻辑

/*绑定id逻辑分析*/
    dialog() {
      /*传给当前的account_id进行接收*/
      putAction("/account/" + this.account_id + "/bind_ff_account_id", {
        remote_account_id: this.BindData[this.form.index].id,
        pavg: this.BindData[this.form.index].avatar_url,
        plugin_key: this.BindData[this.form.index].plugin_key,
        plugin_name: this.BindData[this.form.index].plugin_name,
        plugin_icon_url: this.BindData[this.form.index].plugin_icon_url,
        brand_id: this.BindData[this.form.index].brand_id
          }).then(res=>{
            this.$message.success("绑定成功")
      }).catch(error=>{
        this.$message.success("未绑定")
      })
      this.dialogVisible = false
    },