王总上门按摩后台代码
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
7.4 KiB

webpackJsonp([101],{kUkz:function(r,e){},yED0:function(r,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=o("mvHQ"),s=o.n(t),l=o("Xxa5"),_=o.n(l),a=o("exGp"),u=o.n(a),d={data:function(){var r=this,e=function(e,o,t){var s=r.subForm[e.key],l=r.subForm.type;s=s?s.replace(/(^\s*)|(\s*$)/g,""):"",1!==l&&(2!==l||"short_sign"===e.key)||s?t():t(new Error("请输入"+e.text))},o=function(e,o,t){var s=r.subForm.short_code_status,l=void 0===s?0:s;o=o?o.replace(/(^\s*)|(\s*$)/g,""):"",1!==l||o?t():t(new Error("请输入短信验证码模板CODE"))};return{subForm:{type:1,short_sign:"",order_short_code:"",refund_short_code:"",help_short_code:"",short_code_status:0,short_code:"",moor_order_short_code:"",moor_refund_short_code:"",moor_help_short_code:"",moor_short_code:""},subFormRules:{type:{required:!0,type:"number",message:"请选择短信通知运营商",trigger:"blur"},short_sign:{required:!0,validator:e,key:"short_sign",text:"签名",trigger:"blur"},order_short_code:{required:!0,validator:e,key:"order_short_code",text:"下单模板CODE",trigger:"blur"},refund_short_code:{required:!0,validator:e,key:"refund_short_code",text:"退单模板CODE",trigger:"blur"},help_short_code:{required:!0,validator:e,key:"help_short_code",text:"求救通知模板CODE",trigger:"blur"},moor_order_short_code:{required:!0,validator:e,key:"moor_order_short_code",text:"下单模板CODE",trigger:"blur"},moor_refund_short_code:{required:!0,validator:e,key:"moor_refund_short_code",text:"退单模板CODE",trigger:"blur"},moor_help_short_code:{required:!0,validator:e,key:"moor_help_short_code",text:"求救通知模板CODE",trigger:"blur"},short_code_status:{required:!0,type:"number",message:"请选择是否启用短信模板",trigger:"blur"},short_code:{required:!0,validator:o,trigger:"blur"},moor_short_code:{required:!0,validator:o,trigger:"blur"}}}},created:function(){var r=this;return u()(_.a.mark(function e(){return _.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.getDetail();case 2:case"end":return e.stop()}},e,r)}))()},methods:{getDetail:function(){var r=this;return u()(_.a.mark(function e(){var o,t,s,l;return _.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.$api.system.shortCodeConfigInfo();case 2:if(o=e.sent,t=o.code,s=o.data,200===t){e.next=7;break}return e.abrupt("return");case 7:for(l in r.subForm)r.subForm[l]=s[l];case 8:case"end":return e.stop()}},e,r)}))()},submitFormInfo:function(r){var e=this;this.$refs[r].validate(function(r){if(r){var o=JSON.parse(s()(e.subForm));e.$api.system.shortCodeConfigUpdate(o).then(function(r){200===r.code&&e.$message.success(e.$t("tips.successSub"))})}})}}},c={render:function(){var r=this,e=r.$createElement,o=r._self._c||e;return o("div",{staticClass:"lb-group-news"},[o("top-nav"),r._v(" "),o("div",{staticClass:"page-main"},[o("el-form",{ref:"subForm",attrs:{model:r.subForm,rules:r.subFormRules,"label-width":"180px"},nativeOn:{submit:function(r){r.preventDefault()}}},[o("el-form-item",{attrs:{label:"短信通知运营商",prop:"type"}},[o("el-radio-group",{model:{value:r.subForm.type,callback:function(e){r.$set(r.subForm,"type",e)},expression:"subForm.type"}},[o("el-radio",{attrs:{label:1}},[r._v("阿里云")]),r._v(" "),o("el-radio",{attrs:{label:2}},[r._v("容联七陌")])],1)],1),r._v(" "),1===r.subForm.type?o("block",[o("el-form-item",{attrs:{label:"签名",prop:"short_sign"}},[o("el-input",{attrs:{placeholder:"请输入签名"},model:{value:r.subForm.short_sign,callback:function(e){r.$set(r.subForm,"short_sign",e)},expression:"subForm.short_sign"}}),r._v(" "),o("lb-tool-tips",[r._v("签名在阿里云短信签名管理处查看")])],1),r._v(" "),o("el-form-item",{attrs:{label:"下单模板CODE",prop:"order_short_code"}},[o("el-input",{attrs:{placeholder:"请输入下单模板CODE"},model:{value:r.subForm.order_short_code,callback:function(e){r.$set(r.subForm,"order_short_code",e)},expression:"subForm.order_short_code"}}),r._v(" "),o("lb-tool-tips",[r._v("短信模板CODE, 如: SMS_129755997")])],1),r._v(" "),o("el-form-item",{attrs:{label:"退单模板CODE",prop:"refund_short_code"}},[o("el-input",{attrs:{placeholder:"请输入下单模板CODE"},model:{value:r.subForm.refund_short_code,callback:function(e){r.$set(r.subForm,"refund_short_code",e)},expression:"subForm.refund_short_code"}})],1),r._v(" "),o("el-form-item",{attrs:{label:"求救通知模板CODE",prop:"help_short_code"}},[o("el-input",{attrs:{placeholder:"请输入求救通知模板CODE"},model:{value:r.subForm.help_short_code,callback:function(e){r.$set(r.subForm,"help_short_code",e)},expression:"subForm.help_short_code"}})],1)],1):r._e(),r._v(" "),2===r.subForm.type?o("block",[o("el-form-item",{attrs:{label:"下单模板CODE",prop:"moor_order_short_code"}},[o("el-input",{attrs:{placeholder:"请输入下单模板CODE"},model:{value:r.subForm.moor_order_short_code,callback:function(e){r.$set(r.subForm,"moor_order_short_code",e)},expression:"subForm.moor_order_short_code"}})],1),r._v(" "),o("el-form-item",{attrs:{label:"退单模板CODE",prop:"moor_refund_short_code"}},[o("el-input",{attrs:{placeholder:"请输入下单模板CODE"},model:{value:r.subForm.moor_refund_short_code,callback:function(e){r.$set(r.subForm,"moor_refund_short_code",e)},expression:"subForm.moor_refund_short_code"}})],1),r._v(" "),o("el-form-item",{attrs:{label:"求救通知模板CODE",prop:"moor_help_short_code"}},[o("el-input",{attrs:{placeholder:"请输入求救通知模板CODE"},model:{value:r.subForm.moor_help_short_code,callback:function(e){r.$set(r.subForm,"moor_help_short_code",e)},expression:"subForm.moor_help_short_code"}})],1)],1):r._e(),r._v(" "),o("el-form-item",{attrs:{label:"是否启用短信验证码模板",prop:"short_code_status"}},[o("el-radio-group",{model:{value:r.subForm.short_code_status,callback:function(e){r.$set(r.subForm,"short_code_status",e)},expression:"subForm.short_code_status"}},[o("el-radio",{attrs:{label:1}},[r._v(r._s(r.$t("action.ON")))]),r._v(" "),o("el-radio",{attrs:{label:0}},[r._v(r._s(r.$t("action.OFF")))])],1),r._v(" "),o("lb-tool-tips",[r._v("开启后,必须配置短信验证码模板CODE\n "),o("div",{staticClass:"mt-sm"},[r._v("\n 用于手机端下单时若用户没有授权手机号,则通过短信验证码收集手机号码\n ")])])],1),r._v(" "),1===r.subForm.type&&1===r.subForm.short_code_status?o("el-form-item",{attrs:{label:"短信验证码模板CODE",prop:"short_code"}},[o("el-input",{attrs:{placeholder:"请输入短信验证码模板CODE"},model:{value:r.subForm.short_code,callback:function(e){r.$set(r.subForm,"short_code",e)},expression:"subForm.short_code"}}),r._v(" "),o("lb-tool-tips",[r._v("用于发送短信验证码")])],1):r._e(),r._v(" "),2===r.subForm.type&&1===r.subForm.short_code_status?o("el-form-item",{attrs:{label:"短信验证码模板CODE",prop:"moor_short_code"}},[o("el-input",{attrs:{placeholder:"请输入短信验证码模板CODE"},model:{value:r.subForm.moor_short_code,callback:function(e){r.$set(r.subForm,"moor_short_code",e)},expression:"subForm.moor_short_code"}}),r._v(" "),o("lb-tool-tips",[r._v("用于发送短信验证码")])],1):r._e(),r._v(" "),o("el-form-item",[o("lb-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick"}],attrs:{type:"primary"},on:{click:function(e){return r.submitFormInfo("subForm")}}},[r._v(r._s(r.$t("action.submit")))])],1)],1)],1)],1)},staticRenderFns:[]};var n=o("VU/8")(d,c,!1,function(r){o("kUkz")},"data-v-14b34988",null);e.default=n.exports}});