commit 1a4a33174a15562a76f2053bfc26ef8503161cf9 Author: ChuShiZ Date: Sun Sep 22 15:07:01 2024 +0800 提交 diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json new file mode 100644 index 0000000..81f13f4 --- /dev/null +++ b/.hbuilderx/launch.json @@ -0,0 +1,16 @@ +{ // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/ + // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数 + "version": "0.0", + "configurations": [{ + "default" : + { + "launchtype" : "local" + }, + "mp-weixin" : + { + "launchtype" : "local" + }, + "type" : "uniCloud" + } + ] +} diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..10b731c --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,5 @@ +# 默认忽略的文件 +/shelf/ +/workspace.xml +# 基于编辑器的 HTTP 客户端请求 +/httpRequests/ diff --git a/App.vue b/App.vue new file mode 100644 index 0000000..8bd670e --- /dev/null +++ b/App.vue @@ -0,0 +1,23 @@ + + + \ No newline at end of file diff --git a/api/login.js b/api/login.js new file mode 100644 index 0000000..cb8b808 --- /dev/null +++ b/api/login.js @@ -0,0 +1,72 @@ +import request from '@/utils/request' + +// 登录方法 +export function login(username, password, code, uuid) { + const data = { + username, + password, + code, + uuid + } + return request({ + 'url': '/rescue/login', + headers: { + isToken: false + }, + 'method': 'post', + 'data': data + }) +} + +// 获取用户详细信息 +export function getInfo() { + return request({ + 'url': '/rescue/getInfo', + 'method': 'get' + }) +} + +// 退出方法 +export function logout() { + return request({ + 'url': '/rescue/logout', + 'method': 'post' + }) +} + +// 获取验证码 +export function getCodeImg() { + return request({ + 'url': '/rescue/captchaImage', + headers: { + isToken: false, + }, + method: 'get', + timeout: 20000 + }) +} + + +// 获取验证码 +export function loginApp(data) { + return request({ + 'url': '/rescue/loginApp', + headers: { + isToken: false + }, + method: 'post', + timeout: 20000, + data + }) +} + +// 使用租户域名(标识),获得租户编号 +export function getTenantIdByWebsite(website) { + return request({ + url: '/system/tenant/getListByWebsite', + method: 'get', + params: { + website + } + }) +} diff --git a/api/system/user.js b/api/system/user.js new file mode 100644 index 0000000..d961407 --- /dev/null +++ b/api/system/user.js @@ -0,0 +1,41 @@ +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/updatePwd', + method: 'put', + params: data + }) +} + +// 查询用户个人信息 +export function getUserProfile() { + return request({ + url: '/system/user/profile', + method: 'get' + }) +} + +// 修改用户个人信息 +export function updateUserProfile(data) { + return request({ + url: '/system/user/profile', + method: 'put', + data: data + }) +} + +// 用户头像上传 +export function uploadAvatar(data) { + return upload({ + url: '/system/user/profile/avatar', + name: data.name, + filePath: data.filePath + }) +} diff --git a/components/VNavigationBar.vue b/components/VNavigationBar.vue new file mode 100644 index 0000000..9f4aebc --- /dev/null +++ b/components/VNavigationBar.vue @@ -0,0 +1,112 @@ + + + + + \ No newline at end of file diff --git a/components/mote-lines-divide/mote-lines-divide.vue b/components/mote-lines-divide/mote-lines-divide.vue new file mode 100644 index 0000000..f37b091 --- /dev/null +++ b/components/mote-lines-divide/mote-lines-divide.vue @@ -0,0 +1,138 @@ + + + + + diff --git a/components/reservationOrder/reservationOrder.vue b/components/reservationOrder/reservationOrder.vue new file mode 100644 index 0000000..c407b56 --- /dev/null +++ b/components/reservationOrder/reservationOrder.vue @@ -0,0 +1,172 @@ + + + + + \ No newline at end of file diff --git a/components/tabBar/tabBar.vue b/components/tabBar/tabBar.vue new file mode 100644 index 0000000..be51fd8 --- /dev/null +++ b/components/tabBar/tabBar.vue @@ -0,0 +1,172 @@ + + + + + diff --git a/config.js b/config.js new file mode 100644 index 0000000..d202138 --- /dev/null +++ b/config.js @@ -0,0 +1,30 @@ +// 应用全局配置 +module.exports = { + //baseUrl: 'https://www.nuoyunr.com/admin-api', + baseUrl: 'http://192.168.1.4:48080/admin-api', + imagesUrl: 'http://shequ.0315e.com/static/images/pages/', + baseImageUrl: 'https://www.nuoyunr.com/minio', + //wsUrl: 'wss://www.nuoyunr.com/admin-api', + wsUrl: 'ws://192.168.1.4:48080/admin-api', + // 应用信息 + appInfo: { + // 应用名称 + name: "道路救援", + // 应用版本 + version: "2.6", + // 应用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" + } + ] + } +} diff --git a/index.html b/index.html new file mode 100644 index 0000000..c3ff205 --- /dev/null +++ b/index.html @@ -0,0 +1,20 @@ + + + + + + + + + + +
+ + + diff --git a/main.js b/main.js new file mode 100644 index 0000000..c1caf36 --- /dev/null +++ b/main.js @@ -0,0 +1,22 @@ +import App from './App' + +// #ifndef VUE3 +import Vue from 'vue' +import './uni.promisify.adaptor' +Vue.config.productionTip = false +App.mpType = 'app' +const app = new Vue({ + ...App +}) +app.$mount() +// #endif + +// #ifdef VUE3 +import { createSSRApp } from 'vue' +export function createApp() { + const app = createSSRApp(App) + return { + app + } +} +// #endif \ No newline at end of file diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..be63f00 --- /dev/null +++ b/manifest.json @@ -0,0 +1,73 @@ +{ + "name" : "qixiu", + "appid" : "__UNI__FA456F7", + "description" : "", + "versionName" : "1.0.0", + "versionCode" : "100", + "transformPx" : false, + /* 5+App特有相关 */ + "app-plus" : { + "usingComponents" : true, + "nvueStyleCompiler" : "uni-app", + "compilerVersion" : 3, + "splashscreen" : { + "alwaysShowBeforeRender" : true, + "waiting" : true, + "autoclose" : true, + "delay" : 0 + }, + /* 模块配置 */ + "modules" : {}, + /* 应用发布信息 */ + "distribute" : { + /* android打包配置 */ + "android" : { + "permissions" : [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ] + }, + /* ios打包配置 */ + "ios" : {}, + /* SDK配置 */ + "sdkConfigs" : {} + } + }, + /* 快应用特有相关 */ + "quickapp" : {}, + /* 小程序特有相关 */ + "mp-weixin" : { + "appid" : "", + "setting" : { + "urlCheck" : false, + "es6" : true + }, + "usingComponents" : true + }, + "mp-alipay" : { + "usingComponents" : true + }, + "mp-baidu" : { + "usingComponents" : true + }, + "mp-toutiao" : { + "usingComponents" : true + }, + "uniStatistics" : { + "enable" : false + }, + "vueVersion" : "2" +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..f3292f8 --- /dev/null +++ b/package.json @@ -0,0 +1,9 @@ +{ + "dependencies": { + "uview-ui": "^2.0.36" + }, + "devDependencies": { + "sass": "^1.69.5", + "sass-loader": "^10.4.1" + } +} diff --git a/pages.json b/pages.json new file mode 100644 index 0000000..ba06e80 --- /dev/null +++ b/pages.json @@ -0,0 +1,151 @@ +{ + "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages + { + "path": "pages/index/index", + "style": { + "navigationBarTitleText": "uni-app" + } + }, + { + "path" : "pages/home/home", + "style" : + { + "navigationBarTitleText" : "" + } + }, + { + "path" : "pages/orderList/orderList", + "style" : + { + "navigationBarTitleText" : "" + } + }, + { + "path" : "pages/my/my", + "style" : + { + "navigationBarTitleText" : "" + } + }, + { + "path" : "pages/myReservation/myReservation", + "style" : + { + "navigationBarTitleText" : "" + } + }, + { + "path" : "pages/myCar/myCar", + "style" : + { + "navigationBarTitleText" : "" + } + }, + { + "path" : "pages/shopDetail/shopDetail", + "style" : + { + "navigationBarTitleText" : "" + } + }, + { + "path" : "pages/orderDetail/orderDetail", + "style" : + { + "navigationBarTitleText" : "" + } + }, + { + "path" : "pages/my/myInfo", + "style" : + { + "navigationBarTitleText" : "" + } + }, + { + "path" : "pages/myCar/carDetail", + "style" : + { + "navigationBarTitleText" : "" + } + }, + { + "path" : "pages/my/myEquity", + "style" : + { + "navigationBarTitleText" : "" + } + }, + { + "path" : "pages/my/register", + "style" : + { + "navigationBarTitleText" : "" + } + }, + { + "path" : "pages/myReservation/addReservation", + "style" : + { + "navigationBarTitleText" : "" + } + }, + { + "path" : "pages/my/message", + "style" : + { + "navigationBarTitleText" : "" + } + }, + { + "path" : "pages/my/evaluate", + "style" : + { + "navigationBarTitleText" : "" + } + }, + { + "path" : "pages/my/cardRoll", + "style" : + { + "navigationBarTitleText" : "" + } + }, + { + "path" : "pages/myReservation/reservationSuccess", + "style" : + { + "navigationBarTitleText" : "" + } + }, + { + "path" : "pages/orderDetail/evaluate", + "style" : + { + "navigationBarTitleText" : "" + } + }, + { + "path" : "pages/guideList/guideList", + "style" : + { + "navigationBarTitleText" : "" + } + }, + { + "path" : "pages/guideList/guideDetail", + "style" : + { + "navigationBarTitleText" : "" + } + } + ], + "globalStyle": { + "navigationBarTextStyle": "black", + "navigationBarTitleText": "uni-app", + "navigationBarBackgroundColor": "#F8F8F8", + "backgroundColor": "#F8F8F8", + "navigationStyle": "custom" + }, + "uniIdRouter": {} +} diff --git a/pages/guideList/guideDetail.vue b/pages/guideList/guideDetail.vue new file mode 100644 index 0000000..8986c3b --- /dev/null +++ b/pages/guideList/guideDetail.vue @@ -0,0 +1,47 @@ + + + + + diff --git a/pages/guideList/guideList.vue b/pages/guideList/guideList.vue new file mode 100644 index 0000000..1ddaf40 --- /dev/null +++ b/pages/guideList/guideList.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/pages/home/home.vue b/pages/home/home.vue new file mode 100644 index 0000000..8851880 --- /dev/null +++ b/pages/home/home.vue @@ -0,0 +1,295 @@ + + + + + \ No newline at end of file diff --git a/pages/index/index.vue b/pages/index/index.vue new file mode 100644 index 0000000..7c0f762 --- /dev/null +++ b/pages/index/index.vue @@ -0,0 +1,27 @@ + + + + + diff --git a/pages/my/cardRoll.vue b/pages/my/cardRoll.vue new file mode 100644 index 0000000..72fcccf --- /dev/null +++ b/pages/my/cardRoll.vue @@ -0,0 +1,24 @@ + + + + + diff --git a/pages/my/evaluate.vue b/pages/my/evaluate.vue new file mode 100644 index 0000000..bded7f6 --- /dev/null +++ b/pages/my/evaluate.vue @@ -0,0 +1,107 @@ + + + + + \ No newline at end of file diff --git a/pages/my/message.vue b/pages/my/message.vue new file mode 100644 index 0000000..1c0120d --- /dev/null +++ b/pages/my/message.vue @@ -0,0 +1,78 @@ + + + + + diff --git a/pages/my/my.vue b/pages/my/my.vue new file mode 100644 index 0000000..c1bef75 --- /dev/null +++ b/pages/my/my.vue @@ -0,0 +1,285 @@ + + + + + \ No newline at end of file diff --git a/pages/my/myEquity.vue b/pages/my/myEquity.vue new file mode 100644 index 0000000..e4c3ef6 --- /dev/null +++ b/pages/my/myEquity.vue @@ -0,0 +1,261 @@ + + + + + \ No newline at end of file diff --git a/pages/my/myInfo.vue b/pages/my/myInfo.vue new file mode 100644 index 0000000..8f197c1 --- /dev/null +++ b/pages/my/myInfo.vue @@ -0,0 +1,84 @@ + + + + + \ No newline at end of file diff --git a/pages/my/register.vue b/pages/my/register.vue new file mode 100644 index 0000000..847ffde --- /dev/null +++ b/pages/my/register.vue @@ -0,0 +1,189 @@ + + + + + \ No newline at end of file diff --git a/pages/myCar/carDetail.vue b/pages/myCar/carDetail.vue new file mode 100644 index 0000000..5ffe17d --- /dev/null +++ b/pages/myCar/carDetail.vue @@ -0,0 +1,186 @@ + + + + + \ No newline at end of file diff --git a/pages/myCar/myCar.vue b/pages/myCar/myCar.vue new file mode 100644 index 0000000..7c7105a --- /dev/null +++ b/pages/myCar/myCar.vue @@ -0,0 +1,118 @@ + + + + + \ No newline at end of file diff --git a/pages/myReservation/addReservation.vue b/pages/myReservation/addReservation.vue new file mode 100644 index 0000000..da77283 --- /dev/null +++ b/pages/myReservation/addReservation.vue @@ -0,0 +1,435 @@ + + + + + \ No newline at end of file diff --git a/pages/myReservation/myReservation.vue b/pages/myReservation/myReservation.vue new file mode 100644 index 0000000..139b18b --- /dev/null +++ b/pages/myReservation/myReservation.vue @@ -0,0 +1,78 @@ + + + + + \ No newline at end of file diff --git a/pages/myReservation/reservationSuccess.vue b/pages/myReservation/reservationSuccess.vue new file mode 100644 index 0000000..4b8c529 --- /dev/null +++ b/pages/myReservation/reservationSuccess.vue @@ -0,0 +1,164 @@ + + + + + \ No newline at end of file diff --git a/pages/orderDetail/evaluate.vue b/pages/orderDetail/evaluate.vue new file mode 100644 index 0000000..440af30 --- /dev/null +++ b/pages/orderDetail/evaluate.vue @@ -0,0 +1,116 @@ +