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

webpackJsonp([63],{Qn9I:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("mvHQ"),s=e.n(n),r=e("Xxa5"),o=e.n(r),i=e("exGp"),l=e.n(i),c={data:function(){return{promotion_poster_img:"https://lbqny.migugu.com/admin/anmo/mine/fx-share.png",subForm:{fx_check:"",user_agent_balance:"",coach_agent_balance:"",partner_coach_balance:"",partner_admin_balance:"",promotion_poster_img:[]},subFormRules:{fx_check:{required:!0,type:"number",message:"请选择",trigger:"blur"},user_agent_balance:{required:!0,validator:this.$reg.isPercent,text:"用户分销返佣比例",trigger:"blur"},coach_agent_balance:{required:!0,validator:this.$reg.isPercent,text:"经纪人返佣比例",trigger:"blur"},partner_coach_balance:{required:!0,validator:this.$reg.isPercent,text:this.$t("action.attendantName")+"承担比例",trigger:"blur"},partner_admin_balance:{required:!0,validator:this.$reg.isPercent,text:this.$t("action.attendantName")+"所属代理承担比例",trigger:"blur"},promotion_poster_img:{required:!0,type:"array",message:"请选择邀请用户推广海报背景图",trigger:"blur"}}}},created:function(){this.getFormInfo()},methods:{getFormInfo:function(){var t=this;return l()(o.a.mark(function a(){var e,n,s,r;return o.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,t.$api.system.configInfo();case 2:if(e=a.sent,n=e.code,s=e.data,200===n){a.next=7;break}return a.abrupt("return");case 7:for(r in s.promotion_poster_img=[{url:s.promotion_poster_img}],t.subForm)t.subForm[r]=s[r];case 9:case"end":return a.stop()}},a,t)}))()},getCover:function(t,a){this.subForm[a]=t},toReset:function(t){this.subForm[t]=[{url:this[t]}],this.submitForm()},submitForm:function(){var t=this;this.$refs.subForm.validate(function(a){if(a){var e=JSON.parse(s()(t.subForm));if(1*e.partner_coach_balance+1*e.partner_admin_balance>100)return void t.$message.error(t.$t("action.attendantName")+"和"+t.$t("action.attendantName")+"所属代理承担比例总计不能大于100%");e.promotion_poster_img=e.promotion_poster_img[0].url,t.$api.system.configUpdate(e).then(function(a){200===a.code&&t.$message.success(t.$t("tips.successSub"))})}})}}},m={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"lb-system-wechat"},[e("top-nav"),t._v(" "),e("div",{staticClass:"page-main"},[e("lb-tips",[t._v("经纪人的佣金应该由该笔订单服务"+t._s(t.$t("action.attendantName"))+"和该"+t._s(t.$t("action.attendantName"))+"绑定的上级代理承担\n "),e("el-popover",{attrs:{placement:"top-start",width:"500",trigger:"hover"}},[e("div",{staticClass:"f-caption c-title",attrs:{slot:""},slot:"default"},[e("div",[t._v("\n 例如:用户A下单实际付款除车费外为100元,经纪人B的返佣比例为10%,则经纪人B应得提成100*10%=10元\n ")]),t._v(" "),e("div",{staticClass:"mt-lg"},[t._v("1、承担比例累计等于100%,平台不承担")]),t._v(" "),e("div",{staticClass:"ml-lg mt-sm"},[t._v("\n 例如:"+t._s(t.$t("action.attendantName"))+"承担30%,"+t._s(t.$t("action.attendantName"))+"所属代理承担70%\n ")]),t._v(" "),e("div",{staticClass:"ml-lg mt-sm"},[t._v("\n 则:"+t._s(t.$t("action.attendantName"))+"应承担10*30%=3元,"+t._s(t.$t("action.attendantName"))+"所属代理应承担10*70%=7元\n ")]),t._v(" "),e("div",{staticClass:"mt-lg"},[t._v("2、承担比例累计小于100%,平台需承担")]),t._v(" "),e("div",{staticClass:"ml-lg mt-sm"},[t._v("\n 平台需承担金额=10*(100-"+t._s(t.$t("action.attendantName"))+"应承担比例\n - 所属代理商应承担比例)%\n ")]),t._v(" "),e("div",{staticClass:"ml-lg mt-sm"},[t._v("\n 例如:"+t._s(t.$t("action.attendantName"))+"承担30%,"+t._s(t.$t("action.attendantName"))+"所属代理承担0%\n ")]),t._v(" "),e("div",{staticClass:"ml-lg mt-sm"},[t._v("\n 则:"+t._s(t.$t("action.attendantName"))+"应承担10*30%=3元,平台应承担10*(100-30-0)%=7元\n ")]),t._v(" "),e("div",{staticClass:"ml-lg mt-lg"},[t._v("\n 例如:"+t._s(t.$t("action.attendantName"))+"承担30%,"+t._s(t.$t("action.attendantName"))+"所属代理承担50%\n ")]),t._v(" "),e("div",{staticClass:"ml-lg mt-sm"},[t._v("\n 则:"+t._s(t.$t("action.attendantName"))+"应承担10*30%=3元,"+t._s(t.$t("action.attendantName"))+"所属代理应承担10*50%=5元,平台应承担10*(100-30-50)%=2元\n ")]),t._v(" "),e("div",{staticClass:"ml-lg pt-lg c-warning"},[t._v("\n 温馨提示:\n "),e("div",{staticClass:"mt-sm"},[t._v("\n 1)、若没有所属代理,则计算规则中所属代理商应承担的金额应由平台所出\n ")]),t._v(" "),e("div",{staticClass:"mt-sm"},[t._v("\n 2)、若有所属代理且该代理在本订单中没有获得任何分成,则代理商无需承担\n ")]),t._v(" "),e("div",{staticClass:"mt-sm"},[t._v("\n 3)、若有所属代理且该代理在本订单中所得分成小于应承担金额,则该代理需将所得分成全部给经纪人,因此经纪人实际所得金额小于应得金额\n ")])])]),t._v(" "),e("i",{staticClass:"el-icon-question",staticStyle:{color:"#000"},attrs:{slot:"reference"},slot:"reference"})])],1),t._v(" "),e("el-form",{ref:"subForm",staticClass:"config-form",attrs:{model:t.subForm,rules:t.subFormRules,"label-width":"180px"},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-form-item",{attrs:{label:"分销合伙人审核",prop:"fx_check"}},[e("el-radio-group",{model:{value:t.subForm.fx_check,callback:function(a){t.$set(t.subForm,"fx_check",a)},expression:"subForm.fx_check"}},[e("el-radio",{attrs:{label:1}},[t._v(t._s(t.$t("action.ON")))]),t._v(" "),e("el-radio",{attrs:{label:0}},[t._v(t._s(t.$t("action.OFF")))])],1),t._v(" "),e("lb-tool-tips",[t._v("开启之后,手机端分销合伙人需要申请才能成为")])],1),t._v(" "),e("el-form-item",{attrs:{label:"用户分销返佣",prop:"user_agent_balance"}},[e("el-input",{attrs:{placeholder:"请输入用户分销返佣比例"},model:{value:t.subForm.user_agent_balance,callback:function(a){t.$set(t.subForm,"user_agent_balance",a)},expression:"subForm.user_agent_balance"}},[e("template",{slot:"append"},[t._v("%")])],2),t._v(" "),e("lb-tool-tips",[t._v("合伙人邀请用户下单,获得的佣金")])],1),t._v(" "),e("el-form-item",{attrs:{label:"经纪人返佣",prop:"coach_agent_balance"}},[e("el-input",{attrs:{placeholder:"请输入经纪人返佣比例"},model:{value:t.subForm.coach_agent_balance,callback:function(a){t.$set(t.subForm,"coach_agent_balance",a)},expression:"subForm.coach_agent_balance"}},[e("template",{slot:"append"},[t._v("%")])],2),t._v(" "),e("lb-tool-tips",[t._v("分销合伙人邀请用户成为"+t._s(t.$t("action.attendantName"))+","+t._s(t.$t("action.attendantName"))+"产生订单后获得的每笔订单佣金")])],1),t._v(" "),e("el-form-item",{attrs:{label:t.$t("action.attendantName")+"承担",prop:"partner_coach_balance"}},[e("el-input",{attrs:{placeholder:"请输入"+t.$t("action.attendantName")+"承担比例"},model:{value:t.subForm.partner_coach_balance,callback:function(a){t.$set(t.subForm,"partner_coach_balance",a)},expression:"subForm.partner_coach_balance"}},[e("template",{slot:"append"},[t._v("%")])],2),t._v(" "),e("lb-tool-tips",[t._v(t._s(t.$t("action.attendantName"))+"和"+t._s(t.$t("action.attendantName"))+"所属代理承担比例总计不能大于100%\n ")])],1),t._v(" "),e("el-form-item",{attrs:{label:t.$t("action.attendantName")+"所属代理承担",prop:"partner_admin_balance"}},[e("el-input",{attrs:{placeholder:"请输入"+t.$t("action.attendantName")+"所属代理承担比例"},model:{value:t.subForm.partner_admin_balance,callback:function(a){t.$set(t.subForm,"partner_admin_balance",a)},expression:"subForm.partner_admin_balance"}},[e("template",{slot:"append"},[t._v("%")])],2),t._v(" "),e("lb-tool-tips",[t._v(t._s(t.$t("action.attendantName"))+"和"+t._s(t.$t("action.attendantName"))+"所属代理承担比例总计不能大于100%\n ")])],1),t._v(" "),e("el-form-item",{attrs:{label:"邀请用户推广海报背景图",prop:"promotion_poster_img"}},[e("lb-cover",{attrs:{fileList:t.subForm.promotion_poster_img},on:{selectedFiles:function(a){return t.getCover(a,"promotion_poster_img")}}}),t._v(" "),e("lb-tool-tips",[t._v("图片建议尺寸:710 * 1152\n "),e("div",{staticClass:"mt-sm"},[t._v("\n 由于页面生成的二维码位置是固定的,所以设计海报时注意将中间的二维码位置留出来\n ")]),t._v(" "),e("div",{staticClass:"mt-sm"},[t._v("\n 海报背景图中不要出现诱导用户分享以及传播外链内容的\n ")]),t._v(" "),e("div",{staticClass:"mt-sm"},[t._v("\n 包括但不限于:以金钱奖励、实物奖励、虚拟奖品(包括但不限于红包、优惠券、代金券、积分、话费、流量);声称分享可获得返佣等\n ")])]),t._v(" "),e("div",[e("lb-button",{attrs:{type:"danger",plain:"",size:"small"},on:{click:function(a){return t.toReset("promotion_poster_img")}}},[t._v(t._s(t.$t("action.defaultSet")))])],1)],1),t._v(" "),e("el-form-item",[e("lb-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick"}],attrs:{type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$t("action.submit")))])],1)],1)],1)],1)},staticRenderFns:[]};var _=e("VU/8")(c,m,!1,function(t){e("bSk6")},"data-v-5ba497b3",null);a.default=_.exports},bSk6:function(t,a){}});