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
11 KiB

{"version":3,"sources":["uni-app:///main.js","webpack:///C:/Users/liudan/Desktop/git/huajucanyin/pages/user/auth/name.vue?5994","webpack:///C:/Users/liudan/Desktop/git/huajucanyin/pages/user/auth/name.vue?4277","webpack:///C:/Users/liudan/Desktop/git/huajucanyin/pages/user/auth/name.vue?3050","webpack:///C:/Users/liudan/Desktop/git/huajucanyin/pages/user/auth/name.vue?779e","uni-app:///pages/user/auth/name.vue","webpack:///C:/Users/liudan/Desktop/git/huajucanyin/pages/user/auth/name.vue?6845","webpack:///C:/Users/liudan/Desktop/git/huajucanyin/pages/user/auth/name.vue?fc76"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","submitDisabled","account","pageroute","onLoad","methods","onKeyInput","formSubmit","name","checkType","errorMsg","checkRule","url","password","client_id","success","uni","retrieve","phone","register","help"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,aAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAiH;AACjH;AACwD;AACL;AACa;;;AAGhE;AACwK;AACxK,gBAAgB,+KAAU;AAC1B,EAAE,0EAAM;AACR,EAAE,+EAAM;AACR,EAAE,wFAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,mFAAU;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;AAA0nB,CAAgB,wnBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;ACgD9oB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA,eACA;EACAC;IACA;MACAC;MACAC;MACAC;IACA;EACA;EACAC;IACA;IACA;IACA;EACA;EACAC;IACAC;MACA;IACA;IACAC;MAAA;MACA;MACA,YACA;QAAAC;QAAAC;QAAAC;MAAA,GACA;QAAAF;QAAAC;QAAAE;QAAAD;MAAA,EACA;MACA;MACA;MACA;MACA;QACA;UACAE;UACAZ;YACAE;YACAW;YACAC;UACA;UACAC;YACA;YACA;YACA;YACAC;cAAAJ;YAAA;UACA;QACA;MACA;QACA;MACA;IACA;IACAK;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;AC3GA;AAAA;AAAA;AAAA;AAAu5B,CAAgB,i3BAAG,EAAC,C;;;;;;;;;;;ACA36B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/user/auth/name.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/auth/name.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./name.vue?vue&type=template&id=081ce1f2&\"\nvar renderjs\nimport script from \"./name.vue?vue&type=script&lang=js&\"\nexport * from \"./name.vue?vue&type=script&lang=js&\"\nimport style0 from \"./name.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../k/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/user/auth/name.vue\"\nexport default component.exports","export * from \"-!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./name.vue?vue&type=template&id=081ce1f2&\"","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 \"-!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./name.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./name.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view>\r\n\t\t<view class=\"auth\">\r\n\t\t\t<view class=\"wanl-title\">欢迎登陆账号</view>\r\n\t\t\t<form @submit=\"formSubmit\">\r\n\t\t\t\t<view class=\"auth-group radius-bock bg-gray wlian-grey-light\">\r\n\t\t\t\t\t<input \r\n\t\t\t\t\t\ttype=\"text\"\r\n\t\t\t\t\t\tplaceholder=\"请输入用户名\" \r\n\t\t\t\t\t\tconfirm-type=\"next\" \r\n\t\t\t\t\t\tmaxlength=\"16\"\r\n\t\t\t\t\t\tplaceholder-class=\"placeholder\" \r\n\t\t\t\t\t\tname=\"account\"\r\n\t\t\t\t\t\t:value=\"account\"\r\n\t\t\t\t\t></input>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"auth-group radius-bock bg-gray wlian-grey-light\">\r\n\t\t\t\t\t<input \r\n\t\t\t\t\t\ttype=\"text\"\r\n\t\t\t\t\t\tplaceholder=\"请输入登录密码\" \r\n\t\t\t\t\t\tpassword=\"true\" \r\n\t\t\t\t\t\tconfirm-type=\"done\"\r\n\t\t\t\t\t\tmaxlength=\"16\"\r\n\t\t\t\t\t\tplaceholder-class=\"placeholder\" \r\n\t\t\t\t\t\tname=\"password\"\r\n\t\t\t\t\t\t@input=\"onKeyInput\"\r\n\t\t\t\t\t></input>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"text-right\" @tap=\"retrieve\">\r\n\t\t\t\t\t忘记密码\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"auth-button flex flex-direction\">\r\n\t\t\t\t\t<button class=\"cu-btn bg-orange sl radius-bock\" form-type=\"submit\" :disabled=\"submitDisabled\">登 录</button>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"text-center\" @tap=\"phone\">\r\n\t\t\t\t\t短信验证码登录\r\n\t\t\t\t</view>\r\n\t\t\t</form>\r\n\t\t</view>\r\n\t\t<view class=\"auth-foot\">\r\n\t\t\t<view class=\"menu text-grey\">\r\n\t\t\t\t<text @tap=\"register\">注册</text>\r\n\t\t\t\t<text @tap=\"help\">帮助</text>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n<script>\r\nimport graceChecker from '@/common/graceChecker';//来自 graceUI 的表单验证, 使用说明见手册 http://grace.hcoder.net/doc/info/73-3.html\r\nexport default {\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tsubmitDisabled: true,\r\n\t\t\taccount: '',\r\n\t\t\tpageroute: ''\r\n\t\t};\r\n\t},\r\n\tonLoad(option){\r\n\t\t// 用户名\r\n\t\tthis.account = option.name;\r\n\t\tthis.pageroute = option.url;\r\n\t},\r\n\tmethods: {\r\n\t\tonKeyInput: function(e) {\r\n\t\t\tthis.submitDisabled = false\r\n\t\t},\r\n\t\tformSubmit: function(e) {\r\n\t\t\t//定义表单规则\r\n\t\t\tvar rule = [\r\n\t\t\t\t{ name: 'account', checkType: 'notnull', errorMsg: '请输入用户名' },\r\n\t\t\t\t{ name: 'password', checkType: 'string', checkRule: '6,16', errorMsg: '密码至少6位' }\r\n\t\t\t];\r\n\t\t\t//进行表单检查\r\n\t\t\tvar formData = e.detail.value;\r\n\t\t\tvar checkRes = graceChecker.check(formData, rule);\r\n\t\t\tif (checkRes) {\r\n\t\t\t\tthis.$api.post({\r\n\t\t\t\t\turl: '/wanlshop/user/login', \r\n\t\t\t\t\tdata: {\r\n\t\t\t\t\t\taccount: formData.account,\r\n\t\t\t\t\t\tpassword: formData.password,\r\n\t\t\t\t\t\tclient_id: uni.getStorageSync(\"wanlshop:chat_client_id\")?uni.getStorageSync(\"wanlshop:chat_client_id\") : null\r\n\t\t\t\t\t},\r\n\t\t\t\t\tsuccess: res => {\r\n\t\t\t\t\t\tthis.$store.dispatch('user/login', res);\r\n\t\t\t\t\t\tthis.$store.dispatch('cart/login');\r\n\t\t\t\t\t\tthis.$store.dispatch('chat/get');\r\n\t\t\t\t\t\tuni.reLaunch({url: decodeURIComponent(this.pageroute)});\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t} else {\r\n\t\t\t\tthis.$wanlshop.msg(graceChecker.error);\r\n\t\t\t}\r\n\t\t},\r\n\t\tretrieve(){\r\n\t\t\tthis.$wanlshop.to(`retrieve?url=${this.pageroute}`);\r\n\t\t},\r\n\t\tphone() {\r\n\t\t\tthis.$wanlshop.to(`phone?url=${this.pageroute}`);\r\n\t\t},\r\n\t\tregister() {\r\n\t\t\tthis.$wanlshop.to(`register?url=${this.pageroute}`);\r\n\t\t},\r\n\t\thelp() {\r\n\t\t\tthis.$wanlshop.to(`/pages/user/help?url=${this.pageroute}`);\r\n\t\t}\r\n\t}\r\n};\r\n</script>\r\n\r\n<style>\r\n\t@import url(\"auth.css\");\r\n</style>\r\n","import mod from \"-!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./name.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./name.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1699839793711\n var cssReload = require(\"C:/Users/liudan/Desktop/k/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":""}