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
23 KiB
1 lines
23 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-745e526e"],{5177:function(t,e,a){},a063:function(t,e,a){"use strict";a("5177")},b500:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAAAoCAYAAACPQCMpAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAK6wAACusBgosNWgAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAnMSURBVHic7Z15tFV1Fcc/m8cQAmKppCmDhPKE1BapEY6gFpi2lCZKqcApBhUjksApKVNzCAnQHgEmORSKUyvhwUOUUBMThBS1JQiaqITDE0J5sPtj7+c7Hu693DfCe3d/1jrr3t/3N57zO2ef/fude89PVJXdCRHpCHwdmKaqFSLSFTheVWd6fGfgSFW9N0cZg4HjgXeAqaq6WkSOAlqp6uI6aOMJQDGwDVimqktrW2ZjQUR6A91V9fYcaS4GfgIsAC5U1U2JuLOA11X10Rz52wMPAotVdXxC/w5wGXCbqk5O6DcDxwGj6qJ/gx0Rkf7YdfdLD/cEpgPtgeGqWiYiLYASoD9QoqqXe9o+nnYucImqbheRTsAK4DBVXZuqqw0wCtgXaFaLZjcDVmE2YFvGFKqadQPaZdH3rC8d6Ai8ARzk4dGAAp08PAFYkKPNU4CXgd8B9wEvAQcDY4HJufY3Uca5wHkpTYALgJXA28BG394ClgBn5lN2Y928Xy4EVgMP5Ug3DNgETAPWAbNd7+V9Vw6M3kld3/Q+fx1om9B/7vqzgLjWwftDm3of7KJ+3wO4GHgFuMG15t4HJcClwFpgH+BKYDnwY+/773n6R4GzgUeAY1x7ALgmkw3y6/U3wN+Bf9RiWwBcDeyVdf+y7PRnfOf+CywGerr+aeAe1xcCB7u+rxubjUAp0MX1zwEPu/5X4ADXO2N3g43AHKBDqv5ngWH+/SFgCzDYwwsxrwLgTD9Q/T18GlABdE6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BkQkR6YetKV/I20ElVt/hP7GYk4hap6omerxhbJrWScuBAVX2/OvXn8gDbAd39+3ZsrdcgCIK6ZHMqXE7VUpjvpeLeTXxPr/ebzJc3WQ2gqr4MHAOsxZ4WzxKRc6tbQRAEQTZUdRW2wPo6YAUwVFW3evQDwM2YV7gYGJPItwY4F1iDeYJDVHVTdevf6brAItIVKAW6ujRMVW+tbkVBEATZ8IetH2kGgyQibbIZNxFpCVSo6vYa1ZvPwuhuBOcBn3dphKpOqUmFQRAEuwt5/Q5QVV8BTgb+7dJkEbmo3loVBEHQAOT9Vzgfc/cFVrk0UUQuqY9GBUEQNATV+i+wqr4GnIL99gbgJhG5os5bFQRB0ABU+20wbgT7AU9hP4/J+//EQRAEuxN5PQTJmFHkCOACVa3RL7CDIAh2Nf8HXed8mfHZjsYAAAAASUVORK5CYII="},b562:function(t,e,a){"use strict";a.d(e,"l",(function(){return r})),a.d(e,"n",(function(){return s})),a.d(e,"D",(function(){return o})),a.d(e,"h",(function(){return c})),a.d(e,"j",(function(){return n})),a.d(e,"m",(function(){return l})),a.d(e,"y",(function(){return u})),a.d(e,"a",(function(){return d})),a.d(e,"x",(function(){return m})),a.d(e,"s",(function(){return f})),a.d(e,"t",(function(){return p})),a.d(e,"C",(function(){return v})),a.d(e,"g",(function(){return g})),a.d(e,"i",(function(){return h})),a.d(e,"k",(function(){return b})),a.d(e,"d",(function(){return C})),a.d(e,"e",(function(){return A})),a.d(e,"f",(function(){return _})),a.d(e,"z",(function(){return w})),a.d(e,"B",(function(){return V})),a.d(e,"A",(function(){return x})),a.d(e,"H",(function(){return O})),a.d(e,"o",(function(){return P})),a.d(e,"c",(function(){return k})),a.d(e,"G",(function(){return y})),a.d(e,"E",(function(){return j})),a.d(e,"F",(function(){return I})),a.d(e,"w",(function(){return E})),a.d(e,"u",(function(){return B})),a.d(e,"v",(function(){return T})),a.d(e,"p",(function(){return G})),a.d(e,"b",(function(){return q})),a.d(e,"r",(function(){return S})),a.d(e,"q",(function(){return Y}));var i=a("b6bd");function r(t){return Object(i.a)({url:"app/routine",method:"get",params:t})}function s(){return Object(i.a)({url:"app/routine/syncSubscribe",method:"GET"})}function o(){return Object(i.a)({url:"app/wechat/syncSubscribe",method:"GET"})}function c(){return Object(i.a)({url:"app/routine/create",method:"get"})}function n(t){return Object(i.a)({url:"app/routine/".concat(t,"/edit"),method:"get"})}function l(t){return Object(i.a)({url:"app/routine/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function u(t){return Object(i.a)({url:"app/wechat/menu",method:"get"})}function d(t){return Object(i.a)({url:"app/wechat/menu",method:"post",data:t})}function m(t){return Object(i.a)({url:"app/wechat/template",method:"get",params:t})}function f(){return Object(i.a)({url:"app/wechat/template/create",method:"get"})}function p(t){return Object(i.a)({url:"app/wechat/template/".concat(t,"/edit"),method:"get"})}function v(t){return Object(i.a)({url:"app/wechat/template/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function g(t){return Object(i.a)({url:t.url,method:"post",data:t.key})}function h(t){return Object(i.a)({url:"app/routine/download",method:"post",data:t})}function b(){return Object(i.a)({url:"app/routine/info",method:"get"})}function C(t){return Object(i.a)({url:"app/wechat/keyword",method:"get",params:t})}function A(t){return Object(i.a)({url:"app/wechat/keyword/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function _(t,e){return Object(i.a)({url:t,method:"get",params:e.key})}function w(t){return Object(i.a)({url:"/app/wechat/news",method:"POST",data:t})}function V(t){return Object(i.a)({url:"app/wechat/news",method:"GET",params:t})}function x(t){return Object(i.a)({url:"app/wechat/news/".concat(t),method:"GET"})}function O(t){return Object(i.a)({url:"app/wechat/user",method:"GET",params:t})}function P(){return Object(i.a)({url:"app/wechat/user/tag_group",method:"GET"})}function k(t){return Object(i.a)({url:t,method:"GET"})}function y(){return Object(i.a)({url:"app/wechat/tag",method:"GET"})}function j(){return Object(i.a)({url:"app/wechat/tag/create",method:"GET"})}function I(t){return Object(i.a)({url:"app/wechat/tag/".concat(t,"/edit"),method:"GET"})}function E(){return Object(i.a)({url:"app/wechat/group",method:"GET"})}function B(){return Object(i.a)({url:"app/wechat/group/create",method:"GET"})}function T(t){return Object(i.a)({url:"app/wechat/group/".concat(t,"/edit"),method:"GET"})}function G(t){return Object(i.a)({url:"app/wechat/action",method:"GET",params:t})}function q(t){return Object(i.a)({url:"app/wechat/code_reply/".concat(t),method:"GET"})}function S(){return Object(i.a)({url:"/app/wechat/card",method:"GET"})}function Y(t){return Object(i.a)({url:"/app/wechat/card",method:"post",data:t})}},be70:function(t,e,a){"use strict";a.r(e);var i=a("b562"),r=a("b0e7"),s=a("2f62");function o(t){return(o="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 c(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function n(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?c(Object(a),!0).forEach((function(e){l(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):c(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function l(t,e,a){return(e=function(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var a=t[Symbol.toPrimitive];if(void 0!==a){var i=a.call(t,e||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var u={name:"card",components:{uploadPictures:r.a},data:function(){return{isChoice:"",modalPic:!1,logoPic:!1,gridBtn:{xl:4,lg:8,md:8,sm:8,xs:8},gridPic:{xl:6,lg:8,md:12,sm:12,xs:12},tableIndex:0,colorList:[],colors:"",colorsname:"",formValidate:{logo_url:"",brand_name:"RENZHOU",selet:0,attrs:[{pic:""}],title:"",prerogative:"",description:"",service_phone:"",background_pic_url:"",color:"",custom_cell:[],center_title:"",center_url:"",center_sub_title:"",center:[]},ruleValidate:{title:[{required:!0,message:"会员卡名称不能为空且长度不超过9个占位符",trigger:"blur"}],prerogative:[{required:!0,message:"特权说明不能为空",trigger:"blur"}],service_phone:[{required:!0,validator:function(t,e,a){if(""===e)a(new Error("请输入电话"));else{if(!(0==e.charAt(0)?/^(0[0-9]{2,3}\-)([2-9][0-9]{4,7})+(\-[0-9]{1,4})?$/:4==e.charAt(0)?/^400-[016789]\d{1,3}-\d{1,4}$/:/^1(3|4|5|6|7|8|9)\d{9}$/).test(e))return a(new Error("请填写正确电话"));a()}},trigger:"blur"}],brand_name:[{required:!0,message:"商户名称不能为空",trigger:"blur"}],center_url:[{required:!0,message:"跳转链接不能为空",trigger:"blur"}],center_sub_title:[{required:!0,message:"提示语不能为空",trigger:"blur"}],center_title:[{required:!0,message:"按钮描述不能为空",trigger:"blur"}]},pic:"",selecolor:!1,index:0,centerstatus:!0}},created:function(){},mounted:function(){var t=this;this.$nextTick((function(){t.getList()})),this.setCopyrightShow({value:!1})},destroyed:function(){this.setCopyrightShow({value:!0})},methods:n(n({},Object(s.d)("admin/layout",["setCopyrightShow"])),{},{getList:function(){var t=this;Object(i.r)().then((function(e){t.colorList=e.data.color,t.formValidate=Object.assign(t.formValidate,e.data.info),t.$set(t.formValidate,"selet",e.data.selet||0);var a=e.data.info.color;!a&&t.colorList[0]&&(a=t.colorList[0].name),t.colors=t.colorList.filter((function(t){if(a==t.name)return t.value})),""!=e.data.info.center_title&&(t.center_title=!1),t.colors[0]&&(t.colorsname=t.colors[0].name,t.colors=t.colors[0].value,""==t.colors&&t.dancolor(t.colorList[0])),1==e.data.selet&&(t.pic=e.data.info.background_pic_url),0==e.data.selet&&(t.pic=e.data.info.color)})).catch((function(e){t.$Message.error(e.msg)}))},seletcolor:function(){this.selecolor=!this.selecolor},dancolor:function(t){this.selecolor=!1,this.colors=t.value,this.colorsname=t.name},modalPicTap:function(t,e){this.modalPic=!0,this.isChoice="dan"===t?"单选":"多选",this.tableIndex=e},getPic:function(t){var e=this;this.$nextTick((function(){e.pic=t.att_dir,e.modalPic=!1}))},logoPicTap:function(t,e){this.logoPic=!0,this.isChoice="dan"===t?"单选":"多选",this.tableIndex=e},getlogoPic:function(t){var e=this;this.$nextTick((function(){e.formValidate.logo_url=t.att_dir,e.logoPic=!1}))},color:function(t){this.formValidate.selet=t},add:function(){this.index++,this.formValidate.custom_cell.push({name:"",tips:"",url:""})},addcenter:function(){this.centerstatus=!1},cancelcenter:function(){this.formValidate.center_title="",this.formValidate.center_sub_title="",this.formValidate.center_url="",this.centerstatus=!0},handleRemove:function(t){this.formValidate.custom_cell.splice(t,1),this.index--},submit:function(){var t=this;this.$refs.formValidate.validate((function(e){e?(0==t.formValidate.selet?t.formValidate.color=t.colorsname:t.formValidate.background_pic_url=t.pic,Object(i.q)(t.formValidate).then((function(e){t.$Message.success(e.msg),t.getList()})).catch((function(e){t.$Message.error(e.msg)}))):t.$Message.error("请完善信息")}))}})},d=(a("a063"),a("2877")),m=Object(d.a)(u,(function(){var t=this,e=t._self._c;return e("div",[e("Card",{staticClass:"ivu-mt flexs",attrs:{bordered:!1,"dis-hover":""}},[e("Row",{attrs:{gutter:24}},[e("Col",{attrs:{xl:8,lg:24,md:24,sm:24,xs:24}},[e("div",{staticClass:"card_box"},[e("div",{staticClass:"item_box"},[e("img",{attrs:{src:a("b500")}}),t.colorList.length&&1==t.formValidate.selet?e("div",{staticClass:"card",style:{background:"url(".concat(t.pic,")"),backgroundColor:"".concat(t.colors)}},[e("div",{staticClass:"top"},[e("div",{staticClass:"user"},[e("img",{attrs:{src:t.formValidate.logo_url,alt:""}}),e("div",{staticClass:"info_box"},[e("div",{staticClass:"info"},[t._v(t._s(t.formValidate.brand_name))]),e("div",{staticClass:"info_tit"},[t._v(t._s(t.formValidate.title))])])]),e("img",{attrs:{src:a("bfaf")}})]),e("div",{staticClass:"bottom"},[e("div",[t._v("0268 8888 8888")]),e("div",[e("Icon",{staticClass:"fz",attrs:{type:"ios-information-circle-outline"}})],1)])]):t._e(),0==t.formValidate.selet&&t.colorList.length?e("div",{staticClass:"card",style:{"background-color":t.colors||"".concat(t.colorList[0].value)}},[e("div",{staticClass:"top"},[e("div",{staticClass:"user"},[e("img",{attrs:{src:t.formValidate.logo_url,alt:""}}),e("div",{staticClass:"info_box"},[e("div",{staticClass:"info"},[t._v(t._s(t.formValidate.brand_name))]),e("div",{staticClass:"info_tit"},[t._v(t._s(t.formValidate.title))])])]),e("img",{attrs:{src:a("bfaf")}})]),e("div",{staticClass:"bottom"},[e("div",[t._v("0268 8888 8888")]),e("div",[e("Icon",{staticClass:"fz",attrs:{type:"ios-information-circle-outline"}})],1)])]):t._e(),t.centerstatus?t._e():e("div",{staticClass:"entry"},[e("div",{staticClass:"entry_btn"},[t._v(t._s(t.formValidate.center_title||"快速进入"))]),e("p",{staticClass:"entry_tit"},[t._v(t._s(t.formValidate.center_sub_title||"添加提示语"))])]),e("div",{staticClass:"card_link"},[e("div",{staticClass:"link"},[t._v("适用门店 "),e("span",{staticClass:"you"},[t._v(">")])]),e("div",{staticClass:"link"},[t._v("公众号 "),e("span",{staticClass:"you"},[t._v(">")])])]),e("div",{staticClass:"custom_card"},[""!=t.formValidate.custom_cell?e("div",{staticClass:"custom_link"},t._l(t.formValidate.custom_cell,(function(a,i){return e("div",{staticClass:"link"},[t._v(t._s(a.name||" 自定义入口(选填)")),e("span",{staticClass:"you"},[e("span",{staticClass:"guide"},[t._v(t._s(a.tips))]),t._v(">")])])})),0):e("div",{staticClass:"custom_link"},[e("div",{staticClass:"link"},[t._v("自定义入口"),e("span",{staticClass:"tip"},[t._v("(选填)")]),e("span",{staticClass:"you"},[t._v(">")])])])])])])]),e("Col",{attrs:{xl:16,lg:24,md:24,sm:24,xs:24}},[e("div",{staticClass:"card_content"},[e("Alert",{attrs:{"show-icon":""}},[t._v("\n 使用会员卡券功能,需要您先开通"),e("a",{attrs:{target:"_blank",href:"https://mp.weixin.qq.com/"}},[t._v("微信公众号")]),t._v("和"),e("a",{attrs:{target:"_blank",href:"https://mp.weixin.qq.com/merchant/membercardmgr?action=overview&t=cardticket/member_card_index&token=20898185&lang=zh_CN"}},[t._v("微信会员卡券")]),t._v(",否则无法配置和使用\n ")]),e("div",{staticClass:"content_box"},[e("div",{staticClass:"title_bar"},[t._v("基本信息")]),e("Form",{ref:"formValidate",attrs:{model:t.formValidate,rules:t.ruleValidate,"label-width":80}},[e("div",{staticClass:"title_text"},[e("div",{staticClass:"left"},[t._v("商户头像:")]),e("div",{staticClass:"right logoPictrue"},[e("div",{staticClass:"img-boxs acea-row row-center-wrapper",on:{click:function(e){return t.logoPicTap("dan",0)}}},[t.formValidate.logo_url?e("img",{attrs:{src:t.formValidate.logo_url,alt:""}}):e("Icon",{attrs:{type:"ios-add",size:"16"}})],1)])]),e("div",{staticClass:"title_text"},[e("div",{staticClass:"left"},[t._v("商户名称:")]),e("div",{staticClass:"right"},[e("FormItem",{staticClass:"nomarb",attrs:{label:"",prop:"brand_name"}},[e("Input",{staticClass:"input-width",attrs:{maxlength:"12","show-word-limit":"",placeholder:"商户名称"},model:{value:t.formValidate.brand_name,callback:function(e){t.$set(t.formValidate,"brand_name",e)},expression:"formValidate.brand_name"}})],1)],1)]),e("div",{staticClass:"title_text"},[e("div",{staticClass:"left"},[t._v("电话:")]),e("div",{staticClass:"right"},[e("FormItem",{staticClass:"nomarb",attrs:{label:"",prop:"service_phone"}},[e("Input",{staticClass:"input-width",attrs:{placeholder:""},model:{value:t.formValidate.service_phone,callback:function(e){t.$set(t.formValidate,"service_phone",e)},expression:"formValidate.service_phone"}})],1)],1)]),e("div",{staticClass:"title_text"},[e("div",{staticClass:"left"},[t._v("卡券封面:")]),e("div",{staticClass:"right"},[e("RadioGroup",{on:{"on-change":t.color},model:{value:t.formValidate.selet,callback:function(e){t.$set(t.formValidate,"selet",e)},expression:"formValidate.selet"}},[e("Radio",{attrs:{label:1}},[e("span",[t._v("图片")])]),e("Radio",{attrs:{label:0}},[e("span",[t._v("颜色")])])],1)],1)]),e("div",{staticClass:"selst"},[1===t.formValidate.selet?e("div",[e("div",{staticClass:"acea-row row-middle",on:{click:function(e){return t.modalPicTap("dan",0)}}},[e("div",{staticClass:"pictrue pictrueTab"},[t.pic?e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.pic,expression:"pic"}]}):e("Icon",{attrs:{type:"ios-add",size:"16"}})],1)])]):t._e(),0===t.formValidate.selet&&t.colorList.length?e("div",[e("div",{staticClass:"color_input",on:{click:t.seletcolor}},[e("div",{staticClass:"input_color",style:{backgroundColor:"".concat(t.colors)||"".concat(t.colorList[0].value)}}),e("span",{staticClass:"xia"},[t._v("﹀")]),t.selecolor?e("div",{staticClass:"color_box"},t._l(t.colorList,(function(a,i){return e("div",{staticClass:"color_link",style:{backgroundColor:"".concat(a.value)},on:{click:function(e){return e.stopPropagation(),t.dancolor(a)}}})})),0):t._e()])]):t._e()]),e("div",{staticClass:"title_text mb60"},[e("div",{staticClass:"left"},[t._v("会员卡标题:")]),e("div",{staticClass:"right"},[e("FormItem",{staticClass:"nomarb",attrs:{label:"",prop:"title"}},[e("Input",{staticClass:"input-width",attrs:{maxlength:"9","show-word-limit":"",placeholder:""},model:{value:t.formValidate.title,callback:function(e){t.$set(t.formValidate,"title",e)},expression:"formValidate.title"}}),e("div",{staticClass:"tip"},[t._v("建议会员卡标题包含商户名或服务内容,如腾讯会员黄钻尊享卡")])],1)],1)]),e("Divider",{attrs:{dashed:""}}),e("div",{staticClass:"title_bar"},[t._v("会员卡详情")]),e("div",{staticClass:"title_text required"},[e("div",{staticClass:"left left-add"},[t._v("特权说明:")]),e("div",{staticClass:"right",staticStyle:{flex:"1"}},[e("FormItem",{attrs:{label:"",prop:"prerogative"}},[e("Input",{staticStyle:{resize:"none",border:"none",width:"460px"},attrs:{rows:5,autosize:{maxRows:5,minRows:5},type:"textarea",placeholder:"注:1、上文设置中,如已经填写“积分优惠”“折扣优惠”的内容,将会自动在用户会员卡详情展示,无需重复填写。2、建议填写其他特权,举例:100积分可兑换精美礼品;会员日可享受折上折优惠等"},model:{value:t.formValidate.prerogative,callback:function(e){t.$set(t.formValidate,"prerogative",e)},expression:"formValidate.prerogative"}})],1)],1)]),e("div",{staticClass:"title_text required"},[e("div",{staticClass:"left left-add"},[t._v("介绍:")]),e("div",{staticClass:"right",staticStyle:{flex:"1"}},[e("FormItem",{attrs:{label:"",prop:"notice"}},[e("Input",{staticStyle:{resize:"none",border:"none",width:"460px"},attrs:{maxlength:"300","show-word-limit":"",rows:5,autosize:{maxRows:5,minRows:5},type:"textarea",placeholder:"注:1、上文设置中,如已经填写“积分优惠”“折扣优惠”的内容,将会自动在用户会员卡详情展示,无需重复填写。2、建议填写其他注意事项,举例:积分不支持兑换现金"},model:{value:t.formValidate.description,callback:function(e){t.$set(t.formValidate,"description",e)},expression:"formValidate.description"}})],1)],1)]),e("Divider",{attrs:{dashed:""}}),e("div",{staticClass:"title_bar"},[t._v("商户介绍"),e("span",[t._v("(选填)")])]),t.formValidate.custom_cell&&t.formValidate.custom_cell.length>0?e("div",{staticClass:"addentrance"},t._l(t.formValidate.custom_cell,(function(a,i){return e("div",[e("div",{staticClass:"add_bar"},[0==i?e("div",[t._v("入口一")]):t._e(),1==i?e("div",[t._v("入口二")]):t._e(),2==i?e("div",[t._v("入口三")]):t._e(),e("div",{staticClass:"del",on:{click:function(e){return t.handleRemove(i)}}},[t._v("删除")])]),e("div",{staticClass:"title_text required"},[e("div",{staticClass:"left"},[t._v("入口名称:")]),e("div",{staticClass:"right"},[e("div",[e("FormItem",{attrs:{prop:"custom_cell."+i+".name",rules:{required:!0,message:"请输入入口名称",trigger:"blur"}}},[e("Input",{staticClass:"input-width",attrs:{maxlength:"5","show-word-limit":"",placeholder:""},model:{value:a.name,callback:function(e){t.$set(a,"name",e)},expression:"item.name"}})],1)],1)])]),e("div",{staticClass:"title_text required"},[e("div",{staticClass:"left"},[t._v("跳转链接:")]),e("div",{staticClass:"right"},[e("div",[e("FormItem",{attrs:{prop:"custom_cell."+i+".url",rules:{required:!0,message:"请输入跳转链接",trigger:"blur"}}},[e("Input",{staticClass:"input-width",attrs:{placeholder:""},model:{value:a.url,callback:function(e){t.$set(a,"url",e)},expression:"item.url"}})],1)],1)])]),e("div",{staticClass:"title_text"},[e("div",{staticClass:"left"},[t._v("引导语:")]),e("div",{staticClass:"right"},[e("div",[e("Input",{staticClass:"input-width",attrs:{maxlength:"6","show-word-limit":"",placeholder:""},model:{value:a.tips,callback:function(e){t.$set(a,"tips",e)},expression:"item.tips"}})],1)])])])})),0):t._e(),e("div",[t.formValidate.custom_cell&&t.formValidate.custom_cell.length<=2?e("div",{staticClass:"add",on:{click:t.add}},[t._v("添加自定义入口")]):t._e()])],1)],1)],1)])],1),e("div",{staticClass:"submit"},[e("div",{staticClass:"btn",on:{click:function(e){return t.submit()}}},[t._v("提交")])])],1),e("Modal",{staticClass:"aaaa",attrs:{width:"960px",scrollable:"","footer-hide":"",closable:"",title:"选择图片","mask-closable":!1},model:{value:t.modalPic,callback:function(e){t.modalPic=e},expression:"modalPic"}},[t.modalPic?e("uploadPictures",{attrs:{isChoice:t.isChoice,gridBtn:t.gridBtn,gridPic:t.gridPic},on:{getPic:t.getPic}}):t._e()],1),e("Modal",{staticClass:"aaaa",attrs:{width:"960px",scrollable:"","footer-hide":"",closable:"",title:"选择图片","mask-closable":!1},model:{value:t.logoPic,callback:function(e){t.logoPic=e},expression:"logoPic"}},[t.logoPic?e("uploadPictures",{attrs:{isChoice:t.isChoice,gridBtn:t.gridBtn,gridPic:t.gridPic},on:{getPic:t.getlogoPic}}):t._e()],1)],1)}),[],!1,null,"5ab89ca8",null);e.default=m.exports},bfaf:function(t,e,a){t.exports=a.p+"view_admin/img/qr.2004b4f6.png"}}]); |