1 |
- {"version":3,"sources":["uni-app:///main.js","webpack:///D:/company/RedDragonfly/pages/my/password.vue?b5a3","webpack:///D:/company/RedDragonfly/pages/my/password.vue?1b01","webpack:///D:/company/RedDragonfly/pages/my/password.vue?9dce","webpack:///D:/company/RedDragonfly/pages/my/password.vue?167c","uni-app:///pages/my/password.vue","webpack:///D:/company/RedDragonfly/pages/my/password.vue?b4e1","webpack:///D:/company/RedDragonfly/pages/my/password.vue?9588"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","rawPass","newPass","newPass1","rawText","messageText","msgType","computed","user","methods","confirm","Id","originalPassword","newPassword","accessToken","lastUpdatedBy","account","person","sex","IDCard","factory","warehouse","line","res","uni","key","url"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,iBAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAqH;AACrH;AAC4D;AACL;AACc;;;AAGrE;AACgN;AAChN,gBAAgB,0NAAU;AAC1B,EAAE,8EAAM;AACR,EAAE,mFAAM;AACR,EAAE,4FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,uFAAU;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,gQAEN;AACP,KAAK;AACL;AACA,aAAa,sWAEN;AACP,KAAK;AACL;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACtCA;AAAA;AAAA;AAAA;AAAs0B,CAAgB,m1BAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;ACsB11B;AACA;AAEA;AAAA;AAAA,eACA;EACAC;IACA;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;IACA;EACA;EACAC,4BACA;IACAC;MAAA;IAAA;EACA,GACA;EACAC;IACAC;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OACA;kBACAC;kBACAC;kBACAC;kBACAC;kBACAC;oBACAC;oBACAC;oBACAC;oBACAC;oBACAC;oBACAC;oBACAC;kBACA;kBACAN;gBACA;cAAA;gBAfAO;gBAgBA;kBACA;kBACA;kBACA;gBACA;kBACA;kBACA;kBACA;kBACAC;oBACAC;kBACA;kBACAD;oBACAC;kBACA;kBACAD;oBACAC;kBACA;kBACAD;oBACAE;kBACA;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;ACnFA;AAAA;AAAA;AAAA;AAAqiD,CAAgB,s/CAAG,EAAC,C;;;;;;;;;;;ACAzjD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/my/password.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/my/password.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./password.vue?vue&type=template&id=3369b0b5&\"\nvar renderjs\nimport script from \"./password.vue?vue&type=script&lang=js&\"\nexport * from \"./password.vue?vue&type=script&lang=js&\"\nimport style0 from \"./password.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../Install the package/HBuilderX.3.5.3.20220729/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 null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/my/password.vue\"\nexport default component.exports","export * from \"-!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./password.vue?vue&type=template&id=3369b0b5&\"","var components\ntry {\n components = {\n uniPopup: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uni-popup/components/uni-popup/uni-popup\" */ \"@/uni_modules/uni-popup/components/uni-popup/uni-popup.vue\"\n )\n },\n uniPopupMessage: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uni-popup/components/uni-popup-message/uni-popup-message\" */ \"@/uni_modules/uni-popup/components/uni-popup-message/uni-popup-message.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 \"-!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./password.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./password.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"pass\">\r\n\t\t<view class=\"\">\r\n\t\t\t<input class=\"uni-input\" v-model=\"rawPass\" placeholder=\"请输入原密码\" />\r\n\t\t\t<!-- <text v-show=\"rawText\">原密码不能为空</text> -->\r\n\t\t</view>\r\n\t\t<view class=\"\">\r\n\t\t\t<input class=\"uni-input\" v-model=\"newPass\" placeholder=\"请输入新密码\" />\r\n\t\t\t<!-- <text v-show=\"PassText\">新密码不能为空</text> -->\r\n\t\t</view>\r\n\t\t<view class=\"\">\r\n\t\t\t<input class=\"uni-input\" v-model=\"newPass1\" placeholder=\"请确认新密码\" />\r\n\t\t\t<!-- <text v-show=\"Pass1Text\">两次密码不一致</text> -->\r\n\t\t</view>\r\n\t\t<button type=\"warn\" class=\"btn\" @click=\"confirm\">确定</button>\r\n\t\t<uni-popup ref=\"message\" type=\"message\">\r\n\t\t\t<uni-popup-message :type=\"msgType\" :message=\"messageText\" :duration=\"2000\"></uni-popup-message>\r\n\t\t</uni-popup>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport {modifyPassword} from '../../api/user.js'\r\n\timport {\r\n\t\tmapState\r\n\t} from 'vuex'\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\trawPass: '',\r\n\t\t\t\tnewPass: '',\r\n\t\t\t\tnewPass1: '',\r\n\t\t\t\trawText: true,\r\n\t\t\t\tmessageText: '',\r\n\t\t\t\tmsgType: 'success'\r\n\t\t\t};\r\n\t\t},\r\n\t\tcomputed: {\r\n\t\t\t...mapState({\r\n\t\t\t\tuser: store => store.user\r\n\t\t\t})\r\n\t\t},\r\n\t\tmethods:{\r\n\t\t\tasync confirm(){\r\n\t\t\t\tconst res = await modifyPassword({\r\n\t\t\t\t\tId: this.user._id,\r\n\t\t\t\t\toriginalPassword: this.rawPass,\r\n\t\t\t\t\tnewPassword: this.newPass,\r\n\t\t\t\t\taccessToken: uni.getStorageSync('tokenInfo'),\r\n\t\t\t\t\tlastUpdatedBy: {\r\n\t\t\t\t\t\taccount: uni.getStorageSync('account'),\r\n\t\t\t\t\t\tperson: this.user.name,\r\n\t\t\t\t\t\tsex: this.user.sex,\r\n\t\t\t\t\t\tIDCard: this.user.IDCard,\r\n\t\t\t\t\t\tfactory: this.user.factory,\r\n\t\t\t\t\t\twarehouse: this.user.warehouse,\r\n\t\t\t\t\t\tline: this.user.line\r\n\t\t\t\t\t},\r\n\t\t\t\t\taccount: uni.getStorageSync('account')\r\n\t\t\t\t})\r\n\t\t\t\tif(res.data.success === 1){\r\n\t\t\t\t\tthis.msgType = 'error'\r\n\t\t\t\t\tthis.messageText = res.data.message\r\n\t\t\t\t\tthis.$refs.message.open()\r\n\t\t\t\t}else if(res.data.success === 0){\r\n\t\t\t\t\tthis.msgType = 'success'\r\n\t\t\t\t\tthis.messageText = res.data.message\r\n\t\t\t\t\tthis.$refs.message.open()\r\n\t\t\t\t\tuni.removeStorage({\r\n\t\t\t\t\t\tkey: 'username'\r\n\t\t\t\t\t});\r\n\t\t\t\t\tuni.removeStorage({\r\n\t\t\t\t\t\tkey: 'passwork'\r\n\t\t\t\t\t});\r\n\t\t\t\t\tuni.removeStorage({\r\n\t\t\t\t\t\tkey: 'tokenInfo'\r\n\t\t\t\t\t});\r\n\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\turl: '/pages/login/login'\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\">\r\n\t.pass {\r\n\t\tpadding: 50rpx 20rpx;\r\n\r\n\t\t&>view {\r\n\t\t\tmargin-top: 20rpx;\r\n\t\t\tpadding-bottom: 30rpx;\r\n\t\t\tposition: relative;\r\n\r\n\t\t\t.uni-input {\r\n\t\t\t\tpadding: 20rpx 10rpx;\r\n\t\t\t\tborder-bottom: 1rpx solid #b4b4b4;\r\n\t\t\t}\r\n\r\n\t\t\ttext {\r\n\t\t\t\tfont-size: 22rpx;\r\n\t\t\t\tcolor: red;\r\n\t\t\t\tposition: absolute;\r\n\t\t\t\tleft: 10rpx;\r\n\t\t\t\tbottom: 0;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t.btn {\r\n\t\t\twidth: 70%;\r\n\t\t\tmargin-top: 50rpx;\r\n\t\t}\r\n\t}\r\n</style>","import mod from \"-!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./password.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./password.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1693280596034\n var cssReload = require(\"D:/Install the package/HBuilderX.3.5.3.20220729/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":""}
|