set.js 5.4 KB

12
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["minePages/set"],{196:function(n,e,t){"use strict";(function(n,e){var o=t(4);t(26);o(t(25));var r=o(t(197));n.__webpack_require_UNI_MP_PLUGIN__=t,e(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},197:function(n,e,t){"use strict";t.r(e);var o=t(198),r=t(200);for(var i in r)["default"].indexOf(i)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(i);t(202);var a,u=t(36),s=Object(u["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,"56d8c034",null,!1,o["components"],a);s.options.__file="minePages/set.vue",e["default"]=s.exports},198:function(n,e,t){"use strict";t.r(e);var o=t(199);t.d(e,"render",(function(){return o["render"]})),t.d(e,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(e,"components",(function(){return o["components"]}))},199:function(n,e,t){"use strict";var o;t.r(e),t.d(e,"render",(function(){return r})),t.d(e,"staticRenderFns",(function(){return a})),t.d(e,"recyclableRender",(function(){return i})),t.d(e,"components",(function(){return o}));try{o={tnNavBar:function(){return Promise.all([t.e("common/vendor"),t.e("tuniao-ui/components/tn-nav-bar/tn-nav-bar")]).then(t.bind(null,204))},uniFilePicker:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker")]).then(t.bind(null,378))},uniForms:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uni-forms/components/uni-forms/uni-forms")]).then(t.bind(null,394))},uniFormsItem:function(){return t.e("uni_modules/uni-forms/components/uni-forms-item/uni-forms-item").then(t.bind(null,403))},uniEasyinput:function(){return t.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(t.bind(null,387))}}}catch(u){if(-1===u.message.indexOf("Cannot find module")||-1===u.message.indexOf(".vue"))throw u;console.error(u.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var r=function(){var n=this,e=n.$createElement;n._self._c},i=!1,a=[];r._withStripped=!0},200:function(n,e,t){"use strict";t.r(e);var o=t(201),r=t.n(o);for(var i in o)["default"].indexOf(i)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(i);e["default"]=r.a},201:function(n,e,t){"use strict";(function(n,o){var r=t(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(t(185)),a=r(t(61)),u={name:"TemplateSet",mixins:[i.default],data:function(){return{wxFontSize:17,show1:!1,show2:!1,show3:!1,index:0,array:["女","男","保密"],date:"2000-01-29",index1:1,array1:["计算机/电子","广告/媒体","会计/金融","政府/非盈利组织/其他"],userInfo:{profilePhotoUrl:n.getStorageSync("userInfo")?JSON.parse(n.getStorageSync("userInfo")).profilePhotoUrl:"",contactNickName:n.getStorageSync("userInfo")?JSON.parse(n.getStorageSync("userInfo")).contactNickName:"",contactMethod:n.getStorageSync("userInfo")?JSON.parse(n.getStorageSync("userInfo")).contactMethod:"",userName:n.getStorageSync("userInfo")?JSON.parse(n.getStorageSync("userInfo")).userName:""},styleString:"font-size:14px"}},computed:{startDate:function(){return this.getDate("start")},endDate:function(){return this.getDate("end")}},onLoad:function(){var e=o.getAppBaseInfo();this.wxFontSize=n.getStorageSync("fontSize")||e.fontSizeSetting||17,this.styleString="font-size:"+(this.wxFontSize-3)+"px",this.getInfo()},methods:{tn:function(e){n.navigateTo({url:e})},showModal1:function(n){this.openModal1()},openModal1:function(){this.show1=!0},showModal2:function(n){this.openModal2()},openModal2:function(){this.show2=!0},showModal3:function(n){this.openModal3()},openModal3:function(){this.show3=!0},bindPickerChange:function(n){this.index=n.detail.value},bindPickerChange1:function(n){this.index1=n.detail.value},bindDateChange:function(n){this.date=n.detail.value},getDate:function(n){var e=new Date,t=e.getFullYear(),o=e.getMonth()+1,r=e.getDate();return"start"===n?t-=60:"end"===n&&(t+=2),o=o>9?o:"0"+o,r=r>9?r:"0"+r,"".concat(t,"-").concat(o,"-").concat(r)},getInfo:function(){var n=this;a.default.post("/slbWxma/getPersonlInfo",{}).then((function(e){e&&e.success&&(n.userInfo=e.resultMap.userInfo||{})}))},saveForm:function(){var e=this.userInfo;a.default.post("/slbWxma/changePersonlInfo",{userInfo:JSON.stringify(e)},{headers:{"Content-Type":"application/json"}}).then((function(e){e.success&&(n.showToast({title:"修改成功"}),n.navigateBack())}))},select:function(n){console.log("选择文件:",n);var e=n.tempFiles;for(var t in e)this.upfile(e[t])},upfile:function(e){var t=this;console.warn(e),n.uploadFile({url:"https://slb-m.lx-device.com/oss/upload/userFeedback",filePath:e.url,name:"file",success:function(n){console.warn(JSON.parse(n.data));var e=JSON.parse(n.data).resultMap;t.userInfo.profilePhotoUrl=e.uploadUrl}})},success:function(n){console.log("上传成功")}}};e.default=u}).call(this,t(2)["default"],t(1)["default"])},202:function(n,e,t){"use strict";t.r(e);var o=t(203),r=t.n(o);for(var i in o)["default"].indexOf(i)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(i);e["default"]=r.a},203:function(n,e,t){}},[[196,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../.sourcemap/mp-weixin/minePages/set.js.map