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

webpackJsonp([75],{eB79:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r=t("mvHQ"),p=t.n(r),o=t("Gu7T"),i=t.n(o),s=t("Xxa5"),n=t.n(s),l=t("woOf"),u=t.n(l),_=t("//Fk"),c=t.n(_),d=t("d7EF"),m=t.n(d),b=t("exGp"),f=t.n(b),v={data:function(){return{link:"",arr:["app_app_id","app_app_secret"],arr1:["app_download_img","android_link","ios_link"],subForm:{app_app_id:"",app_app_secret:"",app_download_img:[],android_link:"",ios_link:""},subFormRules:{app_app_id:{required:!0,type:"string",message:"请输入微信开放平台移动应用AppID",trigger:"blur"},app_app_secret:{required:!0,type:"string",message:"请输入微信开放平台移动应用AppSecret",trigger:"blur"}}}},created:function(){var e=window.location.href.split("/#")[0];this.link=e+"/h5/?#/user/pages/app-download",this.getFormInfo()},methods:{getFormInfo:function(){var e=this;return f()(n.a.mark(function a(){var t,r,p,o,i,s,l;return n.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,c.a.all([e.$api.system.configInfo(),e.$api.system.configInfoSchedule()]);case 2:t=a.sent,r=m()(t,2),p=r[0],o=r[1],i=e.$util.pick(p.data,e.arr),s=e.$util.pick(o.data,e.arr1),(l=u()({},i,s)).app_download_img=l.app_download_img&&l.app_download_img.length>0?[{url:l.app_download_img}]:[],e.subForm=l;case 11:case"end":return a.stop()}},a,e)}))()},getCover:function(e,a){this.subForm[a]=e},selectedFiles:function(e,a){var t;(t=this.subForm[a]).push.apply(t,i()(e))},moveFiles:function(e,a){this.subForm[a]=e},submitForm:function(){var e=this;return f()(n.a.mark(function a(){var t,r,o,i;return n.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(t=!1,e.$refs.subForm.validate(function(e){e&&(t=!0)}),(r=JSON.parse(p()(e.subForm))).app_download_img=r.app_download_img&&r.app_download_img.length>0?r.app_download_img[0].url:"",o=e.$util.pick(r,e.arr),!(i=e.$util.pick(r,e.arr1)).android_link&&!i.ios_link||i.app_download_img){a.next=9;break}return e.$message.error("请上传APP下载引导图"),a.abrupt("return");case 9:if(!t){a.next=13;break}return a.next=12,c.a.all([e.$api.system.configUpdate(o),e.$api.system.configUpdateSchedule(i)]);case 12:e.$message.success(e.$t("tips.successSub"));case 13:case"end":return a.stop()}},a,e)}))()}}},g={render:function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"lb-system-wechat"},[t("top-nav"),e._v(" "),t("div",{staticClass:"page-main"},[t("lb-tips",[e._v(" APP下载页面链接:"+e._s(e.link)+" ")]),e._v(" "),t("el-form",{ref:"subForm",staticClass:"config-form",attrs:{model:e.subForm,rules:e.subFormRules,"label-width":"120px"},nativeOn:{submit:function(e){e.preventDefault()}}},[t("el-form-item",{attrs:{label:"AppID",prop:"app_app_id"}},[t("el-input",{attrs:{placeholder:"请输入微信开放平台移动应用AppID"},model:{value:e.subForm.app_app_id,callback:function(a){e.$set(e.subForm,"app_app_id",a)},expression:"subForm.app_app_id"}}),e._v(" "),t("lb-tool-tips",[e._v("请输入微信开放平台申请移动应用的AppID,输入错误会影响APP的正常使用,谨慎修改")])],1),e._v(" "),t("el-form-item",{attrs:{label:"AppSecret",prop:"app_app_secret"}},[t("el-input",{attrs:{placeholder:"请输入微信开放平台移动应用AppSecret"},model:{value:e.subForm.app_app_secret,callback:function(a){e.$set(e.subForm,"app_app_secret",a)},expression:"subForm.app_app_secret"}}),e._v(" "),t("lb-tool-tips",[e._v("请输入微信开放平台申请移动应用的AppSecret,输入错误会影响APP的正常使用,谨慎修改")])],1),e._v(" "),t("el-form-item",{attrs:{label:"APP下载引导图",prop:"app_download_img"}},[t("lb-cover",{attrs:{fileList:e.subForm.app_download_img},on:{selectedFiles:function(a){return e.getCover(a,"app_download_img")}}}),e._v(" "),t("lb-tool-tips",[e._v("图片建议尺寸:1198 * 2320,图片内容建议居中展示\n ")])],1),e._v(" "),t("el-form-item",{attrs:{label:"Android下载链接",prop:"android_link"}},[t("el-input",{attrs:{placeholder:"请输入Android下载链接"},model:{value:e.subForm.android_link,callback:function(a){e.$set(e.subForm,"android_link",a)},expression:"subForm.android_link"}}),e._v(" "),t("lb-tool-tips",[e._v("建议将安卓包上传至云存储 ")])],1),e._v(" "),t("el-form-item",{attrs:{label:"IOS下载链接",prop:"ios_link"}},[t("el-input",{attrs:{placeholder:"请输入IOS下载链接"},model:{value:e.subForm.ios_link,callback:function(a){e.$set(e.subForm,"ios_link",a)},expression:"subForm.ios_link"}}),e._v(" "),t("lb-tool-tips",[e._v("例如:https://apps.apple.com/cn/app/具体ID值,可通过AppStore分享应用链接查看")])],1),e._v(" "),t("el-form-item",[t("lb-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick"}],attrs:{type:"primary"},on:{click:e.submitForm}},[e._v(e._s(e.$t("action.submit")))])],1)],1)],1)],1)},staticRenderFns:[]};var k=t("VU/8")(v,g,!1,function(e){t("ilps")},"data-v-4075385e",null);a.default=k.exports},ilps:function(e,a){}});