diff --git a/README.md b/README.md
index 429747a..b934cd7 100644
--- a/README.md
+++ b/README.md
@@ -25,7 +25,7 @@ RuoYi App 移动解决方案,采用uniapp框架,一份代码多终端适配
- 官网网站:[http://ruoyi.vip](http://ruoyi.vip)
- 文档地址:[http://doc.ruoyi.vip](http://doc.ruoyi.vip)
- H5页体验:[http://h5.ruoyi.vip](http://h5.ruoyi.vip)
-- QQ交流群: ①133713780
+- QQ交流群: ①133713780(满)、②146013835
- 小程序体验
diff --git a/api/system/conversion.js b/api/system/conversion.js
new file mode 100644
index 0000000..3163072
--- /dev/null
+++ b/api/system/conversion.js
@@ -0,0 +1,47 @@
+import upload from '@/utils/upload'
+import request from '@/utils/request'
+
+// 查询单位换算列表
+export function listConversion(query) {
+ return request({
+ url: '/system/conversion/list',
+ method: 'get',
+ params: query
+ })
+}
+
+
+
+// 查询单位换算详细
+export function getConversion(id) {
+ return request({
+ url: '/system/conversion/' + id,
+ method: 'get'
+ })
+}
+
+// 新增单位换算
+export function addConversion(data) {
+ return request({
+ url: '/system/conversion',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改单位换算
+export function updateConversion(data) {
+ return request({
+ url: '/system/conversion',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除单位换算
+export function delConversion(id) {
+ return request({
+ url: '/system/conversion/' + id,
+ method: 'delete'
+ })
+}
\ No newline at end of file
diff --git a/config.js b/config.js
index 4ac93cd..23f10fa 100644
--- a/config.js
+++ b/config.js
@@ -1,26 +1,26 @@
-// 应用全局配置
+// 应用全局配置
module.exports = {
- baseUrl: 'https://vue.ruoyi.vip/prod-api',
- // baseUrl: 'http://localhost:8080',
- // 应用信息
- appInfo: {
- // 应用名称
- name: "ruoyi-app",
- // 应用版本
- version: "1.1.0",
- // 应用logo
- logo: "/static/logo.png",
- // 官方网站
- site_url: "http://ruoyi.vip",
- // 政策协议
- agreements: [{
- title: "隐私政策",
- url: "https://ruoyi.vip/protocol.html"
- },
- {
- title: "用户服务协议",
- url: "https://ruoyi.vip/protocol.html"
- }
- ]
- }
-}
+ // baseUrl: 'https://vue.ruoyi.vip/prod-api',
+ baseUrl: 'http://192.168.3.19:9090',
+ // 应用信息
+ appInfo: {
+ // 应用名称
+ name: "ruoyi-app",
+ // 应用版本
+ version: "1.1.0",
+ // 应用logo
+ logo: "/static/logo.png",
+ // 官方网站
+ site_url: "http://ruoyi.vip",
+ // 政策协议
+ agreements: [{
+ title: "隐私政策",
+ url: "https://ruoyi.vip/protocol.html"
+ },
+ {
+ title: "用户服务协议",
+ url: "https://ruoyi.vip/protocol.html"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/manifest.json b/manifest.json
index 8a86db5..da81d48 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,69 +1,69 @@
{
- "name" : "若依移动端",
- "appid" : "__UNI__25A9D80",
- "description" : "",
- "versionName" : "1.1.0",
- "versionCode" : "100",
- "transformPx" : false,
- "app-plus" : {
- "usingComponents" : true,
- "nvueCompiler" : "uni-app",
- "splashscreen" : {
- "alwaysShowBeforeRender" : true,
- "waiting" : true,
- "autoclose" : true,
- "delay" : 0
- },
- "modules" : {},
- "distribute" : {
- "android" : {
- "permissions" : [
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- ""
- ]
- },
- "ios" : {},
- "sdkConfigs" : {}
- }
- },
- "quickapp" : {},
- "mp-weixin" : {
- "appid" : "wxccd7e2a0911b3397",
- "setting" : {
- "urlCheck" : false,
- "es6" : false,
- "minified" : true,
- "postcss" : true
- },
- "optimization" : {
- "subPackages" : true
- },
- "usingComponents" : true
- },
- "vueVersion" : "2",
- "h5" : {
- "template" : "static/index.html",
- "devServer" : {
- "port" : 9090,
- "https" : false
- },
- "title" : "RuoYi-App",
- "router" : {
- "mode" : "hash",
- "base" : "./"
- }
- }
-}
+ "name": "若依移动端",
+ "appid": "__UNI__1347B29",
+ "description": "",
+ "versionName": "1.1.0",
+ "versionCode": "100",
+ "transformPx": false,
+ "app-plus": {
+ "usingComponents": true,
+ "nvueCompiler": "uni-app",
+ "splashscreen": {
+ "alwaysShowBeforeRender": true,
+ "waiting": true,
+ "autoclose": true,
+ "delay": 0
+ },
+ "modules": {},
+ "distribute": {
+ "android": {
+ "permissions": [
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ ""
+ ]
+ },
+ "ios": {},
+ "sdkConfigs": {}
+ }
+ },
+ "quickapp": {},
+ "mp-weixin": {
+ "appid": "wxccd7e2a0911b3397",
+ "setting": {
+ "urlCheck": false,
+ "es6": false,
+ "minified": true,
+ "postcss": true
+ },
+ "optimization": {
+ "subPackages": true
+ },
+ "usingComponents": true
+ },
+ "vueVersion": "2",
+ "h5": {
+ "template": "static/index.html",
+ "devServer": {
+ "port": 9090,
+ "https": false
+ },
+ "title": "RuoYi-App",
+ "router": {
+ "mode": "hash",
+ "base": "./"
+ }
+ }
+}
\ No newline at end of file
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..3f0498b
--- /dev/null
+++ b/package.json
@@ -0,0 +1,5 @@
+{
+ "dependencies": {
+ "bignumber.js": "^9.1.2"
+ }
+}
diff --git a/pages-config-template.json b/pages-config-template.json
new file mode 100644
index 0000000..02273ac
--- /dev/null
+++ b/pages-config-template.json
@@ -0,0 +1,76 @@
+/* ===pages-tool===
+ 该文件是pages-tool插件的配置文件模板,仅供参考。可以删除,不影响插件的使用。
+ pages-tool插件可实现将pages.josn中的配置拆分到多个配置文件中,以便实现模块化配置。
+ 在应用中配置项较多、页面较多时,分别在不同文件中进行配置,可使项目代码更为清晰。
+ 在团队多人合作时,按模块分工,分别管理不同的配置文件,可避免同时修改pages.json带来的代码冲突问题。
+
+ 注意:启用该插件并设置了配置文件之后,pages.json配置文件中相关配置项的内容可能会被替换,应根据paes-config.json的设置情况决定哪些配置应该在pages.josn中设置,哪些应该在指定的文件中设置。
+ 提示:插件只会处理已设置的相关项点,不会覆盖pages.json中未指定的项点。详见配置示例
+
+*/
+
+{
+ //可指定一个文件路径,从该文件读取globalStyle配置;如果不设置,仍然使用pages.json中的配置项
+ //推荐配置:"globalStyle" : "pages-config/globalStyle.json"
+ //文件的格式同pages.json,但只应包含globalStyle配置项
+ "globalStyle" : "",
+
+ //可指定一个文件路径,从该文件读取easycom配置;如果不设置,仍然使用pages.json中的配置项
+ //推荐配置:"easycom" : "pages-config/easycom.json"
+ //文件的格式同pages.json,但只应包含easycom配置项
+ "easycom" : "",
+
+ //可指定一个文件路径,从该文件读取tabBar配置;如果不设置,仍然使用pages.json中的配置项
+ //推荐配置:"tabBar" : "pages-config/tabBar.json"
+ //文件的格式同pages.json,但只应包含tabBar配置项
+ "tabBar" : "",
+
+ //可指定多个文件路径,合并多个文件的内容作为pages配置;如果不设置,仍然使用pages.json中的配置项
+ //推荐配置为:"pages" : ["pages-config/pages-moduleA.json", "pages-config/pages-moduleB.json", "pages-config/pages-moduleC.json", ...]
+ //每个文件的格式同pages.json,但只应包含pages配置项
+ "pages" : [],
+
+ //可指定一个文件路径,从该文件读取condition配置;如果不设置,仍然使用pages.json中的配置项
+ //推荐配置:"condition" : "pages-config/condition.json"
+ //文件的格式同pages.json,但只应包含condition配置项
+ "condition" : "",
+
+ //可对每个分包指定一个文件路径,从该文件读取对应分包的pages配置;如果不设置,仍然使用pages.json中的配置项
+ //推荐配置:"subPackages" : [pages-config/subPackages-moduleNameA.json, pages-config/subPackages-moduleNameB.json, ...],
+ //文件的格式同pages.json,但只应包含subPackages配置项
+ //需要注意:分包中的pages不能再拆分为多个文件
+ "subPackages" : [],
+
+ //可指定一个文件路径,从该文件读取preloadRule配置;如果不设置,仍然使用pages.json中的配置项
+ //推荐配置:"preloadRule" : "pages-config/preloadRule.json"
+ //文件的格式同pages.json,但只应包含preloadRule配置项
+ "preloadRule" : "",
+
+ //推荐配置:"workers" : "pages-config/workers.json"
+ //格式同pages.json
+ "workers" : "",
+
+ //可指定一个文件路径,从该文件读取leftWindow配置;如果不设置,仍然使用pages.json中的配置项
+ //推荐配置:"leftWindow" : "pages-config/leftWindow.json"
+ //文件的格式同pages.json,但只应包含leftWindow配置项
+ "leftWindow" : "",
+
+ //可指定一个文件路径,从该文件读取topWindow配置;如果不设置,仍然使用pages.json中的配置项
+ //推荐配置:"topWindow" : "pages-config/topWindow.json"
+ //文件的格式同pages.json,但只应包含topWindow配置项
+ "topWindow" : "",
+
+ //可指定一个文件路径,从该文件读取rightWindow配置;如果不设置,仍然使用pages.json中的配置项
+ //推荐配置:"rightWindow" : "pages-config/rightWindow.json"
+ //文件的格式同pages.json,但只应包含rightWindow配置项
+ "rightWindow" : "",
+
+ //可指定一个文件路径,从该文件读取uniIdRouter配置;如果不设置,仍然使用pages.json中的配置项
+ //推荐配置:"uniIdRouter" : "pages-config/uniIdRouter.json"
+ //文件的格式同pages.json,但只应包含uniIdRouter配置项
+ "uniIdRouter" : "",
+
+ //默认启动首页,字符串配置(可以引入文件,也可以不引入文件),也可以直接在page.json中配置
+ //推荐配置:"entryPagePath" : "/...." 或 "entryPagePath" : "pages-config/entryPagePath.json"
+ "entryPagePath": ""
+}
diff --git a/pages-config.json b/pages-config.json
new file mode 100644
index 0000000..43b3a8e
--- /dev/null
+++ b/pages-config.json
@@ -0,0 +1,40 @@
+/* ===pages-tool===
+ 该文件是pages-tool插件的配置文件
+ pages-tool插件可实现将pages.josn中的配置拆分到多个配置文件中,以便实现模块化配置。
+ 在应用中配置项较多、页面较多时,分别在不同文件中进行配置,可使项目代码更为清晰。
+ 在团队多人合作时,按模块分工,分别管理不同的配置文件,可避免同时修改pages.json带来的代码冲突问题。
+
+ 注意:启用该插件并设置了配置文件之后,pages.json配置文件中相关配置项的内容可能会被替换,应根据paes-config.json的设置情况决定哪些配置应该在pages.josn中设置,哪些应该在指定的文件中设置。
+ 提示:插件只会处理已设置的相关项点,不会覆盖pages.json中未指定的项点。详见配置示例
+
+*/
+
+{
+ "globalStyle" : "pages-config/globalStyle.json",
+
+ "easycom" : "",
+
+ "tabBar" : "pages-config/tabBar.json",
+
+ "pages" : ["pages-config/pages-all.json"],
+
+ "condition" : "",
+
+ "leftWindow" : "",
+
+ "topWindow" : "",
+
+ "rightWindow" : "",
+
+ "uniIdRouter" : "",
+
+ ///以下各项为小程序特有配置
+
+ "subPackages" : [],
+
+ "preloadRule" : "",
+
+ "workers" : "",
+
+ "entryPagePath": ""
+}
diff --git a/pages-config/globalStyle.json b/pages-config/globalStyle.json
new file mode 100644
index 0000000..a357831
--- /dev/null
+++ b/pages-config/globalStyle.json
@@ -0,0 +1,8 @@
+/* /// Pages-Tool: 该文件是pages-tool插件的配置文件,根据pages-config.json的配置,本文件的内容可能合并到pages.json*/
+{
+ "globalStyle": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "RuoYi",
+ "navigationBarBackgroundColor": "#FFFFFF"
+ }
+}
\ No newline at end of file
diff --git a/pages-config/pages-all.json b/pages-config/pages-all.json
new file mode 100644
index 0000000..d769562
--- /dev/null
+++ b/pages-config/pages-all.json
@@ -0,0 +1,75 @@
+/* /// Pages-Tool: 该文件是pages-tool插件的配置文件,根据pages-config.json的配置,本文件的内容可能合并到pages.json*/
+{
+ "pages": [{
+ "path": "pages/login",
+ "style": {
+ "navigationBarTitleText": "登录"
+ }
+ }, {
+ "path": "pages/register",
+ "style": {
+ "navigationBarTitleText": "注册"
+ }
+ }, {
+ "path": "pages/index",
+ "style": {
+ "navigationBarTitleText": "若依移动端框架",
+ "navigationStyle": "custom"
+ }
+ }, {
+ "path": "pages/work/index",
+ "style": {
+ "navigationBarTitleText": "工作台"
+ }
+ }, {
+ "path": "pages/mine/index",
+ "style": {
+ "navigationBarTitleText": "我的"
+ }
+ }, {
+ "path": "pages/mine/avatar/index",
+ "style": {
+ "navigationBarTitleText": "修改头像"
+ }
+ }, {
+ "path": "pages/mine/info/index",
+ "style": {
+ "navigationBarTitleText": "个人信息"
+ }
+ }, {
+ "path": "pages/mine/info/edit",
+ "style": {
+ "navigationBarTitleText": "编辑资料"
+ }
+ }, {
+ "path": "pages/mine/pwd/index",
+ "style": {
+ "navigationBarTitleText": "修改密码"
+ }
+ }, {
+ "path": "pages/mine/setting/index",
+ "style": {
+ "navigationBarTitleText": "应用设置"
+ }
+ }, {
+ "path": "pages/mine/help/index",
+ "style": {
+ "navigationBarTitleText": "常见问题"
+ }
+ }, {
+ "path": "pages/mine/about/index",
+ "style": {
+ "navigationBarTitleText": "关于我们"
+ }
+ }, {
+ "path": "pages/common/webview/index",
+ "style": {
+ "navigationBarTitleText": "浏览网页"
+ }
+ }, {
+ "path": "pages/common/textview/index",
+ "style": {
+ "navigationBarTitleText": "浏览文本"
+ }
+ }]
+}
\ No newline at end of file
diff --git a/pages-config/tabBar.json b/pages-config/tabBar.json
new file mode 100644
index 0000000..e2b0cda
--- /dev/null
+++ b/pages-config/tabBar.json
@@ -0,0 +1,25 @@
+/* /// Pages-Tool: 该文件是pages-tool插件的配置文件,根据pages-config.json的配置,本文件的内容可能合并到pages.json*/
+{
+ "tabBar": {
+ "color": "#000000",
+ "selectedColor": "#000000",
+ "borderStyle": "white",
+ "backgroundColor": "#ffffff",
+ "list": [{
+ "pagePath": "pages/index",
+ "iconPath": "static/images/tabbar/home.png",
+ "selectedIconPath": "static/images/tabbar/home_.png",
+ "text": "首页"
+ }, {
+ "pagePath": "pages/work/index",
+ "iconPath": "static/images/tabbar/work.png",
+ "selectedIconPath": "static/images/tabbar/work_.png",
+ "text": "计算工具"
+ }, {
+ "pagePath": "pages/mine/index",
+ "iconPath": "static/images/tabbar/mine.png",
+ "selectedIconPath": "static/images/tabbar/mine_.png",
+ "text": "我的"
+ }]
+ }
+}
\ No newline at end of file
diff --git a/pages.json b/pages.json
index 955146f..2d91412 100644
--- a/pages.json
+++ b/pages.json
@@ -72,28 +72,27 @@
}
}],
"tabBar": {
- "color": "#000000",
- "selectedColor": "#000000",
- "borderStyle": "white",
- "backgroundColor": "#ffffff",
- "list": [{
- "pagePath": "pages/index",
- "iconPath": "static/images/tabbar/home.png",
- "selectedIconPath": "static/images/tabbar/home_.png",
- "text": "首页"
- }, {
- "pagePath": "pages/work/index",
- "iconPath": "static/images/tabbar/work.png",
- "selectedIconPath": "static/images/tabbar/work_.png",
- "text": "工作台"
- }, {
- "pagePath": "pages/mine/index",
- "iconPath": "static/images/tabbar/mine.png",
- "selectedIconPath": "static/images/tabbar/mine_.png",
- "text": "我的"
- }
- ]
- },
+ "color": "#000000",
+ "selectedColor": "#000000",
+ "borderStyle": "white",
+ "backgroundColor": "#ffffff",
+ "list": [{
+ "pagePath": "pages/index",
+ "iconPath": "static/images/tabbar/home.png",
+ "selectedIconPath": "static/images/tabbar/home_.png",
+ "text": "首页"
+ }, {
+ "pagePath": "pages/work/index",
+ "iconPath": "static/images/tabbar/work.png",
+ "selectedIconPath": "static/images/tabbar/work_.png",
+ "text": "计算工具"
+ }, {
+ "pagePath": "pages/mine/index",
+ "iconPath": "static/images/tabbar/mine.png",
+ "selectedIconPath": "static/images/tabbar/mine_.png",
+ "text": "我的"
+ }]
+ },
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "RuoYi",
diff --git a/pages/login.vue b/pages/login.vue
index 2c86fcc..1e03ad6 100644
--- a/pages/login.vue
+++ b/pages/login.vue
@@ -1,202 +1,207 @@
-
-
-
-
- 若依移动端登录
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 没有账号?
- 立即注册
-
-
- 登录即代表同意
- 《用户协议》
- 《隐私协议》
-
-
-
-
+
+
+
+ 若依移动端登录
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 没有账号?
+ 立即注册
+
+
+ 登录即代表同意
+ 《用户协议》
+ 《隐私协议》
+
+
+
diff --git a/pages/mine/index.vue b/pages/mine/index.vue
index f77e79f..0128126 100644
--- a/pages/mine/index.vue
+++ b/pages/mine/index.vue
@@ -1,198 +1,209 @@
-
-
-
-
-
-
-
-
-
- 交流群
-
-
-
- 在线客服
-
-
-
- 反馈社区
-
-
-
- 点赞我们
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+ 交流群
+
+
+
+ 在线客服
+
+
+
+ 反馈社区
+
+
+
+ 点赞我们
+
+
+
+
+
+
+
+
+
+
+
diff --git a/uni_modules/yjly-number_unit/changelog.md b/uni_modules/yjly-number_unit/changelog.md
new file mode 100644
index 0000000..e69de29
diff --git a/uni_modules/yjly-number_unit/components/yjly-number_unit/yjly-number_unit.vue b/uni_modules/yjly-number_unit/components/yjly-number_unit/yjly-number_unit.vue
new file mode 100644
index 0000000..b8ceaea
--- /dev/null
+++ b/uni_modules/yjly-number_unit/components/yjly-number_unit/yjly-number_unit.vue
@@ -0,0 +1,272 @@
+
+
+
+
+
+
+ {{ displayUnitName }}
+
+
+
+
+
+
+ {{ showEnglishOnly ? unit.unitName.split('(')[0] : unit.unitName }}
+
+
+
+
+
+
+
+
+
diff --git a/uni_modules/yjly-number_unit/package.json b/uni_modules/yjly-number_unit/package.json
new file mode 100644
index 0000000..16b715f
--- /dev/null
+++ b/uni_modules/yjly-number_unit/package.json
@@ -0,0 +1,83 @@
+{
+ "id": "yjly-number_unit",
+ "displayName": "yjly-number_unit",
+ "version": "1.0.0",
+ "description": "yjly-number_unit",
+ "keywords": [
+ "yjly-number_unit"
+],
+ "repository": "",
+ "engines": {
+ "HBuilderX": "^3.1.0"
+ },
+ "dcloudext": {
+ "type": "component-vue",
+ "sale": {
+ "regular": {
+ "price": "0.00"
+ },
+ "sourcecode": {
+ "price": "0.00"
+ }
+ },
+ "contact": {
+ "qq": ""
+ },
+ "declaration": {
+ "ads": "",
+ "data": "",
+ "permissions": ""
+ },
+ "npmurl": ""
+ },
+ "uni_modules": {
+ "dependencies": [],
+ "encrypt": [],
+ "platforms": {
+ "cloud": {
+ "tcb": "u",
+ "aliyun": "u",
+ "alipay": "u"
+ },
+ "client": {
+ "Vue": {
+ "vue2": "u",
+ "vue3": "u"
+ },
+ "App": {
+ "app-vue": "u",
+ "app-nvue": "u",
+ "app-uvue": "u"
+ },
+ "H5-mobile": {
+ "Safari": "u",
+ "Android Browser": "u",
+ "微信浏览器(Android)": "u",
+ "QQ浏览器(Android)": "u"
+ },
+ "H5-pc": {
+ "Chrome": "u",
+ "IE": "u",
+ "Edge": "u",
+ "Firefox": "u",
+ "Safari": "u"
+ },
+ "小程序": {
+ "微信": "u",
+ "阿里": "u",
+ "百度": "u",
+ "字节跳动": "u",
+ "QQ": "u",
+ "钉钉": "u",
+ "快手": "u",
+ "飞书": "u",
+ "京东": "u"
+ },
+ "快应用": {
+ "华为": "u",
+ "联盟": "u"
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/uni_modules/yjly-number_unit/readme.md b/uni_modules/yjly-number_unit/readme.md
new file mode 100644
index 0000000..4e03f32
--- /dev/null
+++ b/uni_modules/yjly-number_unit/readme.md
@@ -0,0 +1 @@
+# yjly-number_unit
\ No newline at end of file