personal-info.js.map 25.7 KB
{"version":3,"sources":["uni-app:///main.js","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/pages/student/my/personal-info/personal-info.vue?61a7","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/pages/student/my/personal-info/personal-info.vue?ab23","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/pages/student/my/personal-info/personal-info.vue?de66","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/pages/student/my/personal-info/personal-info.vue?26af","uni-app:///pages/student/my/personal-info/personal-info.vue","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/pages/student/my/personal-info/personal-info.vue?d178","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/pages/student/my/personal-info/personal-info.vue?1c19"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA,wCAAmB;AACnB;AACA,+H;AACAA,UAAU,CAACC,qBAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAsI;AACtI;AACiE;AACL;AACsC;;;AAGlG;AACyN;AACzN,gBAAgB,iNAAU;AAC1B,EAAE,mFAAM;AACR,EAAE,oGAAM;AACR,EAAE,6GAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,wGAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,aAAa,oNAEN;AACP,KAAK;AACL;AACA,aAAa,8MAEN;AACP,KAAK;AACL;AACA,aAAa,wMAEN;AACP,KAAK;AACL;AACA,aAAa,uQAEN;AACP,KAAK;AACL;AACA,aAAa,yLAEN;AACP,KAAK;AACL;AACA,aAAa,wPAEN;AACP;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;A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A;AACA;AACA,WA7BA;;AA+BA;AACA,KAlHA,EAhIA,E;;;;;;;;;;;;;AC/EA;AAAA;AAAA;AAAA;AAA6mD,CAAgB,65CAAG,EAAC,C;;;;;;;;;;;ACAjoD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/student/my/personal-info/personal-info.js","sourcesContent":["import 'uni-pages';import '@dcloudio/uni-stat';\nimport Vue from 'vue'\nimport Page from './pages/student/my/personal-info/personal-info.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./personal-info.vue?vue&type=template&id=fa9d595e&scoped=true&\"\nvar renderjs\nimport script from \"./personal-info.vue?vue&type=script&lang=js&\"\nexport * from \"./personal-info.vue?vue&type=script&lang=js&\"\nimport style0 from \"./personal-info.vue?vue&type=style&index=0&id=fa9d595e&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  \"fa9d595e\",\n  null,\n  false,\n  components,\n  renderjs\n)\n\ncomponent.options.__file = \"pages/student/my/personal-info/personal-info.vue\"\nexport default component.exports","export * from \"-!../../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./personal-info.vue?vue&type=template&id=fa9d595e&scoped=true&\"","var components\ntry {\n  components = {\n    uNavbar: function() {\n      return import(\n        /* webpackChunkName: \"uview-ui/components/u-navbar/u-navbar\" */ \"@/uview-ui/components/u-navbar/u-navbar.vue\"\n      )\n    },\n    uImage: function() {\n      return import(\n        /* webpackChunkName: \"uview-ui/components/u-image/u-image\" */ \"@/uview-ui/components/u-image/u-image.vue\"\n      )\n    },\n    uForm: function() {\n      return import(\n        /* webpackChunkName: \"uview-ui/components/u-form/u-form\" */ \"@/uview-ui/components/u-form/u-form.vue\"\n      )\n    },\n    cInputItem: function() {\n      return import(\n        /* webpackChunkName: \"components/c-input-item/c-input-item\" */ \"@/components/c-input-item/c-input-item.vue\"\n      )\n    },\n    cButton: function() {\n      return import(\n        /* webpackChunkName: \"components/c-button/c-button\" */ \"@/components/c-button/c-button.vue\"\n      )\n    },\n    uActionSheet: function() {\n      return import(\n        /* webpackChunkName: \"uview-ui/components/u-action-sheet/u-action-sheet\" */ \"@/uview-ui/components/u-action-sheet/u-action-sheet.vue\"\n      )\n    }\n  }\n} catch (e) {\n  if (\n    e.message.indexOf(\"Cannot find module\") !== -1 &&\n    e.message.indexOf(\".vue\") !== -1\n  ) {\n    console.error(e.message)\n    console.error(\"1. 排查组件名称拼写是否正确\")\n    console.error(\n      \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n    )\n    console.error(\n      \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n    )\n  } else {\n    throw e\n  }\n}\nvar render = function() {\n  var _vm = this\n  var _h = _vm.$createElement\n  var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./personal-info.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./personal-info.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"base_info\">\r\n\t\t<u-navbar :is-back=\"true\" title=\"个人信息\" title-size=\"34\" title-color=\"#000000\">\r\n\t\t</u-navbar>\r\n\t\t<view class=\"content\">\n\t\t\t<view style=\"position: relative; height: 210rpx; padding-top: 30rpx; background-color: #FFFFFF;\">\n\t\t\t\t<u-image  @click=\"addPhotos\" style=\"position: absolute; left: 50%; margin-left: -95rpx;\" width=\"190rpx\" height=\"190rpx\" shape=\"circle\" :src=\"form.avatarUrl?vuex_ossUrlPubilc+'/'+form.avatarUrl:reversedAvatarUrl\" />\n\t\t\t</view>\n\t\t\t<view style=\"height: 60rpx; background-color: #FFFFFF;\"></view>\r\n\t\t\t<u-form :model=\"form\" :error-type=\"errorType\" ref=\"uForm\">\r\n\t\t\t\t<view class=\"top box\">\r\n\r\n\t\t\t\t\t<c-input-item label=\"姓名\" type=\"text\" name=\"name\" v-model=\"form.name\" :required=\"true\"\r\n\t\t\t\t\t\t:rightIcon=\"false\" :maxlenth=\"30\">\r\n\t\t\t\t\t</c-input-item>\r\n\r\n\t\t\t\t\t<c-input-item label=\"性别\" type=\"radio\" name=\"gender\" v-model=\"form.gender\" :required=\"false\"\r\n\t\t\t\t\t\t:options=\"genderOptions\" :rightIcon=\"false\"></c-input-item>\r\n\r\n\t\t\t\t\t<c-input-item label=\"年龄\" type=\"number\" name=\"age\" v-model=\"form.age\" :required=\"false\"\r\n\t\t\t\t\t\t:rightIcon=\"false\">\r\n\t\t\t\t\t</c-input-item>\r\n\r\n\t\t\t\t\t<c-input-item label=\"民族\" type=\"select\" name=\"national\" v-model=\"form.national\" :required=\"false\"\r\n\t\t\t\t\t\t:options=\"nation\">\r\n\t\t\t\t\t</c-input-item>\r\n\r\n\t\t\t\t\t<c-input-item label=\"籍贯\" type=\"area\" name=\"nativePlace\" v-model=\"form.nativePlace\" :options=\"area\"\r\n\t\t\t\t\t\t:required=\"false\">\r\n\t\t\t\t\t</c-input-item>\r\n\r\n\t\t\t\t\t<c-input-item label=\"现居住地址\" type=\"text\" name=\"currentAddress\" v-model=\"form.currentAddress\"\r\n\t\t\t\t\t\t:required=\"false\" :rightIcon=\"false\" :maxlenth=\"100\">\r\n\t\t\t\t\t</c-input-item>\r\n\r\n\t\t\t\t</view>\r\n\r\n\t\t\t\t<view class=\"bottom box\">\r\n\t\t\t\t\t<c-input-item label=\"政治面貌\" type=\"select\" name=\"politicsStatus\" v-model=\"form.politicsStatus\"\r\n\t\t\t\t\t\t:required=\"false\" :options=\"politicalOptions\">\r\n\t\t\t\t\t</c-input-item>\r\n\r\n\t\t\t\t\t<!-- <c-input-item label=\"证件类型\" type=\"select\" name=\"idType\" v-model=\"form.idType\" :required=\"false\"\r\n\t\t\t\t\t\t:options=\"idCardClassify\">\r\n\t\t\t\t\t</c-input-item>\r\n\r\n\t\t\t\t\t<c-input-item label=\"证件号码\" type=\"text\" name=\"idNumber\" v-model=\"form.idNumber\" :required=\"false\"\r\n\t\t\t\t\t\t:rightIcon=\"false\">\r\n\t\t\t\t\t</c-input-item>\r\n\r\n\t\t\t\t\t<c-input-item label=\"联系电话\" type=\"number\" name=\"contactPhone\" v-model=\"form.contactPhone\"\r\n\t\t\t\t\t\t:required=\"false\" :rightIcon=\"false\">\r\n\t\t\t\t\t</c-input-item> -->\r\n\t\t\t\t</view>\r\n\r\n\t\t\t</u-form>\r\n\t\t</view>\r\n\r\n\t\t<view class=\"footer\">\r\n\t\t\t<c-button type=\"confirm\" shape=\"circle\" @click=\"submit\" :disabled=\"false\" text=\"提交\"></c-button>\r\n\t\t</view>\r\n\n\t\t<u-action-sheet :list=\"list\" @click=\"chooseImg\" v-model=\"show\"></u-action-sheet>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport area from '@/common/area';\r\n\timport nation from '@/common/nation'\r\n\timport {\r\n\t\tgenderOptions,\r\n\t\tpoliticalOptions,\r\n\t\tidCardClassify,\r\n\t} from '@/common/util.js'\r\n\timport {\r\n\t\tmapState,\r\n\t\tmapActions\r\n\t} from 'vuex'\r\n\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\tconst {\r\n\t\t\t\trequired,\r\n\t\t\t\trangeLength,\r\n\t\t\t\trangeNumber,\r\n\t\t\t\tname,\r\n\t\t\t\tidCard,\r\n\t\t\t\theight,\r\n\t\t\t\tweight,\r\n\t\t\t\tmaxLehgth,\r\n\t\t\t\tdigits,\r\n\t\t\t\tmobile,\r\n\t\t\t} = this.$u.cusTest;\r\n\r\n\t\t\treturn {\r\n\t\t\t\terrorType: ['toast'],\r\n\t\t\t\tarea,\r\n\t\t\t\tnation,\r\n\t\t\t\tgenderOptions,\r\n\t\t\t\tpoliticalOptions,\r\n\t\t\t\tidCardClassify,\r\n\t\t\t\tform: {\n\t\t\t\t\tavatarUrl: '',\r\n\t\t\t\t\tname: '',\r\n\t\t\t\t\tgender: '',\r\n\t\t\t\t\tage: '',\r\n\t\t\t\t\tnational: '',\r\n\t\t\t\t\tnativePlace: '',\r\n\t\t\t\t\tcurrentAddress: '',\r\n\t\t\t\t\tpoliticsStatus: '',\r\n\t\t\t\t\t// idType: '',\r\n\t\t\t\t\t// idNumber: '',\r\n\t\t\t\t\t// contactPhone: '',\r\n\t\t\t\t},\r\n\t\t\t\trules: {\r\n\t\t\t\t\tname: [{\r\n\t\t\t\t\t\trequired: true,\r\n\t\t\t\t\t\tmessage: '请填写姓名',\r\n\t\t\t\t\t\ttrigger: ['blur', 'change'],\r\n\t\t\t\t\t}],\r\n\t\t\t\t\tgender: [],\r\n\t\t\t\t\tage: [],\r\n\t\t\t\t\tnational: [],\r\n\t\t\t\t\tnativePlace: [],\r\n\t\t\t\t\tcurrentAddress: [],\r\n\t\t\t\t\tpoliticsStatus: [],\r\n\t\t\t\t\t// idType: [],\r\n\t\t\t\t\t// idNumber: [{\r\n\t\t\t\t\t// \tvalidator(value) {\r\n\t\t\t\t\t// \t\treturn value ? this.$u.test.idCard(value) : true;\r\n\t\t\t\t\t// \t},\r\n\t\t\t\t\t// \tmessage: '身份证号不正确',\r\n\t\t\t\t\t// \ttrigger: ['change', 'blur'],\r\n\t\t\t\t\t// }],\r\n\t\t\t\t\t// contactPhone: [{\r\n\t\t\t\t\t// \tvalidator: (rule, value, callback) => {\r\n\t\t\t\t\t// \t\treturn value ? this.$u.test.mobile(value) : true;\r\n\t\t\t\t\t// \t},\r\n\t\t\t\t\t// \tmessage: '手机号码不正确',\r\n\t\t\t\t\t// \ttrigger: ['change', 'blur'],\r\n\t\t\t\t\t// }],\r\n\t\t\t\t},\n\t\t\t\tshow: false,\n\t\t\t\tlist: [{\n\t\t\t\t\ttext: '拍照'\n\t\t\t\t}, {\n\t\t\t\t\ttext: '从手机相册选择'\n\t\t\t\t}],\n\t\t\t\tpicList: [],\n\t\t\t\tossInit: {},\r\n\t\t\t};\r\n\t\t},\r\n\r\n\t\tonLoad() {\n\t\t\tconsole.log('this.userBasicInfo...',this.userBasicInfo)\r\n\t\t\tif (this.userBasicInfo && JSON.stringify(this.userBasicInfo) != '{}') {\r\n\t\t\t\tthis.form = this.userBasicInfo;\r\n\t\t\t\tthis.form.gender = this.editGender;\r\n\t\t\t\tthis.form.nativePlace = this.userBasicInfo.nativePlace ? JSON.parse(this.userBasicInfo.nativePlace) : '';\r\n\t\t\t}\n\t\t\tthis.initOss()\n\t\t\tif (this.genderOptions[0].value == '0') {\n\t\t\t\tthis.genderOptions.shift()\n\t\t\t}\r\n\t\t},\n\t\t\n\t\tonUnload() {\n\t\t\tif (this.genderOptions[0].value != '0') {\n\t\t\t\tthis.genderOptions.unshift({\n\t\t\t\t\tlabel: '性别不限',\n\t\t\t\t\tvalue: '0',\n\t\t\t\t})\n\t\t\t}\n\t\t},\r\n\r\n\t\t// 必须要在onReady生命周期,因为onLoad生命周期组件可能尚未创建完毕\r\n\t\tonReady() {\r\n\t\t\tthis.$refs.uForm.setRules(this.rules);\r\n\t\t},\r\n\r\n\t\tcomputed: {\r\n\t\t\t...mapState({\r\n\t\t\t\tuserBasicInfo: (state) => state.vuex_user.userBasicInfo,\r\n\t\t\t\teditGender: (state) => {\r\n\t\t\t\t\tconst {\r\n\t\t\t\t\t\tvuex_user: {\r\n\t\t\t\t\t\t\tuserBasicInfo = {}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} = state;\r\n\r\n\t\t\t\t\tlet gender = (userBasicInfo && (userBasicInfo.gender || userBasicInfo.gender == 0)) ? String(\r\n\t\t\t\t\t\tuserBasicInfo.gender) : ''\r\n\r\n\t\t\t\t\treturn gender\r\n\r\n\t\t\t\t},\n\t\t\t\tvuex_weixinUserInfo: (state) => state.vuex_weixinUserInfo,\r\n\t\t\t}),\n\t\t\t\n\t\t\treversedAvatarUrl() {\n\t\t\t\tif (this.userBasicInfo && this.userBasicInfo.avatarUrl) {\n\t\t\t\t\treturn this.userBasicInfo.avatarUrl\n\t\t\t\t}\n\t\t\t\treturn (this.vuex_weixinUserInfo && this.vuex_weixinUserInfo.avatarUrl) ? this.vuex_weixinUserInfo.avatarUrl : '/static/img/my/default_avatar.png';\n\t\t\t}\r\n\t\t},\r\n\r\n\t\tmethods: {\r\n\r\n\t\t\tsubmit() {\r\n\t\t\t\tconst {\r\n\t\t\t\t\tform = {},\r\n\t\t\t\t} = this;\r\n\r\n\t\t\t\tconsole.log('submit...', form)\r\n\t\t\t\tconsole.log('this.$refs.uForm...', this.$refs.uForm)\r\n\r\n\t\t\t\tthis.$refs.uForm.validate(valid => {\r\n\t\t\t\t\tconsole.log(valid)\r\n\t\t\t\t\tif (valid) {\r\n\t\t\t\t\t\tthis.$u.api.updateUserBaseInfoApi({\r\n\t\t\t\t\t\t\t...this.form,\r\n\t\t\t\t\t\t\tnativePlace: JSON.stringify(this.form.nativePlace)\r\n\t\t\t\t\t\t}).then(async res => {\r\n\t\t\t\t\t\t\tif (res) {\r\n\r\n\t\t\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\t\t\ttitle: '修改基本信息成功',\r\n\t\t\t\t\t\t\t\t\ticon: 'success',\r\n\t\t\t\t\t\t\t\t\tduration: 2000\r\n\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\t\tthis.$u.route({\r\n\t\t\t\t\t\t\t\t\ttype: 'navigateBack',\r\n\t\t\t\t\t\t\t\t\tdelta: 1,\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tconsole.log('验证失败');\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t},\n\t\t\t\n\t\t\tinitOss() {\n\t\t\t\tthis.$u.api.getOssInit({\n\t\t\t\t\t\"uploadFileType\": \"other\"\n\t\t\t\t}).then(res => {\n\t\t\t\t\tconsole.log(\"ossinit...\", res)\n\t\t\t\t\tthis.ossInit = res\n\t\t\t\t})\n\t\t\t},\n\t\t\t\n\t\t\taddPhotos() {\n\t\t\t\tthis.show = true\n\t\t\t},\n\t\t\t\n\t\t\tchooseImg(index) {\n\t\t\t\tvar _this = this\n\t\t\t\tconsole.log(index)\n\t\t\t\tif (index == 0) { //拍照\n\t\t\t\t\tuni.chooseImage({\n\t\t\t\t\t\tcount: 1,\n\t\t\t\t\t\tsizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有\n\t\t\t\t\t\tsourceType: ['camera'], //从相机选择\n\t\t\t\t\t\tsuccess: function(res) {\n\t\t\t\t\t\t\tconsole.log(\"chooseImage...\", JSON.stringify(res.tempFilePaths));\n\t\t\t\t\t\t\t_this.picList = res.tempFilePaths\n\t\t\t\t\t\t\t_this.uploadImages()\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t} else if (index == 1) { //相册\n\t\t\t\t\tuni.chooseImage({\n\t\t\t\t\t\tcount: 1,\n\t\t\t\t\t\tsizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有\n\t\t\t\t\t\tsourceType: ['album'], //从相册选择\n\t\t\t\t\t\tsuccess: function(res) {\n\t\t\t\t\t\t\tconsole.log(\"chooseImage...\", JSON.stringify(res.tempFilePaths));\n\t\t\t\t\t\t\t_this.picList = res.tempFilePaths\n\t\t\t\t\t\t\t_this.uploadImages()\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t},\n\t\t\t\n\t\t\tuploadImages() { //上传图片\n\t\t\t\tvar _this = this\n\t\t\t\tconsole.log('begin',this.picList)\n\t\t\t\tfor (var i = 0; i < this.picList.length; i++) {\n\t\t\t\t\tuni.uploadFile({\n\t\t\t\t\t\turl: _this.ossInit.host,\n\t\t\t\t\t\tfilePath: _this.picList[i],\n\t\t\t\t\t\tname: 'file',\n\t\t\t\t\t\tformData: {\n\t\t\t\t\t\t\t'key': `${_this.ossInit.dir}${new Date().getTime()}/` + '${filename}',\n\t\t\t\t\t\t\t'action': `${_this.ossInit.host}`,\n\t\t\t\t\t\t\t'OSSAccessKeyId': _this.ossInit.accessId,\n\t\t\t\t\t\t\t'policy': _this.ossInit.policy,\n\t\t\t\t\t\t\t'signature': _this.ossInit.signature,\n\t\t\t\t\t\t\t'callback': _this.ossInit.callback,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tsuccess: (uploadFileRes) => {\n\t\t\t\t\t\t\tconsole.log(\"--\", uploadFileRes)\n\t\t\t\t\t\t\tconsole.log(\"--\", JSON.parse(uploadFileRes.data))\n\t\t\t\t\t\t\tlet obj = JSON.parse(uploadFileRes.data)\n\t\t\t\t\t\t\t_this.form.avatarUrl = obj.object\n\t\t\t\t\t\t\t// console.log(\"...\",JSON.parse(uploadFileRes.data))\n\t\t\t\t\t\t\t// _this.attachments.push(JSON.parse(uploadFileRes.data))\n\t\t\t\t\t\t\t// if (_this.attachments.length == _this.picList.length) {\n\t\t\t\t\t\t\t// \t_this.uploadInfos();\n\t\t\t\t\t\t\t// }\n\t\t\t\t\t\t},\n\t\t\t\t\t\tfail:(error) => {\n\t\t\t\t\t\t\tconsole.log(\"-error-\",  error)\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcomplete: (res) => {\n\t\t\t\t\t\t\tconsole.log('res...', res)\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t},\r\n\t\t}\r\n\t};\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n\t.base_info /deep/ .u-form-item {\r\n\t\tpadding: 21rpx 0;\r\n\r\n\t\t.u-form-item--left__content__label {\r\n\t\t\tfont-size: 34rpx !important;\r\n\t\t\tcolor: rgba(0, 0, 0, 0.9) !important;\r\n\r\n\t\t}\r\n\t}\r\n\r\n\t.base_info /deep/ .u-input {\r\n\t\t.u-input__input {}\r\n\t}\r\n\r\n\t.base_info {\r\n\t\tbackground: #F7F7F7;\r\n\t\tmin-height: 100%;\r\n\t\tpadding: 0 0 186rpx 0;\r\n\r\n\t\t.content {\r\n\t\t\t.box {\r\n\t\t\t\tbackground: #FFFFFF;\r\n\t\t\t\tmargin: 0 0 16rpx 0;\r\n\t\t\t\tpadding: 0 30rpx;\r\n\t\t\t}\r\n\r\n\t\t\t.top {\r\n\t\t\t\t// margin-top: 32rpx;\r\n\r\n\t\t\t\t.upload /deep/ .u-list-item {\r\n\t\t\t\t\twidth: 96rpx;\r\n\t\t\t\t\theight: 96rpx;\r\n\t\t\t\t\tmargin: 0rpx;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t.upload /deep/ .u-delete-icon {\r\n\t\t\t\t\twidth: 22rpx;\r\n\t\t\t\t\theight: 22rpx;\r\n\t\t\t\t\tposition: absolute;\r\n\t\t\t\t\ttop: 0rpx;\r\n\t\t\t\t\tright: 0rpx;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t.slot_upload {\r\n\t\t\t\t\tfloat: right;\r\n\t\t\t\t\twidth: 90rpx;\r\n\t\t\t\t\theight: 90rpx;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t.camera {}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t.footer {\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 130rpx;\r\n\t\t\tpadding: 20rpx 40rpx;\r\n\t\t\tbackground: #FFFFFF;\r\n\t\t\tposition: fixed;\r\n\t\t\tbottom: 0;\r\n\t\t\tleft: 0;\r\n\t\t\tz-index: 99;\r\n\t\t\tborder-top: 2rpx solid #F0F0F1;\r\n\t\t}\r\n\t}\r\n</style>\n","import mod from \"-!../../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./personal-info.vue?vue&type=style&index=0&id=fa9d595e&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./personal-info.vue?vue&type=style&index=0&id=fa9d595e&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n    if(module.hot) {\n      // 1700461805915\n      var cssReload = require(\"/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n      module.hot.dispose(cssReload);\n      module.hot.accept(undefined, cssReload);\n    }\n  "],"sourceRoot":""}