You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
15 KiB
1 lines
15 KiB
{"version":3,"sources":["uni-app:///main.js","webpack:///D:/仁周项目/2024-09-02 征信/zhengxin/pages/user/personal.vue?8be0","webpack:///D:/仁周项目/2024-09-02 征信/zhengxin/pages/user/personal.vue?7f0b","webpack:///D:/仁周项目/2024-09-02 征信/zhengxin/pages/user/personal.vue?5bb4","webpack:///D:/仁周项目/2024-09-02 征信/zhengxin/pages/user/personal.vue?3516","uni-app:///pages/user/personal.vue","webpack:///D:/仁周项目/2024-09-02 征信/zhengxin/pages/user/personal.vue?564e","webpack:///D:/仁周项目/2024-09-02 征信/zhengxin/pages/user/personal.vue?9113"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","userInfo","onShow","methods","openPage","uni","url","toSubmit","title","icon","avatar","username","mobile","wx_qr_code","alipay_account","wx_account","code","message","setTimeout","delta","uploadImg","count","sizeType","sourceType","success","console","name","header","userToken","filePath","that","fail"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,iBAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAiI;AACjI;AAC4D;AACL;AACsC;;;AAG7F;AAC+K;AAC/K,gBAAgB,sLAAU;AAC1B,EAAE,8EAAM;AACR,EAAE,+FAAM;AACR,EAAE,wGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,mGAAU;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;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAiqB,CAAgB,+pBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eCgDrrB;EACAC;IACA;MACAC;IACA;EACA;EACAC;IACA;EACA;EACAC;IACAC;MACA,iBAEA,wBAEA;QACAC;UACAC;QACA;MACA;QACAD;UACAC;QACA;MACA;QACAD;UACAC;QACA;MACA;QACAD;UACAC;QACA;MACA;IACA;IACAC;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA,IACA;kBAAA;kBAAA;gBAAA;gBACAF;kBACAG;kBACAC;gBACA;gBAAA;cAAA;gBAAA,IAGA;kBAAA;kBAAA;gBAAA;gBACAJ;kBACAG;kBACAC;gBACA;gBAAA;cAAA;gBAAA,IAIA;kBAAA;kBAAA;gBAAA;gBACAJ;kBACAG;kBACAC;gBACA;gBAAA;cAAA;gBAAA;gBAAA,OAIA;kBACAC;kBACAC;kBACAC;kBACAC;kBACAC;kBACAC;gBACA;cAAA;gBAAA;gBAPAC;gBAAAhB;gBAAAiB;gBAQA;kBACAZ;oBACAG;kBACA;kBACAU;oBACAb;sBACAc;oBACA;kBACA;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACA;IACAC;MAAA;MACA;MACAf;QACAgB;QACAC;QAAA;QACAC;QACAC;UACAC;UACApB;YACAqB;YACAC;cACAC;YACA;YACAtB;YACAuB;YACAL;cACA;cACAM;cACAA;YACA;YACAC;cACAN;cACAA;YACA;UACA;QACA;QACAM;UACAN;QACA;MACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;AC7JA;AAAA;AAAA;AAAA;AAAoxC,CAAgB,0sCAAG,EAAC,C;;;;;;;;;;;ACAxyC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/user/personal.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/user/personal.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./personal.vue?vue&type=template&id=445cab4a&scoped=true&\"\nvar renderjs\nimport script from \"./personal.vue?vue&type=script&lang=js&\"\nexport * from \"./personal.vue?vue&type=script&lang=js&\"\nimport style0 from \"./personal.vue?vue&type=style&index=0&id=445cab4a&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../ruanjian/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 \"445cab4a\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/user/personal.vue\"\nexport default component.exports","export * from \"-!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./personal.vue?vue&type=template&id=445cab4a&scoped=true&\"","var components\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 \"-!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./personal.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./personal.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"site\">\r\n\t\t<view class=\"site-bd\">\r\n\t\t\t<view class=\"item\">\r\n\t\t\t\t<view class=\"a\">用户头像</view>\r\n\t\t\t\t<view class=\"b\">\r\n\t\t\t\t\t<image @click=\"uploadImg\" v-if=\"userInfo.avatar\" class=\"img\" :src=\"userInfo.avatar1 || userInfo.avatar\"></image>\r\n\t\t\t\t\t<image @click=\"uploadImg\" v-else class=\"img\" src=\"https://zhengxin.njrenzhou.cn/static/default.png\"></image>\r\n\t\t\t\t\t<text @click=\"openPage(1)\">编辑</text>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"item\">\r\n\t\t\t\t<view class=\"a\">用户昵称</view>\r\n\t\t\t\t<view class=\"b\">\r\n\t\t\t\t\t<input v-model=\"userInfo.username\" type=\"text\" placeholder=\"请输入用户名\" />\r\n\t\t\t\t\t<text @click=\"openPage(2)\">编辑</text>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"item\">\r\n\t\t\t\t<view class=\"a\">密码</view>\r\n\t\t\t\t<view class=\"b\" @click=\"openPage(3)\">\r\n\t\t\t\t\t<text>设置</text>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"item\">\r\n\t\t\t\t<view class=\"a\">实名认证</view>\r\n\t\t\t\t<view class=\"b\" @click=\"openPage(4)\">\r\n\t\t\t\t\t<text>去认证</text>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"item\">\r\n\t\t\t\t<view class=\"a\">手机号</view>\r\n\t\t\t\t<view class=\"b\" @click=\"openPage(5)\">\r\n\t\t\t\t\t<input disabled value=\"180****0223\" type=\"text\" placeholder=\"请输入用户名\" />\r\n\t\t\t\t\t<text>编辑</text>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"item\">\r\n\t\t\t\t<view class=\"a\">微信号</view>\r\n\t\t\t\t<view class=\"b\" @click=\"openPage(6)\">\r\n\t\t\t\t\t<text>绑定</text>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tuserInfo: {}\r\n\t\t\t};\r\n\t\t},\r\n\t\tonShow() {\r\n\t\t\tthis.userInfo = uni.getStorageSync(\"userInfo\")\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\topenPage(index){\r\n\t\t\t\tif(index == 1){\r\n\t\t\t\t\t\r\n\t\t\t\t}else if(index == 2){\r\n\t\t\t\t\t\r\n\t\t\t\t}else if(index == 3){\r\n\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\turl: \"/pages/user/password\"\r\n\t\t\t\t\t})\r\n\t\t\t\t}else if(index == 4){\r\n\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\turl: \"/pages/user/verification\"\r\n\t\t\t\t\t})\r\n\t\t\t\t}else if(index == 5){\r\n\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\turl: \"/pages/user/phone\"\r\n\t\t\t\t\t})\r\n\t\t\t\t}else if(index == 6){\r\n\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\turl: \"/pages/user/verification\"\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tasync toSubmit() {\r\n\t\t\t\tif (!this.userInfo.username) {\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle: '请输入用户名',\r\n\t\t\t\t\t\ticon: 'none',\r\n\t\t\t\t\t})\r\n\t\t\t\t\treturn\r\n\t\t\t\t}\r\n\t\t\t\tif (!this.userInfo.mobile) {\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle: '请输入手机号',\r\n\t\t\t\t\t\ticon: 'none',\r\n\t\t\t\t\t})\r\n\t\t\t\t\treturn\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (!/^1[3456789]\\d{9}$/.test(this.userInfo.mobile)) {\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle: '请输入正确手机号',\r\n\t\t\t\t\t\ticon: 'none',\r\n\t\t\t\t\t})\r\n\t\t\t\t\treturn\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tconst { code, data, message } = await this.$api.editMember({\r\n\t\t\t\t\tavatar: this.userInfo.avatar,\r\n\t\t\t\t\tusername: this.userInfo.username,\r\n\t\t\t\t\tmobile: this.userInfo.mobile,\r\n\t\t\t\t\twx_qr_code: \"\",\r\n\t\t\t\t\talipay_account: \"\",\r\n\t\t\t\t\twx_account: \"\",\r\n\t\t\t\t});\r\n\t\t\t\tif(code == 200){\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle: \"提交成功\"\r\n\t\t\t\t\t})\r\n\t\t\t\t\tsetTimeout(()=>{\r\n\t\t\t\t\t\tuni.navigateBack({\r\n\t\t\t\t\t\t\tdelta: 1\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t},1000)\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t//上传图片\r\n\t\t\tuploadImg() {\r\n\t\t\t\tconst that = this\r\n\t\t\t\tuni.chooseImage({\r\n\t\t\t\t\tcount: 1,\r\n\t\t\t\t\tsizeType: [\"original\"], //可以指定是原图还是压缩图,默认二者都有\r\n\t\t\t\t\tsourceType: [\"album\", \"camera\"],\r\n\t\t\t\t\tsuccess: (res) => {\r\n\t\t\t\t\t\tconsole.log(res.tempFilePaths[0])\r\n\t\t\t\t\t\tuni.uploadFile({\r\n\t\t\t\t\t\t\tname: 'file',\r\n\t\t\t\t\t\t\theader: {\r\n\t\t\t\t\t\t\t\tuserToken: uni.getStorageSync('token')\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\turl: this.$baseUrl+'api/user/upload',\r\n\t\t\t\t\t\t\tfilePath: res.tempFilePaths[0],\r\n\t\t\t\t\t\t\tsuccess: (upRes) => {\r\n\t\t\t\t\t\t\t\tlet end = JSON.parse(upRes.data)\r\n\t\t\t\t\t\t\t\tthat.userInfo.avatar = end.data.path\r\n\t\t\t\t\t\t\t\tthat.userInfo.avatar1 = end.data.url\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\tfail: (err) => {\r\n\t\t\t\t\t\t\t\tconsole.log(\"toUpload err\",err)\r\n\t\t\t\t\t\t\t\tconsole.log(err)\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t},\r\n\t\t\t\t\tfail(err){\r\n\t\t\t\t\t\tconsole.log(\"fail\",err)\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.site{\r\n\tpadding: 25rpx;\r\n\toverflow: hidden;\r\n\t&-bd{\r\n\t\twidth: 700rpx;\r\n\t\tbackground: #FFFFFF;\r\n\t\tbox-shadow: 0px 3rpx 10rpx 0px rgba(9,44,39,0.05);\r\n\t\tborder-radius: 20rpx;\r\n\t\tmargin: 0 auto;\r\n\t\tpadding: 0 30rpx;\r\n\t\tbox-sizing: border-box;\r\n\t\tposition: relative;\r\n\t\t.item{\r\n\t\t\tdisplay: flex;\r\n\t\t\talign-items: center;\r\n\t\t\tjustify-content: space-between;\r\n\t\t\tborder-top: 1px solid #EAEAEA;\r\n\t\t\tpadding: 35rpx 0;\r\n\t\t\toverflow: hidden;\r\n\t\t\tposition: relative;\r\n\t\t\t&:first-child{\r\n\t\t\t\tborder-color: #FFFFFF;\r\n\t\t\t}\r\n\t\t\t.a{\r\n\t\t\t\twidth: 160rpx;\r\n\t\t\t\tdisplay: flex;\r\n\t\t\t\talign-items: center;\r\n\t\t\t\tfont-weight: 500;\r\n\t\t\t\tfont-size: 30rpx;\r\n\t\t\t\tcolor: #222222;\r\n\t\t\t}\r\n\t\t\t.b{\r\n\t\t\t\tflex: 1;\r\n\t\t\t\tdisplay: flex;\r\n\t\t\t\talign-items: center;\r\n\t\t\t\tjustify-content: flex-end;\r\n\t\t\t\tfont-weight: 500;\r\n\t\t\t\tfont-size: 24rpx;\r\n\t\t\t\tcolor: #999999;\r\n\t\t\t\tinput{\r\n\t\t\t\t\tflex: 1;\r\n\t\t\t\t\tfont-weight: 500;\r\n\t\t\t\t\tfont-size: 24rpx;\r\n\t\t\t\t\tcolor: #999999;\r\n\t\t\t\t}\r\n\t\t\t\ttext{\r\n\t\t\t\t\tfont-weight: 500;\r\n\t\t\t\t\tfont-size: 28rpx;\r\n\t\t\t\t\tcolor: #00C6A9;\r\n\t\t\t\t\tmargin-left: 15rpx;\r\n\t\t\t\t}\r\n\t\t\t\timage{\r\n\t\t\t\t\twidth: 60rpx;\r\n\t\t\t\t\theight: 60rpx;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n</style>","import mod from \"-!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./personal.vue?vue&type=style&index=0&id=445cab4a&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../ruanjian/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./personal.vue?vue&type=style&index=0&id=445cab4a&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1726646829418\n var cssReload = require(\"D:/ruanjian/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":""} |