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