circle.js 8.2 KB

12
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["circlePages/circle"],{155:function(e,t,n){"use strict";(function(e,t){var o=n(4);n(26);o(n(25));var i=o(n(156));e.__webpack_require_UNI_MP_PLUGIN__=n,t(i.default)}).call(this,n(1)["default"],n(2)["createPage"])},156:function(e,t,n){"use strict";n.r(t);var o=n(157),i=n(159);for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);n(162);var s,a=n(36),c=Object(a["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,"7db0d20e",null,!1,o["components"],s);c.options.__file="circlePages/circle.vue",t["default"]=c.exports},157:function(e,t,n){"use strict";n.r(t);var o=n(158);n.d(t,"render",(function(){return o["render"]})),n.d(t,"staticRenderFns",(function(){return o["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return o["recyclableRender"]})),n.d(t,"components",(function(){return o["components"]}))},158:function(e,t,n){"use strict";var o;n.r(t),n.d(t,"render",(function(){return i})),n.d(t,"staticRenderFns",(function(){return s})),n.d(t,"recyclableRender",(function(){return r})),n.d(t,"components",(function(){return o}));try{o={tnNavBar:function(){return Promise.all([n.e("common/vendor"),n.e("tuniao-ui/components/tn-nav-bar/tn-nav-bar")]).then(n.bind(null,220))},tnSteps:function(){return n.e("tuniao-ui/components/tn-steps/tn-steps").then(n.bind(null,391))},uniFilePicker:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker")]).then(n.bind(null,375))},tnButton:function(){return Promise.all([n.e("common/vendor"),n.e("tuniao-ui/components/tn-button/tn-button")]).then(n.bind(null,273))},uniDataSelect:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-data-select/components/uni-data-select/uni-data-select")]).then(n.bind(null,359))},uniForms:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-forms/components/uni-forms/uni-forms")]).then(n.bind(null,398))},wSelect:function(){return n.e("components/w-select/w-select").then(n.bind(null,407))},uniFormsItem:function(){return n.e("uni_modules/uni-forms/components/uni-forms-item/uni-forms-item").then(n.bind(null,414))},uniEasyinput:function(){return n.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(n.bind(null,384))},uniDataCheckbox:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox")]).then(n.bind(null,421))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var e=this,t=e.$createElement;e._self._c},r=!1,s=[];i._withStripped=!0},159:function(e,t,n){"use strict";n.r(t);var o=n(160),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);t["default"]=i.a},160:function(e,t,n){"use strict";(function(e){var o=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(161)),r=o(n(58)),s={name:"TemplateEdit",mixins:[i.default],data:function(){return{canSave:!0,selectValue:"",selectList:[{value:"非常紧急",text:"非常紧急"},{value:"两周",text:"两周"},{value:"一月",text:"一月"},{value:"长期",text:"长期"}],content:"",formInfo:{jobTitle:"",agree:["是"],contactPerson:JSON.parse(e.getStorageSync("userInfo")).contactNickName,contactMethod:JSON.parse(e.getStorageSync("userInfo")).contactMethod||JSON.parse(e.getStorageSync("userInfo")).userName},imgList:[],fileDetailList:[],stepIndex:1,stepList:[{name:"填写需求",icon:"circle",selectIcon:"circle-fill"},{name:"填写联系方式",icon:"trusty",selectIcon:"trusty-fill"}],tagList:[{color:"red",title:"元神"},{color:"cyan",title:"LOL"},{color:"blue",title:"速立保"},{color:"green",title:"科技"},{color:"orange",title:"免费"},{color:"purplered",title:"前端"},{color:"purple",title:"后端"},{color:"brown",title:"UI设计"},{color:"yellowgreen",title:"求助"},{color:"grey",title:"吃货"},{color:"orangered",title:"萌宠"}],action:"https://www.hualigs.cn/api/upload",formData:{apiType:"this,ali",token:"dffc1e06e636cff0fdf7d877b6ae6a2e",image:null},fileList:[],showUploadList:!0,customBtn:!1,autoUpload:!0,showProgress:!1,deleteable:!0,customStyle:!1,maxCount:9,disabled:!1,searchValue:"",items:[],org:{name:"",regNumber:""}}},watch:{searchValue:function(e,t){console.error(e,this.org.name),e!==this.org.name&&(this.current=null),2==this.stepIndex&&this.search(e)}},onLoad:function(){this.getCompany()},methods:{getCompany:function(){var t=this;r.default.post("/slbUserCompanyRel/show/my",{userNo:e.getStorageSync("userNo")}).then((function(e){if(e.success){for(var n=e.list||[],o=0;o<n.length;o++)n[o].name=n[o].company,n[o].regNumber=n[o].company,"1"==n[o].isDefault&&(t.searchValue=n[o].name,t.current=n[o].name,t.org=n[o],n[o].jobTitle&&(t.formInfo.jobTitle=n[o].jobTitle));t.items=n}}))},preStep:function(){this.stepIndex=1},nextStep:function(){if(""==this.content&&0===this.fileDetailList.length)return e.showToast({title:"请填写需求或上传图片/文件",icon:"none"}),this.stepIndex=1,!1;this.stepIndex=2},changeSelect:function(e){this.selectValue=e},saveForm:function(t){if(!this.canSave)return!1;var n=this,o={};return this.org.name?this.formInfo.jobTitle.length<1?(e.showToast({title:"请输入您的职称",duration:2e3,icon:"none"}),!1):this.formInfo.contactPerson.length<1?(e.showToast({title:"请输入联系人姓名",duration:2e3,icon:"none"}),!1):this.formInfo.contactMethod.length<1?(e.showToast({title:"请输入联系手机/微信/邮箱",duration:2e3,icon:"none"}),!1):this.formInfo.agree.length<1?(e.showToast({title:"请勾选同意平台核查所填信息的真实性",duration:2e3,icon:"none"}),!1):(e.showToast({title:"提交中...",icon:"none"}),n.canSave=!1,o.slbResourceDemand=JSON.stringify({type:"3",company:this.org.name,jobTitle:this.formInfo.jobTitle,contactPerson:this.formInfo.contactPerson,contactMethod:this.formInfo.contactMethod,content:n.content,userNo:e.getStorageSync("userNo"),validDate:this.selectValue,status:1==t?t:void 0}),o.fileDetailList=JSON.stringify(this.fileDetailList),void r.default.post("/slbResourceDemand/add",o).then((function(o){n.canSave=!0,o.success?e.showToast({title:t?"暂存成功":"发布已提交,可在我的需求里查看审核进度",icon:"none",success:function(){setTimeout((function(){e.redirectTo({url:"/pages/mine/need"})}),1500)}}):e.showToast({title:o.msg,icon:"none"}),console.warn(o)}))):(e.showToast({title:"请检查公司名称是否准确",duration:2e3,icon:"none"}),!1)},tn:function(t){e.navigateTo({url:t})},upload:function(){console.warn(121212)},clear:function(){this.$refs.imageUpload.clear()},onSortList:function(e){console.log(e)},select:function(e){console.log("选择文件:",e);var t=e.tempFiles;for(var n in t)this.upfile(t[n])},deleteFile:function(e,t){for(var n=0;n<this.fileDetailList.length;n++)e.tempFile.path===this.fileDetailList[n].path&&this.fileDetailList.splice(n,1)},upfile:function(t){var n=this;console.warn(t),e.uploadFile({url:"http://slb-m.dev.ml1993.com/oss/upload/userFeedback",filePath:t.url,name:"file",success:function(e){console.warn(JSON.parse(e.data));var o=JSON.parse(e.data).resultMap;n.fileDetailList.push({name:t.name,fileName:t.name,ftpUrl:o.uploadUrl,path:t.path})}})},success:function(e){console.log("上传成功")},selectChange:function(e){console.error(e),this.searchValue=e.name,this.current=e.regNumber,e.jobTitle&&(this.formInfo.jobTitle=e.jobTitle),this.org=e},search:function(t){var n=this;t&&t.length>3?r.default.post("/member/searchCompys",{keyWord:t}).then((function(t){if(t.success){var o=t.resultMap.data||[];n.items=o}else e.showToast({title:t.msg,icon:"none"})})):n.items=[]}}};t.default=s}).call(this,n(2)["default"])},162:function(e,t,n){"use strict";n.r(t);var o=n(163),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);t["default"]=i.a},163:function(e,t,n){}},[[155,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../.sourcemap/mp-weixin/circlePages/circle.js.map