diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json
index 582561b..7f81dcb 100644
--- a/.hbuilderx/launch.json
+++ b/.hbuilderx/launch.json
@@ -1,16 +1,25 @@
-{ // 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": [{
- "app-plus" :
- {
- "launchtype" : "local"
- },
- "default" :
- {
- "launchtype" : "local"
- },
- "type" : "uniCloud"
- }
+{
+ // 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" : [
+ {
+ "app-plus" : {
+ "launchtype" : "local"
+ },
+ "default" : {
+ "launchtype" : "local"
+ },
+ "type" : "uniCloud"
+ },
+ {
+ "openVueDevtools" : true,
+ "type" : "uni-app:app-ios"
+ },
+ {
+ "openVueDevtools" : true,
+ "playground" : "standard",
+ "type" : "uni-app:app-android"
+ }
]
}
diff --git a/README.md b/README.md
index b2b425e..ee9c7c3 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,11 @@
- 状态管理:[pinia](https://pinia.vuejs.org/zh/)
- 组件库:[uni-ui](https://uniapp.dcloud.net.cn/component/uniui/uni-ui.html)
-## 资料说明
+资料说明
+
+- 账号:18387785159
+
+- 密码:Hhkj@123456
### 📗 接口文档
diff --git a/src/App.vue b/src/App.vue
index d3769e0..1ec8d2e 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -14,8 +14,8 @@ onHide(() => {
diff --git a/src/manifest.json b/src/manifest.json
index 2689535..c8cff63 100644
--- a/src/manifest.json
+++ b/src/manifest.json
@@ -1,72 +1,78 @@
{
- "name": "鸿森通货运",
- "appid": "__UNI__D787228",
- "description": "",
- "versionName": "1.0.0",
- "versionCode": 1,
- "transformPx": false,
- /* 5+App特有相关 */
- "app-plus": {
- "usingComponents": true,
- "nvueStyleCompiler": "uni-app",
- "compilerVersion": 3,
- "splashscreen": {
- "alwaysShowBeforeRender": true,
- "waiting": true,
- "autoclose": true,
- "delay": 0
+ "name" : "鸿森通货运",
+ "appid" : "__UNI__D787228",
+ "description" : "",
+ "versionName" : "1.0.0",
+ "versionCode" : 1,
+ "transformPx" : false,
+ /* 5+App特有相关 */
+ "app-plus" : {
+ "usingComponents" : true,
+ "nvueStyleCompiler" : "uni-app",
+ "compilerVersion" : 3,
+ "splashscreen" : {
+ "alwaysShowBeforeRender" : true,
+ "waiting" : true,
+ "autoclose" : true,
+ "delay" : 0
+ },
+ /* 模块配置 */
+ "modules" : {
+ "OAuth" : {}
+ },
+ /* 应用发布信息 */
+ "distribute" : {
+ /* android打包配置 */
+ "android" : {
+ "permissions" : [
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ ""
+ ]
+ },
+ /* ios打包配置 */
+ "ios" : {},
+ /* SDK配置 */
+ "sdkConfigs" : {
+ "oauth" : {
+ "univerify" : {}
+ }
+ }
+ }
},
- /* 模块配置 */
- "modules": {},
- /* 应用发布信息 */
- "distribute": {
- /* android打包配置 */
- "android": {
- "permissions": [
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- ""
- ]
- },
- /* ios打包配置 */
- "ios": {},
- /* SDK配置 */
- "sdkConfigs": {}
- }
- },
- /* 快应用特有相关 */
- "quickapp": {},
- /* 小程序特有相关 */
- "mp-weixin": {
- "appid": "wx79b61e386979fc3a",
- "setting": {
- "urlCheck": false
+ /* 快应用特有相关 */
+ "quickapp" : {},
+ /* 小程序特有相关 */
+ "mp-weixin" : {
+ "appid" : "wx79b61e386979fc3a",
+ "setting" : {
+ "urlCheck" : false
+ },
+ "usingComponents" : true
},
- "usingComponents": true
- },
- "mp-alipay": {
- "usingComponents": true
- },
- "mp-baidu": {
- "usingComponents": true
- },
- "mp-toutiao": {
- "usingComponents": true
- },
- "uniStatistics": {
- "enable": false
- },
- "vueVersion": "3"
+ "mp-alipay" : {
+ "usingComponents" : true
+ },
+ "mp-baidu" : {
+ "usingComponents" : true
+ },
+ "mp-toutiao" : {
+ "usingComponents" : true
+ },
+ "uniStatistics" : {
+ "enable" : false
+ },
+ "vueVersion" : "3"
}
diff --git a/src/pages.json b/src/pages.json
index 0ab70f1..c8aec54 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -1,90 +1,104 @@
{
- // 组件自动导入
- "easycom": {
- "autoscan": true,
- "custom": {
- // uni-ui 规则如下配置
- "^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue",
- //组件自动导入 以小兔仙Xtx开头组件,在@src文件内components 文件夹查找 提取出来的用$1补位
- "^Xtx(.*)": "@/components/Xtx$1.vue"
- }
- },
- "pages": [
- //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
- {
- "path": "pages/index/index",
- "style": {
- "navigationBarTitleText": "抢单"
- }
- },
- {
- "path": "pages/category/category",
- "style": {
- "navigationBarTitleText": "运单"
- }
- },
- {
- "path": "pages/my/my",
- "style": {
- "navigationBarTitleText": "我的"
- }
- },
- {
- "path": "pages/login/login",
- "style": {
- "navigationBarTitleText": "登录"
- }
- },
- {
- "path": "pages/login/loginPassword/loginPassword",
- "style": {
- "navigationBarTitleText": "忘记密码"
- }
- },
- {
- "path": "pages/login/loginPassword/loginPasswordItem/loginPasswordItem",
- "style": {
- "navigationBarTitleText": "忘记密码填写"
- }
- },
- {
- "path": "pages/login/appleId/appleId",
- "style": {
- "navigationBarTitleText": "注册账号"
- }
- }
- ],
- "globalStyle": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "",
- "navigationBarBackgroundColor": "#F8F8F8",
- "backgroundColor": "#F8F8F8"
- },
- // 设置 TabBar
- "tabBar": {
- "color": "#333",
- "selectedColor": "#27ba9b",
- "backgroundColor": "#fff",
- "borderStyle": "white",
- "list": [
- {
- "text": "抢单",
- "pagePath": "pages/index/index",
- "iconPath": "static/tabs/home_default.png",
- "selectedIconPath": "static/tabs/home_selected.png"
- },
- {
- "text": "运单",
- "pagePath": "pages/category/category",
- "iconPath": "static/tabs/category_default.png",
- "selectedIconPath": "static/tabs/category_selected.png"
- },
- {
- "text": "我的",
- "pagePath": "pages/my/my",
- "iconPath": "static/tabs/user_default.png",
- "selectedIconPath": "static/tabs/user_selected.png"
- }
- ]
- }
-}
\ No newline at end of file
+ // 组件自动导入
+ "easycom": {
+ "autoscan": true,
+ "custom": {
+ // uni-ui 规则如下配置
+ "^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue",
+ //组件自动导入 以小兔仙Xtx开头组件,在@src文件内components 文件夹查找 提取出来的用$1补位
+ "^Xtx(.*)": "@/components/Xtx$1.vue"
+ }
+ },
+ "pages": [
+ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
+ {
+ "path": "pages/index/index",
+ "style": {
+ "navigationBarTitleText": "抢单"
+ }
+ },
+ {
+ "path": "pages/category/category",
+ "style": {
+ "navigationBarTitleText": "运单"
+ }
+ },
+ {
+ "path": "pages/my/my",
+ "style": {
+ "navigationBarTitleText": "我的"
+ }
+ },
+ {
+ "path": "pages/login/login",
+ "style": {
+ "navigationBarTitleText": "登录"
+ }
+ },
+ {
+ "path": "pages/login/loginPassword/loginPassword",
+ "style": {
+ "navigationBarTitleText": "忘记密码"
+ }
+ },
+ {
+ "path": "pages/login/loginPassword/loginPasswordItem/loginPasswordItem",
+ "style": {
+ "navigationBarTitleText": "忘记密码填写"
+ }
+ },
+ {
+ "path": "pages/login/appleId/appleId",
+ "style": {
+ "navigationBarTitleText": "注册账号"
+ }
+ },
+ {
+ "path": "pages/message/setting",
+ "style": {
+ "navigationBarTitleText": "设置"
+ }
+ },
+ {
+ "path" : "pages/login/OneClickLogin/OneClickLogin",
+ "style" :
+ {
+ "navigationBarTitleText" : "一键登录",
+ "enablePullDownRefresh" : false
+ }
+ }
+ ],
+ "globalStyle": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "",
+ "navigationBarBackgroundColor": "#F8F8F8",
+ "backgroundColor": "#F8F8F8"
+ },
+ // 设置 TabBar
+ "tabBar": {
+ "color": "#333",
+ "selectedColor": "#27ba9b",
+ "backgroundColor": "#fff",
+ "borderStyle": "white",
+ "list": [
+ {
+ "text": "抢单",
+ "pagePath": "pages/index/index",
+ "iconPath": "static/tabs/home_default.png",
+ "selectedIconPath": "static/tabs/home_selected.png"
+ },
+ {
+ "text": "运单",
+ "pagePath": "pages/category/category",
+ "iconPath": "static/tabs/category_default.png",
+ "selectedIconPath": "static/tabs/category_selected.png"
+ },
+ {
+ "text": "我的",
+ "pagePath": "pages/my/my",
+ "iconPath": "static/tabs/user_default.png",
+ "selectedIconPath": "static/tabs/user_selected.png"
+ }
+ ]
+ }
+}
diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue
index 9de248d..bf074c8 100644
--- a/src/pages/index/index.vue
+++ b/src/pages/index/index.vue
@@ -64,13 +64,13 @@
import deiverPendingOrders from './componets/deiverPendingOrders.vue'
import { queryList } from '@/services/home'
import { ENV } from '@/utils/env'
-import { onLoad } from '@dcloudio/uni-app' //要用这个导入 ---用的这个--自动引入时是这个
+import { onShow } from '@dcloudio/uni-app' //要用这个导入 ---用的这个--自动引入时是这个
import { onMounted } from 'vue'
import { ref } from 'vue'
import { decrypt } from '@/utils/decrypt'
// 生命周期 --页面加载的时候
-onLoad(() => {
+onShow(() => {
// getHomeBannerData()
queryLists()
})
diff --git a/src/pages/login/OneClickLogin/OneClickLogin.vue b/src/pages/login/OneClickLogin/OneClickLogin.vue
new file mode 100644
index 0000000..8f1d931
--- /dev/null
+++ b/src/pages/login/OneClickLogin/OneClickLogin.vue
@@ -0,0 +1,101 @@
+
+
+
+
+
+
+
diff --git a/src/pages/login/login.vue b/src/pages/login/login.vue
index b05f0d5..f2586d4 100644
--- a/src/pages/login/login.vue
+++ b/src/pages/login/login.vue
@@ -102,6 +102,7 @@ import { ENV } from '@/utils/env'
import { useMemberStore } from '@/stores'
import { onMounted } from 'vue'
import { ref } from 'vue'
+import { onLoad } from '@dcloudio/uni-app'
const feilUrl = ref()
const feilUrl1 = ref()
@@ -126,6 +127,19 @@ const UniCode = ref() // 记录
const canclick = ref(true) // 记录具体倒计时时间
const clock = ref() //时间标记
+onLoad(() => {
+ // uni.login({
+ // provider: 'weixin', //使用微信登录
+ // success: function (loginRes: any) {
+ // console.log(loginRes, 'weixin登录')
+ // uni.showToast({
+ // title: `${loginRes.authResult?.openid}`,
+ // icon: 'success',
+ // })
+ // },
+ // })
+})
+
// 判断 是否以读协议
const agreementSearchItem = (e: any) => {
if (agreementSearch.value[0]) {
@@ -186,15 +200,13 @@ const handleLogin = async () => {
return
} else {
// 先发送请求
- loginForm.value.jsCode = UniCode.value
+ // loginForm.value.jsCode = UniCode.value
let URL = '/pages/index/index'
loginUser(loginForm.value)
.then((res: any) => {
+ console.log(res, 'res登录获取到的token')
if (res.code == 200) {
// 存储 vuex token
- // setToken(res.data.access_token)
- // setExpiresIn(res.data.expires_in)
- // 保存会员信息
const memberStore = useMemberStore()
memberStore.setProfile(res.data.access_token)
diff --git a/src/pages/message/setting.vue b/src/pages/message/setting.vue
new file mode 100644
index 0000000..211083e
--- /dev/null
+++ b/src/pages/message/setting.vue
@@ -0,0 +1,230 @@
+
+
+
+
+
+
+
+
+
+
+
+ 头像
+
+ imgSuccess(even)"
+ limit="1"
+ :del-icon="false"
+ disable-preview
+ :imageStyles="imageStyles"
+ file-mediatype="image"
+ >
+
+
+
+
+
+
+
+ 昵称
+ {{ dataInfo.userName }}
+
+
+
+
+ 性别
+
+ {{ dataInfo.gender }}
+
+
+
+
+
+
+
+
+ 手机号
+ {{ dataInfo.userPhone }}
+
+
+
+
+
+
+ 保存信息
+
+
+
+
+ 退出登录
+
+
+
+ 《鸿森通用户服务协议》
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/my/my.vue b/src/pages/my/my.vue
index 3605665..0f00df9 100644
--- a/src/pages/my/my.vue
+++ b/src/pages/my/my.vue
@@ -32,7 +32,7 @@ const orderTypes = [
-
+
-
+
未登录
-
- 设置
-
+ 设置
我的订单
- 查看全部订单
+ 查看全部订单
@@ -77,14 +79,18 @@ const orderTypes = [
-
-
- 其他信息
+
+
+
+