1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-79409890","chunk-29a9f618"],{"23b3":function(t,e,n){"use strict";n.r(e);var r=n("d708"),a={name:"routine",data:function(){return{baseURL:r.a.apiBaseURL.replace(/adminapi/,"")}}},i=(n("8e21"),n("2877")),c=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("Tabs",{attrs:{value:"1",animated:!1}},[n("TabPane",{attrs:{label:"1.注册小程序",name:"1"}},[n("Timeline",[n("TimelineItem",[n("div",{staticClass:"dot",attrs:{slot:"dot"},slot:"dot"},[t._v("1")]),n("div",{staticClass:"title"},[t._v("打开公众平台")]),n("div",{staticClass:"content"},[n("div",{staticClass:"item"},[n("div",{staticClass:"text"},[n("div",[t._v("\n 打开微信公众平台官网:"),n("a",{attrs:{href:"https://mp.weixin.qq.com",target:"_blank",rel:"noopener noreferrer"}},[t._v("https://mp.weixin.qq.com")])]),n("div",[t._v("右上角点击“立即注册”")])]),n("div",{staticClass:"image"},[n("img",{attrs:{src:t.baseURL+"statics/system/mp-1-1-1.png",alt:""}})])])])]),n("TimelineItem",[n("div",{staticClass:"dot",attrs:{slot:"dot"},slot:"dot"},[t._v("2")]),n("div",{staticClass:"title"},[t._v("选择账号类型")]),n("div",{staticClass:"content"},[n("div",{staticClass:"item"},[n("div",{staticClass:"text"},[n("div",[t._v("选择账号类型,请选择“小程序”")])]),n("div",{staticClass:"image"},[n("img",{attrs:{src:t.baseURL+"/statics/system/mp-1-2-1.png",alt:""}})])])])]),n("TimelineItem",[n("div",{staticClass:"dot",attrs:{slot:"dot"},slot:"dot"},[t._v("3")]),n("div",{staticClass:"title"},[t._v("填写邮箱并激活")]),n("div",{staticClass:"content"},[n("div",{staticClass:"item"},[n("div",{staticClass:"text"},[n("div",[t._v("登录您的邮箱,查看激活邮件,然后在此填写邮箱验证码")])]),n("div",{staticClass:"image"},[n("img",{attrs:{src:t.baseURL+"/statics/system/mp-1-3-1.png",alt:""}})])])])]),n("TimelineItem",[n("div",{staticClass:"dot",attrs:{slot:"dot"},slot:"dot"},[t._v("4")]),n("div",{staticClass:"title"},[t._v("信息登记")]),n("div",{staticClass:"content"},[n("div",{staticClass:"item"},[n("div",{staticClass:"text"},[n("div",[t._v("\n 主体请记得选择“企业”,之后的企业信息可根据您自己的企业情况填写\n ")])]),n("div",{staticClass:"image"},[n("img",{attrs:{src:t.baseURL+"/statics/system/mp-1-4-1.png",alt:""}})])])])])],1)],1),n("TabPane",{attrs:{label:"2.完善小程序",name:"2"}},[n("Timeline",[n("TimelineItem",[n("div",{staticClass:"dot",attrs:{slot:"dot"},slot:"dot"},[t._v("1")]),n("div",{staticClass:"title"},[t._v("添加开发者")]),n("div",{staticClass:"content"},[n("div",{staticClass:"item"},[n("div",{staticClass:"text"},[n("div",[t._v("如果本人为小程序管理者可以跳过此步")])]),n("div",{staticClass:"image"},[n("img",{attrs:{src:t.baseURL+"/statics/system/mp-2-1-1.png",alt:""}})])])])]),n("TimelineItem",[n("div",{staticClass:"dot",attrs:{slot:"dot"},slot:"dot"},[t._v("2")]),n("div",{staticClass:"title"},[t._v("重置AppSecret")]),n("div",{staticClass:"content"},[n("div",{staticClass:"item"},[n("div",{staticClass:"text"},[n("div",[t._v("位置:点击小程序左侧菜单,开发 → 开发管理 → 开发设置")]),n("div",[t._v("\n 操作:点击图中的重置按钮,重置成功后记得保存AppID(小程序ID)、AppSecret(小程序密钥)\n ")])]),n("div",{staticClass:"image"},[n("img",{attrs:{src:t.baseURL+"/statics/system/mp-2-2-1.png",alt:""}})])])])]),n("TimelineItem",[n("div",{staticClass:"dot",attrs:{slot:"dot"},slot:"dot"},[t._v("3")]),n("div",{staticClass:"title"},[t._v("关闭IP白名单")]),n("div",{staticClass:"content"},[n("div",{staticClass:"item"},[n("div",{staticClass:"text"},[n("div",[t._v("位置:点击小程序左侧菜单,开发 → 开发管理 → 开发设置")]),n("div",[t._v("\n 操作:点击图中的关闭按钮,此开关需要管理员的微信扫码才可以关闭哦\n ")])]),n("div",{staticClass:"image"},[n("img",{attrs:{src:t.baseURL+"/statics/system/mp-2-3-1.png",alt:""}})])])])]),n("TimelineItem",[n("div",{staticClass:"dot",attrs:{slot:"dot"},slot:"dot"},[t._v("4")]),n("div",{staticClass:"title"},[t._v("配置服务器")]),n("div",{staticClass:"content"},[n("div",{staticClass:"item"},[n("div",{staticClass:"text"},[n("div",[t._v("\n 填写您的域名,请注意填写域名的前缀,按照提示格式填写哦\n ")])]),n("div",{staticClass:"image"},[n("img",{attrs:{src:t.baseURL+"/statics/system/mp-2-4-1.png",alt:""}})])])])]),n("TimelineItem",[n("div",{staticClass:"dot",attrs:{slot:"dot"},slot:"dot"},[t._v("5")]),n("div",{staticClass:"title"},[t._v("修改业务域名")]),n("div",{staticClass:"content"},[n("div",{staticClass:"item"},[n("div",{staticClass:"text"},[n("div",[t._v("修改业务域名,同样填写上一步的域名即可")])]),n("div",{staticClass:"image"},[n("img",{attrs:{src:t.baseURL+"/statics/system/mp-2-5-1.png",alt:""}})])])])])],1)],1),n("TabPane",{attrs:{label:"3.开发配置",name:"3"}},[n("Timeline",[n("TimelineItem",[n("div",{staticClass:"dot",attrs:{slot:"dot"},slot:"dot"},[t._v("1")]),n("div",{staticClass:"title"},[t._v("登录您的神英优选系统后台")]),n("div",{staticClass:"content"},[n("div",{staticClass:"item"},[n("div",{staticClass:"text"},[n("div",[t._v("\n 位置:设置 → 应用设置 →\n 小程序,填写小程序开发者信息,AppID、AppSecret、小程序名称\n ")])]),n("div",{staticClass:"image"},[n("img",{attrs:{src:t.baseURL+"/statics/system/mp-3-1-1.png",alt:""}})])])])]),n("TimelineItem",[n("div",{staticClass:"dot",attrs:{slot:"dot"},slot:"dot"},[t._v("2")]),n("div",{staticClass:"title"},[t._v("关闭小程序充值开关")]),n("div",{staticClass:"content"},[n("div",{staticClass:"item"},[n("Alert",{attrs:{"show-icon":""}},[n("div",[t._v("\n 目前小程序审核,带有充值功能会被要求提供相关资料(预付卡在线充值业务),神英优选小程序提交前,\n 请在后台关闭充值功能,等待审核通过后再打开\n ")])]),n("div",{staticClass:"text"},[n("div",[t._v("\n 位置:营销→余额充值→充值设置,小程序充值开关,选择“关闭”(不要忘记底部的提交按钮哦~)\n ")])]),n("div",{staticClass:"image"},[n("img",{attrs:{src:t.baseURL+"/statics/system/mp-3-2-1.png",alt:""}})])],1)])])],1)],1)],1)}),[],!1,null,"140459ed",null);e.default=c.exports},"600a":function(t,e,n){"use strict";var r=n("d852");n.n(r).a},"8e21":function(t,e,n){"use strict";var r=n("e9a6");n.n(r).a},"90e7":function(t,e,n){"use strict";n.d(e,"x",(function(){return a})),n.d(e,"k",(function(){return i})),n.d(e,"Jb",(function(){return c})),n.d(e,"Ib",(function(){return o})),n.d(e,"j",(function(){return s})),n.d(e,"db",(function(){return u})),n.d(e,"kb",(function(){return d})),n.d(e,"gb",(function(){return l})),n.d(e,"hb",(function(){return f})),n.d(e,"d",(function(){return p})),n.d(e,"eb",(function(){return m})),n.d(e,"Nb",(function(){return h})),n.d(e,"ib",(function(){return v})),n.d(e,"p",(function(){return b})),n.d(e,"o",(function(){return g})),n.d(e,"c",(function(){return _})),n.d(e,"U",(function(){return O})),n.d(e,"mb",(function(){return j})),n.d(e,"T",(function(){return C})),n.d(e,"nb",(function(){return w})),n.d(e,"xb",(function(){return y})),n.d(e,"K",(function(){return x})),n.d(e,"wb",(function(){return D})),n.d(e,"s",(function(){return T})),n.d(e,"q",(function(){return k})),n.d(e,"r",(function(){return E})),n.d(e,"t",(function(){return G})),n.d(e,"u",(function(){return I})),n.d(e,"X",(function(){return P})),n.d(e,"Y",(function(){return R})),n.d(e,"V",(function(){return U})),n.d(e,"W",(function(){return L})),n.d(e,"M",(function(){return S})),n.d(e,"E",(function(){return A})),n.d(e,"I",(function(){return $})),n.d(e,"H",(function(){return M})),n.d(e,"z",(function(){return B})),n.d(e,"J",(function(){return q})),n.d(e,"B",(function(){return F})),n.d(e,"G",(function(){return z})),n.d(e,"A",(function(){return J})),n.d(e,"y",(function(){return H})),n.d(e,"L",(function(){return K})),n.d(e,"i",(function(){return N})),n.d(e,"e",(function(){return Q})),n.d(e,"f",(function(){return W})),n.d(e,"Kb",(function(){return Z})),n.d(e,"Lb",(function(){return V})),n.d(e,"Mb",(function(){return X})),n.d(e,"lb",(function(){return Y})),n.d(e,"yb",(function(){return tt})),n.d(e,"N",(function(){return et})),n.d(e,"Ab",(function(){return nt})),n.d(e,"zb",(function(){return rt})),n.d(e,"Bb",(function(){return at})),n.d(e,"Cb",(function(){return it})),n.d(e,"Db",(function(){return ct})),n.d(e,"Eb",(function(){return ot})),n.d(e,"Ob",(function(){return st})),n.d(e,"Pb",(function(){return ut})),n.d(e,"O",(function(){return dt})),n.d(e,"g",(function(){return lt})),n.d(e,"Qb",(function(){return ft})),n.d(e,"ob",(function(){return pt})),n.d(e,"pb",(function(){return mt})),n.d(e,"F",(function(){return ht})),n.d(e,"C",(function(){return vt})),n.d(e,"jb",(function(){return bt})),n.d(e,"qb",(function(){return gt})),n.d(e,"rb",(function(){return _t})),n.d(e,"sb",(function(){return Ot})),n.d(e,"D",(function(){return jt})),n.d(e,"fb",(function(){return Ct})),n.d(e,"cb",(function(){return wt})),n.d(e,"P",(function(){return yt})),n.d(e,"S",(function(){return xt})),n.d(e,"Q",(function(){return Dt})),n.d(e,"R",(function(){return Tt})),n.d(e,"h",(function(){return kt})),n.d(e,"w",(function(){return Et})),n.d(e,"v",(function(){return Gt})),n.d(e,"Z",(function(){return It})),n.d(e,"tb",(function(){return Pt})),n.d(e,"vb",(function(){return Rt})),n.d(e,"b",(function(){return Ut})),n.d(e,"ub",(function(){return Lt})),n.d(e,"n",(function(){return St})),n.d(e,"a",(function(){return At})),n.d(e,"m",(function(){return $t})),n.d(e,"l",(function(){return Mt})),n.d(e,"Fb",(function(){return Bt})),n.d(e,"Gb",(function(){return qt})),n.d(e,"Hb",(function(){return Ft})),n.d(e,"ab",(function(){return zt})),n.d(e,"bb",(function(){return Jt}));var r=n("b6bd");function a(t){return Object(r.a)({url:"setting/config/header_basics",method:"get",params:t})}function i(t,e){return Object(r.a)({url:e,method:"get",params:t})}function c(t){return Object(r.a)({url:t.url,method:"get",params:t.data})}function o(){return Object(r.a)({url:"notify/sms/temp/create",method:"get"})}function s(t){return Object(r.a)({url:"serve/login",method:"post",data:t})}function u(){return Object(r.a)({url:"serve/info",method:"get"})}function d(t){return Object(r.a)({url:"serve/sms/open",method:"get",params:t})}function l(t){return Object(r.a)({url:"serve/opn_express",method:"post",data:t})}function f(t){return Object(r.a)({url:"serve/open",method:"get",params:t})}function p(t){return Object(r.a)({url:"serve/checkCode",method:"post",data:t})}function m(t){return Object(r.a)({url:"serve/modify",method:"post",data:t})}function h(t){return Object(r.a)({url:"serve/update_phone",method:"post",data:t})}function v(t){return Object(r.a)({url:"serve/record",method:"get",params:t})}function b(t){return Object(r.a)({url:"serve/export_temp",method:"get",params:t})}function g(){return Object(r.a)({url:"serve/export_all",method:"get"})}function _(t){return Object(r.a)({url:"serve/captcha",method:"post",data:t})}function O(t){return Object(r.a)({url:"serve/register",method:"post",data:t})}function j(t){return Object(r.a)({url:"serve/meal_list",method:"get",params:t})}function C(t){return Object(r.a)({url:"serve/pay_meal",method:"post",data:t})}function w(t){return Object(r.a)({url:"notify/sms/record",method:"get",params:t})}function y(){return Object(r.a)({url:"merchant/store",method:"GET"})}function x(){return Object(r.a)({url:"merchant/store/address",method:"GET"})}function D(t){return Object(r.a)({url:"merchant/store/".concat(t.id),method:"POST",data:t})}function T(t){return Object(r.a)({url:"freight/express",method:"get",params:t})}function k(){return Object(r.a)({url:"/freight/express/create",method:"get"})}function E(t){return Object(r.a)({url:"freight/express/".concat(t,"/edit"),method:"get"})}function G(t){return Object(r.a)({url:"freight/express/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function I(){return Object(r.a)({url:"freight/express/sync_express",method:"get"})}function P(t){return Object(r.a)({url:"setting/role",method:"GET",params:t})}function R(t){return Object(r.a)({url:"setting/role/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function U(t){return Object(r.a)({url:"setting/role/".concat(t.id),method:"post",data:t})}function L(t){return Object(r.a)({url:"setting/role/".concat(t,"/edit"),method:"get"})}function S(){return Object(r.a)({url:"setting/role/create",method:"get"})}function A(t){return Object(r.a)({url:"app/wechat/kefu",method:"get",params:t})}function $(t){return Object(r.a)({url:"app/wechat/kefu/create",method:"get",params:t})}function M(){return Object(r.a)({url:"app/wechat/kefu/add",method:"get"})}function B(t){return Object(r.a)({url:"app/wechat/kefu",method:"post",data:t})}function q(t){return Object(r.a)({url:"app/wechat/kefu/set_status/".concat(t.id,"/").concat(t.account_status),method:"PUT"})}function F(t){return Object(r.a)({url:"app/wechat/kefu/".concat(t,"/edit"),method:"GET"})}function z(t,e){return Object(r.a)({url:"app/wechat/kefu/record/".concat(e),method:"GET",params:t})}function J(t){return Object(r.a)({url:"app/wechat/kefu/chat_list",method:"GET",params:t})}function H(){return Object(r.a)({url:"notify/sms/is_login",method:"GET"})}function K(){return Object(r.a)({url:"notify/sms/logout",method:"GET"})}function N(t){return Object(r.a)({url:"setting/city/list/".concat(t),method:"get"})}function Q(t){return Object(r.a)({url:"setting/city/add/".concat(t),method:"get"})}function W(t){return Object(r.a)({url:"setting/city/".concat(t,"/edit"),method:"get"})}function Z(t){return Object(r.a)({url:"setting/shipping_templates/list",method:"get",params:t})}function V(t){return Object(r.a)({url:"setting/shipping_templates/city_list",method:"get"})}function X(t,e){return Object(r.a)({url:"setting/shipping_templates/save/".concat(t),method:"post",data:e})}function Y(t){return Object(r.a)({url:"setting/shipping_templates/".concat(t,"/edit"),method:"get"})}function tt(){return Object(r.a)({url:"merchant/store/get_header",method:"get"})}function et(t){return Object(r.a)({url:"merchant/store",method:"get",params:t})}function nt(t,e){return Object(r.a)({url:"merchant/store/set_show/".concat(t,"/").concat(e),method:"put"})}function rt(t){return Object(r.a)({url:"merchant/store/get_info/".concat(t),method:"get"})}function at(t){return Object(r.a)({url:"merchant/store_staff",method:"get",params:t})}function it(){return Object(r.a)({url:"merchant/store_staff/create",method:"get"})}function ct(t){return Object(r.a)({url:"merchant/store_staff/".concat(t,"/edit"),method:"get"})}function ot(t,e){return Object(r.a)({url:"merchant/store_staff/set_show/".concat(t,"/").concat(e),method:"put"})}function st(t){return Object(r.a)({url:"merchant/verify_order",method:"get",params:t})}function ut(t){return Object(r.a)({url:"merchant/verify/spread_info/".concat(t),method:"get"})}function dt(){return Object(r.a)({url:"merchant/store_list",method:"get"})}function lt(){return Object(r.a)({url:"setting/city/clean_cache",method:"get"})}function ft(t){return Object(r.a)({url:"app/wechat/speechcraft",method:"get",params:t})}function pt(t){return Object(r.a)({url:"app/wechat/speechcraft/create",method:"get",params:t})}function mt(t){return Object(r.a)({url:"app/wechat/speechcraft/".concat(t,"/edit"),method:"get"})}function ht(t){return Object(r.a)({url:"app/wechat/kefu/login/".concat(t),method:"get"})}function vt(t){return Object(r.a)({url:"app/feedback",method:"get",params:t})}function bt(t){return Object(r.a)({url:"serve/sms/sign",method:"PUT",data:t})}function gt(){return Object(r.a)({url:"app/wechat/speechcraftcate",method:"get"})}function _t(){return Object(r.a)({url:"app/wechat/speechcraftcate/create",method:"get"})}function Ot(t){return Object(r.a)({url:"app/wechat/speechcraftcate/".concat(t,"/edit"),method:"get"})}function jt(t){return Object(r.a)({url:"app/feedback/".concat(t,"/edit"),method:"get"})}function Ct(){return Object(r.a)({url:"serve/open",method:"get"})}function wt(){return Object(r.a)({url:"serve/dump_open",method:"get"})}function yt(t){return Object(r.a)({url:"setting/system_out/index",method:"get",params:t})}function xt(t,e){return Object(r.a)({url:"setting/system_out/set_status/".concat(t,"/").concat(e),method:"put"})}function Dt(t){return Object(r.a)({url:"setting/system_out/save",method:"post",params:t})}function Tt(t,e){return Object(r.a)({url:"setting/system_out/update/".concat(t),method:"post",params:e})}function kt(t){return Object(r.a)({url:"city",method:"get",params:t})}function Et(t){return Object(r.a)({url:"setting/config/edit_new_build/"+t,method:"get"})}function Gt(){return Object(r.a)({url:"/setting/config/image",method:"get"})}function It(t){return Object(r.a)({url:"setting/config/save_basics",method:"post",data:t})}function Pt(t){return Object(r.a)({url:"/setting/config/storage",method:"get",params:t})}function Rt(t){return Object(r.a)({url:"/setting/config/storage/synch/".concat(t),method:"put"})}function Ut(t){return Object(r.a)({url:"/setting/config/storage/create/".concat(t),method:"get"})}function Lt(t){return Object(r.a)({url:"/setting/config/storage/status/".concat(t),method:"put"})}function St(t){return Object(r.a)({url:"/setting/config/storage/domain/".concat(t),method:"get"})}function At(t){return Object(r.a)({url:"/setting/config/storage/form/".concat(t),method:"get"})}function $t(t){return Object(r.a)({url:"/order/delivery_order/list",method:"get",params:t})}function Mt(t){return Object(r.a)({url:"/order/delivery_order/cancelForm/".concat(t),method:"get"})}function Bt(t,e){return Object(r.a)({url:"/system/form/save/".concat(t),method:"post",data:e})}function qt(t,e){return Object(r.a)({url:"/system/form/info/".concat(t),method:"get",params:e})}function Ft(t){return Object(r.a)({url:"/system/form/index",method:"get",params:t})}function zt(t){return Object(r.a)({url:"setting/config/storage/save_type/".concat(t),method:"get"})}function Jt(t){return Object(r.a)({url:"/file/scan/upload",method:"post",headers:{"content-type":"multipart/form-data;"},data:t})}},b562:function(t,e,n){"use strict";n.d(e,"l",(function(){return a})),n.d(e,"n",(function(){return i})),n.d(e,"D",(function(){return c})),n.d(e,"h",(function(){return o})),n.d(e,"j",(function(){return s})),n.d(e,"m",(function(){return u})),n.d(e,"y",(function(){return d})),n.d(e,"a",(function(){return l})),n.d(e,"x",(function(){return f})),n.d(e,"s",(function(){return p})),n.d(e,"t",(function(){return m})),n.d(e,"C",(function(){return h})),n.d(e,"g",(function(){return v})),n.d(e,"i",(function(){return b})),n.d(e,"k",(function(){return g})),n.d(e,"d",(function(){return _})),n.d(e,"e",(function(){return O})),n.d(e,"f",(function(){return j})),n.d(e,"z",(function(){return C})),n.d(e,"B",(function(){return w})),n.d(e,"A",(function(){return y})),n.d(e,"H",(function(){return x})),n.d(e,"o",(function(){return D})),n.d(e,"c",(function(){return T})),n.d(e,"G",(function(){return k})),n.d(e,"E",(function(){return E})),n.d(e,"F",(function(){return G})),n.d(e,"w",(function(){return I})),n.d(e,"u",(function(){return P})),n.d(e,"v",(function(){return R})),n.d(e,"p",(function(){return U})),n.d(e,"b",(function(){return L})),n.d(e,"r",(function(){return S})),n.d(e,"q",(function(){return A}));var r=n("b6bd");function a(t){return Object(r.a)({url:"app/routine",method:"get",params:t})}function i(){return Object(r.a)({url:"app/routine/syncSubscribe",method:"GET"})}function c(){return Object(r.a)({url:"app/wechat/syncSubscribe",method:"GET"})}function o(){return Object(r.a)({url:"app/routine/create",method:"get"})}function s(t){return Object(r.a)({url:"app/routine/".concat(t,"/edit"),method:"get"})}function u(t){return Object(r.a)({url:"app/routine/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function d(t){return Object(r.a)({url:"app/wechat/menu",method:"get"})}function l(t){return Object(r.a)({url:"app/wechat/menu",method:"post",data:t})}function f(t){return Object(r.a)({url:"app/wechat/template",method:"get",params:t})}function p(){return Object(r.a)({url:"app/wechat/template/create",method:"get"})}function m(t){return Object(r.a)({url:"app/wechat/template/".concat(t,"/edit"),method:"get"})}function h(t){return Object(r.a)({url:"app/wechat/template/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function v(t){return Object(r.a)({url:t.url,method:"post",data:t.key})}function b(t){return Object(r.a)({url:"app/routine/download",method:"post",data:t})}function g(){return Object(r.a)({url:"app/routine/info",method:"get"})}function _(t){return Object(r.a)({url:"app/wechat/keyword",method:"get",params:t})}function O(t){return Object(r.a)({url:"app/wechat/keyword/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function j(t,e){return Object(r.a)({url:t,method:"get",params:e.key})}function C(t){return Object(r.a)({url:"/app/wechat/news",method:"POST",data:t})}function w(t){return Object(r.a)({url:"app/wechat/news",method:"GET",params:t})}function y(t){return Object(r.a)({url:"app/wechat/news/".concat(t),method:"GET"})}function x(t){return Object(r.a)({url:"app/wechat/user",method:"GET",params:t})}function D(){return Object(r.a)({url:"app/wechat/user/tag_group",method:"GET"})}function T(t){return Object(r.a)({url:t,method:"GET"})}function k(){return Object(r.a)({url:"app/wechat/tag",method:"GET"})}function E(){return Object(r.a)({url:"app/wechat/tag/create",method:"GET"})}function G(t){return Object(r.a)({url:"app/wechat/tag/".concat(t,"/edit"),method:"GET"})}function I(){return Object(r.a)({url:"app/wechat/group",method:"GET"})}function P(){return Object(r.a)({url:"app/wechat/group/create",method:"GET"})}function R(t){return Object(r.a)({url:"app/wechat/group/".concat(t,"/edit"),method:"GET"})}function U(t){return Object(r.a)({url:"app/wechat/action",method:"GET",params:t})}function L(t){return Object(r.a)({url:"app/wechat/code_reply/".concat(t),method:"GET"})}function S(){return Object(r.a)({url:"/app/wechat/card",method:"GET"})}function A(t){return Object(r.a)({url:"/app/wechat/card",method:"post",data:t})}},d852:function(t,e,n){},ddee:function(t,e,n){"use strict";n.r(e);var r=n("23b3"),a=n("b562"),i=n("90e7"),c=n("2f62"),o=n("d708");function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d={name:"routineTemplate",components:{routine:r.default},data:function(){return{roterPre:o.a.roterPre,grid:{xl:7,lg:7,md:12,sm:24,xs:24},iframeUrl:"".concat(location.origin,"/pages/index/index"),is_live:1,pageData:{code:"",routine_name:"",help:"",appId:"1"},formData:{routine_appId:"",routine_appsecret:"",routine_name:"",store_user_avatar:0,order_shipping_open:0,routine_contact_type:1,routine_auth_type:[1,2]},guideShow:!1,avatarDesc:"",phoneAuthDesc:""}},created:function(){var t=this;Object(a.k)().then((function(e){t.pageData=e.data})),Object(i.w)("routine").then((function(e){var n=e.data;t.formData.routine_appId=n.routine_appId.value,t.formData.routine_appsecret=n.routine_appsecret.value,t.formData.routine_name=n.routine_name.value,t.formData.routine_contact_type=n.routine_contact_type.value,t.formData.store_user_avatar=n.store_user_avatar.value,t.formData.routine_auth_type=n.routine_auth_type.value,t.avatarDesc=n.store_user_avatar.desc,t.phoneAuthDesc=n.routine_auth_type.desc,t.formData.order_shipping_open=n.order_shipping_open.value}))},watch:{$route:function(t,e){}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(n,!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},Object(c.e)("media",["isMobile"]),{labelWidth:function(){return this.isMobile?void 0:80},labelPosition:function(){return this.isMobile?"top":"left"}}),methods:{downLoad:function(){var t=this;Object(a.i)({is_live:this.is_live}).then((function(t){window.open(t.data.url)})).catch((function(e){t.$Message.warning(e.msg)}))},downLoadCode:function(t){if(!t)return this.$Message.warning("暂无小程序码");var e=new Image;e.src=t,e.setAttribute("crossOrigin","anonymous"),e.onload=function(){var t=document.createElement("canvas");t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0,e.width,e.height);var n=t.toDataURL(),r=document.createElement("a"),a=new MouseEvent("click");r.download=name||"photo",r.href=n,r.dispatchEvent(a)}},submitForm:function(){var t=this;Object(i.Z)(this.formData).then((function(e){t.$Message.success(e.msg)})).catch((function(e){t.$Message.error(e.msg)}))},showGuide:function(){this.guideShow=!0}}},l=(n("600a"),n("2877")),f=Object(l.a)(d,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[n("Button",{attrs:{slot:"extra",type:"text","custom-icon":"iconfont iconpeizhiyindao1"},on:{click:t.showGuide},slot:"extra"},[t._v("配置引导")]),n("div",{staticClass:"flex-wrapper"},[n("div",[n("iframe",{ref:"iframe",staticClass:"iframe-box",attrs:{src:t.iframeUrl,frameborder:"0"}}),n("div",{staticClass:"mask"})]),n("div",{staticClass:"right"},[n("div",{staticClass:"content"},[n("div",{staticClass:"content-box title"},[n("div",{staticClass:"line"}),n("div",{staticClass:"right title"},[t._v("基础配置")])]),n("div",{staticClass:"content-box"},[n("div",{staticClass:"left"},[t._v("appid:")]),n("div",{staticClass:"right"},[n("Input",{attrs:{placeholder:"请输入appid"},model:{value:t.formData.routine_appId,callback:function(e){t.$set(t.formData,"routine_appId",e)},expression:"formData.routine_appId"}})],1)]),n("div",{staticClass:"content-box"},[n("div",{staticClass:"left"},[t._v("AppSecret:")]),n("div",{staticClass:"right"},[n("Input",{attrs:{placeholder:"请输入AppSecret"},model:{value:t.formData.routine_appsecret,callback:function(e){t.$set(t.formData,"routine_appsecret",e)},expression:"formData.routine_appsecret"}})],1)]),n("div",{staticClass:"content-box"},[n("div",{staticClass:"left"},[t._v("小程序名称:")]),n("div",{staticClass:"right"},[n("Input",{attrs:{placeholder:"请输入小程序名称"},model:{value:t.formData.routine_name,callback:function(e){t.$set(t.formData,"routine_name",e)},expression:"formData.routine_name"}})],1)]),n("div",{staticClass:"content-box"},[n("div",{staticClass:"left"},[t._v("小程序客服类型:")]),n("div",{staticClass:"right"},[n("RadioGroup",{model:{value:t.formData.routine_contact_type,callback:function(e){t.$set(t.formData,"routine_contact_type",e)},expression:"formData.routine_contact_type"}},[n("Radio",{attrs:{label:1}},[n("span",[t._v("小程序客服")])]),n("Radio",{attrs:{label:0}},[n("span",[t._v("内置客服系统")])])],1)],1)]),n("div",{staticClass:"content-box"},[n("div",{staticClass:"left"},[t._v("强制获取昵称头像:")]),n("div",{staticClass:"right"},[n("RadioGroup",{model:{value:t.formData.store_user_avatar,callback:function(e){t.$set(t.formData,"store_user_avatar",e)},expression:"formData.store_user_avatar"}},[n("Radio",{attrs:{label:0}},[n("span",[t._v("关闭")])]),n("Radio",{attrs:{label:1}},[n("span",[t._v("开启")])])],1)],1)]),n("div",{staticClass:"content-box last"},[n("div",{staticClass:"left"}),n("div",{staticClass:"right"},[n("div",{staticClass:"tip"},[t._v(t._s(t.avatarDesc))])])]),n("div",{staticClass:"content-box"},[n("div",{staticClass:"left"},[t._v("发货信息管理:")]),n("div",{staticClass:"right"},[n("RadioGroup",{model:{value:t.formData.order_shipping_open,callback:function(e){t.$set(t.formData,"order_shipping_open",e)},expression:"formData.order_shipping_open"}},[n("Radio",{attrs:{label:0}},[n("span",[t._v("关闭")])]),n("Radio",{attrs:{label:1}},[n("span",[t._v("开启")])])],1)],1)]),n("div",{staticClass:"content-box"},[n("div",{staticClass:"left"},[t._v("手机号获取方式:")]),n("div",{staticClass:"right"},[n("CheckboxGroup",{model:{value:t.formData.routine_auth_type,callback:function(e){t.$set(t.formData,"routine_auth_type",e)},expression:"formData.routine_auth_type"}},[n("Checkbox",{attrs:{label:1}},[n("span",[t._v("微信授权")])]),n("Checkbox",{attrs:{label:2}},[n("span",[t._v("手机号登录")])])],1)],1)]),n("div",{staticClass:"content-box last"},[n("div",{staticClass:"left"}),n("div",{staticClass:"right"},[n("div",{staticClass:"tip"},[t._v(t._s(t.phoneAuthDesc))])])])]),n("div",{staticClass:"content",staticStyle:{"margin-bottom":"60px"}},[n("div",{staticClass:"content-box title"},[n("div",{staticClass:"line"}),n("div",{staticClass:"right title"},[t._v("相关下载")])]),t.pageData.appId||t.pageData.code?t._e():n("Alert",{attrs:{closable:""}},[n("template",{slot:"desc"},[t._v("\r\n 您尚未配置小程序信息,请"),n("router-link",{attrs:{to:{path:t.roterPre+"/setting/system_config?from=download"}}},[t._v("立即设置")])],1)],2),n("div",{staticClass:"content-box"},[n("div",{staticClass:"left"},[t._v("小程序码:")]),n("div",{staticClass:"right"},[n("Button",{attrs:{type:"primary"},on:{click:function(e){return t.downLoadCode(t.pageData.code)}}},[t._v("下载小程序码")])],1)]),n("div",{staticClass:"content-box"},[n("div",{staticClass:"left"},[t._v("小程序源码包:")]),n("div",{staticClass:"right"},[n("RadioGroup",{attrs:{size:"large"},model:{value:t.is_live,callback:function(e){t.is_live=e},expression:"is_live"}},[n("Radio",{attrs:{label:0}},[t._v("未开通直播")]),n("Radio",{attrs:{label:1}},[t._v("已开通直播")])],1)],1)]),n("div",{staticClass:"content-box last"},[n("div",{staticClass:"left"}),n("div",{staticClass:"right"},[n("div",{staticClass:"tip"},[t._v("\r\n 请谨慎选择是否有开通小程序直播功能,否则将影响小程序的发布\r\n 可前往\r\n "),n("a",{attrs:{href:t.pageData.help,target:"_blank"}},[t._v("帮助文档")]),t._v("\r\n 查看如何开通直播功能\r\n ")]),n("Button",{staticClass:"mt10",attrs:{type:"primary"},on:{click:function(e){return t.downLoad()}}},[t._v("源码包下载")])],1)])],1)])])],1),n("Card",{staticClass:"submit-card",attrs:{bordered:!1,"dis-hover":""}},[n("Button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v("提交")])],1),n("Drawer",{attrs:{title:"小程序配置引导",width:"800"},model:{value:t.guideShow,callback:function(e){t.guideShow=e},expression:"guideShow"}},[n("routine")],1)],1)}),[],!1,null,"6ec33e51",null);e.default=f.exports},e9a6:function(t,e,n){}}]);
|