add-school.js.map 16.8 KB
{"version":3,"sources":["uni-app:///main.js","webpack:////Users/linon/work/workai/yxly-teacher/pages/main/home/add-school.vue?8239","webpack:////Users/linon/work/workai/yxly-teacher/pages/main/home/add-school.vue?74f4","webpack:////Users/linon/work/workai/yxly-teacher/pages/main/home/add-school.vue?e733","webpack:////Users/linon/work/workai/yxly-teacher/pages/main/home/add-school.vue?a4ec","uni-app:///pages/main/home/add-school.vue","webpack:////Users/linon/work/workai/yxly-teacher/pages/main/home/add-school.vue?8fa3"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;;AAE2D;AAC3D;AACA,0G,8FAHA;AACAA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC,CAGAC,UAAU,CAACC,kBAAD,CAAV,C;;;;;;;;;;;;;ACLA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAmI;AACnI;AAC8D;AACL;AACsC;;;AAG/F;AACmN;AACnN,gBAAgB,iNAAU;AAC1B,EAAE,gFAAM;AACR,EAAE,iGAAM;AACR,EAAE,0GAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,qGAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,aAAa,oLAEN;AACP,KAAK;AACL;AACA,aAAa,sQAEN;AACP,KAAK;AACL;AACA,aAAa,sLAEN;AACP;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AC3CA;AAAA;AAAA;AAAA;AAAu1B,CAAgB,wyBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC4D32B;AACA,MADA,kBACA;AACA;AACA;AACA,uBADA;AAEA,gBAFA;AAGA,wBAHA;AAIA,uBAJA,EADA;;AAOA;AACA;AACA;AACA,wBADA;AAEA,2BAFA;AAGA,qCAHA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA,WANA;AAOA,4BAPA;AAQA;AACA,qCATA,EAJA,CAFA,EAPA;;;AAyBA,sDAzBA;;AA2BA,GA7BA;;AA+BA,SA/BA,qBA+BA;AACA;AACA,GAjCA;;AAmCA;AACA,aADA,uBACA;AACA;AACA,6CADA;;AAGA,KALA;;AAOA,UAPA,oBAOA;AACA;AACA;AACA,yCADA,EADA;;AAIA,gCAJA;AAKA,eALA,mBAKA,GALA,EAKA;AACA;AACA,SAPA;;AASA,KAjBA;;AAmBA,UAnBA,oBAmBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eADA;AAEA,UAFA,CAEA;AACA;AACA;AACA;AACA,OANA;AAOA,KAnCA;;AAqCA,aArCA,qBAqCA,GArCA,EAqCA;AACA;AACA,kBADA;AAEA,oBAFA;;AAIA,KA1CA,EAnCA,E;;;;;;;;;;;;;AC5DA;AAAA;AAAA;AAAA;AAA0lD,CAAgB,+7CAAG,EAAC,C","file":"pages/main/home/add-school.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;import '@dcloudio/uni-stat/dist/uni-stat.es.js';\nimport Vue from 'vue'\nimport Page from './pages/main/home/add-school.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./add-school.vue?vue&type=template&id=6c5b37f3&scoped=true&\"\nvar renderjs\nimport script from \"./add-school.vue?vue&type=script&lang=js&\"\nexport * from \"./add-school.vue?vue&type=script&lang=js&\"\nimport style0 from \"./add-school.vue?vue&type=style&index=0&id=6c5b37f3&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  \"6c5b37f3\",\n  null,\n  false,\n  components,\n  renderjs\n)\n\ncomponent.options.__file = \"pages/main/home/add-school.vue\"\nexport default component.exports","export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./add-school.vue?vue&type=template&id=6c5b37f3&scoped=true&\"","var components\ntry {\n  components = {\n    uForm: function() {\n      return import(\n        /* webpackChunkName: \"uview-ui/components/u-form/u-form\" */ \"@/uview-ui/components/u-form/u-form.vue\"\n      )\n    },\n    cInputItem: function() {\n      return import(\n        /* webpackChunkName: \"components/c-input-item/c-input-item\" */ \"@/components/c-input-item/c-input-item.vue\"\n      )\n    },\n    uInput: function() {\n      return import(\n        /* webpackChunkName: \"uview-ui/components/u-input/u-input\" */ \"@/uview-ui/components/u-input/u-input.vue\"\n      )\n    }\n  }\n} catch (e) {\n  if (\n    e.message.indexOf(\"Cannot find module\") !== -1 &&\n    e.message.indexOf(\".vue\") !== -1\n  ) {\n    console.error(e.message)\n    console.error(\"1. 排查组件名称拼写是否正确\")\n    console.error(\n      \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n    )\n    console.error(\n      \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n    )\n  } else {\n    throw e\n  }\n}\nvar render = function() {\n  var _vm = this\n  var _h = _vm.$createElement\n  var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./add-school.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./add-school.vue?vue&type=script&lang=js&\"","<template>\n\t<view class=\"page\">\n\t\t<view>\n\t\t\t<view style=\"padding: 40rpx;background-color: #FFFFFF;\">\n\t\t\t\t<u-form :model=\"form\" :error-type=\"errorType\" ref=\"uForm\">\n\t\t\t\t\t<!-- <u-form-item label=\"学校名称\" prop=\"name\">\n\t\t\t\t\t\t<u-input v-model=\"form.name\" />\n\t\t\t\t\t</u-form-item>\n\t\t\t\t\t<u-form-item label=\"联系人\" prop=\"contactName\">\n\t\t\t\t\t\t<u-input v-model=\"form.contactName\" />\n\t\t\t\t\t</u-form-item>\n\t\t\t\t\t<u-form-item label=\"联系电话\" prop=\"contactPhone\">\n\t\t\t\t\t\t<u-input v-model=\"form.contactPhone\" />\n\t\t\t\t\t</u-form-item> -->\n\t\t\t\t\t<c-input-item label=\"学校名称\" type=\"text\" name=\"name\" v-model=\"form.name\" :rightIcon=\"false\">\n\t\t\t\t\t</c-input-item>\n\t\t\t\t\t<c-input-item label=\"联系人\" type=\"text\" name=\"contactName\" v-model=\"form.contactName\"\n\t\t\t\t\t\t:rightIcon=\"false\">\n\t\t\t\t\t</c-input-item>\n\t\t\t\t\t<c-input-item label=\"联系电话\" type=\"number\" name=\"contactPhone\" v-model=\"form.contactPhone\"\n\t\t\t\t\t\t:rightIcon=\"false\">\n\t\t\t\t\t</c-input-item>\n\t\t\t\t</u-form>\n\t\t\t\t<view style=\"height: 20rpx;background-color: #FAFAFB; margin-bottom: 20rpx;\"></view>\n\t\t\t\t<u-input v-model=\"form.description\" name=\"description\" type=\"textarea\" :placeholder='textholder'\n\t\t\t\t\t:height=\"328\" :auto-height=\"true\" />\n\t\t\t</view>\n\t\t\t<view style=\"font-size: 26rpx;color: #646464;padding: 20rpx;\">推荐人ID:{{vuex_user.broker.id}}</view>\n\t\t</view>\n\t\t<!-- <view class=\"bottom\">\n\t\t\t<view style=\"width: 100%;display: flex;top: 30rpx;position: absolute;\">\n\t\t\t\t<view class=\"chat\" @click=\"callPhone\">\n\t\t\t\t\t<image class=\"icon\" src=\"/static/img/common/call-phone.png\"></image>\n\t\t\t\t\t<text class=\"text\">打电话</text>\n\t\t\t\t</view>\n\t\t\t\t<view class=\"chat\" @click=\"goChat\">\n\t\t\t\t\t<image class=\"icon\" src=\"/static/img/common/chat.png\"></image>\n\t\t\t\t\t<text class=\"text\">直聊</text>\n\t\t\t\t</view>\n\t\t\t\t<view class=\"commit\" @click=\"commit\">\n\t\t\t\t\t<text style=\"font-size: 32rpx;color: #FFFFFF;line-height: 84rpx;\">推荐入驻</text>\n\t\t\t\t</view>\n\t\t\t</view>\n\t\t</view> -->\n\t\t<view class=\"btView\">\n\t\t\t<view class=\"flow\" @click=\"callPhone()\">\n\t\t\t\t<img class=\"flowIcon\" src=\"/static/img/common/call-phone.png\" alt=\"\">\n\t\t\t\t<view class=\"txt\">打电话</view>\n\t\t\t</view>\n\t\t\t<view class=\"flow\" @click=\"goChat()\">\n\t\t\t\t<img class=\"flowIcon\" src=\"/static/img/common/chat.png\" alt=\"\">\n\t\t\t\t<view class=\"txt\">直聊</view>\n\t\t\t</view>\n\t\t\t<view class=\"botBtn\" @click=\"commit()\">推荐入驻</view>\n\t\t\t<view class=\"line\"></view>\n\t\t</view>\n\t</view>\n</template>\n\n<script>\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tform: {\n\t\t\t\t\tcontactName: '',\n\t\t\t\t\tname: '',\n\t\t\t\t\tcontactPhone: '',\n\t\t\t\t\tdescription: '',\n\t\t\t\t},\n\t\t\t\trules: {\n\t\t\t\t\t// 字段名称\n\t\t\t\t\tcontactPhone: [{\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\tmessage: '请输入手机号',\n\t\t\t\t\t\ttrigger: ['change', 'blur'],\n\t\t\t\t\t}, {\n\t\t\t\t\t\t// 自定义验证函数,见上说明\n\t\t\t\t\t\tvalidator: (rule, value, callback) => {\n\t\t\t\t\t\t\t// 上面有说,返回true表示校验通过,返回false表示不通过\n\t\t\t\t\t\t\t// this.$u.test.mobile()就是返回true或者false的\n\t\t\t\t\t\t\treturn this.$u.test.mobile(value);\n\t\t\t\t\t\t},\n\t\t\t\t\t\tmessage: '手机号码不正确',\n\t\t\t\t\t\t// 触发器可以同时用blur和change\n\t\t\t\t\t\ttrigger: ['change', 'blur'],\n\t\t\t\t\t}]\n\t\t\t\t},\n\t\t\t\ttextholder: \"请描述您的需求内容,也可以拨打电话或在线联系我们的服务人员(选填)。\"\n\t\t\t}\n\t\t},\n\n\t\tonReady() {\n\t\t\tthis.$refs.uForm.setRules(this.rules);\n\t\t},\n\n\t\tmethods: {\n\t\t\tcallPhone() {\n\t\t\t\tuni.makePhoneCall({\n\t\t\t\t\tphoneNumber: this.vuex_customer_phone\n\t\t\t\t})\n\t\t\t},\n\n\t\t\tgoChat() {\n\t\t\t\twx.openCustomerServiceChat({\n\t\t\t\t\textInfo: {\n\t\t\t\t\t\turl: this.vuex_customer_chatUrl\n\t\t\t\t\t},\n\t\t\t\t\tcorpId: this.vuex_corpId,\n\t\t\t\t\tsuccess(res) {\n\t\t\t\t\t\tconsole.log(\"chat..\", res)\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t},\n\n\t\t\tcommit() {\n\t\t\t\tif (!this.form.contactName || !this.form.name || !this.form.contactPhone) {\n\t\t\t\t\tthis.showToast(\"请完善信息\")\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\tif (!this.$u.test.mobile(this.form.contactPhone)) {\n\t\t\t\t\tthis.showToast(\"手机号码错误\")\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\tthis.$u.api.AddSchoolApi(\n\t\t\t\t\tthis.form\n\t\t\t\t).then(data => {\n\t\t\t\t\tconsole.log(data)\n\t\t\t\t\tthis.showToast(\"推荐成功\")\n\t\t\t\t\tsetTimeout(() => uni.navigateBack(), 1000);\n\t\t\t\t})\n\t\t\t},\n\n\t\t\tshowToast(msg) {\n\t\t\t\tuni.showToast({\n\t\t\t\t\ttitle: msg,\n\t\t\t\t\ticon: \"none\"\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n</script>\n\n<style lang=\"scss\" scoped>\n\t.page {\n\t\theight: 100%;\n\t\tbackground-color: #fafafa;\n\t}\n\n\t.placeholder-style {\n\t\tfont-family: PingFangSC-Regular, PingFang SC;\n\t\tfont-weight: 400;\n\t\tcolor: #999;\n\t\tline-height: 38rpx;\n\t\tfont-size: 26rpx;\n\t}\n\n\t.btView {\n\t\tposition: fixed;\n\t\tbottom: 0;\n\t\twidth: 100%;\n\t\theight: 180rpx;\n\t\tbackground-color: #fff;\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\tpadding: 30rpx 0;\n\t\tz-index: 99;\n\t\n\t\t.flow {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\t    flex: 1;\n\t\t\t    align-items: center;\n\t\t\t\n\t\t\t.flowIcon {\n\t\t\t\twidth: 48rpx;\n\t\t\t\theight: 48rpx;\n\t\t\t\tmargin-bottom: 8rpx;\n\t\t\t}\n\t\t\t\n\t\t\t.txt {\n\t\t\t\tfont-size: 10px;\n\t\t\t\tfont-weight: 300;\n\t\t\t\tcolor: #121212;\n\t\t\t}\n\t\t}\n\t\t\n\t\t.botBtn {\n\t\t\theight: 44px;\n\t\t\tflex: 5;\n\t\t\tbackground: linear-gradient(331deg, #FF5E00 0%, #FF001A 100%);\n\t\t\tborder-radius: 4px;\n\t\t\tfont-size: 17px;\n\t\t\tfont-weight: 400;\n\t\t\tcolor: #FFFFFF;\n\t\t\ttext-align: center;\n\t\t\tline-height: 44px;\n\t\t\tmargin-right: 40rpx;\n\t\t}\n\t\t\n\t\t.line {\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\twidth: 100%;\n\t\t\theight: 1px;\n\t\t\tborder: 1px solid #F0F0F1;\n\t\t}\n\t}\n</style>\n","import mod from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./add-school.vue?vue&type=style&index=0&id=6c5b37f3&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./add-school.vue?vue&type=style&index=0&id=6c5b37f3&lang=scss&scoped=true&\""],"sourceRoot":""}