{"version":3,"sources":["webpack:///./src/views/pages/user/my-info.vue?b446","webpack:///./src/views/pages/user/my-info.vue?34c8","webpack:///src/views/pages/user/my-info.vue","webpack:///./src/views/pages/user/my-info.vue?2777","webpack:///./src/views/pages/user/my-info.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_m","staticStyle","ref","attrs","formInline","ruleValidate","_l","item","index","key","status","url","nativeOn","$event","handleView","stopPropagation","preventDefault","handleRemove","_e","directives","name","rawName","value","uploadList","length","expression","defaultList","handleSuccess","formHeaders","handleFormatError","handleMaxSize","handleBeforeUpload","uploadUrl","_v","model","callback","$$v","visible","imgName","$set","on","$router","push","exhibitionId","areaList","cateKey","refInFor","categoryList","changeCategoryArr","category","addCategoryArrr","delCategoryArrr","loading","handleSubmit","staticRenderFns","data","that","$Message","warning","type","type2","phone","company","job","region","province","city","email","avatarUrl","content","countryList","provinceArr","citiesArr","computed","created","getUser","methods","splice","i","$nextTick","setTimeout","handleReset","$refs","resetFields","changeCity","console","log","validForm","Promise","resolve","valid","fileList","indexOf","file","res","upload","check","changeProvince","destroyed","component"],"mappings":"kHAAA,yBAA8kB,EAAG,G,kECAjlB,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,WAAW,CAACF,EAAG,MAAM,CAACE,YAAY,kBAAkB,CAACN,EAAIO,GAAG,GAAGH,EAAG,MAAM,CAACI,YAAY,CAAC,aAAa,OAAO,MAAQ,UAAU,CAACJ,EAAG,OAAO,CAACK,IAAI,aAAaC,MAAM,CAAC,MAAQV,EAAIW,WAAW,MAAQX,EAAIY,aAAa,cAAc,MAAM,CAACR,EAAG,WAAW,CAACM,MAAM,CAAC,MAAQ,QAAQ,CAACN,EAAG,MAAM,CAACE,YAAY,aAAa,CAACN,EAAIa,GAAIb,EAAc,YAAE,SAASc,EAAKC,GAAO,OAAOX,EAAG,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,SAEpBgF,UAvQJ,SAuQA,cAEM,OAAO,IAAIC,SAAQ,SAAzB,KACQ,EAAR,+BACUC,EAAQC,UAKd5E,WAhRJ,SAgRA,GACMpB,KAAK4C,QAAUlB,EACf1B,KAAK2C,SAAU,GAGjBpB,aArRJ,SAqRA,GACM,IAAN,kBACMvB,KAAK6B,WAAWsD,OAAOc,EAASC,QAAQC,GAAO,GAC/C,KAAN,yBAGIlE,cA3RJ,SA2RA,OACUmE,GAAOA,EAAIvC,KAAK/B,SAClBqE,EAAKlF,IAAMmF,EAAIvC,KAAK,GACpB7D,KAAK6B,WAAa7B,KAAKwF,MAAMa,OAAOJ,SAEpCjG,KAAKU,WAAWgE,UAAYyB,EAAKlF,IACjC0E,QAAQC,IAAI5F,KAAKU,WAAWgE,UAApC,aAIIvC,kBArSJ,SAqSA,GACMnC,KAAK+D,SAASC,QAAQ,gCAGxB5B,cAzSJ,SAySA,GACMpC,KAAK+D,SAASC,QAAQ,yBAGxB3B,mBA7SJ,WA8SM,IAAN,IACA,2BAIM,OAHKiE,GACHtG,KAAK+D,SAASC,QAAQ,OAA9B,iBAEasC,GAET,cArTJ,SAqTA,wKACA,OACA,mCACA,qBAEA,EALA,wDAMA,iBACA,eACA,yBACA,qBACA,GACA,OACA,OACA,aACA,SAGA,OACA,CACA,cACA,OApBA,UAwBA,mBAxBA,QAwBA,EAxBA,OAyBA,gBACA,iBA1BA,+CA6BIC,eAlVJ,SAkVA,KACI,oBAnVJ,SAmVA,0KACA,GACA,OACA,OACA,aACA,SAGA,OACA,CACA,cACA,OAXA,SAeA,mBAfA,OAeA,EAfA,OAgBA,cACA,eAEA,qBACA,gBApBA,gDAwBEC,UAhdF,cCpN+W,I,wBCQ3WC,EAAY,eACd,EACA3G,EACA8D,GACA,EACA,KACA,WACA,MAIa,aAAA6C,E","file":"static/js/chunk-5833aa86.f194a510.js","sourcesContent":["import mod from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./my-info.vue?vue&type=style&index=0&id=0fef1d96&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./my-info.vue?vue&type=style&index=0&id=0fef1d96&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"m-card my-info\"},[_vm._m(0),_c('div',{staticStyle:{\"margin-top\":\"40px\",\"width\":\"900px\"}},[_c('Form',{ref:\"formInline\",attrs:{\"model\":_vm.formInline,\"rules\":_vm.ruleValidate,\"label-width\":140}},[_c('FormItem',{attrs:{\"label\":\"头像:\"}},[_c('div',{staticClass:\"my-upload\"},[_vm._l((_vm.uploadList),function(item,index){return _c('div',{key:'upload' + index,staticClass:\"my-upload-list\",staticStyle:{\"width\":\"100px\",\"height\":\"100px\"}},[(item.status === 'finished')?[_c('img',{staticStyle:{\"width\":\"100px\",\"height\":\"100px\"},attrs:{\"src\":item.url}}),_c('div',{staticClass:\"my-upload-list-cover\"},[_c('Icon',{attrs:{\"type\":\"ios-eye-outline\"},nativeOn:{\"click\":function($event){return _vm.handleView(item.url)}}}),_c('Icon',{attrs:{\"type\":\"ios-trash-outline\"},nativeOn:{\"click\":function($event){$event.stopPropagation();$event.preventDefault();return _vm.handleRemove(item)}}})],1)]:[(item.showProgress)?_c('Spin',{staticStyle:{\"width\":\"100px\",\"height\":\"100px\"}},[_c('Icon',{staticClass:\"demo-spin-icon-load\",attrs:{\"type\":\"ios-loading\",\"size\":\"20\"}})],1):_vm._e()]],2)}),_c('Upload',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.uploadList && _vm.uploadList.length < 1),expression:\"uploadList && uploadList.length < 1\"}],ref:\"upload\",staticStyle:{\"display\":\"inline-block\"},attrs:{\"show-upload-list\":false,\"default-file-list\":_vm.defaultList,\"on-success\":_vm.handleSuccess,\"format\":['jpg', 'jpeg', 'png'],\"max-size\":2048,\"headers\":_vm.formHeaders,\"on-format-error\":_vm.handleFormatError,\"on-exceeded-size\":_vm.handleMaxSize,\"before-upload\":_vm.handleBeforeUpload,\"type\":\"drag\",\"action\":_vm.uploadUrl}},[_c('div',{staticStyle:{\"width\":\"100px\",\"height\":\"100px\",\"padding-top\":\"18px\",\"color\":\"rgb(133, 133, 133)\"}},[_c('div',{staticStyle:{\"font-size\":\"25px\"}},[_vm._v(\" + \"),_c('p',{staticStyle:{\"font-size\":\"14px\"}},[_vm._v(\"上传\")])])])]),_c('iModal',{attrs:{\"title\":\"图片查看\",\"cancel-text\":\"\"},model:{value:(_vm.visible),callback:function ($$v) {_vm.visible=$$v},expression:\"visible\"}},[_c('div',{staticStyle:{\"text-align\":\"center\"}},[(_vm.visible)?_c('img',{staticStyle:{\"max-width\":\"100%\"},attrs:{\"src\":_vm.imgName}}):_vm._e()])])],2),_c('p',{staticClass:\"upload-p\",staticStyle:{\"display\":\"block\",\"font-size\":\"12px\"}},[_vm._v(\" (图片要求:2M以内的png,jpg格式图片,建议尺寸200*200px) \")])]),_c('FormItem',{attrs:{\"label\":\"姓名:\",\"prop\":\"name\"}},[_c('Input',{staticStyle:{\"width\":\"600px\"},attrs:{\"placeholder\":\"请输入姓名\",\"maxlength\":\"100\"},model:{value:(_vm.formInline.name),callback:function ($$v) {_vm.$set(_vm.formInline, \"name\", $$v)},expression:\"formInline.name\"}})],1),_c('FormItem',{attrs:{\"label\":\"手机:\",\"prop\":\"phone\"}},[_c('Input',{staticStyle:{\"width\":\"600px\",\"display\":\"inline-block\"},attrs:{\"placeholder\":\"请输入手机\",\"maxlength\":\"100\",\"disabled\":\"\"},model:{value:(_vm.formInline.phone),callback:function ($$v) {_vm.$set(_vm.formInline, \"phone\", $$v)},expression:\"formInline.phone\"}}),_c('span',{staticClass:\"tip\",on:{\"click\":function($event){return _vm.$router.push((\"password/bind?exhibitionId=\" + _vm.exhibitionId))}}},[_vm._v(\"更换手机号\")])],1),_c('FormItem',{attrs:{\"label\":\"邮箱:\",\"prop\":\"email\"}},[_c('Input',{staticStyle:{\"width\":\"600px\"},attrs:{\"placeholder\":\"请输入邮箱\",\"maxlength\":\"100\"},model:{value:(_vm.formInline.email),callback:function ($$v) {_vm.$set(_vm.formInline, \"email\", $$v)},expression:\"formInline.email\"}})],1),_c('FormItem',{attrs:{\"label\":\"公司:\",\"prop\":\"company\"}},[_c('Input',{staticStyle:{\"width\":\"600px\"},attrs:{\"placeholder\":\"请输入公司\",\"maxlength\":\"100\"},model:{value:(_vm.formInline.company),callback:function ($$v) {_vm.$set(_vm.formInline, \"company\", $$v)},expression:\"formInline.company\"}})],1),_c('FormItem',{attrs:{\"label\":\"职务:\",\"prop\":\"job\"}},[_c('Input',{staticStyle:{\"width\":\"600px\"},attrs:{\"placeholder\":\"请输入职务\",\"maxlength\":\"100\"},model:{value:(_vm.formInline.job),callback:function ($$v) {_vm.$set(_vm.formInline, \"job\", $$v)},expression:\"formInline.job\"}})],1),_c('FormItem',{attrs:{\"label\":\"地区:\"}},[_c('Cascader',{staticStyle:{\"width\":\"317px\"},attrs:{\"data\":_vm.areaList},model:{value:(_vm.formInline.city),callback:function ($$v) {_vm.$set(_vm.formInline, \"city\", $$v)},expression:\"formInline.city\"}})],1),(_vm.categoryList)?_c('FormItem',{attrs:{\"label\":\"感兴趣类别:\",\"prop\":\"category\"}},_vm._l((_vm.formInline.category),function(item,index){return _c('Row',{key:_vm.cateKey + '' + index,staticStyle:{\"margin-bottom\":\"5px\"}},[_c('Col',{attrs:{\"span\":\"10\"}},[_c('Cascader',{key:'categoryArr' + index,ref:'categoryArr' + index,refInFor:true,attrs:{\"filterable\":\"\",\"data\":_vm.categoryList},on:{\"on-change\":function($event){return _vm.changeCategoryArr()}},model:{value:(_vm.formInline.category[index]),callback:function ($$v) {_vm.$set(_vm.formInline.category, index, $$v)},expression:\"formInline.category[index]\"}})],1),_c('Col',{staticStyle:{\"text-align\":\"center\"},attrs:{\"span\":\"2\"}},[(index === 0)?_c('Icon',{staticStyle:{\"color\":\"#2d8cf0\",\"font-size\":\"20px\",\"cursor\":\"pointer\"},attrs:{\"type\":\"ios-add-circle-outline\"},on:{\"click\":function($event){return _vm.addCategoryArrr()}}}):_c('Icon',{staticStyle:{\"color\":\"red\",\"font-size\":\"20px\",\"cursor\":\"pointer\"},attrs:{\"type\":\"ios-remove-circle-outline\"},on:{\"click\":function($event){return _vm.delCategoryArrr(index)}}})],1)],1)}),1):_vm._e(),_c('FormItem',[_c('Button',{attrs:{\"type\":\"primary\",\"loading\":_vm.loading},on:{\"click\":function($event){return _vm.handleSubmit('formInline')}}},[_vm._v(\"保存 \")])],1)],1)],1)])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"mc-top\"},[_c('div',{staticClass:\"mc-top-title\"},[_c('span',{staticClass:\"mc-top-txt\"},[_vm._v(\"我的信息\")])])])}]\n\nexport { render, staticRenderFns }","<template>\r\n  <div class=\"content\">\r\n    <div class=\"m-card my-info\">\r\n      <div class=\"mc-top\">\r\n        <div class=\"mc-top-title\"><span class=\"mc-top-txt\">我的信息</span></div>\r\n      </div>\r\n      <div style=\"margin-top: 40px; width: 900px\">\r\n        <Form\r\n          ref=\"formInline\"\r\n          :model=\"formInline\"\r\n          :rules=\"ruleValidate\"\r\n          :label-width=\"140\"\r\n        >\r\n          <FormItem label=\"头像:\" >\r\n            <div class=\"my-upload\">\r\n              <div\r\n                class=\"my-upload-list\"\r\n                v-for=\"(item, index) in uploadList\"\r\n                :key=\"'upload' + index\"\r\n                style=\"width: 100px; height: 100px\"\r\n              >\r\n                <template v-if=\"item.status === 'finished'\">\r\n                  <img :src=\"item.url\" style=\"width: 100px; height: 100px\" />\r\n                  <div class=\"my-upload-list-cover\">\r\n                    <Icon\r\n                      type=\"ios-eye-outline\"\r\n                      @click.native=\"handleView(item.url)\"\r\n                    ></Icon>\r\n                    <Icon\r\n                      type=\"ios-trash-outline\"\r\n                      @click.native.stop.prevent=\"handleRemove(item)\"\r\n                    ></Icon>\r\n                  </div>\r\n                </template>\r\n                <template v-else>\r\n                  <Spin\r\n                    v-if=\"item.showProgress\"\r\n                    style=\"width: 100px; height: 100px\"\r\n                  >\r\n                    <Icon\r\n                      type=\"ios-loading\"\r\n                      size=\"20\"\r\n                      class=\"demo-spin-icon-load\"\r\n                    ></Icon>\r\n                  </Spin>\r\n                </template>\r\n              </div>\r\n              <Upload\r\n                ref=\"upload\"\r\n                :show-upload-list=\"false\"\r\n                :default-file-list=\"defaultList\"\r\n                :on-success=\"handleSuccess\"\r\n                :format=\"['jpg', 'jpeg', 'png']\"\r\n                :max-size=\"2048\"\r\n                :headers=\"formHeaders\"\r\n                :on-format-error=\"handleFormatError\"\r\n                :on-exceeded-size=\"handleMaxSize\"\r\n                :before-upload=\"handleBeforeUpload\"\r\n                type=\"drag\"\r\n                :action=\"uploadUrl\"\r\n                style=\"display: inline-block\"\r\n                v-show=\"uploadList && uploadList.length < 1\"\r\n              >\r\n                <div\r\n                  style=\"\r\n                    width: 100px;\r\n                    height: 100px;\r\n                    padding-top: 18px;\r\n                    color: rgb(133, 133, 133);\r\n                  \"\r\n                >\r\n                  <div style=\"font-size: 25px\">\r\n                    +\r\n                    <p style=\"font-size: 14px\">上传</p>\r\n                  </div>\r\n                </div>\r\n              </Upload>\r\n              <iModal title=\"图片查看\" cancel-text v-model=\"visible\">\r\n                <div style=\"text-align: center\">\r\n                  <img :src=\"imgName\" v-if=\"visible\" style=\"max-width: 100%\" />\r\n                </div>\r\n              </iModal>\r\n            </div>\r\n            <p class=\"upload-p\" style=\"display: block; font-size: 12px\">\r\n              (图片要求:2M以内的png,jpg格式图片,建议尺寸200*200px)\r\n            </p>\r\n          </FormItem>\r\n\r\n          <FormItem label=\"姓名:\" prop=\"name\">\r\n            <Input\r\n              v-model=\"formInline.name\"\r\n              placeholder=\"请输入姓名\"\r\n              maxlength=\"100\"\r\n              style=\"width: 600px\"\r\n            />\r\n          </FormItem>\r\n\r\n          <FormItem label=\"手机:\" prop=\"phone\">\r\n            <Input\r\n              v-model=\"formInline.phone\"\r\n              placeholder=\"请输入手机\"\r\n              maxlength=\"100\"\r\n              disabled\r\n              style=\"width: 600px; display: inline-block\"\r\n            />\r\n            <span\r\n              class=\"tip\"\r\n              @click=\"\r\n                $router.push(`password/bind?exhibitionId=${exhibitionId}`)\r\n              \"\r\n              >更换手机号</span\r\n            >\r\n          </FormItem>\r\n          <FormItem label=\"邮箱:\" prop=\"email\">\r\n            <Input\r\n              v-model=\"formInline.email\"\r\n              placeholder=\"请输入邮箱\"\r\n              maxlength=\"100\"\r\n              style=\"width: 600px\"\r\n            />\r\n          </FormItem>\r\n          <FormItem label=\"公司:\" prop=\"company\">\r\n            <Input\r\n              v-model=\"formInline.company\"\r\n              placeholder=\"请输入公司\"\r\n              maxlength=\"100\"\r\n              style=\"width: 600px\"\r\n            />\r\n          </FormItem>\r\n\r\n          <FormItem label=\"职务:\" prop=\"job\">\r\n            <Input\r\n              v-model=\"formInline.job\"\r\n              placeholder=\"请输入职务\"\r\n              maxlength=\"100\"\r\n              style=\"width: 600px\"\r\n            />\r\n          </FormItem>\r\n\r\n          <FormItem label=\"地区:\">\r\n            <Cascader\r\n              :data=\"areaList\"\r\n              v-model=\"formInline.city\"\r\n              style=\"width: 317px\"\r\n            ></Cascader>\r\n          </FormItem>\r\n\r\n          <FormItem label=\"感兴趣类别:\" prop=\"category\" v-if=\"categoryList\">\r\n            <Row\r\n              v-for=\"(item, index) in formInline.category\"\r\n              :key=\"cateKey + '' + index\"\r\n              style=\"margin-bottom: 5px\"\r\n            >\r\n              <Col span=\"10\">\r\n                <Cascader\r\n                  v-model=\"formInline.category[index]\"\r\n                  filterable\r\n                  :data=\"categoryList\"\r\n                  :key=\"'categoryArr' + index\"\r\n                  :ref=\"'categoryArr' + index\"\r\n                  @on-change=\"changeCategoryArr()\"\r\n                ></Cascader>\r\n              </Col>\r\n              <Col span=\"2\" style=\"text-align: center\">\r\n                <Icon\r\n                  type=\"ios-add-circle-outline\"\r\n                  v-if=\"index === 0\"\r\n                  @click=\"addCategoryArrr()\"\r\n                  style=\"color: #2d8cf0; font-size: 20px; cursor: pointer\"\r\n                />\r\n                <Icon\r\n                  type=\"ios-remove-circle-outline\"\r\n                  v-else\r\n                  style=\"color: red; font-size: 20px; cursor: pointer\"\r\n                  @click=\"delCategoryArrr(index)\"\r\n                />\r\n              </Col>\r\n            </Row>\r\n          </FormItem>\r\n\r\n          <!-- <FormItem label=\"个人简介:\" prop=\"content\">\r\n            <Input\r\n              type=\"textarea\"\r\n              :rows=\"4\"\r\n              v-model=\"formInline.content\"\r\n              placeholder=\"请输入个人简介\"\r\n              maxlength=\"200\"\r\n              show-word-limit\r\n              style=\"width: 600px\"\r\n            />\r\n          </FormItem> -->\r\n\r\n          <FormItem>\r\n            <Button\r\n              type=\"primary\"\r\n              @click=\"handleSubmit('formInline')\"\r\n              :loading=\"loading\"\r\n              >保存\r\n            </Button>\r\n          </FormItem>\r\n        </Form>\r\n      </div>\r\n    </div>\r\n  </div>\r\n</template>\r\n\r\n<script>\r\nimport region from \"@assets/js/region.json\";\r\nimport { validator } from \"@/other/validator\";\r\nimport { mapGetters, mapActions, mapMutations } from \"vuex\";\r\nimport config from \"@assets/config.json\";\r\nimport provincial from \"@/assets/js/provinces.json\"; //省市区json\r\nexport default {\r\n  name: \"my-info\",\r\n  data() {\r\n    const that = this;\r\n    const logo = (rule, value, callback) => {\r\n      if (that.uploadList && that.uploadList.length) {\r\n        callback();\r\n      } else {\r\n        that.$Message.warning(\"请上传头像\");\r\n      }\r\n    };\r\n    const country = (rule, value, callback) => {\r\n      if (\r\n        that.formInline.country &&\r\n        that.formInline.province &&\r\n        that.formInline.city\r\n      ) {\r\n        callback();\r\n      } else {\r\n        that.$Message.warning(\"请选择完整地区\");\r\n      }\r\n    };\r\n    const email = (rule, value, callback) => {\r\n      if(!that.formInline.email){\r\n        callback();\r\n      }else if (\r\n          that.formInline.email!=''&&/^\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$/.test(that.formInline.email)\r\n      ){\r\n        callback();\r\n      } else {\r\n        that.$Message.warning(\"请输入正确邮箱\");\r\n      }\r\n    };\r\n    return {\r\n      loading: false,\r\n      type: [],\r\n      type2: [],\r\n      categoryList: [],\r\n      cateKey: 0,\r\n      formInline: {\r\n        name: \"\", // 头像\r\n        phone: \"\", // 手机\r\n        company: \"\", // 公司\r\n        job: \"\",\r\n        region: \"\",\r\n        // content: \"\",\r\n        province: \"\",\r\n        city: [],\r\n        category: [],\r\n        email:'',\r\n        avatarUrl:''\r\n      },\r\n      areaList: [], //地址数据\r\n      ruleValidate: {\r\n       // logo: [{ validator: logo, trigger: \"blur\" }],\r\n        name: [{ required: true, message: \"请输入姓名\", trigger: \"blur\" }],\r\n        company: [{ required: true, message: \"请输入公司\", trigger: \"blur\" }],\r\n        job: [{ required: true, message: \"请输入职位\", trigger: \"blur\" }],\r\n        content: [\r\n          { required: true, message: \"请输入个人简介\", trigger: \"blur\" },\r\n        ],\r\n        email:[{validator:email,trigger:\"blur\"}],\r\n        // category: [\r\n        //   {\r\n        //     validator: categoryValid,\r\n        //     trigger: \"change\",\r\n        //   },\r\n        // ],\r\n        // boothHall: [\r\n        //   {\r\n        //     validator: boothHallValid,\r\n        //     trigger: \"change\",\r\n        //   },\r\n        // ],\r\n        // phoneNumber: validator.phone,\r\n        // banner: [{ validator: imgReg2, trigger: \"blur\" }],\r\n        // password: [{ required: true, message: \"请输入密码\", trigger: \"blur\" }],\r\n      },\r\n      uploadList: [],\r\n      defaultList: [],\r\n      imgName: \"\",\r\n      visible: false,\r\n      countryList: [],\r\n      provinceArr: [],\r\n      citiesArr: [],\r\n    };\r\n  },\r\n  computed: {\r\n    ...mapGetters({\r\n      uploadUrl: \"getUploadUrl\",\r\n      formHeaders: \"getFormHeaders\",\r\n      userInfo: \"getUser\",\r\n      exhibitionId: \"getExhibitionId\",\r\n      token: \"getToken\",\r\n    }),\r\n  },\r\n  created() {\r\n    this.areaList = provincial.data;\r\n    this.getUser();\r\n  },\r\n\r\n  methods: {\r\n    ...mapMutations({\r\n      setUser: \"setUser\",\r\n    }),\r\n    ...mapActions({\r\n      getCountry: \"toolModule/getCountry\",\r\n      getCountrySub: \"toolModule/getCountrySub\",\r\n      getCategory: \"getCategory\",\r\n      patchUser: \"user/patchUser\",\r\n      patchUserCategory: \"user/patchUserCategory\",\r\n      graphqlPost: \"graphqlPost\",\r\n      getUserAdvisorySetting:\"roleModule/getUserAdvisorySetting\"\r\n    }),\r\n    addCategoryArrr() {\r\n      if (this.formInline.category.length >= 5) {\r\n        this.$Message.warning(`最多添加5个展品类别`);\r\n        return;\r\n      }\r\n      this.formInline.category.push([]);\r\n      this.cateKey += 1;\r\n    },\r\n    delCategoryArrr(i) {\r\n      this.cateKey += 1;\r\n      this.formInline.category.splice(i, 1);\r\n      this.$nextTick(() => {\r\n        this.formInline.category = JSON.parse(\r\n          JSON.stringify(this.formInline.category)\r\n        );\r\n      });\r\n    },\r\n    changeCategoryArr() {\r\n      setTimeout((c) => {\r\n        this.$refs[\"formInline\"].validateField(\"category\");\r\n      }, 400);\r\n    },\r\n    async getUser() {\r\n      let query = `\r\n        query{\r\n          memberQuery{\r\n            current{\r\n              address\r\n              avatarUrl\r\n              balance\r\n              birthday\r\n              businessCard\r\n              city\r\n              company\r\n              country\r\n              county\r\n              createAt\r\n              deleteAt\r\n              department\r\n              email\r\n              followCount\r\n              id\r\n              inMember(exhibitionId:\"${this.exhibitionId}\"){\r\n                business\r\n                category\r\n                id\r\n                memberId\r\n                originId\r\n                originLang\r\n                originRemark\r\n                isBlacklist\r\n                originType\r\n                regAt\r\n                sayCount\r\n                sayUserCount\r\n                userId\r\n                userRole\r\n                exhibitorId\r\n                companyUsers{\r\n                  id\r\n                  isAppointment\r\n                }\r\n              }\r\n              introduction\r\n              isDeleted\r\n              jobTitle\r\n              name\r\n              nickName\r\n              phone\r\n              phoneConfirm\r\n              province\r\n              talkCount\r\n              talkSuccessedCount\r\n              title\r\n              updateAt\r\n              userId\r\n              email\r\n            }\r\n          }\r\n        }\r\n      `;\r\n      let opt = {\r\n        opt: {\r\n          query: query,\r\n        },\r\n        token: this.token,\r\n      };\r\n      let data = await this.graphqlPost(opt);\r\n      if (data.data && data.data.memberQuery && data.data.memberQuery.current) {\r\n        this.setUser(data.data.memberQuery.current);\r\n        this.getUserAdvisorySetting();\r\n        this.init();\r\n      }\r\n    },\r\n    async init() {\r\n      this.initCate();\r\n      let city = [];\r\n      if (this.userInfo.province) {\r\n        city.push(this.userInfo.province);\r\n        if (this.userInfo.city) {\r\n          city.push(this.userInfo.city);\r\n        }\r\n        if (this.userInfo.county) {\r\n          city.push(this.userInfo.county);\r\n        }\r\n      }\r\n      this.formInline = {\r\n        name: this.userInfo.name,\r\n        phone: this.userInfo.phone, // 手机\r\n        company: this.userInfo.company, // 公司\r\n        job: this.userInfo.jobTitle,\r\n        // content: this.userInfo.introduction,\r\n        city: city,\r\n        email:this.userInfo.email,\r\n        \r\n      };\r\n\r\n      if (this.userInfo.avatarUrl) {\r\n        this.defaultList = [\r\n          {\r\n            name: this.userInfo.name,\r\n            url: this.userInfo.avatarUrl,\r\n            status: \"finished\",\r\n            percentage: 100,\r\n          },\r\n        ];\r\n        this.uploadList = this.defaultList;\r\n\r\n        this.formInline.avatarUrl = this.uploadList[0].url;\r\n      }\r\n      console.log(this.formInline);\r\n      // this.formInline.country = \"中国\";\r\n      // let countryList = await this.getCountry();\r\n      // if (countryList && countryList.length > 0) {\r\n      //   this.countryList = countryList;\r\n      // }\r\n    },\r\n    async initCate() {\r\n      let res = await this.getCategory();\r\n      if (res && res.categories) {\r\n        let ProCategory = JSON.parse(JSON.stringify(res.categories));\r\n        ProCategory.map((c) => {\r\n          c.value = c.name;\r\n          c.label = c.name;\r\n          if (c.childrens && c.childrens.length > 0) {\r\n            c.children = c.childrens;\r\n            c.children.map((v) => {\r\n              v.value = v.name;\r\n              v.label = v.name;\r\n              if (v.childrens && v.ichildrens.length > 0) {\r\n                v.children = v.childrens;\r\n                v.children.map((z) => {\r\n                  z.value = z.name;\r\n                  z.label = z.name;\r\n                });\r\n              }\r\n            });\r\n          }\r\n        });\r\n        this.categoryList = ProCategory;\r\n        let typeList = [];\r\n        this.formInline.category = [];\r\n        let array = [];\r\n        console.log(this.userInfo, \"213123s\");\r\n        //&&this.userInfo.inMember.category.indexOf(\";\") != -1\r\n        if (\r\n          this.userInfo &&\r\n          this.userInfo.inMember &&\r\n          this.userInfo.inMember.category\r\n        ) {\r\n          //typeList.push(this.userInfo.inMember.category);\r\n          typeList = this.userInfo.inMember.category.split(\";\");\r\n          console.log(this.typeList, \"革新type\");\r\n          typeList.forEach((c) => {\r\n            if (c.indexOf(\">\")) {\r\n              c = c.split(\">\");\r\n            }\r\n            array.push(c);\r\n          });\r\n        } else {\r\n          typeList = this.userInfo.inMember.category\r\n            ? this.userInfo.inMember.category.split(\";\")\r\n            : [];\r\n          array.push(typeList);\r\n        }\r\n        this.formInline.category = array;\r\n      }\r\n    },\r\n    handleReset(name) {\r\n      this.$refs[name].resetFields();\r\n    },\r\n    async handleSubmit(name) {\r\n      let valid = await this.validForm(name);\r\n      if (!valid) return;\r\n       console.log(this.formInline, \"formInline\");\r\n      let req = {\r\n        avatarUrl: this.formInline.avatarUrl,\r\n        company: this.formInline.company,\r\n        // introduction: this.formInline.content,\r\n        province: this.formInline.city[0] || \"\",\r\n        city: this.formInline.city[1] || \"\",\r\n        county: this.formInline.city[2] || \"\",\r\n        jobTitle: this.formInline.job,\r\n        phone: this.formInline.phone,\r\n        name: this.formInline.name,\r\n        email:this.formInline.email,\r\n        id: this.userInfo.inMember.memberId,\r\n      };\r\n      let data = await this.patchUser(req);\r\n      if (data.result) {\r\n        this.getUser();\r\n        let opt = {};\r\n        let category = [];\r\n        if (this.formInline.category.length > 0) {\r\n          this.formInline.category.forEach((c) => {\r\n            if (c.length > 1) {\r\n              c = c.join(\">\");\r\n            } else {\r\n              c = c[0];\r\n            }\r\n            category.push(c);\r\n          });\r\n          (this.formInline.category = category.join(\";\")),\r\n            (opt = {\r\n              body: {\r\n                category: this.formInline.category,\r\n              },\r\n              id: this.userInfo.inMember.id,\r\n            });\r\n        }\r\n        // else {\r\n        //   opt = {\r\n        //     body: {\r\n        //       category: this.formInline.category[0],\r\n        //     },\r\n        //     id: this.userInfo.inMember.id,\r\n        //   };\r\n        // }\r\n        let data1 = await this.patchUserCategory(opt);\r\n        if (data1.result && data.result) {\r\n          this.$Message.success(\"修改成功\");\r\n          this.getUser();\r\n        } else {\r\n          this.$Message.warning(\"修改失败\");\r\n        }\r\n      }\r\n    },\r\n    changeCity(item) {\r\n      console.log(item, \"item\");\r\n    },\r\n    validForm(name) {\r\n      // 验证表单\r\n      return new Promise((resolve, reject) => {\r\n        this.$refs[name].validate((valid) => {\r\n          resolve(valid);\r\n        });\r\n      });\r\n    },\r\n    // 查看上传图片\r\n    handleView(name) {\r\n      this.imgName = name;\r\n      this.visible = true;\r\n    },\r\n    // 移除上传图片\r\n    handleRemove(file) {\r\n      const fileList = this.uploadList;\r\n      this.uploadList.splice(fileList.indexOf(file), 1);\r\n       this.formInline.avatarUrl =''\r\n    },\r\n    // 上传成功\r\n    handleSuccess(res, file, fileList) {\r\n      if (res && res.data.length) {\r\n        file.url = res.data[0];\r\n        this.uploadList = this.$refs.upload.fileList;\r\n        //this.$refs.formInline.validateField(\"logo\");\r\n        this.formInline.avatarUrl = file.url;\r\n        console.log(this.formInline.avatarUrl,'3123123');\r\n      }\r\n    },\r\n    // 文件格式错误\r\n    handleFormatError(file) {\r\n      this.$Message.warning(`文件格式是不正确的, 请上传jpg或者png格式的图片`);\r\n    },\r\n    // 文件过大\r\n    handleMaxSize(file) {\r\n      this.$Message.warning(`文件大小超过限制, 请上传小于2M的图片`);\r\n    },\r\n    // 上传数量\r\n    handleBeforeUpload() {\r\n      const limitNum = 1;\r\n      const check = this.uploadList.length < limitNum;\r\n      if (!check) {\r\n        this.$Message.warning(`最多上传${limitNum}张图片`);\r\n      }\r\n      return check;\r\n    },\r\n    async changeCountry(val) {\r\n      let item = null;\r\n      this.countryList.forEach((c) => {\r\n        if (c.name === val) item = c;\r\n      });\r\n      if (!item) return;\r\n      this.provinceArr = [];\r\n      this.citiesArr = [];\r\n      this.formInline.province = \"\";\r\n      this.formInline.city = \"\";\r\n      let opt = {\r\n        where: {\r\n          equal: {\r\n            n: \"parentId\",\r\n            v: item.id,\r\n          },\r\n        },\r\n        order: [\r\n          {\r\n            n: \"showIndex\",\r\n            v: 1,\r\n          },\r\n        ],\r\n      };\r\n      let provinceList = await this.getCountrySub(opt);\r\n      if (provinceList && provinceList.length > 0) {\r\n        this.provinceArr = provinceList;\r\n      }\r\n    },\r\n    changeProvince(val) {},\r\n    async changeProvinceValue(item) {\r\n      let opt = {\r\n        where: {\r\n          equal: {\r\n            n: \"parentId\",\r\n            v: item.id,\r\n          },\r\n        },\r\n        order: [\r\n          {\r\n            n: \"showIndex\",\r\n            v: 1,\r\n          },\r\n        ],\r\n      };\r\n      let cityList = await this.getCountrySub(opt);\r\n      if (cityList && cityList.length > 0) {\r\n        this.citiesArr = cityList;\r\n      } else {\r\n        this.formInline.city = \"\";\r\n        this.citiesArr = [];\r\n      }\r\n    },\r\n  },\r\n  destroyed() {},\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n@import \"@assets/scss/my-theme/mixin.scss\";\r\n.content {\r\n  .m-card {\r\n    border: solid 1px #ededed;\r\n    min-height: 600px;\r\n\r\n    .mc-top-title::before {\r\n      opacity: 0;\r\n      font-size: 16px;\r\n    }\r\n  }\r\n}\r\n\r\n.my-info {\r\n  .tip {\r\n    line-height: 40px;\r\n    display: inline-block;\r\n    padding-left: 14px;\r\n    font-size: 14px;\r\n    @include font_color(#1890ff);\r\n    cursor: pointer;\r\n  }\r\n}\r\n.my-upload-list-cover i {\r\n  margin: 40px 2px;\r\n}\r\n</style>\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./my-info.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./my-info.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./my-info.vue?vue&type=template&id=0fef1d96&scoped=true&\"\nimport script from \"./my-info.vue?vue&type=script&lang=js&\"\nexport * from \"./my-info.vue?vue&type=script&lang=js&\"\nimport style0 from \"./my-info.vue?vue&type=style&index=0&id=0fef1d96&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  \"0fef1d96\",\n  null\n  \n)\n\nexport default component.exports"],"sourceRoot":""}