wangmingchuan 1 year ago
parent c437017819
commit c8897718e7
  1. 2
      dist/dev/.sourcemap/mp-weixin/common/main.js.map
  2. 2
      dist/dev/.sourcemap/mp-weixin/pages/lanhu_baobeizaixian/index.js.map
  3. 2
      dist/dev/.sourcemap/mp-weixin/pages/lanhu_bofangxiangqing/index.js.map
  4. 2
      dist/dev/.sourcemap/mp-weixin/pages/lanhu_daoruxuesheng/index.js.map
  5. 2
      dist/dev/.sourcemap/mp-weixin/pages/lanhu_denglu/index.js.map
  6. 2
      dist/dev/.sourcemap/mp-weixin/pages/lanhu_gerenzhongxin/index.js.map
  7. 2
      dist/dev/.sourcemap/mp-weixin/pages/lanhu_gerenziliao/index.js.map
  8. 2
      dist/dev/.sourcemap/mp-weixin/pages/lanhu_kunbangqinqinghao/index.js.map
  9. 2
      dist/dev/.sourcemap/mp-weixin/pages/lanhu_meiriyixue/index.js.map
  10. 2
      dist/dev/.sourcemap/mp-weixin/pages/lanhu_shouye/index.js.map
  11. 2
      dist/dev/.sourcemap/mp-weixin/pages/lanhu_tousuyujianyi/index.js.map
  12. 2
      dist/dev/.sourcemap/mp-weixin/pages/lanhu_xinwenzixun/index.js.map
  13. 2
      dist/dev/.sourcemap/mp-weixin/pages/lanhu_xinwenzixun_1/index.js.map
  14. 2
      dist/dev/.sourcemap/mp-weixin/pages/lanhu_zaixiankefu/index.js.map
  15. 2
      dist/dev/.sourcemap/mp-weixin/pages/lanhu_zhuce/index.js.map
  16. 106
      dist/dev/mp-weixin/pages/lanhu_daoruxuesheng/index.js
  17. 2
      dist/dev/mp-weixin/pages/lanhu_daoruxuesheng/index.wxml
  18. 47
      dist/dev/mp-weixin/pages/lanhu_gerenziliao/index.js
  19. 2
      dist/dev/mp-weixin/pages/lanhu_gerenziliao/index.wxml
  20. 66
      dist/dev/mp-weixin/pages/lanhu_kunbangqinqinghao/index.js
  21. 2
      dist/dev/mp-weixin/pages/lanhu_kunbangqinqinghao/index.wxml
  22. 43
      dist/dev/mp-weixin/pages/lanhu_shouye/index.js
  23. 2
      dist/dev/mp-weixin/pages/lanhu_shouye/index.wxml
  24. 2
      dist/dev/mp-weixin/pages/lanhu_shouye/index.wxss
  25. 213
      dist/dev/mp-weixin/pages/lanhu_zhuce/index.js
  26. 2
      dist/dev/mp-weixin/pages/lanhu_zhuce/index.wxml
  27. 23
      dist/dev/mp-weixin/pages/lanhu_zhuce/index.wxss
  28. 35
      dist/dev/mp-weixin/project.config.json
  29. 105
      src/pages/lanhu_daoruxuesheng/index.vue
  30. 39
      src/pages/lanhu_gerenziliao/index.vue
  31. 56
      src/pages/lanhu_kunbangqinqinghao/index.vue
  32. 2
      src/pages/lanhu_shouye/assets/style/index.rpx.css
  33. 59
      src/pages/lanhu_shouye/index.vue
  34. 22
      src/pages/lanhu_zhuce/assets/style/index.rpx.css
  35. 199
      src/pages/lanhu_zhuce/index.vue

@ -1 +1 @@
{"version":3,"sources":["uni-app:///src/main.js",null,"webpack:///./src/App.vue?b7b9","uni-app:///src/App.vue","webpack:///./src/App.vue?960a","webpack:///./src/App.vue?01e2"],"names":["Vue","config","productionTip","App","mpType","app","$mount"],"mappings":";;;;;;;;;;;AAAA;;AAAmB;;AACnB;;;;;;;;;;AAEAA,aAAIC,MAAJ,CAAWC,aAAX,GAA2B,KAA3B;AAEAC,aAAIC,MAAJ,GAAa,KAAb;AAEA,IAAMC,GAAG,GAAG,IAAIL,YAAJ,mBACPG,YADO,EAAZ;AAGA,UAAAE,GAAG,EAACC,MAAJ,G;;;;;;;;;;;;;;;;ACVA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACuD;AACL;AACa;;;AAG/D;AAC6H;AAC7H,gBAAgB,gJAAU;AAC1B,EAAE,yEAAM;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACe,gF;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAka,CAAgB,4dAAG,EAAC,C;;;;;;;;;;;;;;;;;eCCtb;AACA;AACA;AACA;AACA,GAJA;AAKA;AACA;AADA,GALA;AAQA;AACA;AACA,GAVA;AAWA;AACA;AACA;AAbA,C;;;;;;;;;;;;ACDA;AAAA;AAAA;AAAA;AAAymB,CAAgB,upBAAG,EAAC,C;;;;;;;;;;ACA7nB;AACA,OAAO,KAAU,EAAE,kBAKd","file":"common/main.js","sourcesContent":["import 'uni-pages';import Vue from 'vue'\r\nimport App from './App'\r\n\r\nVue.config.productionTip = false\r\n\r\nApp.mpType = 'app'\r\n\r\nconst app = new Vue({\r\n ...App\r\n})\r\napp.$mount()","var render, staticRenderFns, recyclableRender, components\nvar renderjs\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"App.vue\"\nexport default component.exports","import mod from \"-!../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!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../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!./App.vue?vue&type=script&lang=js&\"","<script>\r\n\texport default {\r\n\t\tonLaunch: function() {\r\n\t\t\tconsole.log('App Launch')\r\n\t\t\tthis.globalData.baseUrl = 'https://boanhe.com/api/';\r\n\t\t},\r\n\t\tglobalData: {\r\n\t\t\tbaseUrl: 'ss'\r\n\t\t},\r\n\t\tonShow: function() {\r\n\t\t\tconsole.log('App Show')\r\n\t\t},\r\n\t\tonHide: function() {\r\n\t\t\tconsole.log('App Hide')\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style>\r\n\t/*每个页面公共css */\r\n</style>","import mod from \"-!../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!./App.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../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!./App.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1708256705475\n var cssReload = require(\"D:/shipin_qianduan/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}
{"version":3,"sources":["uni-app:///src/main.js",null,"webpack:///./src/App.vue?b7b9","uni-app:///src/App.vue","webpack:///./src/App.vue?960a","webpack:///./src/App.vue?01e2"],"names":["Vue","config","productionTip","App","mpType","app","$mount"],"mappings":";;;;;;;;;;;AAAA;;AAAmB;;AACnB;;;;;;;;;;AAEAA,aAAIC,MAAJ,CAAWC,aAAX,GAA2B,KAA3B;AAEAC,aAAIC,MAAJ,GAAa,KAAb;AAEA,IAAMC,GAAG,GAAG,IAAIL,YAAJ,mBACPG,YADO,EAAZ;AAGA,UAAAE,GAAG,EAACC,MAAJ,G;;;;;;;;;;;;;;;;ACVA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACuD;AACL;AACa;;;AAG/D;AAC6H;AAC7H,gBAAgB,gJAAU;AAC1B,EAAE,yEAAM;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACe,gF;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAka,CAAgB,4dAAG,EAAC,C;;;;;;;;;;;;;;;;;eCCtb;AACA;AACA;AACA;AACA,GAJA;AAKA;AACA;AADA,GALA;AAQA;AACA;AACA,GAVA;AAWA;AACA;AACA;AAbA,C;;;;;;;;;;;;ACDA;AAAA;AAAA;AAAA;AAAymB,CAAgB,upBAAG,EAAC,C;;;;;;;;;;ACA7nB;AACA,OAAO,KAAU,EAAE,kBAKd","file":"common/main.js","sourcesContent":["import 'uni-pages';import Vue from 'vue'\r\nimport App from './App'\r\n\r\nVue.config.productionTip = false\r\n\r\nApp.mpType = 'app'\r\n\r\nconst app = new Vue({\r\n ...App\r\n})\r\napp.$mount()","var render, staticRenderFns, recyclableRender, components\nvar renderjs\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"App.vue\"\nexport default component.exports","import mod from \"-!../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!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../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!./App.vue?vue&type=script&lang=js&\"","<script>\r\n\texport default {\r\n\t\tonLaunch: function() {\r\n\t\t\tconsole.log('App Launch')\r\n\t\t\tthis.globalData.baseUrl = 'https://boanhe.com/api/';\r\n\t\t},\r\n\t\tglobalData: {\r\n\t\t\tbaseUrl: 'ss'\r\n\t\t},\r\n\t\tonShow: function() {\r\n\t\t\tconsole.log('App Show')\r\n\t\t},\r\n\t\tonHide: function() {\r\n\t\t\tconsole.log('App Hide')\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style>\r\n\t/*每个页面公共css */\r\n</style>","import mod from \"-!../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!./App.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../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!./App.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1708403838263\n var cssReload = require(\"D:/shipin_qianduan/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -179,54 +179,61 @@ exports.default = void 0;
var _default = {
data: function data() {
return {
constants: {}
constants: {},
lode: ''
};
},
methods: {
downloadFile: function downloadFile() {
// 要复制到剪贴板的文本
var textToCopy = 'https://boanhe.com/demo.xls'; // 调用 uni.setClipboardData 方法
uni.setClipboardData({
data: textToCopy,
success: function success() {
uni.showToast({
title: '复制下载地址成功',
icon: 'success',
duration: 2000
});
},
fail: function fail() {
uni.showToast({
title: '复制失败',
icon: 'none',
duration: 2000
});
}
}); // uni.downloadFile({
// url: 'https://boanhe.com/demo.xls', // 替换为你要下载的文件的URL地址
// success: (res) => {
// if (res.statusCode === 200) {
// // 下载成功后的处理逻辑
// console.log('下载成功', res.tempFilePath);
// // 可以将文件保存到本地或其他操作
// const filePath = res.tempFilePath;
// // 打开文件
// wx.openDocument({
// filePath: filePath,
// showMenu: true, // 是否显示菜单,默认为 true
// success: function(res) {
// console.log('打开文档成功', res);
// },
// fail: function(err) {
// console.log('打开文档失败', err);
// }
// });
// }
var textToCopy = 'https://boanhe.com/demo.xlsx'; // 调用 uni.setClipboardData 方法
// uni.setClipboardData({
// data: textToCopy,
// success: () => {
// uni.showToast({
// title: '复制下载地址成功',
// icon: 'success',
// duration: 2000
// });
// },
// fail: () => {
// uni.showToast({
// title: '复制失败',
// icon: 'none',
// duration: 2000
// });
// }
// })
// });
uni.downloadFile({
url: 'https://boanhe.com/demo.xlsx',
// 替换为你要下载的文件的URL地址
success: function success(res) {
if (res.statusCode === 200) {
// 下载成功后的处理逻辑
console.log('下载成功', res.tempFilePath); // 可以将文件保存到本地或其他操作
var filePath = res.tempFilePath; // 打开文件
wx.openDocument({
filePath: filePath,
showMenu: true,
// 是否显示菜单,默认为 true
success: function success(res) {
console.log('打开文档成功', res);
},
fail: function fail(err) {
console.log('打开文档失败', err);
}
});
}
}
});
},
chooseAndUploadFile: function chooseAndUploadFile() {
var that = this;
that.lode = 1;
if (!uni.getStorageSync('token')) {
uni.showToast({
title: '请登录',
@ -265,7 +272,23 @@ var _default = {
},
success: function success(uploadFileRes) {
console.log('上传成功:', uploadFileRes);
if (uploadFileRes.data != 2) {
uni.showToast({
title: '上传失败',
icon: 'none',
// 如果要纯文本,将值设为 'none'
duration: 2000 // 持续时间为 2 秒
});
} else {
uni.showToast({
title: '上传成功',
icon: 'none',
// 如果要纯文本,将值设为 'none'
duration: 2000 // 持续时间为 2 秒
});
}
},
fail: function fail(err) {
console.error('上传失败:', err);
@ -274,6 +297,7 @@ var _default = {
}
}
});
that.lode = '';
},
shangchuan: function shangchuan() {
uni.request({

@ -1 +1 @@
<view class="page flex-col"><view class="group_3 flex-col"><view class="group_4 flex-col"><text class="text_3">导入文件</text><view data-event-opts="{{[['tap',[['chooseAndUploadFile',['$event']]]]]}}" class="group_5 flex-row" bindtap="__e"><view class="image-text_1 flex-col justify-between"><image class="label_1" referrerpolicy="no-referrer" src="/static/lanhu_daoruxuesheng/FigmaDDSSlicePNG20c817f09765cb5f7b8e28328b753861.png"></image><view class="text-group_1 flex-row"><text class="text_4">上传Excel模版文件</text><text class="text_5">点击上传</text></view></view></view><view data-event-opts="{{[['tap',[['downloadFile',['$event']]]]]}}" class="image-text_2 flex-row justify-between" bindtap="__e"><image class="thumbnail_2" referrerpolicy="no-referrer" src="/static/lanhu_daoruxuesheng/FigmaDDSSlicePNG4987a1871936eebbc2f8ef1aa676b130.png"></image><text class="text-group_2" style="margin-top:5rpx;">下载模版文件 模版.xls</text></view></view><view data-event-opts="{{[['tap',[['shangchuan']]]]}}" class="text-wrapper_1 flex-col" bindtap="__e"><text class="text_6">确定</text></view></view></view>
<view class="page flex-col"><view class="group_3 flex-col"><view class="group_4 flex-col"><text class="text_3">导入文件</text><view data-event-opts="{{[['tap',[['chooseAndUploadFile',['$event']]]]]}}" class="group_5 flex-row" bindtap="__e"><view class="image-text_1 flex-col justify-between"><image class="label_1" referrerpolicy="no-referrer" src="/static/lanhu_daoruxuesheng/FigmaDDSSlicePNG20c817f09765cb5f7b8e28328b753861.png"></image><view class="text-group_1 flex-row"><text class="text_4">上传Excel模版文件</text><text class="text_5">点击上传</text></view></view></view><view data-event-opts="{{[['tap',[['downloadFile',['$event']]]]]}}" class="image-text_2 flex-row justify-between" bindtap="__e"><image class="thumbnail_2" referrerpolicy="no-referrer" src="/static/lanhu_daoruxuesheng/FigmaDDSSlicePNG4987a1871936eebbc2f8ef1aa676b130.png"></image><text class="text-group_2" style="margin-top:5rpx;">下载模版文件 模版.xls</text></view></view><block wx:if="{{lode}}"><view data-event-opts="{{[['tap',[['shangchuan']]]]}}" class="text-wrapper_1 flex-col" style="background-color:gray;" bindtap="__e"><text class="text_6">确定</text></view></block></view></view>

@ -51,7 +51,7 @@ __webpack_require__.r(__webpack_exports__);
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {
Object.defineProperty(exports, "__esModule", {
value: true
@ -113,9 +113,54 @@ var _default = {
return {
constants: {}
};
},
methods: {
zhuxiao: function zhuxiao() {
uni.request({
url: getApp().globalData.baseUrl + 'user_cancel',
// 接口地址
method: 'GET',
// 请求方法
header: {
'content-type': 'application/json',
// 默认值
'authori-zation': 'Bearer ' + uni.getStorageSync('token')
},
success: function success(res) {
if (res.data.status != 200) {
uni.showToast({
title: '注销失败',
icon: 'none',
// 如果要纯文本,将值设为 'none'
duration: 2000 // 持续时间为 2 秒
});
} else {
uni.showToast({
title: '注销成功',
icon: 'none',
// 如果要纯文本,将值设为 'none'
duration: 2000 // 持续时间为 2 秒
});
setTimeout(function () {
// 这里使用navigateTo或者其他页面跳转方法
uni.navigateTo({
url: '/pages/lanhu_denglu/index' // 替换成你要跳转的页面路径
});
}, 2000); // 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"]))
/***/ }),

@ -1 +1 @@
<view class="page flex-col" style="position:fixed;"><view class="group_3 flex-col"><view class="group_4 flex-col"><view class="group_5 flex-row"><text class="text_3">昵称</text><input class="text_4" style="width:300rpx;" placeholder="请输入昵称" data-event-opts="{{[['input',[['__set_model',['$0','nicheng','$event',[]],['user']]]]]}}" value="{{user.nicheng}}" bindinput="__e"/></view><view class="group_6 flex-row"><text class="text_5">真实姓名</text><input class="text_4" style="width:300rpx;" placeholder="请输入真实姓名" data-event-opts="{{[['input',[['__set_model',['$0','realname','$event',[]],['user']]]]]}}" value="{{user.realname}}" bindinput="__e"/></view><view class="group_7 flex-row"><text class="text_7">手机号</text><input class="text_4" style="width:300rpx;" placeholder="请输入手机号" data-event-opts="{{[['input',[['__set_model',['$0','realname','$event',[]],['user']]]]]}}" value="{{user.realname}}" bindinput="__e"/></view><view class="text-wrapper_1 flex-row justify-between"><text class="text_9">所属班级</text><text class="text_12">家长</text></view><view class="text-wrapper_1 flex-row justify-between"><text class="text_11">身份</text><text class="text_12">家长</text></view></view><view class="text-wrapper_21 flex-col"><text class="text_13">保存</text></view><view class="text-wrapper_2 flex-col"><text class="text_13">注销账号</text></view><view class="image-wrapper_1 flex-col"><image class="label_1" referrerpolicy="no-referrer" src="/static/lanhu_gerenziliao/FigmaDDSSlicePNG34a1eb8936c4a281a5ae7344dbcd15ac.png"></image></view></view></view>
<view class="page flex-col" style="position:fixed;"><view class="group_3 flex-col"><view class="group_4 flex-col"><view class="group_5 flex-row"><text class="text_3">昵称</text><input class="text_4" style="width:300rpx;" placeholder="请输入昵称" data-event-opts="{{[['input',[['__set_model',['$0','nicheng','$event',[]],['user']]]]]}}" value="{{user.nicheng}}" bindinput="__e"/></view><view class="group_6 flex-row"><text class="text_5">真实姓名</text><input class="text_4" style="width:300rpx;" placeholder="请输入真实姓名" data-event-opts="{{[['input',[['__set_model',['$0','realname','$event',[]],['user']]]]]}}" value="{{user.realname}}" bindinput="__e"/></view><view class="group_7 flex-row"><text class="text_7">手机号</text><input class="text_4" style="width:300rpx;" placeholder="请输入手机号" data-event-opts="{{[['input',[['__set_model',['$0','realname','$event',[]],['user']]]]]}}" value="{{user.realname}}" bindinput="__e"/></view><view class="text-wrapper_1 flex-row justify-between"><text class="text_9">所属班级</text><text class="text_12">家长</text></view><view class="text-wrapper_1 flex-row justify-between"><text class="text_11">身份</text><text class="text_12">家长</text></view></view><view class="text-wrapper_21 flex-col"><text class="text_13">保存</text></view><view data-event-opts="{{[['tap',[['zhuxiao']]]]}}" class="text-wrapper_2 flex-col" bindtap="__e"><text class="text_13">注销账号</text></view><view class="image-wrapper_1 flex-col"><image class="label_1" referrerpolicy="no-referrer" src="/static/lanhu_gerenziliao/FigmaDDSSlicePNG34a1eb8936c4a281a5ae7344dbcd15ac.png"></image></view></view></view>

@ -137,7 +137,7 @@ __webpack_require__.r(__webpack_exports__);
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {
Object.defineProperty(exports, "__esModule", {
value: true
@ -174,17 +174,77 @@ var _default = {
constants: {},
selectorRange: ['爷爷', '奶奶', '爸爸', '妈妈', '舅舅'],
// 下拉选择器的选项列表
selectorIndex: 0 // 当前选中的选项索引
selectorIndex: 0,
// 当前选中的选项索引
phone: ''
};
},
methods: {
onPickerChange: function onPickerChange(event) {
this.selectorIndex = event.detail.value;
},
tijiao: function tijiao() {
if (!this.phone) {
uni.showToast({
title: '请填写完整参数',
icon: 'none',
// 如果要纯文本,将值设为 'none'
duration: 2000 // 持续时间为 2 秒
});
return;
}
uni.request({
url: getApp().globalData.baseUrl + 'user/complaint_add',
// 接口地址
method: 'POST',
// 请求方法
header: {
'content-type': 'application/json',
// 默认值
'authori-zation': 'Bearer ' + uni.getStorageSync('token')
},
data: {
'type': 2,
'guanxi': this.selectorRange,
'phone': this.phone
},
success: function success(res) {
console.log(34);
if (res.data.status != 200) {
uni.showToast({
title: res.data.msg,
icon: 'none',
// 如果要纯文本,将值设为 'none'
duration: 2000 // 持续时间为 2 秒
});
} else {
uni.showToast({
title: '提交成功',
icon: 'none',
// 如果要纯文本,将值设为 'none'
duration: 2000 // 持续时间为 2 秒
});
setTimeout(function () {
// 这里使用navigateTo或者其他页面跳转方法
uni.switchTab({
url: '/pages/lanhu_gerenzhongxin/index' // 替换成你要跳转的页面路径
});
}, 1500); // 3000毫秒等于3秒
}
},
fail: function fail(err) {}
});
}
}
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ }),

@ -1 +1 @@
<view class="page flex-col" style="position:fixed;"><view class="group_4 flex-col"><view class="section_3 flex-col"><view class="block_1 flex-row justify-between"><text class="text_3">请选择与宝贝的关系</text><picker clasee="text_6" range="{{selectorRange}}" mode="selector" data-event-opts="{{[['change',[['onPickerChange',['$event']]]]]}}" bindchange="__e"><view class="text_6" style="color:darkgray;">{{''+selectorRange[selectorIndex]+''}}</view></picker></view><view class="text-wrapper_1 flex-row justify-between"><text class="text_5">联系方式</text><input class="text_6" placeholder="请输入手机号"/></view></view><view class="text-wrapper_2 flex-col" style="background-color:#FFDB58;color:black;"><text class="text_7">提交审核</text></view></view></view>
<view class="page flex-col" style="position:fixed;"><view class="group_4 flex-col"><view class="section_3 flex-col"><view class="block_1 flex-row justify-between"><text class="text_3">请选择与宝贝的关系</text><picker clasee="text_6" range="{{selectorRange}}" mode="selector" data-event-opts="{{[['change',[['onPickerChange',['$event']]]]]}}" bindchange="__e"><view class="text_6" style="color:darkgray;">{{''+selectorRange[selectorIndex]+''}}</view></picker></view><view class="text-wrapper_1 flex-row justify-between"><text class="text_5">联系方式</text><input class="text_6" placeholder="请输入手机号" type="number" data-event-opts="{{[['input',[['__set_model',['','phone','$event',[]]]]]]}}" value="{{phone}}" bindinput="__e"/></view></view><view data-event-opts="{{[['tap',[['tijiao']]]]}}" class="text-wrapper_2 flex-col" style="background-color:#FFDB58;color:black;" bindtap="__e"><text class="text_7" style="text-align:center;">提交</text></view></view></view>

@ -231,15 +231,33 @@ exports.default = void 0;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = {
data: function data() {
return {
constants: {},
newlist: {}
articlelist: {},
newlist: {},
imagelist: {}
};
},
onLoad: function onLoad(option) {
this.getData();
this.getimagelist();
},
methods: {
getData: function getData() {
@ -255,6 +273,7 @@ var _default = {
},
success: function success(res) {
_this.articlelist = res.data.data.cateInfo;
_this.newlist = res.data.data.newsList;
},
fail: function fail(err) {
@ -262,6 +281,28 @@ var _default = {
}
});
},
getimagelist: function getimagelist() {
var _this2 = this;
uni.request({
url: getApp().globalData.baseUrl + 'index',
// 接口地址
method: 'GET',
// 请求方法
header: {
'content-type': 'application/json' // 默认值
},
success: function success(res) {
console.log(444, res);
_this2.imagelist = res.data.data.bannerData;
},
fail: function fail(err) {
console.error(err); // 请求失败时处理错误
}
});
},
goimg: function goimg(url) {},
goarticle: function goarticle(id, tt) {
if (!tt) {
var tt = 1;

@ -1 +1 @@
<view class="page flex-col"><view class="box_1 flex-col" style="margin-top:300rpx;"><view class="group_1 flex-col"><view class="grid_1 flex-row"><view data-event-opts="{{[['tap',[['goarticle',[2]]]]]}}" class="image-text_1 flex-col justify-between" bindtap="__e"><image class="label_1" referrerpolicy="no-referrer" src="/static/lanhu_shouye/FigmaDDSSlicePNGc192e996ad23f8bd485cb03d3d942339.png"></image><text class="text-group_1">学校家委</text></view><view data-event-opts="{{[['tap',[['goarticle',[3]]]]]}}" class="image-text_2 flex-col justify-between" bindtap="__e"><image class="label_2" referrerpolicy="no-referrer" src="/static/lanhu_shouye/FigmaDDSSlicePNG375f2d1baaf1e05f3b00453597a0f1cf.png"></image><text class="text-group_2">教师团队</text></view><view data-event-opts="{{[['tap',[['goarticle',[4]]]]]}}" class="image-text_3 flex-col justify-between" bindtap="__e"><image class="label_3" referrerpolicy="no-referrer" src="/static/lanhu_shouye/FigmaDDSSlicePNG5cd83b5283c087f2a3822893cadf732e.png"></image><text class="text-group_3">老师打卡</text></view><view data-event-opts="{{[['tap',[['goarticle',[5]]]]]}}" class="image-text_4 flex-col justify-between" bindtap="__e"><view class="image-wrapper_1 flex-col"><image class="label_4" referrerpolicy="no-referrer" src="/static/lanhu_shouye/FigmaDDSSlicePNG749f2d7955fa095121161f6c7dcb1664.png"></image></view><text class="text-group_4">校园风采</text></view><view data-event-opts="{{[['tap',[['goarticle',[6]]]]]}}" class="image-text_5 flex-col justify-between" bindtap="__e"><image class="label_5" referrerpolicy="no-referrer" src="/static/lanhu_shouye/FigmaDDSSlicePNG56441d02b590d604ccf3fb13f48ba0d3.png"></image><text class="text-group_5">每日一学</text></view><view data-event-opts="{{[['tap',[['goarticle',[7]]]]]}}" class="image-text_6 flex-col justify-between" bindtap="__e"><image class="label_6" referrerpolicy="no-referrer" src="/static/lanhu_shouye/FigmaDDSSlicePNGcb964a12e217c77a1bc0b925b2dcab1b.png"></image><text class="text-group_6">营养菜谱</text></view><view data-event-opts="{{[['tap',[['goarticle',[8]]]]]}}" class="image-text_7 flex-col justify-between" bindtap="__e"><view class="group_2 flex-col"><view class="group_3 flex-col"></view></view><text class="text-group_7">智慧校车</text></view><view data-event-opts="{{[['tap',[['goarticle',[9]]]]]}}" class="image-text_8 flex-col justify-between" bindtap="__e"><view class="image-wrapper_2 flex-col"><image class="label_7" referrerpolicy="no-referrer" src="/static/lanhu_shouye/FigmaDDSSlicePNGaa3cf5882f066b114bc126958903fa9b.png"></image></view><text class="text-group_8">课程表</text></view></view></view><view class="group_4 flex-col" style="height:100%;"><view class="box_2 flex-row"><view class="group_5 flex-col"></view><text class="text_1">新闻资讯</text><text data-event-opts="{{[['tap',[['gomore']]]]}}" class="text_2" bindtap="__e">更多</text><image class="thumbnail_1" style="margin-top:9rpx;width:10rpx;height:15rpx;" referrerpolicy="no-referrer" src="/static/lanhu_shouye/FigmaDDSSlicePNG9035302e003d78b80d3162eefaf32d31.png" data-event-opts="{{[['tap',[['gomore']]]]}}" bindtap="__e"></image></view><block wx:for="{{newlist}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['goarticle',['$0',2],[[['newlist','',index,'id']]]]]]]}}" class="image-text_9 flex-row justify-between" bindtap="__e"><image class="image_1" referrerpolicy="no-referrer" src="{{item.image_input}}"></image><view class="text-group_9 flex-col justify-between"><text class="text_3">{{''+item.title+''}}</text><text class="text_4">{{item.add_time}}</text></view></view></block></view></view><view class="box_3 flex-col" style="height:300rpx;"><image class="image_5" style="top:50rpx;" referrerpolicy="no-referrer" src="/static/lanhu_shouye/FigmaDDSSlicePNGda75b715dab6db5af8959ddcf9bab698.png"></image></view></view>
<view class="page flex-col"><view class="box_1 flex-col" style="margin-top:300rpx;"><view class="group_1 flex-col"><view class="grid_1 flex-row"><block wx:for="{{articlelist}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['goarticle',['$0'],[[['articlelist','',index,'id']]]]]]]}}" class="image-text_1 flex-col justify-between" bindtap="__e"><image class="label_1" src="{{item.image}}"></image><text class="text-group_1">{{item.title}}</text></view></block></view></view><view class="group_4 flex-col" style="height:100%;"><view class="box_2 flex-row"><view class="group_5 flex-col"></view><text class="text_1">新闻资讯</text><text data-event-opts="{{[['tap',[['gomore']]]]}}" class="text_2" bindtap="__e">更多</text><image class="thumbnail_1" style="margin-top:9rpx;width:10rpx;height:15rpx;" referrerpolicy="no-referrer" src="/static/lanhu_shouye/FigmaDDSSlicePNG9035302e003d78b80d3162eefaf32d31.png" data-event-opts="{{[['tap',[['gomore']]]]}}" bindtap="__e"></image></view><block wx:for="{{newlist}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['goarticle',['$0',2],[[['newlist','',index,'id']]]]]]]}}" class="image-text_9 flex-row justify-between" bindtap="__e"><image class="image_1" referrerpolicy="no-referrer" src="{{item.image_input}}"></image><view class="text-group_9 flex-col justify-between"><text class="text_3">{{''+item.title+''}}</text><text class="text_4">{{item.add_time}}</text></view></view></block></view></view><view class="box_3 flex-col" style="height:300rpx;"></view><swiper class="image_5" style="top:50rpx;"><block wx:for="{{imagelist}}" wx:for-item="item" wx:for-index="index" wx:key="index"><swiper-item><image class="image_5" style="top:0;left:0;" src="{{item.img}}" data-event-opts="{{[['tap',[['goimg',['$0'],[[['imagelist','',index,'content']]]]]]]}}" bindtap="__e"></image></swiper-item></block></swiper></view>

@ -123,7 +123,7 @@ button:active {
margin: 78rpx 0 0 22rpx;
}
.grid_1 {
width: 604rpx;
width: 100%;
height: 292rpx;
-webkit-flex-wrap: wrap;
flex-wrap: wrap;

@ -104,6 +104,21 @@ 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 = []
@ -143,6 +158,48 @@ 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; }
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
@ -206,34 +263,163 @@ exports.default = void 0;
//
var _default = {
data: function data() {
return {
return _defineProperty({
constants: {},
shenfen: ['家长', '老师'],
// 下拉选择器的选项列表
shenfen1: 0 // 当前选中的选项索引
};
shenfen1: 0,
// 当前选中的选项索引
schoollist: ['请选择学校'],
schoollist1: 0,
classlist: ['请选择学校'],
classlist1: 0,
yanzheng: 1,
student_name: '',
captcha: '',
school_name: '',
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;
},
denglu: function denglu() {
onPickerChange2: function onPickerChange2(event) {
var _this = this;
this.schoollist1 = event.detail.value;
uni.request({
url: getApp().globalData.baseUrl + 'login',
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: 2000 // 持续时间为 2 秒
});
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: 2000 // 持续时间为 2 秒
});
} else {
uni.showToast({
title: '获取成功',
icon: 'none',
// 如果要纯文本,将值设为 'none'
duration: 2000 // 持续时间为 2 秒
});
_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;
_this3.classlist = res.data.data.class;
},
fail: function fail(err) {
console.error(err); // 请求失败时处理错误
}
});
},
zhuce: function zhuce() {
if (this.shenfen1 == 0) {
this.type = 'parents';
} else {
this.type = 'teacher';
}
uni.request({
url: getApp().globalData.baseUrl + 'bstRegister',
// 接口地址
method: 'POST',
// 请求方法
data: {
'account': this.account,
'password': this.password
'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.status != 200) {
if (res.data.status != 410013) {
uni.showToast({
title: res.data.msg,
icon: 'none',
@ -242,9 +428,10 @@ var _default = {
});
} else {
console.log(55, res);
uni.setStorageSync('token', res.data.data.token);
uni.showToast({
title: '登录成功',
title: '注册成功',
icon: 'none',
// 如果要纯文本,将值设为 'none'
duration: 2000 // 持续时间为 2 秒
@ -263,12 +450,6 @@ var _default = {
console.error(err); // 请求失败时处理错误
}
});
},
zhuce: function zhuce() {
uni.navigateTo({
url: '/pages/lanhu_zhuce/index' // 需要跳转到的页面路径
});
}
}
};

@ -1 +1 @@
<view class="page flex-col" style="position:fixed;"><view class="section_1 flex-col" style="height:auto;"><view style="margin-top:25%;font-size:40rpx;font-weight:900;margin-left:10%;margin-bottom:40rpx;">家长注册</view></view><view class="flex-col"><view class="box_2 flex-col"><view class="image-text_1 flex-row " style="margin-top:50rpx;border-bottom:1px solid darkgray;"><text class="label_1">身份</text><picker range="{{shenfen}}" mode="selector" data-event-opts="{{[['change',[['onPickerChange1',['$event']]]]]}}" bindchange="__e"><view class="picker">{{''+shenfen[shenfen1]+''}}</view></picker></view><view class="image-text_1 flex-row " style="margin-top:50rpx;border-bottom:1px solid darkgray;"><text class="label_1">学校</text><picker range="{{selectorRange}}" mode="selector" data-event-opts="{{[['change',[['onPickerChange2',['$event']]]]]}}" bindchange="__e"><view class="picker">{{''+selectorRange[selectorIndex]+''}}</view></picker></view><view class="image-text_1 flex-row " style="margin-top:50rpx;border-bottom:1px solid darkgray;"><text class="label_1">班级</text><picker range="{{selectorRange}}" mode="selector" data-event-opts="{{[['change',[['onPickerChange3',['$event']]]]]}}" bindchange="__e"><view class="picker">{{''+selectorRange[selectorIndex]+''}}</view></picker></view><view class="image-text_1 flex-row " style="margin-top:50rpx;border-bottom:1px solid darkgray;"><text class="label_1">宝贝姓名</text><input class="text-group_1" style="padding-left:160rpx;width:100%;" placeholder="请输入宝贝姓名" data-event-opts="{{[['input',[['__set_model',['','password','$event',[]]]]]]}}" value="{{password}}" bindinput="__e"/></view><view class="box_4 flex-row justify-between"><radio class=" " style="margin-top:-15rpx;"></radio><view class="text-wrapper_2"><text class="text_4">接受</text><text class="text_5">用户协议</text><text class="text_6">及</text><text class="text_7">隐私政策</text></view></view><view class="text-wrapper_3 flex-col"><text data-event-opts="{{[['tap',[['denglu']]]]}}" class="text_8" bindtap="__e">立即注册</text></view></view></view></view>
<view class="page flex-col" style="position:fixed;"><view class="section_1 flex-col" style="height:auto;"><view style="margin-top:25%;font-size:40rpx;font-weight:900;margin-left:10%;margin-bottom:40rpx;">家长注册</view></view><view class="flex-col"><view class="box_2 flex-col"><view class="image-text_1 flex-row " style="margin-top:20rpx;border-bottom:1px solid darkgray;"><text class="label_1">身份</text><picker range="{{shenfen}}" mode="selector" data-event-opts="{{[['change',[['onPickerChange1',['$event']]]]]}}" bindchange="__e"><view class="picker">{{''+shenfen[shenfen1]+''}}</view></picker></view><view class="image-text_1 flex-row zhuce"><text class="label_1">学校</text><picker range="{{$root.g0}}" mode="selector" data-event-opts="{{[['change',[['onPickerChange2',['$event']]]]]}}" bindchange="__e"><view class="picker">{{''+schoollist[schoollist1].school_name+''}}</view></picker></view><view class="image-text_1 flex-row zhuce"><text class="label_1">班级</text><picker range="{{$root.g1}}" mode="selector" data-event-opts="{{[['change',[['onPickerChange3',['$event']]]]]}}" bindchange="__e"><view class="picker">{{''+classlist[classlist1].class_name+''}}</view></picker></view><block wx:if="{{shenfen1==0}}"><view class="image-text_1 flex-row zhuce"><text class="label_1">宝贝姓名</text><input class="text-group_1" style="padding-left:160rpx;width:100%;text-align:right;" placeholder="请输入宝贝姓名" data-event-opts="{{[['input',[['__set_model',['','student_name','$event',[]]]]]]}}" value="{{student_name}}" bindinput="__e"/></view></block><view class="image-text_1 flex-row zhuce"><text class="label_1">姓名</text><input class="text-group_1" style="padding-left:160rpx;width:100%;text-align:right;" placeholder="请输入姓名" data-event-opts="{{[['input',[['__set_model',['','real_name','$event',[]]]]]]}}" value="{{real_name}}" bindinput="__e"/></view><block wx:if="{{shenfen1==0}}"><view class="image-text_1 flex-row zhuce"><text class="label_1" style="width:30%;">手机号</text><input class="text-group_1" style="padding-left:100rpx;width:50%;text-align:right;" placeholder="请输入手机号" type="number" data-event-opts="{{[['input',[['__set_model',['','phone','$event',[]]]]]]}}" value="{{phone}}" bindinput="__e"/><block wx:if="{{yanzheng==1}}"><view class="text-wrapper_3 flex-col" style="width:25%;height:50rpx;margin-top:0;margin-left:10rpx;"><text data-event-opts="{{[['tap',[['yanzhengma']]]]}}" class="text_8" style="text-align:center;width:150rpx;height:50rpx;margin:0;color:white;font-size:30rpx;" bindtap="__e">获取验证</text></view></block><block wx:else><view class="text-wrapper_3 flex-col" style="width:25%;height:50rpx;margin-top:0;margin-left:10rpx;background-color:grey;"><text class="text_8" style="text-align:center;width:150rpx;height:50rpx;margin:0;color:white;font-size:30rpx;">获取验证</text></view></block></view></block><block wx:else><view class="image-text_1 flex-row zhuce"><text class="label_1">手机号</text><input class="text-group_1" style="padding-left:160rpx;width:100%;text-align:right;" placeholder="请输入手机号" type="number" data-event-opts="{{[['input',[['__set_model',['','phone','$event',[]]]]]]}}" value="{{phone}}" bindinput="__e"/></view></block><block wx:if="{{shenfen1==0}}"><view class="image-text_1 flex-row zhuce"><text class="label_1">验证码</text><input class="text-group_1" style="padding-left:160rpx;width:100%;text-align:right;" placeholder="请输入验证码" type="number" data-event-opts="{{[['input',[['__set_model',['','captcha','$event',[]]]]]]}}" value="{{captcha}}" bindinput="__e"/></view></block><view class="box_4 flex-row justify-between"><radio class=" " style="margin-top:-15rpx;"></radio><view class="text-wrapper_2"><text class="text_4">接受</text><text class="text_5">用户协议</text><text class="text_6">及</text><text class="text_7">隐私政策</text></view></view><view class="text-wrapper_3 flex-col"><text data-event-opts="{{[['tap',[['zhuce']]]]}}" class="text_8" bindtap="__e">立即注册</text></view></view></view></view>

@ -184,13 +184,28 @@ button:active {
height: 80rpx;
margin-left: 10%;
}
input[type="number"]::-webkit-input-placeholder {
/* Firefox, Chrome, Opera */
text-align: left;
}
input[type="number"]::placeholder {
/* Firefox, Chrome, Opera */
text-align: left;
}
.label_1 {
width: 250rpx;
height: 50rpx;
font-weight: 900;
}
.picker{
color:darkgray;
.zhuce {
padding-top: 10rpx;
border-bottom: 1px solid darkgray;
color: darkgray;
}
.picker {
color: darkgray;
padding-left: 180rpx;
}
.text-group_1 {
@ -327,7 +342,7 @@ button:active {
border-radius: 36px;
height: 98rpx;
width: 598rpx;
margin: 90rpx 0 0 64rpx;
margin: 20rpx 0 0 64rpx;
}
.text_8 {
width: 128rpx;

@ -1,31 +1,24 @@
{
"description": "项目配置文件。",
"packOptions": {
"ignore": []
"ignore": [],
"include": []
},
"setting": {
"urlCheck": false
"urlCheck": false,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
}
},
"compileType": "miniprogram",
"libVersion": "",
"appid": "touristappid",
"libVersion": "2.25.3",
"appid": "wxc588e30e030e5313",
"projectname": "shipin_qianduan",
"condition": {
"search": {
"current": -1,
"list": []
},
"conversation": {
"current": -1,
"list": []
},
"game": {
"current": -1,
"list": []
},
"miniprogram": {
"current": -1,
"list": []
}
"condition": {},
"editorSetting": {
"tabIndent": "insertSpaces",
"tabSize": 2
}
}

@ -25,7 +25,7 @@
</view>
</view>
<view class="text-wrapper_1 flex-col" @click="shangchuan()">
<view class="text-wrapper_1 flex-col" @click="shangchuan()" v-if="lode" style="background-color: gray;">
<text class="text_6">确定</text>
</view>
</view>
@ -35,57 +35,60 @@
export default {
data() {
return {
constants: {}
constants: {},
lode: ''
};
},
methods: {
downloadFile() {
//
const textToCopy = 'https://boanhe.com/demo.xls';
const textToCopy = 'https://boanhe.com/demo.xlsx';
// uni.setClipboardData
uni.setClipboardData({
data: textToCopy,
success: () => {
uni.showToast({
title: '复制下载地址成功',
icon: 'success',
duration: 2000
});
},
fail: () => {
uni.showToast({
title: '复制失败',
icon: 'none',
duration: 2000
});
}
});
// uni.downloadFile({
// url: 'https://boanhe.com/demo.xls', // URL
// success: (res) => {
// if (res.statusCode === 200) {
// //
// console.log('', res.tempFilePath);
// //
// const filePath = res.tempFilePath;
// //
// wx.openDocument({
// filePath: filePath,
// showMenu: true, // true
// success: function(res) {
// console.log('', res);
// },
// fail: function(err) {
// console.log('', err);
// }
// });
// }
// uni.setClipboardData({
// data: textToCopy,
// success: () => {
// uni.showToast({
// title: '',
// icon: 'success',
// duration: 2000
// });
// },
// fail: () => {
// uni.showToast({
// title: '',
// icon: 'none',
// duration: 2000
// });
// }
// })
// });
uni.downloadFile({
url: 'https://boanhe.com/demo.xlsx', // URL
success: (res) => {
if (res.statusCode === 200) {
//
console.log('下载成功', res.tempFilePath);
//
const filePath = res.tempFilePath;
//
wx.openDocument({
filePath: filePath,
showMenu: true, // true
success: function(res) {
console.log('打开文档成功', res);
},
fail: function(err) {
console.log('打开文档失败', err);
}
});
}
}
})
},
chooseAndUploadFile() {
var that = this
that.lode = 1
if (!uni.getStorageSync('token')) {
uni.showToast({
title: '请登录',
@ -115,7 +118,21 @@
'type': 1 //
},
success: (uploadFileRes) => {
console.log('上传成功:', uploadFileRes);
if (uploadFileRes.data != 2) {
uni.showToast({
title: '上传失败',
icon: 'none', // 'none'
duration: 2000 // 2
});
} else {
uni.showToast({
title: '上传成功',
icon: 'none', // 'none'
duration: 2000 // 2
});
}
},
fail: (err) => {
console.error('上传失败:', err);
@ -124,7 +141,7 @@
}
}
});
that.lode = ''
},
shangchuan() {

@ -39,7 +39,7 @@
<text class="text_13">保存</text>
</view>
<view class="text-wrapper_2 flex-col">
<view class="text-wrapper_2 flex-col" @click="zhuxiao()">
<text class="text_13">注销账号</text>
</view>
<view class="image-wrapper_1 flex-col">
@ -56,7 +56,42 @@
constants: {}
};
},
methods: {
zhuxiao() {
uni.request({
url: getApp().globalData.baseUrl + 'user_cancel', //
method: 'GET', //
header: {
'content-type': 'application/json', //
'authori-zation': 'Bearer ' + uni.getStorageSync('token')
},
success: (res) => {
if (res.data.status != 200) {
uni.showToast({
title: '注销失败',
icon: 'none', // 'none'
duration: 2000 // 2
});
} else {
uni.showToast({
title: '注销成功',
icon: 'none', // 'none'
duration: 2000 // 2
});
setTimeout(() => {
// 使navigateTo
uni.navigateTo({
url: '/pages/lanhu_denglu/index' //
});
}, 2000); // 30003
}
},
fail: (err) => {
console.error(err); //
}
});
},
}
};
</script>
<style lang='css'>

@ -14,11 +14,11 @@
</view>
<view class="text-wrapper_1 flex-row justify-between">
<text class="text_5">联系方式</text>
<input class="text_6" placeholder="请输入手机号"></input>
<input class="text_6" placeholder="请输入手机号" v-model="phone" type="number"></input>
</view>
</view>
<view class="text-wrapper_2 flex-col" style="background-color: #FFDB58;color: black;">
<text class="text_7">提交审核</text>
<view class="text-wrapper_2 flex-col" style="background-color: #FFDB58;color: black;" @click="tijiao()">
<text class="text_7" style="text-align: center;">提交</text>
</view>
</view>
</view>
@ -30,12 +30,62 @@
constants: {},
selectorRange: ['爷爷', '奶奶', '爸爸', '妈妈', '舅舅'], //
selectorIndex: 0, //
phone: ''
};
},
methods: {
onPickerChange(event) {
this.selectorIndex = event.detail.value;
},
tijiao() {
if (!this.phone) {
uni.showToast({
title: '请填写完整参数',
icon: 'none', // 'none'
duration: 2000 // 2
});
return
}
uni.request({
url: getApp().globalData.baseUrl + 'user/complaint_add', //
method: 'POST', //
header: {
'content-type': 'application/json', //
'authori-zation': 'Bearer ' + uni.getStorageSync('token')
},
data: {
'type': 2,
'guanxi': this.selectorRange,
'phone': this.phone
},
success: (res) => {
console.log(34)
if (res.data.status != 200) {
uni.showToast({
title: res.data.msg,
icon: 'none', // 'none'
duration: 2000 // 2
});
} else {
uni.showToast({
title: '提交成功',
icon: 'none', // 'none'
duration: 2000 // 2
});
setTimeout(() => {
// 使navigateTo
uni.switchTab({
url: '/pages/lanhu_gerenzhongxin/index' //
});
}, 1500); // 30003
}
},
fail: (err) => {
}
});
},
}
};
</script>

@ -23,7 +23,7 @@
}
.grid_1 {
width: 604rpx;
width: 100%;
height: 292rpx;
flex-wrap: wrap;
margin: 42rpx 0 0 48rpx;

@ -3,12 +3,19 @@
<view class="box_1 flex-col" style="margin-top: 300rpx;">
<view class="group_1 flex-col">
<view class="grid_1 flex-row">
<view class="image-text_1 flex-col justify-between" @click="goarticle(2)">
<view v-for="(item, index) in articlelist" :key="index"
class="image-text_1 flex-col justify-between" @click="goarticle(item.id)">
<image class="label_1" :src="item.image" />
<text class="text-group_1">{{item.title}}</text>
</view>
<!-- <view class="image-text_1 flex-col justify-between" @click="goarticle(2)">
<image class="label_1" referrerpolicy="no-referrer"
src="/static/lanhu_shouye/FigmaDDSSlicePNGc192e996ad23f8bd485cb03d3d942339.png" />
<text class="text-group_1">学校家委</text>
</view>
<view class="image-text_2 flex-col justify-between" @click="goarticle(3)">
</view> -->
<!-- <view class="image-text_2 flex-col justify-between" @click="goarticle(3)">
<image class="label_2" referrerpolicy="no-referrer"
src="/static/lanhu_shouye/FigmaDDSSlicePNG375f2d1baaf1e05f3b00453597a0f1cf.png" />
<text class="text-group_2">教师团队</text>
@ -47,7 +54,7 @@
src="/static/lanhu_shouye/FigmaDDSSlicePNGaa3cf5882f066b114bc126958903fa9b.png" />
</view>
<text class="text-group_8">课程表</text>
</view>
</view> -->
</view>
</view>
<view class="group_4 flex-col" style="height: 100%;">
@ -76,25 +83,36 @@
</view>
<view class="box_3 flex-col" style="height: 300rpx;">
<image class="image_5" referrerpolicy="no-referrer" style="top:50rpx"
src="/static/lanhu_shouye/FigmaDDSSlicePNGda75b715dab6db5af8959ddcf9bab698.png" />
</view>
<swiper class="image_5" style="top:50rpx">
<swiper-item v-for="(item, index) in imagelist" :key="index">
<image class="image_5" style="top: 0;left: 0;" :src="item.img" @click="goimg(item.content)"></image>
</swiper-item>
</swiper>
</view>
</template>
<script>
export default {
data() {
return {
constants: {},
newlist: {}
articlelist: {},
newlist: {},
imagelist: {}
};
},
onLoad(option) {
this.getData()
this.getimagelist()
},
methods: {
getData() {
uni.request({
url: getApp().globalData.baseUrl + 'article/category/list', //
method: 'GET', //
@ -102,7 +120,7 @@
'content-type': 'application/json' //
},
success: (res) => {
this.articlelist = res.data.data.cateInfo
this.newlist = res.data.data.newsList
},
@ -110,13 +128,33 @@
console.error(err); //
}
});
},
getimagelist() {
uni.request({
url: getApp().globalData.baseUrl + 'index', //
method: 'GET', //
header: {
'content-type': 'application/json' //
},
success: (res) => {
console.log(444, res)
this.imagelist = res.data.data.bannerData
},
fail: (err) => {
console.error(err); //
}
});
},
goimg(url) {
},
goarticle(id, tt) {
if (!tt) {
var tt = 1
}
if (id == 6) {
uni.navigateTo({
url: '/pages/lanhu_meiriyixue/index'
});
@ -128,7 +166,6 @@
},
gomore() {
uni.navigateTo({
url: '/pages/lanhu_xinwenzixun/index' //
});

@ -92,14 +92,28 @@
margin-left: 10%;
}
input[type="number"]::placeholder {
/* Firefox, Chrome, Opera */
text-align: left;
}
.label_1 {
width: 250rpx;
height: 50rpx;
font-weight: 900;
}
.zhuce {
padding-top: 10rpx;
border-bottom: 1px solid darkgray;
color: darkgray;
}
.picker{
color:darkgray;
.picker {
color: darkgray;
padding-left: 180rpx;
}
@ -252,7 +266,7 @@
border-radius: 36px;
height: 98rpx;
width: 598rpx;
margin: 90rpx 0 0 64rpx;
margin: 20rpx 0 0 64rpx;
}
.text_8 {

@ -7,7 +7,7 @@
<view class="flex-col" style="">
<view class="box_2 flex-col" style="">
<view class="image-text_1 flex-row " style="margin-top: 50rpx;border-bottom: 1px solid darkgray;">
<view class="image-text_1 flex-row " style="margin-top: 20rpx;border-bottom: 1px solid darkgray;">
<text class="label_1">身份</text>
<picker :range="shenfen" mode="selector" @change="onPickerChange1">
<view class="picker">
@ -16,32 +16,71 @@
</picker>
</view>
<view class="image-text_1 flex-row " style="margin-top: 50rpx;border-bottom: 1px solid darkgray;">
<view class="image-text_1 flex-row zhuce">
<text class="label_1">学校</text>
<picker :range="selectorRange" mode="selector" @change="onPickerChange2">
<picker :range="schoollist.map(item => item.school_name)" mode="selector" @change="onPickerChange2">
<view class="picker">
{{selectorRange[selectorIndex]}}
{{schoollist[schoollist1].school_name}}
</view>
</picker>
</view>
<view class="image-text_1 flex-row " style="margin-top: 50rpx;border-bottom: 1px solid darkgray;">
<view class="image-text_1 flex-row zhuce" style="">
<text class="label_1">班级</text>
<picker :range="selectorRange" mode="selector" @change="onPickerChange3">
<picker :range="classlist.map(item => item.class_name)" mode="selector" @change="onPickerChange3">
<view class="picker">
{{selectorRange[selectorIndex]}}
{{classlist[classlist1].class_name}}
</view>
</picker>
</view>
<view class="image-text_1 flex-row " style="margin-top:50rpx;border-bottom: 1px solid darkgray;">
<view class="image-text_1 flex-row zhuce" v-if="shenfen1 == 0">
<text class="label_1">宝贝姓名</text>
<input class="text-group_1" v-model="password" placeholder="请输入宝贝姓名"
style="padding-left: 160rpx;width:100%">
<input class="text-group_1" v-model="student_name" placeholder="请输入宝贝姓名"
style="padding-left: 160rpx;width:100%;text-align: right;">
</view>
<view class="image-text_1 flex-row zhuce" >
<text class="label_1">姓名</text>
<input class="text-group_1" v-model="real_name" placeholder="请输入姓名"
style="padding-left: 160rpx;width:100%;text-align: right;">
</view>
<view class="image-text_1 flex-row zhuce" v-if="shenfen1 == 0">
<text class="label_1" style="width: 30%;">手机号</text>
<input class="text-group_1" v-model="phone" placeholder="请输入手机号" type="number"
style="padding-left: 100rpx;width:50%;text-align: right;">
<view class="text-wrapper_3 flex-col" v-if="yanzheng == 1"
style="width: 25%;height: 50rpx;margin-top:0;margin-left: 10rpx;">
<text class="text_8" @click="yanzhengma()"
style="text-align: center;width:150rpx;height: 50rpx;margin: 0;color: white;font-size: 30rpx;">获取验证</text>
</view>
<view class="text-wrapper_3 flex-col" v-else
style="width: 25%;height: 50rpx;margin-top:0;margin-left: 10rpx;background-color: grey;">
<text class="text_8"
style="text-align: center;width:150rpx;height: 50rpx;margin: 0;color: white;font-size: 30rpx;">获取验证</text>
</view>
</view>
<view class="image-text_1 flex-row zhuce" v-else>
<text class="label_1">手机号</text>
<input class="text-group_1" v-model="phone" placeholder="请输入手机号" type="number"
style="padding-left: 160rpx;width:100%;text-align: right;">
</view>
<view class="image-text_1 flex-row zhuce" v-if="shenfen1 == 0">
<text class="label_1">验证码</text>
<input class="text-group_1" v-model="captcha" placeholder="请输入验证码" type="number"
style="padding-left: 160rpx;width:100%;text-align: right;">
</view>
<view class="box_4 flex-row justify-between">
<radio class=" " style="margin-top: -15rpx;"></radio>
<view class="text-wrapper_2">
@ -52,7 +91,7 @@
</view>
</view>
<view class="text-wrapper_3 flex-col">
<text class="text_8" @click="denglu()">立即注册</text>
<text class="text_8" @click="zhuce()">立即注册</text>
</view>
</view>
@ -64,27 +103,76 @@
data() {
return {
constants: {},
shenfen: ['家长', '老师'], //
shenfen1: 0, //
schoollist: ['请选择学校'],
schoollist1: 0,
classlist: ['请选择学校'],
classlist1: 0,
yanzheng:1,
student_name: '',
captcha: '',
school_name: '',
class_id: '',
phone: '',
teacher_name: '',
type: '',
real_name: '',
schoollist: {}
};
},
onLoad(option) {
this.getData()
},
methods: {
onPickerChange1(event) {
this.shenfen1 = event.detail.value;
this.shenfen1 = event.detail.value;
},
denglu() {
onPickerChange2(event) {
this.schoollist1 = event.detail.value;
uni.request({
url: getApp().globalData.baseUrl + 'login', //
method: 'POST', //
url: getApp().globalData.baseUrl + 'article/category/list', //
method: 'GET', //
header: {
'content-type': 'application/json' //
},
data: {
'account': this.account,
'password': this.password
'type': 'class',
'school_id': this.schoollist[this.schoollist1].id
},
success: (res) => {
this.classlist = res.data.data.class
},
fail: (err) => {
console.error(err); //
}
});
},
onPickerChange3(event) {
this.classlist1 = event.detail.value;
},
yanzhengma() {
if(!this.phone){
uni.showToast({
title:'请输入手机号',
icon: 'none', // 'none'
duration: 2000 // 2
});
return
}
uni.request({
url: getApp().globalData.baseUrl + 'sendSmsCode', //
method: 'POST', //
header: {
'content-type': 'application/json' //
},
data: {
'phone': this.phone
},
success: (res) => {
if (res.data.status != 200) {
uni.showToast({
@ -93,10 +181,74 @@
duration: 2000 // 2
});
} else {
uni.showToast({
title: '获取成功',
icon: 'none', // 'none'
duration: 2000 // 2
});
this.yanzheng = 2
}
},
fail: (err) => {
console.error(err); //
}
});
},
getData() {
uni.request({
url: getApp().globalData.baseUrl + 'article/category/list', //
method: 'GET', //
header: {
'content-type': 'application/json' //
},
success: (res) => {
this.schoollist = res.data.data.school
this.classlist = res.data.data.class
},
fail: (err) => {
console.error(err); //
}
});
},
zhuce() {
if (this.shenfen1 == 0) {
this.type = 'parents'
} else {
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: (res) => {
if (res.data.status != 410013) {
uni.showToast({
title: res.data.msg,
icon: 'none', // 'none'
duration: 2000 // 2
});
} else {
console.log(55, res)
uni.setStorageSync('token', res.data.data.token)
uni.showToast({
title: '登录成功',
title: '注册成功',
icon: 'none', // 'none'
duration: 2000 // 2
});
@ -113,11 +265,6 @@
console.error(err); //
}
});
},
zhuce() {
uni.navigateTo({
url: '/pages/lanhu_zhuce/index' //
});
}
}
};

Loading…
Cancel
Save