8.js 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779
  1. webpackJsonp([8],{
  2. /***/ 288:
  3. /***/ (function(module, exports, __webpack_require__) {
  4. var disposed = false
  5. function injectStyle (ssrContext) {
  6. if (disposed) return
  7. __webpack_require__(457)
  8. }
  9. var normalizeComponent = __webpack_require__(2)
  10. /* script */
  11. var __vue_script__ = __webpack_require__(459)
  12. /* template */
  13. var __vue_template__ = __webpack_require__(460)
  14. /* template functional */
  15. var __vue_template_functional__ = false
  16. /* styles */
  17. var __vue_styles__ = injectStyle
  18. /* scopeId */
  19. var __vue_scopeId__ = "data-v-effe19ba"
  20. /* moduleIdentifier (server only) */
  21. var __vue_module_identifier__ = null
  22. var Component = normalizeComponent(
  23. __vue_script__,
  24. __vue_template__,
  25. __vue_template_functional__,
  26. __vue_styles__,
  27. __vue_scopeId__,
  28. __vue_module_identifier__
  29. )
  30. Component.options.__file = "resources/assets/js/main/pages/index.vue"
  31. /* hot reload */
  32. if (false) {(function () {
  33. var hotAPI = require("vue-hot-reload-api")
  34. hotAPI.install(require("vue"), false)
  35. if (!hotAPI.compatible) return
  36. module.hot.accept()
  37. if (!module.hot.data) {
  38. hotAPI.createRecord("data-v-effe19ba", Component.options)
  39. } else {
  40. hotAPI.reload("data-v-effe19ba", Component.options)
  41. }
  42. module.hot.dispose(function (data) {
  43. disposed = true
  44. })
  45. })()}
  46. module.exports = Component.exports
  47. /***/ }),
  48. /***/ 457:
  49. /***/ (function(module, exports, __webpack_require__) {
  50. // style-loader: Adds some css to the DOM by adding a <style> tag
  51. // load the styles
  52. var content = __webpack_require__(458);
  53. if(typeof content === 'string') content = [[module.i, content, '']];
  54. if(content.locals) module.exports = content.locals;
  55. // add the styles to the DOM
  56. var update = __webpack_require__(1)("1ca23da9", content, false, {});
  57. // Hot Module Replacement
  58. if(false) {
  59. // When the styles change, update the <style> tags
  60. if(!content.locals) {
  61. module.hot.accept("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-effe19ba\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../node_modules/sass-loader/lib/loader.js!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./index.vue", function() {
  62. var newContent = require("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-effe19ba\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../node_modules/sass-loader/lib/loader.js!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./index.vue");
  63. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  64. update(newContent);
  65. });
  66. }
  67. // When the module is disposed, remove the <style> tags
  68. module.hot.dispose(function() { update(); });
  69. }
  70. /***/ }),
  71. /***/ 458:
  72. /***/ (function(module, exports, __webpack_require__) {
  73. exports = module.exports = __webpack_require__(0)(false);
  74. // imports
  75. // module
  76. exports.push([module.i, "\nh2[data-v-effe19ba] {\n line-height: 100px;\n font-size: 30px;\n text-align: center;\n}\n.login_box[data-v-effe19ba] {\n width: 70%;\n margin: 300px auto;\n}\n.index[data-v-effe19ba] {\n position: absolute;\n color: #000000;\n top: 0;\n left: 0;\n min-width: 100%;\n min-height: 100%;\n padding: 0;\n margin: 0;\n}\n.index .header[data-v-effe19ba] {\n position: relative;\n z-index: 3;\n height: 50px;\n padding-top: 12px;\n max-width: 1280px;\n margin: 0 auto;\n}\n.index .header .z-row[data-v-effe19ba] {\n color: #fff;\n height: 50px;\n position: relative;\n z-index: 2;\n max-width: 1680px;\n margin: 0 auto;\n}\n.index .header .z-row .header-col-sub[data-v-effe19ba] {\n width: 500px;\n}\n.index .header .z-row .header-col-sub h2[data-v-effe19ba] {\n position: relative;\n padding: 1rem 0 0 1rem;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: end;\n -ms-flex-align: end;\n align-items: flex-end;\n}\n.index .header .z-row .header-col-sub h2 img[data-v-effe19ba] {\n width: 150px;\n margin-right: 6px;\n}\n.index .header .z-row .header-col-sub h2 span[data-v-effe19ba] {\n font-size: 12px;\n font-weight: normal;\n color: rgba(255, 255, 255, 0.85);\n line-height: 14px;\n}\n.index .header .z-row .z-1 dl[data-v-effe19ba] {\n position: absolute;\n right: 20px;\n top: 0;\n font-size: 14px;\n}\n.index .header .z-row .z-1 dl dd[data-v-effe19ba] {\n line-height: 50px;\n color: #fff;\n cursor: pointer;\n margin-right: 1px;\n}\n.index .header .z-row .z-1 dl dd .right-enterprise[data-v-effe19ba] {\n padding: 1px 10px;\n font-size: 12px;\n color: #f6ca9d;\n background: #1d1e23;\n background: -webkit-gradient(linear, left top, right top, from(#1d1e23), to(#3f4045));\n background: linear-gradient(90deg, #1d1e23, #3f4045);\n border: none;\n}\n.index .header .z-row .z-1 dl dd .right-info[data-v-effe19ba] {\n display: inline-block;\n cursor: pointer;\n margin-left: 12px;\n color: #ffffff;\n}\n.index .header .z-row .z-1 dl dd .right-info .right-icon[data-v-effe19ba] {\n font-size: 26px;\n vertical-align: middle;\n}\n.index .header .z-row .z-1 dl dd .right-info .right-img[data-v-effe19ba] {\n vertical-align: middle;\n}\n.index .welbg[data-v-effe19ba] {\n position: absolute;\n z-index: 1;\n top: 0;\n left: 0;\n right: 0;\n height: 762px;\n overflow: hidden;\n padding-top: 480px;\n margin-top: -480px;\n background: #2d8cf0;\n -webkit-transform: skewY(-2deg);\n transform: skewY(-2deg);\n -webkit-box-shadow: 0 2px 244px 0 rgba(56, 132, 255, 0.4);\n box-shadow: 0 2px 244px 0 rgba(56, 132, 255, 0.4);\n}\n.index .welbg .second[data-v-effe19ba] {\n position: relative;\n margin-top: 582px;\n height: 220px;\n}\n.index .welbg .second .bg[data-v-effe19ba] {\n -webkit-transform: skewY(-2.5deg);\n transform: skewY(-2.5deg);\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: #1F65D6;\n}\n.index .welcome[data-v-effe19ba] {\n position: relative;\n z-index: 2;\n height: 700px;\n display: block;\n overflow: hidden;\n color: #FFFFFF;\n padding-top: 480px;\n margin-top: -480px;\n}\n.index .welcome .unslider-arrow[data-v-effe19ba] {\n display: none;\n}\n.index .welcome .banner[data-v-effe19ba] {\n padding-top: 60px;\n height: 460px;\n max-width: 1200px;\n margin: 0 auto;\n}\n.index .welcome .banner .banner-carousel[data-v-effe19ba] {\n max-width: 685px;\n border-radius: 5px;\n overflow: hidden;\n}\n.index .welcome .banner img[data-v-effe19ba] {\n height: 400px;\n border: 5px solid #fff;\n display: table;\n}\n.index .welcome .z-8[data-v-effe19ba] {\n text-align: center;\n}\n.index .welcome h3[data-v-effe19ba] {\n color: rgba(255, 255, 255, 0.8);\n font-size: 40px;\n font-weight: normal;\n text-align: center;\n margin: 30px auto;\n width: 380px;\n}\n.index .welcome .start[data-v-effe19ba] {\n display: inline-block;\n width: 160px;\n height: 50px;\n line-height: 50px;\n text-align: center;\n font-weight: normal;\n cursor: pointer;\n font-size: 20px;\n background: #fff;\n color: #0396f2;\n border-radius: 4px;\n border: 0;\n}\n.index .welcome .start[data-v-effe19ba]:hover, .index .welcome .start[data-v-effe19ba]:focus {\n background: #f6f6f6;\n color: #0396f2;\n}\n.index .welcome .second[data-v-effe19ba] {\n position: relative;\n height: 220px;\n text-align: center;\n}\n.index .welcome .second .bg[data-v-effe19ba] {\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n.index .welcome .second .z-row[data-v-effe19ba] {\n z-index: 2;\n position: relative;\n font-size: 22px;\n max-width: 1400px;\n margin: 0 auto;\n line-height: 220px;\n}\n.index .welcome .second i[data-v-effe19ba] {\n color: rgba(255, 255, 255, 0.85);\n margin-right: 6px;\n}\n.index .welcome .second a[data-v-effe19ba] {\n color: #fff;\n}\n.index .welcome .second a[data-v-effe19ba]:hover, .index .welcome .second a[data-v-effe19ba]:visited {\n color: #fff;\n}\n.index .block[data-v-effe19ba] {\n max-width: 1200px;\n margin: 30px auto;\n padding-top: 50px;\n border: 1px solid transparent;\n}\n.index .block .wrap-left[data-v-effe19ba], .index .block .wrap-right[data-v-effe19ba] {\n line-height: 36px;\n color: #666;\n font-size: 16px;\n}\n.index .block .wrap-left[data-v-effe19ba] {\n margin: 20px 30px 0 0;\n}\n.index .block .wrap-right[data-v-effe19ba] {\n margin: 20px 0 0 30px;\n}\n.index .block i[data-v-effe19ba] {\n color: rgba(248, 14, 21, 0.7);\n margin-right: 6px;\n}\n.index .block img[data-v-effe19ba] {\n border: 5px solid #fff;\n border-radius: 10px;\n width: 100%;\n}\n.index .p-footer[data-v-effe19ba] {\n margin: 20px 0;\n text-align: center;\n color: #333;\n}\n.index .p-footer a[data-v-effe19ba], .index .p-footer span[data-v-effe19ba] {\n color: #333;\n margin-left: 10px;\n}\n@media (max-width: 768px) {\n.index .header .z-row .header-col-sub h2[data-v-effe19ba] {\n padding: 12px 0 0 12px;\n}\n.index .header .z-row .header-col-sub h2 span[data-v-effe19ba] {\n display: none;\n}\n.index .welbg[data-v-effe19ba] {\n display: none;\n}\n.index .welcome[data-v-effe19ba] {\n height: auto;\n background: #2d8cf0;\n -webkit-transform: skewY(-2deg);\n transform: skewY(-2deg);\n -webkit-box-shadow: 0 2px 244px 0 rgba(56, 132, 255, 0.4);\n box-shadow: 0 2px 244px 0 rgba(56, 132, 255, 0.4);\n}\n.index .welcome .banner[data-v-effe19ba] {\n height: auto;\n -webkit-transform: skewY(2deg);\n transform: skewY(2deg);\n}\n.index .welcome .banner .z-row[data-v-effe19ba] {\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n padding-bottom: 52px;\n}\n.index .welcome .banner .z-row > div[data-v-effe19ba] {\n width: 90%;\n margin: 0 auto;\n}\n.index .welcome .banner h3[data-v-effe19ba] {\n font-size: 24px;\n width: auto;\n}\n.index .welcome .banner img[data-v-effe19ba] {\n max-width: 100%;\n height: auto;\n}\n.index .welcome .second[data-v-effe19ba] {\n height: 120px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-transform: skewY(2deg);\n transform: skewY(2deg);\n}\n.index .welcome .second .bg[data-v-effe19ba] {\n -webkit-transform: skewY(-4.5deg);\n transform: skewY(-4.5deg);\n background: #1F65D6;\n}\n.index .welcome .second .z-row[data-v-effe19ba] {\n height: auto;\n line-height: 36px;\n font-size: 16px;\n display: block;\n}\n.index .welcome .second .z-row .z-6[data-v-effe19ba] {\n width: 30%;\n margin: 0 5%;\n white-space: nowrap;\n}\n.index .block[data-v-effe19ba] {\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n margin: 24px auto;\n padding-top: 24px;\n max-width: 90%;\n border: 0;\n}\n.index .block > div[data-v-effe19ba] {\n width: 96%;\n margin: 0 auto;\n}\n.index .block .wrap-left[data-v-effe19ba],\n .index .block .wrap-right[data-v-effe19ba] {\n margin: 6px 0;\n line-height: 28px;\n}\n}\n", ""]);
  77. // exports
  78. /***/ }),
  79. /***/ 459:
  80. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  81. "use strict";
  82. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  83. //
  84. //
  85. //
  86. //
  87. //
  88. //
  89. //
  90. //
  91. //
  92. //
  93. //
  94. //
  95. //
  96. //
  97. //
  98. //
  99. //
  100. //
  101. //
  102. //
  103. //
  104. //
  105. //
  106. //
  107. //
  108. //
  109. //
  110. //
  111. //
  112. //
  113. //
  114. //
  115. //
  116. //
  117. //
  118. //
  119. //
  120. //
  121. //
  122. //
  123. //
  124. //
  125. //
  126. //
  127. //
  128. //
  129. //
  130. //
  131. //
  132. //
  133. //
  134. //
  135. //
  136. //
  137. //
  138. //
  139. //
  140. //
  141. //
  142. //
  143. //
  144. //
  145. //
  146. //
  147. //
  148. //
  149. //
  150. //
  151. //
  152. //
  153. //
  154. //
  155. //
  156. //
  157. //
  158. //
  159. //
  160. //
  161. //
  162. //
  163. //
  164. //
  165. //
  166. //
  167. //
  168. //
  169. //
  170. //
  171. //
  172. //
  173. //
  174. //
  175. //
  176. //
  177. //
  178. //
  179. //
  180. //
  181. //
  182. //
  183. //
  184. //
  185. //
  186. //
  187. //
  188. //
  189. //
  190. //
  191. //
  192. //
  193. //
  194. //
  195. //
  196. //
  197. //
  198. //
  199. //
  200. //
  201. //
  202. //
  203. //
  204. //
  205. //
  206. //
  207. //
  208. //
  209. //
  210. //
  211. //
  212. //
  213. //
  214. //
  215. //
  216. //
  217. //
  218. //
  219. //
  220. //
  221. //
  222. //
  223. //
  224. //
  225. //
  226. //
  227. //
  228. //
  229. //
  230. //
  231. //
  232. //
  233. //
  234. //
  235. //
  236. //
  237. //
  238. //
  239. //
  240. //
  241. //
  242. //
  243. //
  244. //
  245. //
  246. //
  247. //
  248. //
  249. //
  250. //
  251. //
  252. //
  253. //
  254. //
  255. //
  256. //
  257. //
  258. //
  259. //
  260. //
  261. //
  262. //
  263. //
  264. //
  265. //
  266. //
  267. //
  268. //
  269. //
  270. //
  271. //
  272. //
  273. //
  274. //
  275. //
  276. //
  277. //
  278. //
  279. //
  280. //
  281. //
  282. //
  283. //
  284. //
  285. //
  286. //
  287. //
  288. //
  289. //
  290. //
  291. //
  292. //
  293. //
  294. //
  295. //
  296. //
  297. //
  298. //
  299. //
  300. //
  301. //
  302. //
  303. //
  304. //
  305. //
  306. //
  307. //
  308. //
  309. //
  310. //
  311. //
  312. //
  313. //
  314. //
  315. //
  316. //
  317. //
  318. //
  319. //
  320. //
  321. //
  322. //
  323. //
  324. //
  325. //
  326. //
  327. //
  328. //
  329. //
  330. //
  331. //
  332. //
  333. //
  334. //
  335. //
  336. //
  337. //
  338. //
  339. //
  340. //
  341. //
  342. //
  343. //
  344. //
  345. //
  346. //
  347. //
  348. //
  349. //
  350. //
  351. //
  352. //
  353. //
  354. //
  355. //
  356. //
  357. //
  358. //
  359. //
  360. //
  361. //
  362. //
  363. //
  364. //
  365. //
  366. //
  367. //
  368. //
  369. //
  370. //
  371. //
  372. //
  373. //
  374. //
  375. //
  376. //
  377. //
  378. //
  379. //
  380. //
  381. //
  382. //
  383. //
  384. //
  385. //
  386. //
  387. //
  388. //
  389. //
  390. //
  391. //
  392. //
  393. //
  394. //
  395. //
  396. //
  397. //
  398. //
  399. //
  400. //
  401. //
  402. //
  403. //
  404. //
  405. //
  406. //
  407. //
  408. //
  409. //
  410. //
  411. //
  412. //
  413. //
  414. //
  415. //
  416. //
  417. //
  418. //
  419. //
  420. //
  421. //
  422. //
  423. //
  424. //
  425. //
  426. //
  427. //
  428. //
  429. //
  430. //
  431. //
  432. //
  433. //
  434. //
  435. //
  436. //
  437. //
  438. //
  439. //
  440. //
  441. //
  442. //
  443. //
  444. //
  445. //
  446. /* harmony default export */ __webpack_exports__["default"] = ({
  447. data: function data() {
  448. return {
  449. loadIng: 0,
  450. loginShow: false,
  451. loginType: 'login',
  452. codeNeed: false,
  453. codeUrl: $A.apiUrl('users/login/codeimg'),
  454. formLogin: {
  455. username: '',
  456. userpass: '',
  457. userpass2: '',
  458. code: ''
  459. },
  460. ruleLogin: {},
  461. systemConfig: $A.jsonParse($A.storage("systemSetting")),
  462. fromUrl: '',
  463. formCustom: {
  464. passwd: '',
  465. passwdCheck: '',
  466. age: ''
  467. }
  468. };
  469. },
  470. mounted: function mounted() {
  471. //
  472. },
  473. activated: function activated() {
  474. this.getSetting();
  475. this.fromUrl = decodeURIComponent($A.getObject(this.$route.query, 'from'));
  476. if (this.fromUrl) {
  477. this.loginChack();
  478. }
  479. },
  480. methods: {
  481. initLanguage: function initLanguage() {
  482. this.ruleLogin = {
  483. username: [{ required: true, message: this.$L('请填写用户名!'), trigger: 'change' }, { type: 'string', min: 2, message: this.$L('用户名长度至少2位!'), trigger: 'change' }],
  484. userpass: [{ required: true, message: this.$L('请填写登录密码!'), trigger: 'change' }, { type: 'string', min: 6, message: this.$L('密码错长度至少6位!'), trigger: 'change' }]
  485. };
  486. },
  487. getSetting: function getSetting() {
  488. var _this = this;
  489. $A.apiAjax({
  490. url: 'system/setting',
  491. error: function error() {
  492. $A.storage("systemSetting", {});
  493. },
  494. success: function success(res) {
  495. if (res.ret === 1) {
  496. _this.systemConfig = res.data;
  497. $A.storage("systemSetting", _this.systemConfig);
  498. } else {
  499. $A.storage("systemSetting", {});
  500. }
  501. if (_this.systemConfig.loginWin == 'direct') {
  502. _this.loginChack();
  503. }
  504. }
  505. });
  506. },
  507. loginChack: function loginChack() {
  508. if ($A.getToken() !== false) {
  509. this.goForward({ path: '/todo' }, true);
  510. } else {
  511. this.loginShow = true;
  512. }
  513. },
  514. refreshCode: function refreshCode() {
  515. this.codeUrl = $A.apiUrl('users/login/codeimg?_=' + Math.random());
  516. },
  517. enterpriseOpen: function enterpriseOpen() {
  518. this.goForward({ path: '/plans' });
  519. },
  520. onBlur: function onBlur() {
  521. var _this2 = this;
  522. if (this.loginType != 'login') {
  523. this.codeNeed = false;
  524. return;
  525. }
  526. this.loadIng++;
  527. $A.ajax({
  528. url: $A.apiUrl('users/login/needcode'),
  529. data: {
  530. username: this.formLogin.username
  531. },
  532. complete: function complete() {
  533. _this2.loadIng--;
  534. },
  535. success: function success(res) {
  536. _this2.codeNeed = res.ret === 1;
  537. }
  538. });
  539. },
  540. onLogin: function onLogin() {
  541. var _this3 = this;
  542. this.$refs.login.validate(function (valid) {
  543. if (valid) {
  544. _this3.loadIng++;
  545. $A.ajax({
  546. url: $A.apiUrl('users/login?type=' + _this3.loginType),
  547. data: _this3.formLogin,
  548. complete: function complete() {
  549. _this3.loadIng--;
  550. },
  551. success: function success(res) {
  552. if (res.ret === 1) {
  553. $A.storage("userInfo", res.data);
  554. $A.setToken(res.data.token);
  555. $A.triggerUserInfoListener(res.data);
  556. //
  557. _this3.loadIng--;
  558. _this3.loginShow = false;
  559. _this3.$refs.login.resetFields();
  560. _this3.$Message.success(_this3.$L('登录成功'));
  561. if (_this3.fromUrl) {
  562. window.location.replace(_this3.fromUrl);
  563. } else {
  564. _this3.goForward({ path: '/todo' }, true);
  565. }
  566. } else {
  567. _this3.$Modal.error({
  568. title: _this3.$L("温馨提示"),
  569. content: res.msg
  570. });
  571. if (res.data.code === 'need') {
  572. _this3.codeNeed = true;
  573. _this3.refreshCode();
  574. }
  575. }
  576. }
  577. });
  578. }
  579. });
  580. }
  581. }
  582. });
  583. /***/ }),
  584. /***/ 460:
  585. /***/ (function(module, exports, __webpack_require__) {
  586. var render = function() {
  587. var _vm = this
  588. var _h = _vm.$createElement
  589. var _c = _vm._self._c || _h
  590. return _c("div", { staticClass: "w-box index" }, [
  591. _c(
  592. "div",
  593. { staticClass: "login_box" },
  594. [
  595. _c("h2", [_vm._v("\n 晋江人资团队协作平台\n ")]),
  596. _vm._v(" "),
  597. _c(
  598. "Form",
  599. {
  600. ref: "login",
  601. attrs: { model: _vm.formLogin, rules: _vm.ruleLogin },
  602. nativeOn: {
  603. submit: function($event) {
  604. $event.preventDefault()
  605. }
  606. }
  607. },
  608. [
  609. _c(
  610. "FormItem",
  611. { attrs: { prop: "username" } },
  612. [
  613. _c(
  614. "Input",
  615. {
  616. attrs: { type: "text", placeholder: _vm.$L("用户名") },
  617. on: { "on-enter": _vm.onLogin, "on-blur": _vm.onBlur },
  618. model: {
  619. value: _vm.formLogin.username,
  620. callback: function($$v) {
  621. _vm.$set(_vm.formLogin, "username", $$v)
  622. },
  623. expression: "formLogin.username"
  624. }
  625. },
  626. [
  627. _c("Icon", {
  628. attrs: { slot: "prepend", type: "ios-person-outline" },
  629. slot: "prepend"
  630. })
  631. ],
  632. 1
  633. )
  634. ],
  635. 1
  636. ),
  637. _vm._v(" "),
  638. _c(
  639. "FormItem",
  640. { attrs: { prop: "userpass" } },
  641. [
  642. _c(
  643. "Input",
  644. {
  645. attrs: { type: "password", placeholder: _vm.$L("密码") },
  646. on: { "on-enter": _vm.onLogin },
  647. model: {
  648. value: _vm.formLogin.userpass,
  649. callback: function($$v) {
  650. _vm.$set(_vm.formLogin, "userpass", $$v)
  651. },
  652. expression: "formLogin.userpass"
  653. }
  654. },
  655. [
  656. _c("Icon", {
  657. attrs: { slot: "prepend", type: "ios-lock-outline" },
  658. slot: "prepend"
  659. })
  660. ],
  661. 1
  662. )
  663. ],
  664. 1
  665. ),
  666. _vm._v(" "),
  667. _vm.loginType == "login" && _vm.codeNeed
  668. ? _c(
  669. "FormItem",
  670. { attrs: { prop: "code" } },
  671. [
  672. _c(
  673. "Input",
  674. {
  675. attrs: { type: "text", placeholder: _vm.$L("验证码") },
  676. on: { "on-enter": _vm.onLogin },
  677. model: {
  678. value: _vm.formLogin.code,
  679. callback: function($$v) {
  680. _vm.$set(_vm.formLogin, "code", $$v)
  681. },
  682. expression: "formLogin.code"
  683. }
  684. },
  685. [
  686. _c("Icon", {
  687. attrs: {
  688. slot: "prepend",
  689. type: "ios-checkmark-circle-outline"
  690. },
  691. slot: "prepend"
  692. }),
  693. _vm._v(" "),
  694. _c(
  695. "div",
  696. {
  697. staticClass: "login-code",
  698. attrs: { slot: "append" },
  699. on: { click: _vm.refreshCode },
  700. slot: "append"
  701. },
  702. [_c("img", { attrs: { src: _vm.codeUrl } })]
  703. )
  704. ],
  705. 1
  706. )
  707. ],
  708. 1
  709. )
  710. : _vm._e(),
  711. _vm._v(" "),
  712. _c(
  713. "Form-item",
  714. { staticStyle: { "text-align": "center" } },
  715. [
  716. _c(
  717. "Button",
  718. {
  719. attrs: { type: "primary", loading: _vm.loadIng > 0 },
  720. on: { click: _vm.onLogin }
  721. },
  722. [_vm._v("登录")]
  723. )
  724. ],
  725. 1
  726. )
  727. ],
  728. 1
  729. )
  730. ],
  731. 1
  732. )
  733. ])
  734. }
  735. var staticRenderFns = []
  736. render._withStripped = true
  737. module.exports = { render: render, staticRenderFns: staticRenderFns }
  738. if (false) {
  739. module.hot.accept()
  740. if (module.hot.data) {
  741. require("vue-hot-reload-api") .rerender("data-v-effe19ba", module.exports)
  742. }
  743. }
  744. /***/ })
  745. });