myVip.js
3.5 KB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_my/myVip/myVip"],{"196f":function(e,n,t){"use strict";t.r(n);var u=t("fafa"),i=t("bd11");for(var o in i)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(o);t("9db9");var r=t("828b"),s=Object(r["a"])(i["default"],u["b"],u["c"],!1,null,"7edaf220",null,!1,u["a"],void 0);n["default"]=s.exports},9759:function(e,n,t){},"9bf4":function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t={data:function(){return{isEdit:!1,show:!1,form:{time:"",price:"",status:0},vipList:[{time:"1天",price:"30",status:1},{time:"30天",price:"900",status:0},{time:"180天",price:"3600",status:1},{time:"360天",price:"7200",status:1}],rules:{name:[{required:!0,message:"请输入员工姓名",trigger:["blur","change"]}],phone:[{required:!0,message:"请输入手机号",trigger:["change"]},{validator:function(n,t,u){return e.$u.test.mobile(t)},message:"手机号码不正确",trigger:["change","blur"]}],password:[{required:!0,message:"请输入密码",trigger:["change"]},{pattern:/^[0-9a-zA-Z]*$/g,transform:function(e){return String(e)},message:"只能包含字母或数字",trigger:["change"]},{min:6,max:8,message:"长度在6-8个字符之间",trigger:["change"]}]}}},onReady:function(){this.$refs.uForm.setRules(this.rules)},methods:{addEmployee:function(){this.form={name:"",phone:"",password:""},this.isEdit=!1,this.show=!0},editEmployee:function(e){this.isEdit=!0,this.form=e,this.show=!0},submit:function(){var n=this;this.$refs.uForm.validate().then((function(t){n.isEdit?e.$u.toast("编辑"):e.$u.toast("添加")})).catch((function(n){e.$u.toast("校验失败")}))}}};n.default=t}).call(this,t("df3c")["default"])},"9db9":function(e,n,t){"use strict";var u=t("9759"),i=t.n(u);i.a},bd11:function(e,n,t){"use strict";t.r(n);var u=t("9bf4"),i=t.n(u);for(var o in u)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return u[e]}))}(o);n["default"]=i.a},e424:function(e,n,t){"use strict";(function(e,n){var u=t("47a9");t("c5a3");u(t("3240"));var i=u(t("196f"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(i.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])},fafa:function(e,n,t){"use strict";t.d(n,"b",(function(){return i})),t.d(n,"c",(function(){return o})),t.d(n,"a",(function(){return u}));var u={uIcon:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-icon/u-icon")]).then(t.bind(null,"cfe0"))},uPopup:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-popup/u-popup")]).then(t.bind(null,"2387"))},"u-Form":function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u--form/u--form")]).then(t.bind(null,"6c79"))},uFormItem:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-form-item/u-form-item")]).then(t.bind(null,"c7a5"))},uInput:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-input/u-input")]).then(t.bind(null,"8a3a"))},uSwitch:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-switch/u-switch")]).then(t.bind(null,"a696"))},uButton:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-button/u-button")]).then(t.bind(null,"ca10"))}},i=function(){var e=this,n=e.$createElement;e._self._c;e._isMounted||(e.e0=function(n){e.show=!1},e.e1=function(n){e.show=!1},e.e2=function(n){e.show=!1})},o=[]}},[["e424","common/runtime","common/vendor"]]]);