overseas 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/README.md +12 -0
  2. package/lib/base/bottom-popup.js +550 -0
  3. package/lib/base/button.js +400 -0
  4. package/lib/base/dialog.js +979 -0
  5. package/lib/base/icon.js +273 -0
  6. package/lib/base/image.js +309 -0
  7. package/lib/base/material-list.js +357 -0
  8. package/lib/base/popup.js +364 -0
  9. package/lib/business/basic-image.js +325 -0
  10. package/lib/business/bottom-fixed-button.js +350 -0
  11. package/lib/business/class-choose.js +1717 -0
  12. package/lib/business/grade-panel.js +683 -0
  13. package/lib/business/material-panel.js +778 -0
  14. package/lib/business/notified-panel.js +2141 -0
  15. package/lib/business/page-render.js +364 -0
  16. package/lib/business/registration-panel.js +1071 -0
  17. package/lib/business/selector-panel.js +667 -0
  18. package/lib/business/student-info.js +1172 -0
  19. package/lib/business/switch-student.js +1407 -0
  20. package/lib/business/tips-popup.js +626 -0
  21. package/lib/business/user-login.js +816 -0
  22. package/lib/index.js +1 -0
  23. package/lib/network/api.js +64 -0
  24. package/lib/network/apiUrl.js +68 -0
  25. package/lib/overseas-ui.common.js +8771 -0
  26. package/lib/static/logo.b6015b3.png +0 -0
  27. package/lib/static/logo.b6015b30.png +0 -0
  28. package/lib/theme-style/bottom-fixed-button.css +1 -0
  29. package/lib/theme-style/bottom-popup.css +1 -0
  30. package/lib/theme-style/button.css +1 -0
  31. package/lib/theme-style/class-choose.css +1 -0
  32. package/lib/theme-style/common.css +1 -0
  33. package/lib/theme-style/dialog.css +1 -0
  34. package/lib/theme-style/grade-panel.css +1 -0
  35. package/lib/theme-style/icon.css +1 -0
  36. package/lib/theme-style/image.css +1 -0
  37. package/lib/theme-style/img/body_bg.png +0 -0
  38. package/lib/theme-style/img/pdf.png +0 -0
  39. package/lib/theme-style/img/title_bg.png +0 -0
  40. package/lib/theme-style/index.css +1 -0
  41. package/lib/theme-style/material-list.css +1 -0
  42. package/lib/theme-style/material-panel.css +1 -0
  43. package/lib/theme-style/notified-panel.css +1 -0
  44. package/lib/theme-style/page-render.css +1 -0
  45. package/lib/theme-style/registration-panel.css +1 -0
  46. package/lib/theme-style/selector-panel.css +1 -0
  47. package/lib/theme-style/student-info.css +1 -0
  48. package/lib/theme-style/switch-student.css +1 -0
  49. package/lib/theme-style/tips-popup.css +1 -0
  50. package/lib/theme-style/user-login.css +1 -0
  51. package/lib/utils/dom.js +60 -0
  52. package/lib/utils/filters.js +87 -0
  53. package/lib/utils/merge.js +19 -0
  54. package/lib/utils/phone.js +156 -0
  55. package/lib/utils/popup/index.js +132 -0
  56. package/lib/utils/popup/popup-manager.js +198 -0
  57. package/lib/utils/storage.js +27 -0
  58. package/lib/utils/utils.js +65 -0
  59. package/package.json +80 -0
  60. package/packages/.DS_Store +0 -0
  61. package/packages/base/bottom-popup/index.js +10 -0
  62. package/packages/base/bottom-popup/src/bottom-popup.vue +151 -0
  63. package/packages/base/button/index.js +10 -0
  64. package/packages/base/button/src/button.vue +108 -0
  65. package/packages/base/dialog/index.js +10 -0
  66. package/packages/base/dialog/src/dialog.vue +173 -0
  67. package/packages/base/icon/index.js +10 -0
  68. package/packages/base/icon/src/icon.vue +15 -0
  69. package/packages/base/image/index.js +10 -0
  70. package/packages/base/image/src/image.vue +40 -0
  71. package/packages/base/material-list/index.js +10 -0
  72. package/packages/base/material-list/src/material-list.vue +48 -0
  73. package/packages/base/popup/index.js +10 -0
  74. package/packages/base/popup/src/popup.vue +44 -0
  75. package/packages/business/basic-image/index.js +10 -0
  76. package/packages/business/basic-image/src/basicImage.vue +51 -0
  77. package/packages/business/bottom-fixed-button/index.js +10 -0
  78. package/packages/business/bottom-fixed-button/src/bottomFixedButton.vue +66 -0
  79. package/packages/business/class-choose/index.js +10 -0
  80. package/packages/business/class-choose/src/courseCard.vue +142 -0
  81. package/packages/business/class-choose/src/img/icon_close_bottomcard.svg +14 -0
  82. package/packages/business/class-choose/src/img/icon_date.svg +21 -0
  83. package/packages/business/class-choose/src/img/icon_full.svg +27 -0
  84. package/packages/business/class-choose/src/img/icon_full_EL.svg +49 -0
  85. package/packages/business/class-choose/src/img/icon_selected.svg +18 -0
  86. package/packages/business/class-choose/src/img/icon_star_selected.svg +13 -0
  87. package/packages/business/class-choose/src/img/icon_star_unselect.svg +13 -0
  88. package/packages/business/class-choose/src/index.vue +316 -0
  89. package/packages/business/grade-panel/index.js +10 -0
  90. package/packages/business/grade-panel/src/gradePanel.vue +150 -0
  91. package/packages/business/material-panel/index.js +10 -0
  92. package/packages/business/material-panel/src/index.vue +136 -0
  93. package/packages/business/notified-panel/index.js +10 -0
  94. package/packages/business/notified-panel/src/areaCodeList.js +181 -0
  95. package/packages/business/notified-panel/src/index.vue +491 -0
  96. package/packages/business/page-render/index.js +10 -0
  97. package/packages/business/page-render/src/pageRender.vue +73 -0
  98. package/packages/business/registration-panel/index.js +10 -0
  99. package/packages/business/registration-panel/src/areaCodeList.js +181 -0
  100. package/packages/business/registration-panel/src/img/icon_off.png +0 -0
  101. package/packages/business/registration-panel/src/img/icon_on.png +0 -0
  102. package/packages/business/registration-panel/src/index.vue +329 -0
  103. package/packages/business/registration-panel/src/languageList.js +41 -0
  104. package/packages/business/selector-panel/index.js +10 -0
  105. package/packages/business/selector-panel/src/selectorPanel.vue +134 -0
  106. package/packages/business/student-info/index.js +10 -0
  107. package/packages/business/student-info/src/api/index.js +10 -0
  108. package/packages/business/student-info/src/config.js +11 -0
  109. package/packages/business/student-info/src/studentInfo.vue +145 -0
  110. package/packages/business/switch-student/index.js +10 -0
  111. package/packages/business/switch-student/src/api/index.js +28 -0
  112. package/packages/business/switch-student/src/switchStudent.vue +245 -0
  113. package/packages/business/tips-popup/index.js +10 -0
  114. package/packages/business/tips-popup/src/tipsPopup.vue +76 -0
  115. package/packages/business/user-login/index.js +10 -0
  116. package/packages/business/user-login/src/api/index.js +23 -0
  117. package/packages/business/user-login/src/img/logo.png +0 -0
  118. package/packages/business/user-login/src/index.vue +149 -0
  119. package/packages/theme-style/lib/bottom-fixed-button.css +1 -0
  120. package/packages/theme-style/lib/bottom-popup.css +1 -0
  121. package/packages/theme-style/lib/button.css +1 -0
  122. package/packages/theme-style/lib/class-choose.css +1 -0
  123. package/packages/theme-style/lib/common.css +1 -0
  124. package/packages/theme-style/lib/dialog.css +1 -0
  125. package/packages/theme-style/lib/grade-panel.css +1 -0
  126. package/packages/theme-style/lib/icon.css +1 -0
  127. package/packages/theme-style/lib/image.css +1 -0
  128. package/packages/theme-style/lib/img/body_bg.png +0 -0
  129. package/packages/theme-style/lib/img/pdf.png +0 -0
  130. package/packages/theme-style/lib/img/title_bg.png +0 -0
  131. package/packages/theme-style/lib/index.css +1 -0
  132. package/packages/theme-style/lib/material-list.css +1 -0
  133. package/packages/theme-style/lib/material-panel.css +1 -0
  134. package/packages/theme-style/lib/notified-panel.css +1 -0
  135. package/packages/theme-style/lib/page-render.css +1 -0
  136. package/packages/theme-style/lib/registration-panel.css +1 -0
  137. package/packages/theme-style/lib/selector-panel.css +1 -0
  138. package/packages/theme-style/lib/student-info.css +1 -0
  139. package/packages/theme-style/lib/switch-student.css +1 -0
  140. package/packages/theme-style/lib/tips-popup.css +1 -0
  141. package/packages/theme-style/lib/user-login.css +1 -0
  142. package/packages/theme-style/package.json +38 -0
  143. package/packages/theme-style/src/bottom-fixed-button.scss +31 -0
  144. package/packages/theme-style/src/bottom-popup.scss +87 -0
  145. package/packages/theme-style/src/button.scss +110 -0
  146. package/packages/theme-style/src/class-choose.scss +251 -0
  147. package/packages/theme-style/src/common/popup.scss +39 -0
  148. package/packages/theme-style/src/common/var.scss +6 -0
  149. package/packages/theme-style/src/common.scss +97 -0
  150. package/packages/theme-style/src/dialog.scss +130 -0
  151. package/packages/theme-style/src/grade-panel.scss +76 -0
  152. package/packages/theme-style/src/icon.scss +369 -0
  153. package/packages/theme-style/src/image.scss +8 -0
  154. package/packages/theme-style/src/img/body_bg.png +0 -0
  155. package/packages/theme-style/src/img/pdf.png +0 -0
  156. package/packages/theme-style/src/img/title_bg.png +0 -0
  157. package/packages/theme-style/src/index.scss +20 -0
  158. package/packages/theme-style/src/material-list.scss +118 -0
  159. package/packages/theme-style/src/material-panel.scss +2 -0
  160. package/packages/theme-style/src/notified-panel.scss +207 -0
  161. package/packages/theme-style/src/page-render.scss +3 -0
  162. package/packages/theme-style/src/registration-panel.scss +158 -0
  163. package/packages/theme-style/src/selector-panel.scss +86 -0
  164. package/packages/theme-style/src/student-info.scss +114 -0
  165. package/packages/theme-style/src/switch-student.scss +176 -0
  166. package/packages/theme-style/src/tips-popup.scss +60 -0
  167. package/packages/theme-style/src/user-login.scss +93 -0
  168. package/src/index.js +74 -0
  169. package/src/network/api.js +53 -0
  170. package/src/network/apiUrl.js +65 -0
  171. package/src/utils/dom.js +54 -0
  172. package/src/utils/filters.js +82 -0
  173. package/src/utils/merge.js +16 -0
  174. package/src/utils/phone.js +153 -0
  175. package/src/utils/popup/index.js +115 -0
  176. package/src/utils/popup/popup-manager.js +178 -0
  177. package/src/utils/storage.js +22 -0
  178. package/src/utils/utils.js +49 -0
@@ -0,0 +1,1407 @@
1
+ module.exports =
2
+ /******/ (function(modules) { // webpackBootstrap
3
+ /******/ // The module cache
4
+ /******/ var installedModules = {};
5
+ /******/
6
+ /******/ // The require function
7
+ /******/ function __webpack_require__(moduleId) {
8
+ /******/
9
+ /******/ // Check if module is in cache
10
+ /******/ if(installedModules[moduleId]) {
11
+ /******/ return installedModules[moduleId].exports;
12
+ /******/ }
13
+ /******/ // Create a new module (and put it into the cache)
14
+ /******/ var module = installedModules[moduleId] = {
15
+ /******/ i: moduleId,
16
+ /******/ l: false,
17
+ /******/ exports: {}
18
+ /******/ };
19
+ /******/
20
+ /******/ // Execute the module function
21
+ /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22
+ /******/
23
+ /******/ // Flag the module as loaded
24
+ /******/ module.l = true;
25
+ /******/
26
+ /******/ // Return the exports of the module
27
+ /******/ return module.exports;
28
+ /******/ }
29
+ /******/
30
+ /******/
31
+ /******/ // expose the modules object (__webpack_modules__)
32
+ /******/ __webpack_require__.m = modules;
33
+ /******/
34
+ /******/ // expose the module cache
35
+ /******/ __webpack_require__.c = installedModules;
36
+ /******/
37
+ /******/ // define getter function for harmony exports
38
+ /******/ __webpack_require__.d = function(exports, name, getter) {
39
+ /******/ if(!__webpack_require__.o(exports, name)) {
40
+ /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
41
+ /******/ }
42
+ /******/ };
43
+ /******/
44
+ /******/ // define __esModule on exports
45
+ /******/ __webpack_require__.r = function(exports) {
46
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
47
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
48
+ /******/ }
49
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
50
+ /******/ };
51
+ /******/
52
+ /******/ // create a fake namespace object
53
+ /******/ // mode & 1: value is a module id, require it
54
+ /******/ // mode & 2: merge all properties of value into the ns
55
+ /******/ // mode & 4: return value when already ns object
56
+ /******/ // mode & 8|1: behave like require
57
+ /******/ __webpack_require__.t = function(value, mode) {
58
+ /******/ if(mode & 1) value = __webpack_require__(value);
59
+ /******/ if(mode & 8) return value;
60
+ /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
61
+ /******/ var ns = Object.create(null);
62
+ /******/ __webpack_require__.r(ns);
63
+ /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
64
+ /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
65
+ /******/ return ns;
66
+ /******/ };
67
+ /******/
68
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
69
+ /******/ __webpack_require__.n = function(module) {
70
+ /******/ var getter = module && module.__esModule ?
71
+ /******/ function getDefault() { return module['default']; } :
72
+ /******/ function getModuleExports() { return module; };
73
+ /******/ __webpack_require__.d(getter, 'a', getter);
74
+ /******/ return getter;
75
+ /******/ };
76
+ /******/
77
+ /******/ // Object.prototype.hasOwnProperty.call
78
+ /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
79
+ /******/
80
+ /******/ // __webpack_public_path__
81
+ /******/ __webpack_require__.p = "/dist/";
82
+ /******/
83
+ /******/
84
+ /******/ // Load entry module and return exports
85
+ /******/ return __webpack_require__(__webpack_require__.s = 30);
86
+ /******/ })
87
+ /************************************************************************/
88
+ /******/ ({
89
+
90
+ /***/ 0:
91
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
+
93
+ "use strict";
94
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
95
+ /* globals __VUE_SSR_CONTEXT__ */
96
+
97
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
98
+ // This module is a runtime utility for cleaner component module output and will
99
+ // be included in the final webpack user bundle.
100
+
101
+ function normalizeComponent (
102
+ scriptExports,
103
+ render,
104
+ staticRenderFns,
105
+ functionalTemplate,
106
+ injectStyles,
107
+ scopeId,
108
+ moduleIdentifier, /* server only */
109
+ shadowMode /* vue-cli only */
110
+ ) {
111
+ // Vue.extend constructor export interop
112
+ var options = typeof scriptExports === 'function'
113
+ ? scriptExports.options
114
+ : scriptExports
115
+
116
+ // render functions
117
+ if (render) {
118
+ options.render = render
119
+ options.staticRenderFns = staticRenderFns
120
+ options._compiled = true
121
+ }
122
+
123
+ // functional template
124
+ if (functionalTemplate) {
125
+ options.functional = true
126
+ }
127
+
128
+ // scopedId
129
+ if (scopeId) {
130
+ options._scopeId = 'data-v-' + scopeId
131
+ }
132
+
133
+ var hook
134
+ if (moduleIdentifier) { // server build
135
+ hook = function (context) {
136
+ // 2.3 injection
137
+ context =
138
+ context || // cached call
139
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
140
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
141
+ // 2.2 with runInNewContext: true
142
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
143
+ context = __VUE_SSR_CONTEXT__
144
+ }
145
+ // inject component styles
146
+ if (injectStyles) {
147
+ injectStyles.call(this, context)
148
+ }
149
+ // register component module identifier for async chunk inferrence
150
+ if (context && context._registeredComponents) {
151
+ context._registeredComponents.add(moduleIdentifier)
152
+ }
153
+ }
154
+ // used by ssr in case component is cached and beforeCreate
155
+ // never gets called
156
+ options._ssrRegister = hook
157
+ } else if (injectStyles) {
158
+ hook = shadowMode
159
+ ? function () {
160
+ injectStyles.call(
161
+ this,
162
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
163
+ )
164
+ }
165
+ : injectStyles
166
+ }
167
+
168
+ if (hook) {
169
+ if (options.functional) {
170
+ // for template-only hot-reload because in that case the render fn doesn't
171
+ // go through the normalizer
172
+ options._injectStyles = hook
173
+ // register for functional component in vue file
174
+ var originalRender = options.render
175
+ options.render = function renderWithStyleInjection (h, context) {
176
+ hook.call(context)
177
+ return originalRender(h, context)
178
+ }
179
+ } else {
180
+ // inject component registration as beforeCreate hook
181
+ var existing = options.beforeCreate
182
+ options.beforeCreate = existing
183
+ ? [].concat(existing, hook)
184
+ : [hook]
185
+ }
186
+ }
187
+
188
+ return {
189
+ exports: scriptExports,
190
+ options: options
191
+ }
192
+ }
193
+
194
+
195
+ /***/ }),
196
+
197
+ /***/ 1:
198
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
199
+
200
+ "use strict";
201
+ __webpack_require__.r(__webpack_exports__);
202
+
203
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/base/button/src/button.vue?vue&type=template&id=4e1fb840&
204
+ var render = function () {
205
+ var _vm = this
206
+ var _h = _vm.$createElement
207
+ var _c = _vm._self._c || _h
208
+ return _c(
209
+ "button",
210
+ {
211
+ staticClass: "ts-button",
212
+ class: [
213
+ _vm.styleType ? "ts-button--" + _vm.styleType : "",
214
+ _vm.buttonSize ? "ts-button--" + _vm.buttonSize : "",
215
+ {
216
+ "is-disabled": _vm.buttonDisabled,
217
+ "is-loading": _vm.loading,
218
+ "is-outline": _vm.outline,
219
+ "is-round": _vm.round,
220
+ },
221
+ ],
222
+ style: {
223
+ width: _vm.width,
224
+ height: _vm.height,
225
+ color: _vm.textColor,
226
+ background: _vm.bgColor,
227
+ "border-color": _vm.borderColor,
228
+ },
229
+ attrs: {
230
+ disabled: _vm.buttonDisabled,
231
+ autofocus: _vm.autofocus,
232
+ type: _vm.type,
233
+ },
234
+ on: { click: _vm.handleClick },
235
+ },
236
+ [
237
+ _vm.loading
238
+ ? _c("span", { staticClass: "iconfont icon-loading" })
239
+ : _vm._e(),
240
+ _vm._t("default", function () {
241
+ return [_vm._v("\n TSButton\n ")]
242
+ }),
243
+ ],
244
+ 2
245
+ )
246
+ }
247
+ var staticRenderFns = []
248
+ render._withStripped = true
249
+
250
+
251
+ // CONCATENATED MODULE: ./packages/base/button/src/button.vue?vue&type=template&id=4e1fb840&
252
+
253
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/base/button/src/button.vue?vue&type=script&lang=js&
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
+ /* harmony default export */ var buttonvue_type_script_lang_js_ = ({
281
+ name: 'TsButton',
282
+ props: {
283
+ // 尺寸(small | normal | large)
284
+ size: {
285
+ type: String,
286
+ default: 'normal'
287
+ },
288
+ // 样式类型(default | primary | assist)
289
+ styleType: {
290
+ type: String,
291
+ default: 'default'
292
+ },
293
+ // 圆角为半圆
294
+ round: {
295
+ type: Boolean,
296
+ default: true
297
+ },
298
+ // 文本颜色
299
+ textColor: {
300
+ type: String,
301
+ default: ''
302
+ },
303
+ // 边框颜色
304
+ borderColor: {
305
+ type: String,
306
+ default: ''
307
+ },
308
+ // 背景色
309
+ bgColor: {
310
+ type: String,
311
+ default: ''
312
+ },
313
+ // 按钮宽度
314
+ width: {
315
+ type: String,
316
+ default: ''
317
+ },
318
+ // 按钮高度
319
+ height: {
320
+ type: String,
321
+ default: ''
322
+ },
323
+ // 原生 type 属性(button | submit | reset)
324
+ type: {
325
+ type: String,
326
+ default: 'button'
327
+ },
328
+ // 是否是线框按钮
329
+ outline: {
330
+ default: false,
331
+ type: Boolean
332
+ },
333
+ // 是否处于loading状态
334
+ loading: {
335
+ default: false,
336
+ type: Boolean
337
+ },
338
+ disabled: {
339
+ default: false,
340
+ type: Boolean
341
+ },
342
+ autofocus: {
343
+ default: false,
344
+ type: Boolean
345
+ }
346
+ },
347
+ computed: {
348
+ buttonSize: function buttonSize() {
349
+ return this.size;
350
+ },
351
+ buttonDisabled: function buttonDisabled() {
352
+ return this.disabled || this.loading;
353
+ }
354
+ },
355
+ methods: {
356
+ handleClick: function handleClick(e) {
357
+ this.$emit('click', e);
358
+ }
359
+ }
360
+ });
361
+ // CONCATENATED MODULE: ./packages/base/button/src/button.vue?vue&type=script&lang=js&
362
+ /* harmony default export */ var src_buttonvue_type_script_lang_js_ = (buttonvue_type_script_lang_js_);
363
+ // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
364
+ var componentNormalizer = __webpack_require__(0);
365
+
366
+ // CONCATENATED MODULE: ./packages/base/button/src/button.vue
367
+
368
+
369
+
370
+
371
+
372
+ /* normalize component */
373
+
374
+ var component = Object(componentNormalizer["a" /* default */])(
375
+ src_buttonvue_type_script_lang_js_,
376
+ render,
377
+ staticRenderFns,
378
+ false,
379
+ null,
380
+ null,
381
+ null
382
+
383
+ )
384
+
385
+ /* hot reload */
386
+ if (false) { var api; }
387
+ component.options.__file = "packages/base/button/src/button.vue"
388
+ /* harmony default export */ var src_button = (component.exports);
389
+ // CONCATENATED MODULE: ./packages/base/button/index.js
390
+
391
+
392
+ // install 是默认的方法,供按需引入
393
+ // 当外界在 use 这个组件的时候,就会调用本身的install方法,同时传一个Vue这个类的参数
394
+
395
+ src_button.install = function (Vue) {
396
+ Vue.component(src_button.name, src_button);
397
+ };
398
+
399
+ /* harmony default export */ var base_button = __webpack_exports__["default"] = (src_button);
400
+
401
+ /***/ }),
402
+
403
+ /***/ 3:
404
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
405
+
406
+ "use strict";
407
+ __webpack_require__.r(__webpack_exports__);
408
+
409
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/base/bottom-popup/src/bottom-popup.vue?vue&type=template&id=25d79840&
410
+ var render = function () {
411
+ var _vm = this
412
+ var _h = _vm.$createElement
413
+ var _c = _vm._self._c || _h
414
+ return _c(
415
+ "van-popup",
416
+ {
417
+ attrs: {
418
+ round: "",
419
+ position: "bottom",
420
+ "close-on-click-overlay": _vm.closeOnClickOverlay,
421
+ "close-on-popstate": _vm.closeOnPopstate,
422
+ },
423
+ model: {
424
+ value: _vm.isShow,
425
+ callback: function ($$v) {
426
+ _vm.isShow = $$v
427
+ },
428
+ expression: "isShow",
429
+ },
430
+ },
431
+ [
432
+ _c(
433
+ "div",
434
+ { staticClass: "bottom-popup" },
435
+ [
436
+ _vm._t("custom-header", function () {
437
+ return [
438
+ _c(
439
+ "div",
440
+ {
441
+ staticClass: "header-wrapper",
442
+ class: { "scrolling-style": _vm.isScrolling },
443
+ },
444
+ [
445
+ _vm._t("header", function () {
446
+ return [
447
+ _c("div", { staticClass: "normal-header-container" }, [
448
+ _vm.showLeftIcon
449
+ ? _c(
450
+ "div",
451
+ { staticClass: "header-left-container" },
452
+ [
453
+ _vm._t("left-icon", function () {
454
+ return [
455
+ _c(
456
+ "div",
457
+ {
458
+ staticClass:
459
+ "header-icon-btn-container",
460
+ on: { click: _vm.leftIconHandler },
461
+ },
462
+ [
463
+ _c("i", {
464
+ staticClass:
465
+ "iconfont icon-close-new-e658",
466
+ }),
467
+ ]
468
+ ),
469
+ ]
470
+ }),
471
+ ],
472
+ 2
473
+ )
474
+ : _vm._e(),
475
+ _c(
476
+ "div",
477
+ { staticClass: "title-container" },
478
+ [
479
+ _vm._t("header-title", function () {
480
+ return [
481
+ _c("h1", { staticClass: "title" }, [
482
+ _vm._v(
483
+ "\n " +
484
+ _vm._s(_vm.popupTitle) +
485
+ "\n "
486
+ ),
487
+ ]),
488
+ ]
489
+ }),
490
+ ],
491
+ 2
492
+ ),
493
+ _vm.showRightIcon
494
+ ? _c(
495
+ "div",
496
+ { staticClass: "header-right-container" },
497
+ [
498
+ _vm._t("right-icon", function () {
499
+ return [
500
+ _c(
501
+ "div",
502
+ {
503
+ staticClass:
504
+ "header-icon-btn-container success-icon-container",
505
+ on: { click: _vm.rightIconHandler },
506
+ },
507
+ [
508
+ _c("i", {
509
+ staticClass:
510
+ "iconfont icon-close-new-e658",
511
+ }),
512
+ ]
513
+ ),
514
+ ]
515
+ }),
516
+ ],
517
+ 2
518
+ )
519
+ : _vm._e(),
520
+ ]),
521
+ _vm._t("header-bottom"),
522
+ ]
523
+ }),
524
+ ],
525
+ 2
526
+ ),
527
+ ]
528
+ }),
529
+ _vm._t("custom-body", function () {
530
+ return [
531
+ _c(
532
+ "div",
533
+ {
534
+ staticClass: "body-wrapper",
535
+ attrs: { id: "normal-bottom-popup-body-wrapper" },
536
+ on: { scroll: _vm.watchScroll },
537
+ },
538
+ [_vm._t("body")],
539
+ 2
540
+ ),
541
+ ]
542
+ }),
543
+ ],
544
+ 2
545
+ ),
546
+ ]
547
+ )
548
+ }
549
+ var staticRenderFns = []
550
+ render._withStripped = true
551
+
552
+
553
+ // CONCATENATED MODULE: ./packages/base/bottom-popup/src/bottom-popup.vue?vue&type=template&id=25d79840&
554
+
555
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/base/bottom-popup/src/bottom-popup.vue?vue&type=script&lang=js&
556
+ //
557
+ //
558
+ //
559
+ //
560
+ //
561
+ //
562
+ //
563
+ //
564
+ //
565
+ //
566
+ //
567
+ //
568
+ //
569
+ //
570
+ //
571
+ //
572
+ //
573
+ //
574
+ //
575
+ //
576
+ //
577
+ //
578
+ //
579
+ //
580
+ //
581
+ //
582
+ //
583
+ //
584
+ //
585
+ //
586
+ //
587
+ //
588
+ //
589
+ //
590
+ //
591
+ //
592
+ //
593
+ //
594
+ //
595
+ //
596
+ //
597
+ //
598
+ //
599
+ //
600
+ //
601
+ //
602
+ //
603
+ //
604
+ //
605
+ //
606
+ //
607
+ //
608
+ //
609
+ //
610
+
611
+ // 节流函数
612
+ var throttle = __webpack_require__(6);
613
+
614
+ /* harmony default export */ var bottom_popupvue_type_script_lang_js_ = ({
615
+ props: {
616
+ // 弹出层是否显示
617
+ show: {
618
+ default: false,
619
+ type: Boolean
620
+ },
621
+ // 弹出层标题
622
+ popupTitle: {
623
+ default: '',
624
+ type: String
625
+ },
626
+ // 是否显示遮罩层
627
+ overlay: {
628
+ default: true,
629
+ type: Boolean
630
+ },
631
+ // 是否在点击遮罩层后关闭
632
+ closeOnClickOverlay: {
633
+ default: false,
634
+ type: Boolean
635
+ },
636
+ // 是否在页面回退时自动关闭
637
+ closeOnPopstate: {
638
+ default: false,
639
+ type: Boolean
640
+ },
641
+ // 是否显示左按钮
642
+ showLeftIcon: {
643
+ default: false,
644
+ type: Boolean
645
+ },
646
+ // 左侧按钮icon
647
+ leftIconClass: {
648
+ default: 'iconfont icon-close-new-e658',
649
+ type: String
650
+ },
651
+ // 是否显示右按钮
652
+ showRightIcon: {
653
+ default: true,
654
+ type: Boolean
655
+ },
656
+ // 右侧按钮icon
657
+ rightIconClass: {
658
+ default: 'iconfont icon-success',
659
+ type: String
660
+ }
661
+ },
662
+ data: function data() {
663
+ return {
664
+ isScrolling: false,
665
+ pannelBodyScrollTop: 0
666
+ };
667
+ },
668
+
669
+ computed: {
670
+ isShow: {
671
+ get: function get() {
672
+ return this.show;
673
+ },
674
+ set: function set(newValue) {
675
+ this.$emit('update:show', newValue);
676
+ return newValue;
677
+ }
678
+ }
679
+ },
680
+ watch: {
681
+ pannelBodyScrollTop: function pannelBodyScrollTop(newVal) {
682
+ var _this = this;
683
+
684
+ setTimeout(function () {
685
+ var ele = document.getElementById('normal-bottom-popup-body-wrapper');
686
+ if (newVal !== ele.scrollTop) {
687
+ _this.isScrolling = true;
688
+ } else {
689
+ _this.isScrolling = false;
690
+ }
691
+ }, 100);
692
+ }
693
+ },
694
+ methods: {
695
+ watchScroll: throttle(function watchScrollTop() {
696
+ var ele = document.getElementById('normal-bottom-popup-body-wrapper');
697
+ this.pannelBodyScrollTop = ele.scrollTop;
698
+ }),
699
+ rightIconHandler: function rightIconHandler() {
700
+ this.$emit('right-icon-handler');
701
+ },
702
+ leftIconHandler: function leftIconHandler() {
703
+ this.$emit('left-icon-handler');
704
+ }
705
+ }
706
+ });
707
+ // CONCATENATED MODULE: ./packages/base/bottom-popup/src/bottom-popup.vue?vue&type=script&lang=js&
708
+ /* harmony default export */ var src_bottom_popupvue_type_script_lang_js_ = (bottom_popupvue_type_script_lang_js_);
709
+ // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
710
+ var componentNormalizer = __webpack_require__(0);
711
+
712
+ // CONCATENATED MODULE: ./packages/base/bottom-popup/src/bottom-popup.vue
713
+
714
+
715
+
716
+
717
+
718
+ /* normalize component */
719
+
720
+ var component = Object(componentNormalizer["a" /* default */])(
721
+ src_bottom_popupvue_type_script_lang_js_,
722
+ render,
723
+ staticRenderFns,
724
+ false,
725
+ null,
726
+ null,
727
+ null
728
+
729
+ )
730
+
731
+ /* hot reload */
732
+ if (false) { var api; }
733
+ component.options.__file = "packages/base/bottom-popup/src/bottom-popup.vue"
734
+ /* harmony default export */ var bottom_popup = (component.exports);
735
+ // CONCATENATED MODULE: ./packages/base/bottom-popup/index.js
736
+
737
+
738
+ // install 是默认的方法,供按需引入
739
+ // 当外界在 use 这个组件的时候,就会调用本身的install方法,同时传一个Vue这个类的参数
740
+
741
+ bottom_popup.install = function (Vue) {
742
+ Vue.component(bottom_popup.name, bottom_popup);
743
+ };
744
+
745
+ /* harmony default export */ var base_bottom_popup = __webpack_exports__["default"] = (bottom_popup);
746
+
747
+ /***/ }),
748
+
749
+ /***/ 30:
750
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
751
+
752
+ "use strict";
753
+ __webpack_require__.r(__webpack_exports__);
754
+
755
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/business/switch-student/src/switchStudent.vue?vue&type=template&id=b01ebdac&
756
+ var render = function () {
757
+ var _vm = this
758
+ var _h = _vm.$createElement
759
+ var _c = _vm._self._c || _h
760
+ return _c(
761
+ "div",
762
+ { staticClass: "desc" },
763
+ [
764
+ _c("ts-bottom-popup", {
765
+ attrs: {
766
+ "popup-title": _vm.title,
767
+ show: _vm.showPop,
768
+ "show-left-icon": false,
769
+ "show-right-icon": true,
770
+ },
771
+ on: {
772
+ "update:show": function ($event) {
773
+ _vm.showPop = $event
774
+ },
775
+ "right-icon-handler": _vm.closePopoup,
776
+ },
777
+ scopedSlots: _vm._u([
778
+ {
779
+ key: "right-icon",
780
+ fn: function () {
781
+ return [
782
+ _c(
783
+ "div",
784
+ {
785
+ staticClass:
786
+ "header-icon-btn-container right-icon-container",
787
+ on: { click: _vm.closePopoup },
788
+ },
789
+ [_c("i", { staticClass: "iconfont icon-close-new-e658" })]
790
+ ),
791
+ ]
792
+ },
793
+ proxy: true,
794
+ },
795
+ {
796
+ key: "body",
797
+ fn: function () {
798
+ return [
799
+ _c(
800
+ "div",
801
+ { staticClass: "popup-body-wrapper" },
802
+ [
803
+ _vm.switchStuTipText
804
+ ? _c("div", { staticClass: "coupon-tip-container" }, [
805
+ _c("div", { staticClass: "coupon-tip font-medium" }, [
806
+ _c("i", { staticClass: "iconfont icon-alert" }),
807
+ _c("span", [_vm._v(_vm._s(_vm.switchStuTipText))]),
808
+ ]),
809
+ ])
810
+ : _vm._e(),
811
+ _c(
812
+ "div",
813
+ { staticClass: "students-list-title font-medium" },
814
+ [
815
+ _vm._v(
816
+ "\n " +
817
+ _vm._s(_vm.phoneNumTip[0]) +
818
+ "\n " +
819
+ _vm._s("(" + _vm.countryCallingCode + ")") +
820
+ "\n " +
821
+ _vm._s(_vm.encryptPhone(_vm.phone)) +
822
+ "\n " +
823
+ _vm._s(_vm.phoneNumTip[1]) +
824
+ "\n "
825
+ ),
826
+ ]
827
+ ),
828
+ _c("div", { staticClass: "stu-switch-popup-txt" }, [
829
+ _c(
830
+ "div",
831
+ { staticClass: "students-list-wrapper" },
832
+ _vm._l(_vm.studentsList, function (student, index) {
833
+ return _c(
834
+ "div",
835
+ { key: index, staticClass: "students-list" },
836
+ [
837
+ _c(
838
+ "div",
839
+ { staticClass: "student-card-wrapper" },
840
+ [
841
+ _c(
842
+ "div",
843
+ { staticClass: "student-card-container" },
844
+ [
845
+ _c(
846
+ "div",
847
+ { staticClass: "card-main-container" },
848
+ [
849
+ _c(
850
+ "div",
851
+ {
852
+ staticClass:
853
+ "stu-avatar-container",
854
+ },
855
+ [
856
+ _c("img", {
857
+ attrs: {
858
+ src: student.avatar,
859
+ alt: "avatar",
860
+ },
861
+ }),
862
+ ]
863
+ ),
864
+ _c(
865
+ "div",
866
+ {
867
+ staticClass:
868
+ "stu-info-container font-medium",
869
+ },
870
+ [
871
+ _c(
872
+ "div",
873
+ { staticClass: "stu-name" },
874
+ [
875
+ _vm._v(
876
+ "\n " +
877
+ _vm._s(student.nickName) +
878
+ "\n "
879
+ ),
880
+ ]
881
+ ),
882
+ _c(
883
+ "div",
884
+ { staticClass: "stu-no" },
885
+ [
886
+ _c("span", [_vm._v("No.")]),
887
+ _c("span", [
888
+ _vm._v(
889
+ _vm._s(
890
+ _vm.formatCardNo(
891
+ student.card
892
+ )
893
+ )
894
+ ),
895
+ ]),
896
+ ]
897
+ ),
898
+ ]
899
+ ),
900
+ ]
901
+ ),
902
+ ]
903
+ ),
904
+ _c(
905
+ "div",
906
+ {
907
+ staticClass: "btn-select-student",
908
+ on: {
909
+ click: function ($event) {
910
+ return _vm.itemClick(student)
911
+ },
912
+ },
913
+ },
914
+ [
915
+ _c("i", {
916
+ directives: [
917
+ {
918
+ name: "show",
919
+ rawName: "v-show",
920
+ value: _vm.isSelect == student.uid,
921
+ expression:
922
+ "isSelect == student.uid",
923
+ },
924
+ ],
925
+ staticClass: "iconfont icon-selected",
926
+ }),
927
+ _c("i", {
928
+ directives: [
929
+ {
930
+ name: "show",
931
+ rawName: "v-show",
932
+ value: _vm.isSelect !== student.uid,
933
+ expression:
934
+ "isSelect !== student.uid",
935
+ },
936
+ ],
937
+ staticClass: "iconfont icon-unselect",
938
+ }),
939
+ ]
940
+ ),
941
+ ]
942
+ ),
943
+ ]
944
+ )
945
+ }),
946
+ 0
947
+ ),
948
+ ]),
949
+ _c(
950
+ "div",
951
+ { staticClass: "guide-to-add-student font-medium" },
952
+ [
953
+ _vm._v(
954
+ "\n " +
955
+ _vm._s(_vm.addTip[0]) +
956
+ "\n "
957
+ ),
958
+ _c(
959
+ "span",
960
+ {
961
+ staticClass: "btn-add-student",
962
+ on: { click: _vm.addStudentHandler },
963
+ },
964
+ [_vm._v(_vm._s(_vm.addTip[1]))]
965
+ ),
966
+ _vm._v(
967
+ "\n " + _vm._s(_vm.addTip[2]) + "\n "
968
+ ),
969
+ ]
970
+ ),
971
+ _c(
972
+ "ts-button",
973
+ {
974
+ staticClass: "stu-switch-btn",
975
+ attrs: {
976
+ "style-type": "primary",
977
+ size: "small",
978
+ width: "100%",
979
+ height: "48px",
980
+ },
981
+ on: { click: _vm.closePopoupHandler },
982
+ },
983
+ [_vm._v("\n Continue Sign Up\n ")]
984
+ ),
985
+ _c("div", { staticClass: "empty-box" }),
986
+ ],
987
+ 1
988
+ ),
989
+ ]
990
+ },
991
+ proxy: true,
992
+ },
993
+ ]),
994
+ }),
995
+ ],
996
+ 1
997
+ )
998
+ }
999
+ var staticRenderFns = []
1000
+ render._withStripped = true
1001
+
1002
+
1003
+ // CONCATENATED MODULE: ./packages/business/switch-student/src/switchStudent.vue?vue&type=template&id=b01ebdac&
1004
+
1005
+ // EXTERNAL MODULE: ./packages/base/bottom-popup/index.js + 5 modules
1006
+ var bottom_popup = __webpack_require__(3);
1007
+
1008
+ // EXTERNAL MODULE: ./packages/base/button/index.js + 5 modules
1009
+ var base_button = __webpack_require__(1);
1010
+
1011
+ // EXTERNAL MODULE: external "@thinkacademy/overseas-ui/lib/network/api"
1012
+ var api_ = __webpack_require__(5);
1013
+
1014
+ // CONCATENATED MODULE: ./packages/business/switch-student/src/api/index.js
1015
+
1016
+
1017
+ /**
1018
+ *
1019
+ * @param {账号列表} params
1020
+ * @returns
1021
+ */
1022
+ function queryAccount(params) {
1023
+ return api_["net"].post('/v1/ucenter/account/associated/list', params);
1024
+ }
1025
+
1026
+ /**
1027
+ *
1028
+ * @param {电话号码获取} params
1029
+ * @returns
1030
+ */
1031
+ function queryPhone(params) {
1032
+ return api_["net"].post('/basic_info/master_user/get', params);
1033
+ }
1034
+
1035
+ /**
1036
+ *
1037
+ * @param {获取基本信息} params
1038
+ * @returns
1039
+ */
1040
+ function queryUserInfo(params) {
1041
+ return api_["net"].post('/basic_info/user/get', params);
1042
+ }
1043
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/business/switch-student/src/switchStudent.vue?vue&type=script&lang=js&
1044
+ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
1045
+
1046
+ //
1047
+ //
1048
+ //
1049
+ //
1050
+ //
1051
+ //
1052
+ //
1053
+ //
1054
+ //
1055
+ //
1056
+ //
1057
+ //
1058
+ //
1059
+ //
1060
+ //
1061
+ //
1062
+ //
1063
+ //
1064
+ //
1065
+ //
1066
+ //
1067
+ //
1068
+ //
1069
+ //
1070
+ //
1071
+ //
1072
+ //
1073
+ //
1074
+ //
1075
+ //
1076
+ //
1077
+ //
1078
+ //
1079
+ //
1080
+ //
1081
+ //
1082
+ //
1083
+ //
1084
+ //
1085
+ //
1086
+ //
1087
+ //
1088
+ //
1089
+ //
1090
+ //
1091
+ //
1092
+ //
1093
+ //
1094
+ //
1095
+ //
1096
+ //
1097
+ //
1098
+ //
1099
+ //
1100
+ //
1101
+ //
1102
+ //
1103
+ //
1104
+ //
1105
+ //
1106
+ //
1107
+ //
1108
+ //
1109
+ //
1110
+ //
1111
+ //
1112
+ //
1113
+ //
1114
+ //
1115
+ //
1116
+ //
1117
+ //
1118
+ //
1119
+ //
1120
+ //
1121
+ //
1122
+ //
1123
+ //
1124
+
1125
+
1126
+
1127
+
1128
+
1129
+ /* harmony default export */ var switchStudentvue_type_script_lang_js_ = ({
1130
+ name: 'TsSwitchStudent',
1131
+ components: { TsBottomPopup: bottom_popup["default"], TsButton: base_button["default"] },
1132
+ inject: ["app"],
1133
+ props: {
1134
+ title: {
1135
+ default: 'Choose a Student',
1136
+ type: String
1137
+ },
1138
+ switchStuTipText: {
1139
+ default: 'Please note that the discount total may change by switching to another student account.',
1140
+ type: String
1141
+ },
1142
+ phoneNumTip: {
1143
+ default: function _default() {
1144
+ return ['Your mobile number', 'is registered to the following student accounts:'];
1145
+ },
1146
+ type: Array
1147
+ },
1148
+ addTip: {
1149
+ default: function _default() {
1150
+ return ['Registering for a different child not listed above?', 'Click here ', 'to add a new student account under this mobile number andregister for them.', 'You can complete the student profile afterclicking "Continue Sign Up".'];
1151
+ },
1152
+ type: Array
1153
+ }
1154
+ },
1155
+ data: function data() {
1156
+ return {
1157
+ // 默认为false
1158
+ showPop: true,
1159
+ isSelect: null,
1160
+ phone: '',
1161
+ countryCallingCode: '',
1162
+ studentsList: [],
1163
+ getSchoolCode: ''
1164
+ };
1165
+ },
1166
+
1167
+ methods: {
1168
+ closePopoup: function closePopoup() {
1169
+ this.showPop = false;
1170
+ },
1171
+ open: function open(val) {
1172
+ var _this = this;
1173
+
1174
+ this.showPop = true;
1175
+ this.getSchoolCode = val.schoolCode;
1176
+ queryAccount({
1177
+ header: {
1178
+ schoolCode: val.schoolCode,
1179
+ studentId: val.studentId
1180
+ }
1181
+ }).then(function (res) {
1182
+ var resData = res.data.data || {};
1183
+ _this.studentsList = resData.associatedAccount || [];
1184
+ // 添加当前登录学员
1185
+ _this.studentsList.unshift(resData.currentAccount);
1186
+ // 默认选中第一个
1187
+ _this.isSelect = _this.studentsList[0].uid;
1188
+ });
1189
+ queryPhone({
1190
+ header: {
1191
+ schoolCode: val.schoolCode
1192
+ }
1193
+ }).then(function (res) {
1194
+ var resData = res.data.data || {};
1195
+ _this.phone = resData.phone || [];
1196
+ _this.countryCallingCode = resData.countryCallingCode || [];
1197
+ });
1198
+ },
1199
+ addStudentHandler: function addStudentHandler() {
1200
+ // 跳到添加学员
1201
+ this.$emit('btn-click', 'TsStudentInfo', { title: "Add a student", 'show-left': true, 'show-right': false });
1202
+ },
1203
+ itemClick: function itemClick(student) {
1204
+ this.isSelect = student.uid;
1205
+ this.switchLogin();
1206
+ },
1207
+ closePopoupHandler: function closePopoupHandler() {
1208
+ var _this2 = this;
1209
+
1210
+ // 判断是否需要提示入学测试
1211
+
1212
+ // 如果没有直接跳到支付页
1213
+
1214
+
1215
+ //可以拿到uid
1216
+ queryUserInfo({
1217
+ header: {
1218
+ schoolCode: this.getSchoolCode,
1219
+ studentId: this.isSelect
1220
+ }
1221
+ }).then(function (res) {
1222
+ var resData = res.data.data || {};
1223
+ var resFirstName = resData.firstName;
1224
+ var resLastName = resData.lastName;
1225
+ var resEmail = resData.email;
1226
+ var resNickName = resData.nickName;
1227
+ if (!resFirstName || !resLastName || !resEmail) {
1228
+ return _this2.$emit('btn-click', 'TsStudentInfo', {
1229
+ firstName: resFirstName,
1230
+ lastName: resLastName,
1231
+ email: resEmail,
1232
+ nickName: resNickName
1233
+ });
1234
+ }
1235
+ // 跳转判断是否 价格为0
1236
+ // localtion.href = ''
1237
+ });
1238
+
1239
+ this.showPop = false;
1240
+ },
1241
+
1242
+ // 加密手机号
1243
+ encryptPhone: function encryptPhone(phone) {
1244
+ if (!phone || phone === '') {
1245
+ return '';
1246
+ }
1247
+ var phoneLen = phone.length;
1248
+ var length = Math.floor(phoneLen / 3);
1249
+ var replaceStr = [];
1250
+ replaceStr.length = 2 * length - length + 1 + 1;
1251
+ replaceStr = replaceStr.join('*');
1252
+
1253
+ return phone.replace(phone.substring(length, 2 * length + 1), replaceStr);
1254
+ },
1255
+
1256
+ // 处理 card
1257
+ formatCardNo: function formatCardNo(val) {
1258
+ if (!val) return '';
1259
+ return val.replace(/(.{4})/g, '$1 ');
1260
+ },
1261
+
1262
+ // 切换登录账号
1263
+ switchLogin: function switchLogin() {
1264
+ var _this3 = this;
1265
+
1266
+ return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
1267
+ var data, res;
1268
+ return regeneratorRuntime.wrap(function _callee$(_context) {
1269
+ while (1) {
1270
+ switch (_context.prev = _context.next) {
1271
+ case 0:
1272
+ data = {
1273
+ data: {
1274
+ targetUid: _this3.isSelect
1275
+ }
1276
+ };
1277
+ _context.next = 3;
1278
+ return _this3.$axios.post("/one-api/ucenter/account/switch_login", data, { rewritePostBody: true });
1279
+
1280
+ case 3:
1281
+ res = _context.sent;
1282
+
1283
+ console.log(res);
1284
+
1285
+ case 5:
1286
+ case 'end':
1287
+ return _context.stop();
1288
+ }
1289
+ }
1290
+ }, _callee, _this3);
1291
+ }))();
1292
+ },
1293
+
1294
+ // 校验是否需要测试
1295
+ reportClassCheck: function reportClassCheck() {
1296
+ var _this4 = this;
1297
+
1298
+ return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
1299
+ var data, res;
1300
+ return regeneratorRuntime.wrap(function _callee2$(_context2) {
1301
+ while (1) {
1302
+ switch (_context2.prev = _context2.next) {
1303
+ case 0:
1304
+ data = {
1305
+ data: {
1306
+ skuNo: _this4.skuNo
1307
+ }
1308
+ };
1309
+ _context2.next = 3;
1310
+ return _this4.$axios.post("/one-api/aggregate/signup/check", data, { rewritePostBody: true });
1311
+
1312
+ case 3:
1313
+ res = _context2.sent;
1314
+
1315
+ if (res.data.continue) {
1316
+ _this4.$emit("btn-click", "toOrder");
1317
+ } else {
1318
+ _this4.$emit("btn-click", 'helper', res.data.helper);
1319
+ }
1320
+
1321
+ case 5:
1322
+ case 'end':
1323
+ return _context2.stop();
1324
+ }
1325
+ }
1326
+ }, _callee2, _this4);
1327
+ }))();
1328
+ },
1329
+
1330
+ // 判断是否需要补充用户信息
1331
+ supplementInfo: function supplementInfo() {
1332
+ var _this5 = this;
1333
+
1334
+ return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
1335
+ return regeneratorRuntime.wrap(function _callee3$(_context3) {
1336
+ while (1) {
1337
+ switch (_context3.prev = _context3.next) {
1338
+ case 0:
1339
+ _this5.$axios.post("/one-api/ucenter/basic_info/user/get", {});
1340
+
1341
+ case 1:
1342
+ case 'end':
1343
+ return _context3.stop();
1344
+ }
1345
+ }
1346
+ }, _callee3, _this5);
1347
+ }))();
1348
+ }
1349
+ }
1350
+ });
1351
+ // CONCATENATED MODULE: ./packages/business/switch-student/src/switchStudent.vue?vue&type=script&lang=js&
1352
+ /* harmony default export */ var src_switchStudentvue_type_script_lang_js_ = (switchStudentvue_type_script_lang_js_);
1353
+ // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
1354
+ var componentNormalizer = __webpack_require__(0);
1355
+
1356
+ // CONCATENATED MODULE: ./packages/business/switch-student/src/switchStudent.vue
1357
+
1358
+
1359
+
1360
+
1361
+
1362
+ /* normalize component */
1363
+
1364
+ var component = Object(componentNormalizer["a" /* default */])(
1365
+ src_switchStudentvue_type_script_lang_js_,
1366
+ render,
1367
+ staticRenderFns,
1368
+ false,
1369
+ null,
1370
+ null,
1371
+ null
1372
+
1373
+ )
1374
+
1375
+ /* hot reload */
1376
+ if (false) { var api; }
1377
+ component.options.__file = "packages/business/switch-student/src/switchStudent.vue"
1378
+ /* harmony default export */ var switchStudent = (component.exports);
1379
+ // CONCATENATED MODULE: ./packages/business/switch-student/index.js
1380
+
1381
+
1382
+ // install 是默认的方法,供按需引入
1383
+ // 当外界在 use 这个组件的时候,就会调用本身的install方法,同时传一个Vue这个类的参数
1384
+
1385
+ switchStudent.install = function (Vue) {
1386
+ Vue.component(switchStudent.name, switchStudent);
1387
+ };
1388
+
1389
+ /* harmony default export */ var switch_student = __webpack_exports__["default"] = (switchStudent);
1390
+
1391
+ /***/ }),
1392
+
1393
+ /***/ 5:
1394
+ /***/ (function(module, exports) {
1395
+
1396
+ module.exports = require("@thinkacademy/overseas-ui/lib/network/api");
1397
+
1398
+ /***/ }),
1399
+
1400
+ /***/ 6:
1401
+ /***/ (function(module, exports) {
1402
+
1403
+ module.exports = require("lodash/throttle");
1404
+
1405
+ /***/ })
1406
+
1407
+ /******/ });