canyin-project/ybcy/views/channel/index20240524/static/js/chunk-2d0e648c.bbea75e5.js
2024-11-01 16:07:54 +08:00

1 line
4.5 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e648c"],{"97a9":function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("div",{staticClass:"outmain ba_f formwidth"},[e._m(0),e._m(1),r("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[r("el-tab-pane",{attrs:{label:"美团开放平台",name:"1"}},[r("el-form",{ref:"form",staticClass:"mar_t20",attrs:{model:e.form,"label-width":"180px"}},[r("el-form-item",{attrs:{label:"开关"}},[r("el-radio-group",{model:{value:e.form.open,callback:function(t){e.$set(e.form,"open",t)},expression:"form.open"}},[r("el-radio",{attrs:{label:"1"}},[e._v("开启")]),r("el-radio",{attrs:{label:"2"}},[e._v("关闭")])],1)],1),r("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"1"==e.form.open,expression:"form.open=='1'"}],attrs:{label:"AppID",prop:"appId",required:!0}},[r("el-input",{attrs:{placeholder:"请输入美团开放平台开发者AppID"},model:{value:e.form.appId,callback:function(t){e.$set(e.form,"appId",t)},expression:"form.appId"}}),r("div",{staticClass:"yb_margin lh16"},[e._v("请输入美团开放平台开发者AppID")])],1),r("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"1"==e.form.open,expression:"form.open=='1'"}],attrs:{label:"AppSecret",required:!0}},[r("el-input",{attrs:{placeholder:"请输入团开放平台开发者AppSecret"},model:{value:e.form.appSecret,callback:function(t){e.$set(e.form,"appSecret",t)},expression:"form.appSecret"}}),r("div",{staticClass:"yb_margin lh16"},[e._v("请输入团开放平台开发者AppSecret")])],1)],1)],1)],1)],1),r("div",{staticClass:"mar_t20 ba_f pad_20 t_c"},[r("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("保存")])],1)])},n=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"shuju_title mar_b20"},[r("div",{staticClass:"shuju_title_text"},[r("span",[e._v("美团设置")])])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"ba_f8 pad_20"},[r("div",{staticClass:"lh25 msgtext fon_12"},[e._v(" 温馨提示:目前仅支持一键获取商户的美团外卖订单,进行统一管理;"),r("br"),e._v(" 1、需要先申请美团商家开放平台开发者账号申请地址"),r("a",{staticClass:"color_9",attrs:{href:"https://developer.meituan.com/ka",target:"_blank"}},[e._v("https://developer.meituan.com/ka")]),e._v(""),r("br"),e._v(" 2、管理中心-创建应用-企业应用-企业应用-勾选全部应用权限-其他内容按实际填写,保存即可;"),r("br"),e._v(" 3、需要商户已签约美团外卖平台。 ")])])}],i=(r("96cf"),r("1da1")),s=r("294d"),o={created:function(){this.init()},data:function(){return{activeName:"1",form:{appId:"",appSecret:"",open:"2"}}},methods:{init:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.bus.$emit("loading",!0),e.formData();case 2:case"end":return t.stop()}}),t)})))()},handleClick:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.formData();case 1:case"end":return t.stop()}}),t)})))()},formData:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(s["o"])({ident:"meituanSet"});case 2:r=t.sent,a=r.data,e.form2=e.form,e.form=Object.assign(e.form2,a),e.bus.$emit("loading",!1);case 7:case"end":return t.stop()}}),t)})))()},onSubmit:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$refs["form"].validate(function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(r){var a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!r){t.next=11;break}return e.form.ident="meituanSet",e.form.identName="美团设置",t.next=5,Object(s["S"])(e.form);case 5:a=t.sent,n=a.msg,e.$baseMessage(n,"success"),e.init(),t.next=12;break;case 11:return t.abrupt("return",!1);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()}}},c=o,l=r("2877"),u=Object(l["a"])(c,a,n,!1,null,null,null);t["default"]=u.exports}}]);