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.
512 lines
36 KiB
512 lines
36 KiB
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ [ "pages/lanhu_zhuce/index" ], {
|
|
/***/ 49:
|
|
/*!************************************************************!*\
|
|
!*** ./src/main.js?{"page":"pages%2Flanhu_zhuce%2Findex"} ***!
|
|
\************************************************************/
|
|
/*! no static exports found */
|
|
/***/ function(module, exports, __webpack_require__) {
|
|
"use strict";
|
|
/* WEBPACK VAR INJECTION */
|
|
/* WEBPACK VAR INJECTION */
|
|
/* WEBPACK VAR INJECTION */
|
|
/* WEBPACK VAR INJECTION */ (function(createPage) {
|
|
__webpack_require__(/*! uni-pages */ 4);
|
|
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 2));
|
|
var _index = _interopRequireDefault(__webpack_require__(/*! ./pages/lanhu_zhuce/index.vue */ 50));
|
|
function _interopRequireDefault(obj) {
|
|
return obj && obj.__esModule ? obj : {
|
|
default: obj
|
|
};
|
|
}
|
|
createPage(_index.default);
|
|
/* WEBPACK VAR INJECTION */ }).call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["createPage"])
|
|
/***/;
|
|
},
|
|
/***/ 50:
|
|
/*!*****************************************!*\
|
|
!*** ./src/pages/lanhu_zhuce/index.vue ***!
|
|
\*****************************************/
|
|
/*! no static exports found */
|
|
/***/ function(module, __webpack_exports__, __webpack_require__) {
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _index_vue_vue_type_template_id_58034dea___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=58034dea& */ 51);
|
|
/* harmony import */ var _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.vue?vue&type=script&lang=js& */ 53);
|
|
/* harmony reexport (unknown) */ for (var __WEBPACK_IMPORT_KEY__ in _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if ([ "default" ].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) {
|
|
__webpack_require__.d(__webpack_exports__, key, function() {
|
|
return _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key];
|
|
});
|
|
})(__WEBPACK_IMPORT_KEY__);
|
|
/* harmony import */ var _index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./index.vue?vue&type=style&index=0&lang=css& */ 55);
|
|
/* harmony import */ var _node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 10);
|
|
var renderjs
|
|
/* normalize component */;
|
|
var component = Object(_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"], _index_vue_vue_type_template_id_58034dea___WEBPACK_IMPORTED_MODULE_0__["render"], _index_vue_vue_type_template_id_58034dea___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"], false, null, null, null, false, _index_vue_vue_type_template_id_58034dea___WEBPACK_IMPORTED_MODULE_0__["components"], renderjs);
|
|
component.options.__file = "pages/lanhu_zhuce/index.vue"
|
|
/* harmony default export */;
|
|
__webpack_exports__["default"] = component.exports;
|
|
/***/ },
|
|
/***/ 51:
|
|
/*!************************************************************************!*\
|
|
!*** ./src/pages/lanhu_zhuce/index.vue?vue&type=template&id=58034dea& ***!
|
|
\************************************************************************/
|
|
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
|
/***/ function(module, __webpack_exports__, __webpack_require__) {
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_14_0_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_58034dea___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--14-0!../../../node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=template&id=58034dea& */ 52);
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() {
|
|
return _node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_14_0_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_58034dea___WEBPACK_IMPORTED_MODULE_0__["render"];
|
|
});
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() {
|
|
return _node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_14_0_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_58034dea___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"];
|
|
});
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() {
|
|
return _node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_14_0_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_58034dea___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"];
|
|
});
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() {
|
|
return _node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_14_0_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_58034dea___WEBPACK_IMPORTED_MODULE_0__["components"];
|
|
});
|
|
/***/ },
|
|
/***/ 52:
|
|
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
!*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--14-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./src/pages/lanhu_zhuce/index.vue?vue&type=template&id=58034dea& ***!
|
|
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
|
/***/ function(module, __webpack_exports__, __webpack_require__) {
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() {
|
|
return render;
|
|
});
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() {
|
|
return staticRenderFns;
|
|
});
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() {
|
|
return recyclableRender;
|
|
});
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() {
|
|
return components;
|
|
});
|
|
var components;
|
|
var render = function() {
|
|
var _vm = this;
|
|
var _h = _vm.$createElement;
|
|
var _c = _vm._self._c || _h;
|
|
var g0 = _vm.schoollist.map(function(item) {
|
|
return item.school_name;
|
|
});
|
|
var g1 = _vm.classlist.map(function(item) {
|
|
return item.class_name;
|
|
});
|
|
_vm.$mp.data = Object.assign({}, {
|
|
$root: {
|
|
g0: g0,
|
|
g1: g1
|
|
}
|
|
});
|
|
};
|
|
var recyclableRender = false;
|
|
var staticRenderFns = [];
|
|
render._withStripped = true
|
|
/***/;
|
|
},
|
|
/***/ 53:
|
|
/*!******************************************************************!*\
|
|
!*** ./src/pages/lanhu_zhuce/index.vue?vue&type=script&lang=js& ***!
|
|
\******************************************************************/
|
|
/*! no static exports found */
|
|
/***/ function(module, __webpack_exports__, __webpack_require__) {
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _node_modules_babel_loader_lib_index_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/babel-loader/lib!../../../node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!../../../node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js& */ 54);
|
|
/* harmony import */ var _node_modules_babel_loader_lib_index_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /* */ __webpack_require__.n(_node_modules_babel_loader_lib_index_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
|
|
/* harmony reexport (unknown) */ for (var __WEBPACK_IMPORT_KEY__ in _node_modules_babel_loader_lib_index_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if ([ "default" ].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) {
|
|
__webpack_require__.d(__webpack_exports__, key, function() {
|
|
return _node_modules_babel_loader_lib_index_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key];
|
|
});
|
|
})(__WEBPACK_IMPORT_KEY__);
|
|
/* harmony default export */ __webpack_exports__["default"] = _node_modules_babel_loader_lib_index_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a;
|
|
/***/ },
|
|
/***/ 54:
|
|
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./src/pages/lanhu_zhuce/index.vue?vue&type=script&lang=js& ***!
|
|
\*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ function(module, exports, __webpack_require__) {
|
|
"use strict";
|
|
/* WEBPACK VAR INJECTION */
|
|
/* WEBPACK VAR INJECTION */
|
|
/* WEBPACK VAR INJECTION */
|
|
/* WEBPACK VAR INJECTION */ (function(uni) {
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = void 0;
|
|
function _defineProperty(obj, key, value) {
|
|
if (key in obj) {
|
|
Object.defineProperty(obj, key, {
|
|
value: value,
|
|
enumerable: true,
|
|
configurable: true,
|
|
writable: true
|
|
});
|
|
} else {
|
|
obj[key] = value;
|
|
}
|
|
return obj;
|
|
}
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
var _default = {
|
|
data: function data() {
|
|
return _defineProperty({
|
|
constants: {},
|
|
shenfen: [ "请选择身份", "家长", "老师" ],
|
|
// 下拉选择器的选项列表
|
|
shenfen1: 0,
|
|
// 当前选中的选项索引
|
|
schoollist: [ {
|
|
id: 0,
|
|
school_name: "请选择学校"
|
|
} ],
|
|
schoollist1: 0,
|
|
classlist: [ {
|
|
id: 0,
|
|
class_name: "请选择班级"
|
|
} ],
|
|
classlist1: 0,
|
|
yanzheng: 1,
|
|
student_name: "",
|
|
captcha: "",
|
|
class_id: "",
|
|
phone: "",
|
|
teacher_name: "",
|
|
type: "",
|
|
real_name: ""
|
|
}, "schoollist", {});
|
|
},
|
|
onLoad: function onLoad(option) {
|
|
this.getData();
|
|
},
|
|
methods: {
|
|
onPickerChange1: function onPickerChange1(event) {
|
|
this.shenfen1 = event.detail.value;
|
|
},
|
|
onPickerChange2: function onPickerChange2(event) {
|
|
var _this = this;
|
|
this.schoollist1 = event.detail.value;
|
|
if (event.detail.value == 0) {
|
|
this.classlist = [ {
|
|
id: 0,
|
|
class_name: "请选择班级"
|
|
} ];
|
|
return;
|
|
}
|
|
uni.request({
|
|
url: getApp().globalData.baseUrl + "article/category/list",
|
|
// 接口地址
|
|
method: "GET",
|
|
// 请求方法
|
|
header: {
|
|
"content-type": "application/json"
|
|
},
|
|
data: {
|
|
type: "class",
|
|
school_id: this.schoollist[this.schoollist1].id
|
|
},
|
|
success: function success(res) {
|
|
_this.classlist = res.data.data.class;
|
|
},
|
|
fail: function fail(err) {
|
|
console.error(err);
|
|
// 请求失败时处理错误
|
|
}
|
|
});
|
|
},
|
|
onPickerChange3: function onPickerChange3(event) {
|
|
this.classlist1 = event.detail.value;
|
|
},
|
|
yanzhengma: function yanzhengma() {
|
|
var _this2 = this;
|
|
if (!this.phone) {
|
|
uni.showToast({
|
|
title: "请输入手机号.",
|
|
icon: "none",
|
|
// 如果要纯文本,将值设为 'none'
|
|
duration: 2e3
|
|
});
|
|
return;
|
|
}
|
|
uni.request({
|
|
url: getApp().globalData.baseUrl + "sendSmsCode",
|
|
// 接口地址
|
|
method: "POST",
|
|
// 请求方法
|
|
header: {
|
|
"content-type": "application/json"
|
|
},
|
|
data: {
|
|
phone: this.phone
|
|
},
|
|
success: function success(res) {
|
|
if (res.data.status != 200) {
|
|
uni.showToast({
|
|
title: res.data.msg,
|
|
icon: "none",
|
|
// 如果要纯文本,将值设为 'none'
|
|
duration: 2e3
|
|
});
|
|
} else {
|
|
uni.showToast({
|
|
title: "获取成功",
|
|
icon: "none",
|
|
// 如果要纯文本,将值设为 'none'
|
|
duration: 2e3
|
|
});
|
|
_this2.yanzheng = 2;
|
|
}
|
|
},
|
|
fail: function fail(err) {
|
|
console.error(err);
|
|
// 请求失败时处理错误
|
|
}
|
|
});
|
|
},
|
|
getData: function getData() {
|
|
var _this3 = this;
|
|
uni.request({
|
|
url: getApp().globalData.baseUrl + "article/category/list",
|
|
// 接口地址
|
|
method: "GET",
|
|
// 请求方法
|
|
header: {
|
|
"content-type": "application/json"
|
|
},
|
|
success: function success(res) {
|
|
_this3.schoollist = res.data.data.school;
|
|
// this.classlist = res.data.data.class
|
|
},
|
|
fail: function fail(err) {
|
|
console.error(err);
|
|
// 请求失败时处理错误
|
|
}
|
|
});
|
|
},
|
|
zhuce: function zhuce() {
|
|
if (this.shenfen1 == 0) {
|
|
uni.showToast({
|
|
title: "请选择身份",
|
|
icon: "none",
|
|
// 如果要纯文本,将值设为 'none'
|
|
duration: 2e3
|
|
});
|
|
return;
|
|
}
|
|
if (this.schoollist1 == 0) {
|
|
uni.showToast({
|
|
title: "请选择学校",
|
|
icon: "none",
|
|
// 如果要纯文本,将值设为 'none'
|
|
duration: 2e3
|
|
});
|
|
return;
|
|
}
|
|
if (this.shenfen1 == 1) {
|
|
this.type = "parents";
|
|
}
|
|
if (this.shenfen1 == 2) {
|
|
this.type = "teacher";
|
|
}
|
|
uni.request({
|
|
url: getApp().globalData.baseUrl + "bstRegister",
|
|
// 接口地址
|
|
method: "POST",
|
|
// 请求方法
|
|
data: {
|
|
account: this.phone,
|
|
code: "x",
|
|
school_id: this.schoollist[this.schoollist1].id,
|
|
student_name: this.student_name,
|
|
real_name: this.real_name,
|
|
captcha: this.captcha,
|
|
class_id: this.classlist[this.classlist1].id,
|
|
type: this.type,
|
|
ttp: 2
|
|
},
|
|
header: {
|
|
"content-type": "application/json"
|
|
},
|
|
success: function success(res) {
|
|
if (res.data.code != 410013) {
|
|
uni.showToast({
|
|
title: res.data.msg,
|
|
icon: "none",
|
|
// 如果要纯文本,将值设为 'none'
|
|
duration: 2e3
|
|
});
|
|
} else {
|
|
uni.showToast({
|
|
title: "注册成功",
|
|
icon: "none",
|
|
// 如果要纯文本,将值设为 'none'
|
|
duration: 2e3
|
|
});
|
|
setTimeout(function() {
|
|
// 这里使用navigateTo或者其他页面跳转方法
|
|
uni.navigateTo({
|
|
url: "/pages/lanhu_denglu/index"
|
|
});
|
|
}, 1500);
|
|
// 3000毫秒等于3秒
|
|
}
|
|
},
|
|
fail: function fail(err) {
|
|
console.error(err);
|
|
// 请求失败时处理错误
|
|
}
|
|
});
|
|
}
|
|
}
|
|
};
|
|
exports.default = _default;
|
|
/* WEBPACK VAR INJECTION */ }).call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"])
|
|
/***/;
|
|
},
|
|
/***/ 55:
|
|
/*!**************************************************************************!*\
|
|
!*** ./src/pages/lanhu_zhuce/index.vue?vue&type=style&index=0&lang=css& ***!
|
|
\**************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ function(module, __webpack_exports__, __webpack_require__) {
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-2!../../../node_modules/postcss-loader/src??ref--6-oneOf-1-3!../../../node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&lang=css& */ 56);
|
|
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /* */ __webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
/* harmony reexport (unknown) */ for (var __WEBPACK_IMPORT_KEY__ in _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__) if ([ "default" ].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) {
|
|
__webpack_require__.d(__webpack_exports__, key, function() {
|
|
return _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__[key];
|
|
});
|
|
})(__WEBPACK_IMPORT_KEY__);
|
|
/* harmony default export */ __webpack_exports__["default"] = _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a;
|
|
/***/ },
|
|
/***/ 56:
|
|
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
!*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-2!./node_modules/postcss-loader/src??ref--6-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./src/pages/lanhu_zhuce/index.vue?vue&type=style&index=0&lang=css& ***!
|
|
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ function(module, exports, __webpack_require__) {
|
|
// extracted by mini-css-extract-plugin
|
|
if (false) {
|
|
var cssReload;
|
|
}
|
|
/***/ }
|
|
}, [ [ 49, "common/runtime", "common/vendor" ] ] ]);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/lanhu_zhuce/index.js.map
|