(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-12e6c194"],{1491:function(t,e,i){"use strict";i.d(e,"B",(function(){return n})),i.d(e,"z",(function(){return a})),i.d(e,"g",(function(){return u})),i.d(e,"C",(function(){return o})),i.d(e,"y",(function(){return s})),i.d(e,"l",(function(){return c})),i.d(e,"r",(function(){return l})),i.d(e,"c",(function(){return d})),i.d(e,"D",(function(){return g})),i.d(e,"a",(function(){return m})),i.d(e,"b",(function(){return f})),i.d(e,"o",(function(){return p})),i.d(e,"p",(function(){return h})),i.d(e,"t",(function(){return b})),i.d(e,"x",(function(){return _})),i.d(e,"w",(function(){return v})),i.d(e,"d",(function(){return y})),i.d(e,"e",(function(){return j})),i.d(e,"n",(function(){return O})),i.d(e,"v",(function(){return I})),i.d(e,"j",(function(){return U})),i.d(e,"s",(function(){return x})),i.d(e,"k",(function(){return w})),i.d(e,"i",(function(){return F})),i.d(e,"h",(function(){return L})),i.d(e,"m",(function(){return Q})),i.d(e,"q",(function(){return k})),i.d(e,"A",(function(){return G})),i.d(e,"f",(function(){return B})),i.d(e,"u",(function(){return A}));var r=i("b775");function n(t){return Object(r["a"])({url:"/orders/get_agent_gift_bag",method:"get",params:t})}function a(t){return Object(r["a"])({url:"/orders/add_list_tag",method:"post",data:t})}function u(t){return Object(r["a"])({url:"/orders/BatchAddTag",method:"post",data:t})}function o(t){return Object(r["a"])({url:"/orders/export_list",method:"get",params:t})}function s(){return Object(r["a"])({url:"/activity/getactivityinfo",method:"get"})}function c(t){return Object(r["a"])({url:"/orders/GetActivityLimit",method:"get",params:t})}function l(t){return Object(r["a"])({url:"/UserImg/GetUserInfo",method:"get",params:t})}function d(t){return Object(r["a"])({url:"/UserImg/AddUserImgInfo",method:"post",data:t})}function g(t){return Object(r["a"])({url:"/UserImg/uploadImage",method:"post",data:t})}function m(t){return Object(r["a"])({url:"/UserImg/AddUpdateImg",method:"get",params:t})}function f(t){return Object(r["a"])({url:"/UserImg/AddUpdateImgB",method:"get",params:t})}function p(t){return Object(r["a"])({url:"/UserImg/GetImgStatus",method:"get",params:t})}function h(t){return Object(r["a"])({url:"/UserImg/GetImgStatusB",method:"get",params:t})}function b(t){return Object(r["a"])({url:"/UserImg/GetUserList",method:"get",params:t})}function _(t){return Object(r["a"])({url:"/UserImg/UpdateUserImgInfoB ",method:"post",data:t})}function v(t){return Object(r["a"])({url:"/UserImg/UpdateUserImgInfo",method:"post",data:t})}function y(t){return Object(r["a"])({url:"/UserImg/AgainCreateImg",method:"get",params:t})}function j(t){return Object(r["a"])({url:"/UserImg/AgainCreateImgB",method:"get",params:t})}function O(t){return Object(r["a"])({url:"/UserImg/GetCrownInfo",method:"get",params:t})}function I(t){return Object(r["a"])({url:"/UserImg/UpdateCrownImgInfo",method:"post",data:t})}function U(t){return Object(r["a"])({url:"/UserImg/DeleteUserImg",method:"get",params:t})}function x(t){return Object(r["a"])({url:"/UserImg/GetUserInfos",method:"get",params:t})}function w(t){return Object(r["a"])({url:"/UserImg/ExportAddress",method:"get",params:t})}function F(t){return Object(r["a"])({url:"/CrownBigGiftInfo",method:"get",params:t})}function L(t){return Object(r["a"])({url:"/BigGiftInfo",method:"get",params:t})}function Q(t){return Object(r["a"])({url:"/BigGift/GetApplyList",method:"get",params:t})}function k(t){return Object(r["a"])({url:"/BigGift/GetUserInfo",method:"get",params:t})}function G(t){return Object(r["a"])({url:"/BigGift/editBelongToUser",method:"post",data:t})}function B(t){return Object(r["a"])({url:"/BigGift/ApplySuccess",method:"post",data:t})}function A(t){return Object(r["a"])({url:"/BigGift/UpdateApply",method:"post",data:t})}},"8ac8":function(t,e,i){"use strict";i.r(e);var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"app-container"},[i("div",{directives:[{name:"loading",rawName:"v-loading.fullscreen.lock",value:t.loadingFull,expression:"loadingFull",modifiers:{fullscreen:!0,lock:!0}}]}),t._v(" "),i("el-select",{staticStyle:{width:"350px"},on:{change:function(e){t.listQuery.page_index=1,t.getList()}},model:{value:t.listQuery.activity_id,callback:function(e){t.$set(t.listQuery,"activity_id",e)},expression:"listQuery.activity_id"}},t._l(t.activitys,(function(t){return i("el-option",{key:t.id,attrs:{label:t.title,value:t.id}})})),1),t._v(" "),i("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"客户昵称/姓名/手机号",clearable:""},model:{value:t.listQuery.search_name,callback:function(e){t.$set(t.listQuery,"search_name",e)},expression:"listQuery.search_name"}}),t._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:function(e){t.listQuery.page_index=1,t.getList()}}},[t._v("筛选")]),t._v(" "),i("el-table",{staticClass:"tableBorder",staticStyle:{"margin-top":"20px"},attrs:{border:"",stripe:"","header-cell-style":{background:"#f8fbfc"},data:t.tablelist,"tooltip-effect":"dark"}},[i("el-table-column",{attrs:{type:"index",index:t.index,label:"序号",width:"80",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{prop:"headimgurl",label:"头像",align:"center",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[i("el-image",{staticStyle:{width:"50px",height:"50px"},attrs:{src:r.headimgurl,fit:"contain","preview-src-list":t.srcList}})]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"nickname",label:"客户昵称",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{prop:"realname",label:"客户姓名",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{prop:"mobile",label:"手机号",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{prop:"headimgurl",label:"图片",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[r.get_gift_img&&r.get_gift_img.user_img?i("el-image",{staticStyle:{width:"50px",height:"50px"},attrs:{src:r.get_gift_img.user_img,"preview-src-list":t.urList}}):t._e()]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"操作",align:"center",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.update(r)}}},[t._v("上传")])]}}])})],1),t._v(" "),i("pagination",{attrs:{total:t.tableTotal,limit:t.listQuery.page_size,page:t.listQuery.page_index},on:{pagination:t.changePagination,"update:limit":t.changePagination}}),t._v(" "),i("el-dialog",{attrs:{title:"上传",visible:t.dialogUpdate,width:"40%"},on:{"update:visible":function(e){t.dialogUpdate=e}}},[i("el-form",{staticStyle:{"margin-top":"20px"},attrs:{"label-position":"right",model:t.updateForm}},[i("el-form-item",{attrs:{label:"活动:","label-width":"80px",required:""}},[i("el-select",{staticStyle:{width:"350px"},attrs:{disabled:""},model:{value:t.listQuery.activity_id,callback:function(e){t.$set(t.listQuery,"activity_id",e)},expression:"listQuery.activity_id"}},t._l(t.activitys,(function(t){return i("el-option",{key:t.id,attrs:{label:t.title,value:t.id}})})),1)],1),t._v(" "),i("el-form-item",{attrs:{label:"图片:","label-width":"80px",required:""}},[i("el-upload",{attrs:{action:"","show-file-list":!1,"http-request":t.thumbupdateUpload}},[i("el-button",{attrs:{size:"mini"}},[t._v("点击上传")])],1),t._v(" "),t.updateForm.user_img?i("div",[i("el-image",{staticClass:"thumbUrl",attrs:{src:t.updateForm.user_img,fit:"contain","preview-src-list":[t.updateForm.user_img],"z-index":3e3}})],1):t._e()],1)],1),t._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.dialogUpdate=!1}}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:t.updateFormInfo}},[t._v("确 定")])],1)],1)],1)},n=[],a=i("c7eb"),u=(i("ac6a"),i("96cf"),i("1da1")),o=(i("20d6"),i("1491")),s=i("ed08"),c={data:function(){return{loadingFull:!1,dialogUpdate:!1,updateForm:{id:"",user_img:"",activity_id:""},srcList:[],urList:[],listQuery:{page_index:1,page_size:10,activity_id:"",search_name:""},tablelist:[],tableTotal:0,activitys:[]}},created:function(){var t=this;this.parseMoney=s["g"],this.activityList((function(){var e=t.listQuery.activity_id;Object(o["l"])({activity_id:e}).then((function(e){t.giftList=e.data,t.getList()}))}))},methods:{update:function(t){this.updateForm.id=t.id,this.updateForm.activity_id=this.listQuery.activity_id,t.get_gift_img&&t.get_gift_img.user_img?this.updateForm.user_img=t.get_gift_img.user_img:this.updateForm.user_img="",this.dialogUpdate=!0},updateFormInfo:function(){var t=this;""!==this.updateForm.user_img?Object(o["v"])(this.updateForm).then((function(e){t.loadingFull=!1,200===e.code?(t.dialogUpdate=!1,t.$message.success("上传成功成功"),t.getList()):t.$message.error(e.message)})).catch((function(e){t.loadingFull=!1})):this.$message.error("请上传图片")},thumbupdateUpload:function(t){var e=this;this.thumbLoad=!0;var i=t.file,r=["image/png","image/jpg","image/jpeg"];if(-1===r.indexOf(i.type))return this.$message.warning("上传图片格式必须为: png或jpg格式"),!1;var n=new FormData;n.append("file",i),Object(o["D"])(n).then((function(t){e.thumbLoad=!1;try{var i=t.message,r=t.code,n=t.data;200===r?e.updateForm.user_img=n:(e.updateForm.user_img="",e.$message.error(i))}catch(a){console.log("上传照片失败: ".concat(a))}})).catch((function(){e.thumbLoad=!1}))},getindex:function(){var t=this.listQuery.gift_id;this.indexe=this.giftList.findIndex((function(e){return e.account===t})),this.listQuery.page_index=1,this.getList()},getList:function(){var t=Object(u["a"])(Object(a["a"])().mark((function t(){var e=this;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["n"])(this.listQuery).then((function(t){e.loadingFull=!1,200===t.code?(e.tableTotal=t.data.total,e.tablelist=t.data.list,e.tablelist.forEach((function(t){e.srcList.push(t.headimgurl),t.get_gift_img&&t.get_gift_img.user_img&&e.urList.push(t.get_gift_img.user_img)}))):e.$message.error(t.message)})).catch((function(t){e.loadingFull=!1}));case 2:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),getActivity:function(){var t=this,e=this.listQuery.activity_id;Object(o["l"])({activity_id:e}).then((function(e){t.giftList=e.data}))},index:function(t){var e=this.listQuery,i=e.page_index,r=e.page_size;return(i-1)*r+t+1},changePagination:function(t){var e=t.page,i=t.limit;this.listQuery.page_size=i,this.listQuery.page_index=e,this.getList()},activityList:function(){var t=Object(u["a"])(Object(a["a"])().mark((function t(e){var i=this;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.loadingFull=!0,t.next=3,Object(o["y"])().then((function(t){i.loadingFull=!1,200===t.code&&(i.activitys=t.data,t.data.map((function(t){1===t.is_ing&&(i.listQuery.activity_id=t.id)}))),e&&e()})).catch((function(t){i.loadingFull=!1,e&&e()}));case 3:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()}},l=c,d=(i("e426"),i("2877")),g=Object(d["a"])(l,r,n,!1,null,"4d924fc4",null);e["default"]=g.exports},ad6c:function(t,e,i){},e426:function(t,e,i){"use strict";i("ad6c")}}]);