日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

工作291:当前账号是否绑定操作

發(fā)布時(shí)間:2023/12/9 编程问答 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 工作291:当前账号是否绑定操作 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
<template><el-dialog@open="open"title="綁定分發(fā)平臺(tái)賬號(hào)":visible.sync="dialogVisible"width="40%":before-close="handleClose"><el-form style="display: flex;justify-content: center;align-items: center"><el-form-item label="分發(fā)賬號(hào)名稱" label-width="100px"><el-select v-model="form.index" placeholder="選擇綁定的分發(fā)賬號(hào)"><!--||!RomoteData.includes(item.id --><el-option :disabled="!item.status||RomoteData.includes(item.id.toString())" v-for="(item,index) in BindData" :key="item.id" :label="item.account_name" :value="index"></el-option></el-select><p v-if="this.account!=''">你已經(jīng)綁定賬號(hào){{account}}</p><p v-else>當(dāng)前賬號(hào)沒(méi)有綁定任何賬號(hào)</p></el-form-item></el-form><span slot="footer" class="dialog-footer"><el-button @click="dialogVisible = false">取 消</el-button><el-button type="primary" @click="dialog">確 定</el-button></span></el-dialog> </template> <script> import {getAction, putAction} from "@/api";export default {data(){return{account_id: '',BindData: [],RomoteData:[],dialogVisible: false,ff_account_index: '',form:{},remote:0,account:'',}},methods:{/*綁定id邏輯分析*/handleClose() {},show(record){this.account=''this.dialogVisible = truegetAction("/account/"+record.id).then(res=>{console.log(res)this.remote=res.data.remote_account_idconsole.log(this.remote)})getAction("/account/ff_account_list",{content_type:record.content_type}).then(res => {this.account_id = record.idconsole.log(this.account_id)this.BindData = res.data.dataconsole.log(this.BindData)this.BindData.map((value,index)=>{if(value.id==this.remote){this.account=value.account_nameconsole.log(value.account_name)}/* if(value.id)*//* console.log(index)*/})console.log(this.RomoteData)this.RomoteData=res.data.remoteAccountIds})},open(){},dialog() {/*傳給當(dāng)前的account_id進(jìn)行接收*/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},} } </script> <style></style>

總結(jié)

以上是生活随笔為你收集整理的工作291:当前账号是否绑定操作的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。