Browse Source

初始化

master
parent
commit
ca463e1fc8
  1. 16
      .gitignore
  2. 2
      .idea/modules.xml
  3. 12
      .idea/ruoyi-miniapp.iml
  4. BIN
      .image/Java监控.jpg
  5. BIN
      .image/MySQL.jpg
  6. BIN
      .image/OA请假-列表.jpg
  7. BIN
      .image/OA请假-发起.jpg
  8. BIN
      .image/OA请假-详情.jpg
  9. BIN
      .image/Redis.jpg
  10. BIN
      .image/admin-uniapp/01.png
  11. BIN
      .image/admin-uniapp/02.png
  12. BIN
      .image/admin-uniapp/03.png
  13. BIN
      .image/admin-uniapp/04.png
  14. BIN
      .image/admin-uniapp/05.png
  15. BIN
      .image/admin-uniapp/06.png
  16. BIN
      .image/admin-uniapp/07.png
  17. BIN
      .image/admin-uniapp/08.png
  18. BIN
      .image/admin-uniapp/09.png
  19. BIN
      .image/common/mall-feature.png
  20. BIN
      .image/common/mall-preview.png
  21. BIN
      .image/common/project-vs.png
  22. BIN
      .image/common/ruoyi-vue-pro-architecture.png
  23. BIN
      .image/common/ruoyi-vue-pro-biz.png
  24. BIN
      .image/common/yudao-cloud-architecture.png
  25. BIN
      .image/common/yudao-roadmap.png
  26. BIN
      .image/个人中心.jpg
  27. BIN
      .image/代码生成.jpg
  28. BIN
      .image/令牌管理.jpg
  29. BIN
      .image/任务列表-审批.jpg
  30. BIN
      .image/任务列表-已办.jpg
  31. BIN
      .image/任务列表-待办.jpg
  32. BIN
      .image/任务日志.jpg
  33. BIN
      .image/商户信息.jpg
  34. BIN
      .image/在线用户.jpg
  35. BIN
      .image/大屏设计器-列表.jpg
  36. BIN
      .image/大屏设计器-编辑.jpg
  37. BIN
      .image/大屏设计器-预览.jpg
  38. BIN
      .image/字典数据.jpg
  39. BIN
      .image/字典类型.jpg
  40. BIN
      .image/定时任务.jpg
  41. BIN
      .image/岗位管理.jpg
  42. BIN
      .image/应用信息-列表.jpg
  43. BIN
      .image/应用信息-编辑.jpg
  44. BIN
      .image/应用管理.jpg
  45. BIN
      .image/我的流程-列表.jpg
  46. BIN
      .image/我的流程-发起.jpg
  47. BIN
      .image/我的流程-详情.jpg
  48. BIN
      .image/报表设计器-图形报表.jpg
  49. BIN
      .image/报表设计器-打印设计.jpg
  50. BIN
      .image/报表设计器-数据报表.jpg
  51. BIN
      .image/操作日志.jpg
  52. BIN
      .image/支付订单.jpg
  53. BIN
      .image/敏感词.jpg
  54. BIN
      .image/数据库文档.jpg
  55. BIN
      .image/文件管理.jpg
  56. BIN
      .image/文件管理2.jpg
  57. BIN
      .image/文件配置.jpg
  58. BIN
      .image/日志中心.jpg
  59. BIN
      .image/流程模型-列表.jpg
  60. BIN
      .image/流程模型-定义.jpg
  61. BIN
      .image/流程模型-设计.jpg
  62. BIN
      .image/流程表单.jpg
  63. BIN
      .image/生成效果.jpg
  64. BIN
      .image/用户分组.jpg
  65. BIN
      .image/用户管理.jpg
  66. BIN
      .image/登录.jpg
  67. BIN
      .image/登录日志.jpg
  68. BIN
      .image/短信日志.jpg
  69. BIN
      .image/短信模板.jpg
  70. BIN
      .image/短信渠道.jpg
  71. BIN
      .image/租户套餐.png
  72. BIN
      .image/租户管理.jpg
  73. BIN
      .image/系统接口.jpg
  74. BIN
      .image/菜单管理.jpg
  75. BIN
      .image/表单构建.jpg
  76. BIN
      .image/角色管理.jpg
  77. BIN
      .image/访问日志.jpg
  78. BIN
      .image/退款订单.jpg
  79. BIN
      .image/通知公告.jpg
  80. BIN
      .image/部门管理.jpg
  81. BIN
      .image/配置管理.jpg
  82. BIN
      .image/链路追踪.jpg
  83. BIN
      .image/错误日志.jpg
  84. BIN
      .image/错误码管理.jpg
  85. BIN
      .image/首页.jpg
  86. 94
      App.vue
  87. 2
      README.md
  88. 29
      api/login.js
  89. 42
      api/system/user.js
  90. 52
      components/cs-page/index.vue
  91. 20
      config.js
  92. 20
      index.html
  93. 47
      main.js
  94. 139
      manifest.json
  95. 9
      package.json
  96. 149
      pages.json
  97. 19
      pages/AI/index.vue
  98. 13
      pages/chat.vue
  99. 108
      pages/ent/index.vue
  100. 71
      pages/ent/info.vue
  101. Some files were not shown because too many files have changed in this diff Show More

16
.gitignore vendored

@ -1 +1,17 @@
######################################################################
# Build Tools
/unpackage/*
/node_modules/*
######################################################################
# Development Tools
/.idea/*
/.vscode/*
/.hbuilderx/*
package-lock.json
yarn.lock
/unpackage/ /unpackage/

2
.idea/modules.xml

@ -2,7 +2,7 @@
<project version="4"> <project version="4">
<component name="ProjectModuleManager"> <component name="ProjectModuleManager">
<modules> <modules>
<module fileurl="file://$PROJECT_DIR$/.idea/ruoyi-miniapp.iml" filepath="$PROJECT_DIR$/.idea/ruoyi-miniapp.iml" /> <module fileurl="file://$PROJECT_DIR$/.idea/yudao-ui-admin-uniapp.iml" filepath="$PROJECT_DIR$/.idea/yudao-ui-admin-uniapp.iml" />
</modules> </modules>
</component> </component>
</project> </project>

12
.idea/ruoyi-miniapp.iml

@ -1,12 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
<excludeFolder url="file://$MODULE_DIR$/temp" />
<excludeFolder url="file://$MODULE_DIR$/tmp" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

BIN
.image/Java监控.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

BIN
.image/MySQL.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB

BIN
.image/OA请假-列表.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 KiB

BIN
.image/OA请假-发起.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

BIN
.image/OA请假-详情.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

BIN
.image/Redis.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

BIN
.image/admin-uniapp/01.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
.image/admin-uniapp/02.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
.image/admin-uniapp/03.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
.image/admin-uniapp/04.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

BIN
.image/admin-uniapp/05.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

BIN
.image/admin-uniapp/06.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

BIN
.image/admin-uniapp/07.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

BIN
.image/admin-uniapp/08.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

BIN
.image/admin-uniapp/09.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

BIN
.image/common/mall-feature.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

BIN
.image/common/mall-preview.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 KiB

BIN
.image/common/project-vs.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 KiB

BIN
.image/common/ruoyi-vue-pro-architecture.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

BIN
.image/common/ruoyi-vue-pro-biz.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
.image/common/yudao-cloud-architecture.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 201 KiB

BIN
.image/common/yudao-roadmap.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

BIN
.image/个人中心.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

BIN
.image/代码生成.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

BIN
.image/令牌管理.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

BIN
.image/任务列表-审批.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

BIN
.image/任务列表-已办.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 KiB

BIN
.image/任务列表-待办.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

BIN
.image/任务日志.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

BIN
.image/商户信息.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

BIN
.image/在线用户.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

BIN
.image/大屏设计器-列表.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

BIN
.image/大屏设计器-编辑.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

BIN
.image/大屏设计器-预览.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

BIN
.image/字典数据.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

BIN
.image/字典类型.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

BIN
.image/定时任务.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

BIN
.image/岗位管理.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

BIN
.image/应用信息-列表.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

BIN
.image/应用信息-编辑.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

BIN
.image/应用管理.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

BIN
.image/我的流程-列表.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 KiB

BIN
.image/我的流程-发起.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

BIN
.image/我的流程-详情.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

BIN
.image/报表设计器-图形报表.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
.image/报表设计器-打印设计.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

BIN
.image/报表设计器-数据报表.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

BIN
.image/操作日志.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

BIN
.image/支付订单.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 KiB

BIN
.image/敏感词.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

BIN
.image/数据库文档.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

BIN
.image/文件管理.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

BIN
.image/文件管理2.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

BIN
.image/文件配置.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

BIN
.image/日志中心.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

BIN
.image/流程模型-列表.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 173 KiB

BIN
.image/流程模型-定义.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

BIN
.image/流程模型-设计.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

BIN
.image/流程表单.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

BIN
.image/生成效果.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

BIN
.image/用户分组.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

BIN
.image/用户管理.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

BIN
.image/登录.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

BIN
.image/登录日志.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

BIN
.image/短信日志.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

BIN
.image/短信模板.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 248 KiB

BIN
.image/短信渠道.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

BIN
.image/租户套餐.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

BIN
.image/租户管理.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

BIN
.image/系统接口.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

BIN
.image/菜单管理.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

BIN
.image/表单构建.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

BIN
.image/角色管理.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

BIN
.image/访问日志.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

BIN
.image/退款订单.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

BIN
.image/通知公告.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

BIN
.image/部门管理.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

BIN
.image/配置管理.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

BIN
.image/链路追踪.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

BIN
.image/错误日志.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

BIN
.image/错误码管理.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 KiB

BIN
.image/首页.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

94
App.vue

@ -1,75 +1,37 @@
<script> <script>
export default { import config from './config'
onLaunch: function() { import store from '@/store'
// import { getAccessToken } from '@/utils/auth'
uni.login({
success(res) {
uni.$u.http.post('/login', {
code: res.code
}).then(res => {
// token
const token = 'Bearer ' + res.data.data
//
// console.log(token);
uni.$u.vuex('vuex_token', token);
uni.$u.http.setConfig((config) => {
config.header = {
authorization: token
};
return config
})
//
uni.$u.http.get('/getInfo', {}).then(res => {
console.log(res.data);
let user = {
roles: res.data.roles,
permissions: res.data.permissions,
// avatar: res.data.user.avatar,
avatar: 'https://jzhome.cn/static/gongan.png',
realName: res.data.user.realName,
sex: res.data.user.sex,
phonenumber: res.data.user.phonenumber,
deptName: res.data.user.deptName,
userType: res.data.user.userType,
}
//
uni.$u.vuex('vuex_user', user);
// export default {
// if (user.userType !== "00") { onLaunch: function () {
// uni.$u.route('/pages/index/off_reg'); this.initApp()
// } },
methods: {
}).catch(err => { //
console.log('您没有访问权限'); async initApp() {
}) await uni.hideTabBar()
// uni.hideTabBar({
uni.$u.http.get('/dept/list', {}).then(res => { animation: false
uni.$u.vuex('vuex_dept', res.data.data); })
}) //
this.initConfig()
}).catch(err => { //
console.log('访问失败'); // this.checkLogin()
})
}
});
}, },
onShow: function() { initConfig() {
console.log('App Show') this.globalData.config = config
}, },
onHide: function() { checkLogin() {
console.log('App Hide') if (!getAccessToken()) {
this.$tab.reLaunch('/pages/login')
}
} }
} }
}
</script> </script>
<style lang="scss"> <style lang="scss">
/* 注意要写在第一行,同时给style标签加入lang="scss"属性 */ @import '@/uni_modules/windi-css-uniapp/index.scss';
@import "@/uni_modules/uview-ui/index.scss"; @import '@/static/scss/index.scss';
</style>
page {
background-color: #F9F9F9;
}
</style>

2
README.md

@ -0,0 +1,2 @@
### 初始化
npm install

29
api/login.js

@ -0,0 +1,29 @@
import request from '@/utils/request'
// 登录方法
export function login(data) {
return request({
url: '/system/auth/app_login',
headers: {
isToken: false
},
'method': 'POST',
'data': data
})
}
// 获取用户详细信息
export function getInfo() {
return request({
url: '/system/auth/get-permission-info',
'method': 'GET'
})
}
// 退出方法
export function logout() {
return request({
url: '/system/auth/logout',
'method': 'POST'
})
}

42
api/system/user.js

@ -0,0 +1,42 @@
import upload from '@/utils/upload'
import request from '@/utils/request'
// 用户密码重置
export function updateUserPwd(oldPassword, newPassword) {
const data = {
oldPassword,
newPassword
}
return request({
url: '/system/user/profile/update-password',
method: 'PUT',
params: data
})
}
// 查询用户个人信息
export function getUserProfile() {
return request({
url: '/system/user/profile/get',
method: 'GET'
})
}
// 修改用户个人信息
export function updateUserProfile(data) {
return request({
url: '/system/user/profile/update',
method: 'PUT',
data: data
})
}
// 用户头像上传
export function uploadAvatar(data) {
return upload({
url: '/system/user/profile/update-avatar',
method: 'PUT',
name: data.name,
filePath: data.filePath
})
}

52
components/cs-page/index.vue

@ -0,0 +1,52 @@
<template>
<view class="container">
<s-header :title="title" :isTab="isTab" :isCustom="isCustom">
<slot name="header"></slot>
</s-header>
<view class="view">
<view class="inner">
<slot></slot>
</view>
</view>
<s-tabber v-if="isTab" :selected="selected" />
</view>
</template>
<script>
export default {
name: 'cs-page',
props: {
selected: Number,
title: String,
isTab: {
type: Boolean,
default: false
},
isCustom: {
type: Boolean,
default: false
}
},
data() {
return {}
}
}
</script>
<style lang="scss" scoped>
.container {
display: grid;
grid-template-columns: 1fr;
grid-template-rows: auto 1fr auto;
height: 100vh;
width: 100vw;
display: grid;
.view {
position: relative;
.inner {
position: absolute;
inset: 0;
}
}
}
</style>

20
config.js

@ -0,0 +1,20 @@
// 应用全局配置
module.exports = {
// baseUrl: 'http://api-dashboard.yudao.iocoder.cn',
baseUrl: 'http://188.188.5.98:48080',
baseApi: '/admin-api',
// 应用信息
appInfo: {
// 应用名称
name: "nature-secure-miniapp",
// 应用版本
version: "1.0.0",
// 应用logo
logo: "/static/logo.png",
// 官方网站
site_url: "",
// 政策协议
agreements: [
]
}
}

20
index.html

@ -1,20 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<script>
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
CSS.supports('top: constant(a)'))
document.write(
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
(coverSupport ? ', viewport-fit=cover' : '') + '" />')
</script>
<title></title>
<!--preload-links-->
<!--app-context-->
</head>
<body>
<div id="app"><!--app-html--></div>
<script type="module" src="/main.js"></script>
</body>
</html>

47
main.js

@ -1,49 +1,24 @@
import App from './App'
// #ifndef VUE3
import Vue from 'vue' import Vue from 'vue'
import App from './App'
import store from './store' // store
import plugins from './plugins' // plugins
import './permission' // permission
// 引入uView // 引入uView
import uView from '@/uni_modules/uview-ui' import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
// 全局配置根域名 // 挂载全局对象
uni.$u.http.setConfig((config) => { Vue.use(plugins).use(uView)
/* config 为默认全局配置*/
config.baseURL = `http://192.168.2.101:8080/api/app`;
return config
})
// Vuex
import store from '@/store';
import vuexStore from '@/store/$u.mixin.js';
Vue.mixin(vuexStore);
import './uni.promisify.adaptor'
Vue.config.productionTip = false Vue.config.productionTip = false
// 挂载vuex
Vue.prototype.$store = store
App.mpType = 'app' App.mpType = 'app'
const app = new Vue({ const app = new Vue({
store,
...App ...App
}) })
app.$mount()
// #endif
// #ifdef VUE3
import {
createSSRApp
} from 'vue'
// 引入uView主JS库
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
export function createApp() { app.$mount()
const app = createSSRApp(App)
return {
app
}
}
// #endif

139
manifest.json

@ -1,72 +1,69 @@
{ {
"name" : "智慧环保", "name": "智慧生态",
"appid" : "__UNI__20C9AD1", "appid": "__UNI__25A9D80",
"description" : "智慧环保", "description": "",
"versionName" : "1.0.0", "versionName": "1.0.0",
"versionCode" : "100", "versionCode": "100",
"transformPx" : false, "transformPx": false,
/* 5+App */ "app-plus": {
"app-plus" : { "usingComponents": true,
"usingComponents" : true, "nvueCompiler": "uni-app",
"nvueStyleCompiler" : "uni-app", "splashscreen": {
"compilerVersion" : 3, "alwaysShowBeforeRender": true,
"splashscreen" : { "waiting": true,
"alwaysShowBeforeRender" : true, "autoclose": true,
"waiting" : true, "delay": 0
"autoclose" : true, },
"delay" : 0 "modules": {},
}, "distribute": {
/* */ "android": {
"modules" : {}, "permissions": [
/* */ "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"distribute" : { "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
/* android */ "<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"android" : { "<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"permissions" : [ "<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>", "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>", "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>", "<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>", "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>", "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>", "<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>", "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>", "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>", "<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>", "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>", ]
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>", },
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>", "ios": {},
"<uses-feature android:name=\"android.hardware.camera\"/>", "sdkConfigs": {}
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>" }
] },
}, "quickapp": {},
/* ios */ "mp-weixin": {
"ios" : {}, "appid": "wx6a07542e99f7fc98",
/* SDK */ "setting": {
"sdkConfigs" : {} "urlCheck": false,
} "es6": true,
}, "minified": true,
/* */ "postcss": true
"quickapp" : {}, },
/* */ "optimization": {
"mp-weixin" : { "subPackages": true
"appid" : "wx6a07542e99f7fc98", },
"setting" : { "usingComponents": true
"urlCheck" : false },
}, "vueVersion": "2",
"usingComponents" : true "h5": {
}, "template": "static/index.html",
"mp-alipay" : { "devServer": {
"usingComponents" : true "port": 9090,
}, "https": false
"mp-baidu" : { },
"usingComponents" : true "title": "Yudao-App",
}, "router": {
"mp-toutiao" : { "mode": "hash",
"usingComponents" : true "base": "./"
}, }
"uniStatistics" : { }
"enable" : false }
},
"vueVersion" : "2"
}

9
package.json

@ -0,0 +1,9 @@
{
"dependencies": {
"crypto-js": "^4.0.0"
},
"devDependencies": {
"sass": "^1.83.4",
"sass-loader": "^16.0.4"
}
}

149
pages.json

@ -1,134 +1,73 @@
{ {
"pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages
{ "pages": [{
"path": "pages/index/index", "path": "pages/index",
"style": {
"navigationBarTitleText": "智慧环保"
}
},
{
"path": "pages/index/off_reg",
"style": {
"navigationBarTitleText": "部门申请"
}
},
{
"path": "pages/index/ent_reg",
"style": {
"navigationBarTitleText": "企业注册"
}
},
{
"path": "pages/task/index",
"style": {
"navigationBarTitleText": "执法任务"
}
},
{
"path": "pages/task/list",
"style": { "style": {
"navigationBarTitleText": "任务列表" "navigationBarTitleText": "首页"
} }
}, }, {
{ "path": "pages/login",
"path": "pages/task/item",
"style": { "style": {
"navigationBarTitleText": "任务详情" "navigationBarTitleText": "登录"
} }
}, },
{ {
"path": "pages/ent/index", "path": "pages/enterprise",
"style": { "style": {
"navigationBarTitleText": "环保企业" "navigationBarTitleText": "企业"
} }
}, },
{ {
"path": "pages/ent/info", "path": "pages/chat",
"style": { "style": {
"navigationBarTitleText": "企业详情" "navigationBarTitleText": "聊天"
} }
}, },
{ {
"path": "pages/public/sug", "path": "pages/task",
"style": { "style": {
"navigationBarTitleText": "投诉建议" "navigationBarTitleText": "任务"
} }
}, },
{ {
"path": "pages/user/index", "path": "pages/owner",
"style": { "style": {
"navigationBarTitleText": "个人中心" "navigationBarTitleText": "个人中心"
} }
},
{
"path": "pages/user/edit",
"style": {
"navigationBarTitleText": "编辑资料"
}
},
{
"path": "pages/user/notif",
"style": {
"navigationBarTitleText": "消息通知"
}
},
{
"path": "pages/user/law",
"style": {
"navigationBarTitleText": "政策法规"
}
},
{
"path": "pages/user/task",
"style": {
"navigationBarTitleText": "任务记录"
}
},
{
"path": "pages/AI/index",
"style": {
"navigationBarTitleText": "AI"
}
} }
], ],
"globalStyle": { "easycom": {
"navigationBarTextStyle": "black", "autoscan": true,
"navigationBarTitleText": "智慧环保", "custom": {
"navigationBarBackgroundColor": "#FFF", "^cs-(.*)": "@/components/cs-$1/index.vue", // componentsvue
"backgroundColor": "#FFF" "^s-(.*)": "@/uni_modules/s-components/s-$1/index.vue" // componentsvue
}
}, },
"subPackages": [{
"uniIdRouter": {}, "root": "sub",
"pages": [{
"path": "owner/edit"
}]
}],
"tabBar": { "tabBar": {
"color": "#7A7E83",
"selectedColor": "#3cc51f",
"borderStyle": "black",
"backgroundColor": "#ffffff",
"list": [{ "list": [{
"pagePath": "pages/index/index", "pagePath": "pages/index"
"iconPath": "/static/logo.png", },
"selectedIconPath": "/static/logo.png", {
"text": "首页" "pagePath": "pages/task"
}, { },
"pagePath": "pages/task/index", {
"iconPath": "/static/logo.png", "pagePath": "pages/chat"
"selectedIconPath": "/static/logo.png", },
"text": "任务" {
}, { "pagePath": "pages/enterprise"
"pagePath": "pages/AI/index", },
"iconPath": "/static/logo.png", {
"selectedIconPath": "/static/logo.png" "pagePath": "pages/owner"
}, { }
"pagePath": "pages/ent/index", ]
"iconPath": "/static/logo.png", },
"selectedIconPath": "/static/logo.png", "globalStyle": {
"text": "企业" "navigationStyle": "custom"
}, {
"pagePath": "pages/user/index",
"iconPath": "/static/logo.png",
"selectedIconPath": "/static/logo.png",
"text": "我的"
}]
} }
} }

19
pages/AI/index.vue

@ -1,19 +0,0 @@
<template>
<view>
AI
</view>
</template>
<script>
export default {
data() {
return {
};
}
}
</script>
<style lang="scss">
</style>

13
pages/chat.vue

@ -0,0 +1,13 @@
<template>
<cs-page :selected="2" isTab></cs-page>
</template>
<script>
export default {
data() {
return {}
}
}
</script>
<style lang="scss"></style>

108
pages/ent/index.vue

@ -1,108 +0,0 @@
<template>
<view class="wrap">
<!-- 吸顶 -->
<u-sticky bgColor="#fff">
<!-- 搜索 -->
<u-search placeholder="日照香炉生紫烟" v-model="keyword"></u-search>
<!-- 筛选 -->
<view class="">
筛选
</view>
</u-sticky>
<!-- 列表 -->
<view class="list">
<u-list @scrolltolower="scrolltolower">
<u-list-item v-for="(item, index) in indexList" :key="index" @tap="toInfo">
<u-cell :title="`列表长度-${index + 1}`">
<u-avatar slot="icon" shape="square" size="35" :src="item.url"
customStyle="margin: -3px 5px -3px 0"></u-avatar>
</u-cell>
</u-list-item>
</u-list>
</view>
<!-- <view class="list">
<view class="item" v-for="(item, index) in list" :key="index">
{{'第' + item + '条数据'}}
</view>
<u-loadmore :status="status" />
</view> -->
</view>
</template>
<script>
export default {
data() {
return {
//
keyword: '遥看瀑布挂前川',
//
//
indexList: [],
urls: [
"https://xxx.com/album/1.jpg",
"https://xxx.com/album/2.jpg",
"https://xxx.com/album/3.jpg",
"https://xxx.com/album/4.jpg",
"https://xxx.com/album/5.jpg",
"https://xxx.com/album/6.jpg",
"https://xxx.com/album/7.jpg",
"https://xxx.com/album/8.jpg",
"https://xxx.com/album/9.jpg",
"https://xxx.com/album/10.jpg",
],
//
status: 'loadmore',
list: 15,
page: 0
};
},
onLoad() {
this.loadmore();
},
methods: {
toInfo() {
uni.$u.route('/pages/ent/info');
},
scrolltolower() {
this.loadmore();
},
loadmore() {
for (let i = 0; i < 30; i++) {
this.indexList.push({
url: this.urls[uni.$u.random(0, this.urls.length - 1)],
});
}
},
},
//
// onReachBottom() {
// if (this.page >= 3) return;
// this.status = 'loading';
// this.page = ++this.page;
// setTimeout(() => {
// this.list += 10;
// if (this.page >= 3) this.status = 'nomore';
// else this.status = 'loading';
// }, 2000)
// },
}
</script>
<style lang="scss">
.wrap {
background-color: #F9F9F9;
min-height: 100vh;
.list {
display: flex;
flex-direction: column;
gap: 24rpx;
padding: 24rpx;
}
}
</style>

71
pages/ent/info.vue

@ -1,71 +0,0 @@
<template>
<view class="wrap">
<view class="">
基本信息
</view>
<view class="">
环保信息
</view>
<view class="">
执法信息
</view>
=================================
<view>
<u-row>
<u-col span="6">
<view>义县某某环保企业名称</view>
</u-col>
<u-col span="6">
<view>危废</view>
</u-col>
</u-row>
<u-row>
<view>企业地址 某某区工业产业园5-182</view>
</u-row>
<u-row>
<view>企业简介企业简介企业简介企业简介企业简介企业简介企业简介企业简介企业简介企业简介企业简介企业简介企业简介企业简介企业简介企业简介企业简介企业简介企业简介企业简介企业简介</view>
</u-row>
<u-row gutter="24rpx">
<u-col span="4">
<u--image src="/static/logo.png" mode="widthFix"></u--image>
</u-col>
<u-col span="4">
<u--image src="/static/logo.png" mode="widthFix"></u--image>
</u-col>
<u-col span="4">
</u-col>
</u-row>
<u--image src="/static/logo.png" mode="widthFix"></u--image>
<u-row>
<u-col span="6">
<view>环保负责/张某某</view>
</u-col>
<u-col span="6">
<view>成立时间/2017年10月24日</view>
</u-col>
</u-row>
</view>
</view>
</template>
<script>
export default {
data() {
return {
};
}
}
</script>
<style lang="scss">
.wrap {
background-color: #F9F9F9;
min-height: 100vh;
padding: 24rpx;
}
</style>

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save