deal.js 4.3 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/saler/deal"],{"111a":function(e,n,t){"use strict";var u=t("95d3"),r=t.n(u);r.a},2196:function(e,n,t){"use strict";(function(e,n){var u=t("4ea4");t("b159");u(t("66fd"));var r=u(t("5bbb"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t("bc2e")["default"],t("543d")["createPage"])},"5bbb":function(e,n,t){"use strict";t.r(n);var u=t("a058"),r=t("d0e9");for(var o in r)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(o);t("111a");var a=t("f0c5"),i=Object(a["a"])(r["default"],u["b"],u["c"],!1,null,null,null,!1,u["a"],void 0);n["default"]=i.exports},"95d3":function(e,n,t){},a058:function(e,n,t){"use strict";t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return o})),t.d(n,"a",(function(){return u}));var u={uForm:function(){return t.e("uni_modules/vk-uview-ui/components/u-form/u-form").then(t.bind(null,"a0c0"))},uFormItem:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/vk-uview-ui/components/u-form-item/u-form-item")]).then(t.bind(null,"470d"))},uInput:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/vk-uview-ui/components/u-input/u-input")]).then(t.bind(null,"f017"))},uRadioGroup:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/vk-uview-ui/components/u-radio-group/u-radio-group")]).then(t.bind(null,"7bda"))},uRadio:function(){return t.e("uni_modules/vk-uview-ui/components/u-radio/u-radio").then(t.bind(null,"3c65"))},uGap:function(){return t.e("uni_modules/vk-uview-ui/components/u-gap/u-gap").then(t.bind(null,"2bea"))},uButton:function(){return t.e("uni_modules/vk-uview-ui/components/u-button/u-button").then(t.bind(null,"479c"))}},r=function(){var e=this.$createElement;this._self._c},o=[]},d0e9:function(e,n,t){"use strict";t.r(n);var u=t("f3fa"),r=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"]=r.a},f3fa:function(e,n,t){"use strict";(function(e){var u=t("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=u(t("9523")),o=t("266b");function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);n&&(u=u.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,u)}return t}function i(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,r.default)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var c={data:function(){return{curName:"",curId:"",groupType:"",form:{auth_state:"1"}}},onLoad:function(n){this.curId=n.id,this.groupType=n.gt;var t=e.getStorageSync("MD_dict"),u=(0,o.arrToObj)(t.group_type);this.curName="".concat(n.name,"(").concat(u[n.gt],")")},onReady:function(){this.$refs.uForm.setRules(this.rules)},methods:{getTime:function(e){var n=e?new Date(e):new Date,t=n.getFullYear(),u=n.getMonth()+1;u=u>9?u:"0"+u;var r=n.getDate();r=r>9?r:"0"+r;var o=n.getHours();o=o>9?o:"0"+o;var a=n.getMinutes();a=a>9?a:"0"+a;var i=n.getSeconds();return i=i>9?i:"0"+i,"".concat(t,"-").concat(u,"-").concat(r," ").concat(o,":").concat(a,":").concat(i)},uploadImgHandle:function(n){e.chooseImage({count:1,sizeType:["compressed"],success:function(t){var u=t.tempFilePaths[0],r=e.getStorageSync("MD_token")||"";e.uploadFile({url:e.baseUrl+"api/upload/cloud",filePath:u,name:"upload",formData:{token:r},success:function(t){var u=JSON.parse(t.data);0===u.errno?n&&"function"===typeof n&&n(u.data):e.$msg(u.errmsg||"未知错误-".concat(u.errno))}})}})},uploadImage:function(){var e=this;this.uploadImgHandle((function(n){e.form.report_code=n.url}))},submitHandle:function(){var n=this,t=this;this.$refs.uForm.validate((function(u){if(u){var r=i(i({},t.form),{},{id:t.curId}),o="apiuserauthedit";1==n.groupType&&(o="apideptauthedit"),e.api.base[o](r).then((function(n){e.$msgConfirm("编辑成功",(function(){e.reLaunch({url:"/pages/saler/check"})}),(function(){e.reLaunch({url:"/pages/saler/check"})}))}))}}))},getFormatDate:function(e){if(void 0==e||""==e)return"";var n=e;return parseInt(e)<10&&(n="0"+e),n}}};n.default=c}).call(this,t("543d")["default"])}},[["2196","common/runtime","common/vendor"]]]);