(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-dd7783ce"],{"56fc":function(t,e,s){"use strict";s("8c4a")},"8c4a":function(t,e,s){},"9d98":function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t._self._c;return e("div",[e("el-card",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{"body-style":{padding:"36px"}}},[t.bindMsg.IsUse?e("div",[e("div",{staticClass:"flex flex-align-center"},[e("div",{staticClass:"font-18 font-bold margin-right-20",staticStyle:{color:"#303133FF"}},[t._v("已绑定视频号小店")]),e("el-button",{attrs:{type:"text"},on:{click:t.refreshInfo}},[t._v("刷新")]),e("el-button",{attrs:{type:"text"},on:{click:t.closeData}},[t._v("关闭数据打通")])],1),e("div",{},[e("div",{staticClass:"subhead font-16 font-bold margin-top-40"},[t._v("基础信息")]),e("div",{staticClass:"form"},[e("div",{staticClass:"flex flex-align-center margin-top-40"},[e("div",{staticClass:"form-label font-bold",staticStyle:{color:"#606266FF"}},[t._v("店铺头像")]),e("div",{staticClass:"margin-left-165"},[e("img",{staticStyle:{width:"50px",height:"50px","border-radius":"50%"},attrs:{src:t.bindMsg.HeadImgUrl,alt:""}})])]),e("div",{staticClass:"flex flex-align-center margin-top-40"},[e("div",{staticClass:"form-label font-bold",staticStyle:{color:"#606266FF"}},[t._v("店铺名称")]),e("div",{staticClass:"margin-left-165 font-14",staticStyle:{color:"#606266FF"}},[t._v(" "+t._s(t.bindMsg.Nickname)+" ")])]),e("div",{staticClass:"flex flex-align-center margin-top-40"},[e("div",{staticClass:"form-label font-bold",staticStyle:{color:"#606266FF"}},[t._v("店铺类型")]),e("div",{staticClass:"margin-left-165 font-14",staticStyle:{color:"#606266FF"}},[t._v(" "+t._s(t.bindMsg.SubjectType)+" ")])])])]),e("div",{},[e("div",{staticClass:"subhead font-16 font-bold margin-top-40"},[t._v("账号信息")]),e("div",{staticClass:"form"},[e("div",{staticClass:"flex flex-align-center margin-top-40"},[e("div",{staticClass:"form-label font-bold",staticStyle:{color:"#606266FF"}},[t._v("原始ID")]),e("div",{staticClass:"margin-left-165 font-14",staticStyle:{color:"#606266FF"}},[t._v(" "+t._s(t.bindMsg.UserName)+" ")])]),e("div",{staticClass:"flex flex-align-center margin-top-40"},[e("div",{staticClass:"form-label font-bold",staticStyle:{color:"#606266FF"}},[t._v("AppId")]),e("div",{staticClass:"margin-left-165 font-14",staticStyle:{color:"#606266FF"}},[t._v(" "+t._s(t.bindMsg.AppId)+" ")])]),e("div",{staticClass:"flex flex-align-center margin-top-40"},[e("div",{staticClass:"form-label font-bold",staticStyle:{color:"#606266FF"}},[t._v("AppSecret")]),e("div",{staticClass:"margin-left-165 font-14",staticStyle:{color:"#606266FF"}},[t._v(" "+t._s(t.bindMsg.AppSecret)+" ")])]),e("div",{staticClass:"flex flex-align-center margin-top-40"},[e("div",{staticClass:"form-label font-bold",staticStyle:{color:"#606266FF"}},[t._v("Token令牌")]),e("div",{staticClass:"margin-left-165 font-14",staticStyle:{color:"#606266FF"}},[t._v(" "+t._s(t.bindMsg.WeiXinChannelsCallbackToken)+" ")])]),e("div",{staticClass:"flex flex-align-center margin-top-40"},[e("div",{staticClass:"form-label font-bold",staticStyle:{color:"#606266FF"}},[t._v("消息密钥")]),e("div",{staticClass:"margin-left-165 font-14",staticStyle:{color:"#606266FF"}},[t._v(" "+t._s(t.bindMsg.WeiXinChannelsCallbackEncodingAESKey)+" ")])]),e("div",{staticClass:"flex flex-align-center margin-top-40"},[e("div",{staticClass:"form-label font-bold",staticStyle:{color:"#606266FF"}},[t._v("服务器地址")]),e("div",{staticClass:"margin-left-165 font-14",staticStyle:{color:"#606266FF"}},[t._v(" "+t._s(t.bindMsg.CallBackUrl)+" ")])])])])]):e("div",[e("el-steps",{staticClass:"color-409eff",attrs:{space:180,active:t.step,"finish-status":"success",direction:"vertical","process-status":"success"}},[e("el-step",{attrs:{title:"开通视频号小店"}},[e("div",{staticClass:"font-bold font-16",staticStyle:{color:"#606266FF"},attrs:{slot:"title"},slot:"title"},[t._v(" 开通视频号小店 ")]),e("div",{staticClass:"flex flex-align-start flex-justify-between",staticStyle:{width:"100%"},attrs:{slot:"description"},slot:"description"},[e("div",{staticClass:"description flex flex-align-center flex-wrap"},[t._v(" 使用以后要进行视频号卖货（直播卖货、视频号橱窗卖货等场景）的微信扫描开店二维码，根据要求填写开店信息、主体信息等，完成视频号小店开通 "),e("el-link",{staticClass:"margin-left-10 font-14",staticStyle:{color:"#409eff"},attrs:{href:"https://developers.weixin.qq.com/doc/channels/Operational_Guidelines/Shop_opening_guidelines.html",underline:!1,target:"_blank"}},[t._v("查看开店指引")])],1),e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.open("https://channels.weixin.qq.com/shop")}}},[t._v("去开通")])],1)]),e("el-step",{attrs:{title:"开通微信客服"}},[e("div",{staticClass:"font-bold font-16",staticStyle:{color:"#606266FF"},attrs:{slot:"title"},slot:"title"},[t._v(" 开通微信客服 ")]),e("div",{staticClass:"flex flex-align-start flex-justify-between",attrs:{slot:"description"},slot:"description"},[e("div",{staticClass:"description flex flex-align-center flex-wrap"},[t._v(" 未开通微信客服，小店无法上架商品。用视频号小店超级管理员的企业微信或微信扫码授权即可开通 "),e("el-link",{staticClass:"margin-left-10 font-14",staticStyle:{color:"#409eff"},attrs:{href:"https://work.weixin.qq.com/nl/act/p/546743f393c441f3",underline:!1,target:"_blank"}},[t._v("查看开通说明")])],1),e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.open("https://channels.weixin.qq.com/shop")}}},[t._v("去开通")])],1)]),e("el-step",{attrs:{title:"开放平台绑定视频号小店"}},[e("div",{staticClass:"font-bold font-16",staticStyle:{color:"#606266FF"},attrs:{slot:"title"},slot:"title"},[t._v(" 开放平台绑定视频号小店 ")]),e("div",{staticClass:"flex flex-align-start flex-justify-between",attrs:{slot:"description"},slot:"description"},[e("div",{staticClass:"description flex flex-align-start flex-wrap"},[e("div",[e("div",[t._v("登录商城小程序绑定的开放平台，[管理中心]-[视频号小店]，绑定视频号小店；")]),e("div",{staticStyle:{color:"#f56c6c"}},[t._v("⚠注意：商城小程序和视频号小店未绑定在同一开放平台下，无法同步分享员信息")])]),e("el-link",{staticClass:"margin-left-10 font-14",staticStyle:{color:"#409eff"},attrs:{href:"https://jusnn6k8al.feishu.cn/docx/OL5fd1ajjobsrqx7ShncMkoknvc?from=from_copylink",underline:!1,target:"_blank"}},[t._v("查看绑定说明")])],1),e("div",[t.step<2?e("div",{staticStyle:{"text-align":"right"}},[e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.open("https://open.weixin.qq.com/")}}},[t._v("去绑定")])],1):t._e(),e("div",[e("el-button",{attrs:{type:"primary"},on:{click:function(e){t.step=2}}},[t._v("已完成绑定")])],1)])])]),e("el-step",{attrs:{title:"完成企店商城与视频号小店的绑定"}},[e("div",{staticClass:"font-bold font-16",staticStyle:{color:"#606266FF"},attrs:{slot:"title"},slot:"title"},[t._v(" 完成企店商城与视频号小店的绑定 ")]),e("div",{staticClass:"flex flex-align-start flex-justify-between",attrs:{slot:"description"},slot:"description"},[e("div",{staticClass:"description flex flex-align-start flex-wrap"},[e("div",[t._v(" 配置视频号小店相应参数，完成商城与视频号小店绑定，进行数据同步，包含但不限于：分享员数据同步、视频号小店订单同步、视频号商品同步 ")]),e("el-link",{staticClass:"margin-left-10 font-14",staticStyle:{color:"#409eff"},attrs:{href:"https://jusnn6k8al.feishu.cn/docx/J2ttdI8tCoap1ZxAsUOcVZ0ZnUb?from=from_copylink",underline:!1,target:"_blank"}},[t._v("查看绑定说明")])],1),e("el-button",{attrs:{type:2==t.step?"primary":"info",plain:2!=t.step},on:{click:t.nowBind}},[t._v("立即绑定")])],1)])],1)],1)]),e("el-dialog",{attrs:{visible:t.bindShow,title:"绑定视频号小店","custom-class":"dialog-body-paddingTop-10",width:"650px"},on:{"update:visible":function(e){t.bindShow=e},closed:t.closeDialog}},[e("div",{staticClass:"font-12 flex",staticStyle:{color:"#999999FF"}},[t._v(" 前往视频号小店后台-服务市场-自研，查找并配置下方参数 "),e("el-link",{staticClass:"margin-left-10 font-12",staticStyle:{color:"#409eff"},attrs:{href:"https://jusnn6k8al.feishu.cn/docx/J2ttdI8tCoap1ZxAsUOcVZ0ZnUb?from=from_copylink",underline:!1,target:"_blank"}},[t._v("点击查看指引")])],1),e("div",{staticClass:"form",staticStyle:{"margin-top":"20px"}},[e("div",{staticClass:"flex flex-align-center"},[e("div",{staticClass:"form-label label-star"},[t._v("AppId：")]),e("el-input",{attrs:{placeholder:"复制视频号小店AppId粘贴在此处",maxlength:"50"},model:{value:t.bindMsg.AppId,callback:function(e){t.$set(t.bindMsg,"AppId",e)},expression:"bindMsg.AppId"}})],1),e("div",{staticClass:"flex flex-align-center margin-top-20"},[e("div",{staticClass:"form-label label-star"},[t._v("AppSecret：")]),e("el-input",{attrs:{placeholder:"复制视频号小店AppSecret粘贴在此处",maxlength:"50"},model:{value:t.bindMsg.AppSecret,callback:function(e){t.$set(t.bindMsg,"AppSecret",e)},expression:"bindMsg.AppSecret"}})],1),e("div",{staticClass:"flex flex-align-center margin-top-20"},[e("div",{staticClass:"form-label"},[t._v("Token：")]),e("el-input",{attrs:{disabled:!0},model:{value:t.bindMsg.WeiXinChannelsCallbackToken,callback:function(e){t.$set(t.bindMsg,"WeiXinChannelsCallbackToken",e)},expression:"bindMsg.WeiXinChannelsCallbackToken"}},[e("template",{slot:"append"},[e("el-button",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.bindMsg.WeiXinChannelsCallbackToken,expression:"bindMsg.WeiXinChannelsCallbackToken",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onCopy,expression:"onCopy",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:t.onError,expression:"onError",arg:"error"}]},[t._v("复制")])],1)],2)],1),e("div",{staticClass:"flex flex-align-center margin-top-20"},[e("div",{staticClass:"form-label"},[t._v("消息密钥：")]),e("el-input",{attrs:{disabled:!0},model:{value:t.bindMsg.WeiXinChannelsCallbackEncodingAESKey,callback:function(e){t.$set(t.bindMsg,"WeiXinChannelsCallbackEncodingAESKey",e)},expression:"bindMsg.WeiXinChannelsCallbackEncodingAESKey"}},[e("template",{slot:"append"},[e("el-button",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.bindMsg.WeiXinChannelsCallbackEncodingAESKey,expression:"bindMsg.WeiXinChannelsCallbackEncodingAESKey",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onCopy,expression:"onCopy",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:t.onError,expression:"onError",arg:"error"}]},[t._v("复制")])],1)],2)],1),e("div",{staticClass:"flex flex-align-center margin-top-20"},[e("div",{staticClass:"form-label"},[t._v("服务器地址：")]),e("el-input",{attrs:{value:t.bindMsg.CallBackUrl+t.bindMsg.AppId,disabled:!0}},[e("template",{slot:"append"},[e("el-button",{on:{click:t.beforeCopy}},[t._v("复制")])],1)],2)],1)]),e("div",{staticClass:"flex flex-align-center margin-top-20"},[e("el-button",{staticStyle:{"margin-left":"auto"},on:{click:function(e){t.bindShow=!1}}},[t._v("取消")]),e("el-button",{attrs:{type:"primary",loading:t.bindloading},on:{click:t.confirmBind}},[t._v(t._s(t.bindloading?"小店绑定中":"保存"))])],1)])],1)},n=[],a=(s("352e"),s("61a9")),l=s("c40e"),r={data:function(){return{loading:!1,shopId:0,step:1,bindShow:!1,bindMsg:{AppId:"",AppSecret:"",WeiXinChannelsCallbackToken:"",WeiXinChannelsCallbackEncodingAESKey:"",CallBackUrl:"",Nickname:"",HeadImgUrl:"",SubjectType:"",UserName:"",IsUse:!1},bindloading:!1}},mounted:function(){this.getInfo()},methods:{beforeCopy:function(){var t=this;this.bindMsg.AppId?this.$copyText(this.bindMsg.CallBackUrl+this.bindMsg.AppId).then((function(){t.onCopy()})).catch((function(){t.onError()})):this.$message.error("请输入AppID")},refreshInfo:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,this.loading=!0,t.next=4,Object(l["kb"])();case 4:e=t.sent,e.IsSuccess&&this.getInfo();case 6:return t.prev=6,this.loading=!1,t.finish(6);case 9:case"end":return t.stop()}}),t,this,[[0,,6,9]])})));function e(){return t.apply(this,arguments)}return e}(),closeData:function(){var t=this;this.$confirm("关闭后，视频号数据将无法同步至商城，包含但不限于视频号订单、视频号商品、视频号分享员、分享员卖货","提示",{confirmButtonText:"确定",cancelButtonText:"关闭",type:"warning"}).then(Object(a["a"])(regeneratorRuntime.mark((function e(){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t.loading=!0,e.next=4,Object(l["Q"])();case 4:s=e.sent,s.IsSuccess&&(t.$message.success("已关闭商城与视频号小店数据打通"),t.getInfo());case 6:return e.prev=6,t.loading=!1,e.finish(6);case 9:case"end":return e.stop()}}),e,null,[[0,,6,9]])}))))},getInfo:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,this.loading=!0,t.next=4,Object(l["T"])();case 4:e=t.sent,e.IsSuccess&&(this.bindMsg=e.Result);case 6:return t.prev=6,this.loading=!1,t.finish(6);case 9:case"end":return t.stop()}}),t,this,[[0,,6,9]])})));function e(){return t.apply(this,arguments)}return e}(),closeDialog:function(){},confirmBind:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){var e,s,i=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.bindMsg.AppId){t.next=3;break}return this.$message.error("请输入AppID"),t.abrupt("return");case 3:if(this.bindMsg.AppSecret){t.next=6;break}return this.$message.error("请输入AppSecret"),t.abrupt("return");case 6:return t.prev=6,this.bindloading=!0,e={AppId:this.bindMsg.AppId,AppSecret:this.bindMsg.AppSecret},t.next=11,Object(l["L"])(e);case 11:s=t.sent,s.IsSuccess&&this.$confirm("是否确认绑定视频号小店：".concat(s.Result.Nickname,"？"),"提示",{confirmButtonText:"确定",cancelButtonText:"关闭",type:"warning"}).then(Object(a["a"])(regeneratorRuntime.mark((function t(){var s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(l["R"])(e);case 3:s=t.sent,s.IsSuccess&&(i.bindShow=!1,i.$message.success("操作成功"),i.getInfo());case 5:return t.prev=5,t.finish(5);case 7:case"end":return t.stop()}}),t,null,[[0,,5,7]])}))));case 13:return t.prev=13,this.bindloading=!1,t.finish(13);case 16:case"end":return t.stop()}}),t,this,[[6,,13,16]])})));function e(){return t.apply(this,arguments)}return e}(),open:function(t){window.open(t)},nowBind:function(){this.step<2?this.$message.error("请先完成步骤3"):(this.bindMsg.AppId="",this.bindMsg.AppSecret="",this.bindShow=!0)},onCopy:function(){this.$message({message:"复制成功！",type:"success"})},onError:function(){this.$message({message:"复制失败！",type:"error"})}}},o=r,c=(s("56fc"),s("829d")),d=Object(c["a"])(o,i,n,!1,null,"3a953878",null);e["default"]=d.exports}}]);
//# sourceMappingURL=chunk-dd7783ce.afe49461.js.map