From 14040242b25d024790c77bf351ae0dc4f7c39591 Mon Sep 17 00:00:00 2001
From: unknown <331404948@qq.com>
Date: Fri, 8 Nov 2024 18:38:47 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=90=86=E8=AE=BA=E6=95=99?=
=?UTF-8?q?=E7=BB=83?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
config/api.js | 4 +-
pages.json | 9 +++
pages/login/login.vue | 7 +-
pages/tabbar/student/comp/subject1Student.vue | 52 ++++++++----
pages/tabbar/student/index.vue | 11 ++-
pages/userCenter/personaInfo/personaInfo.vue | 7 ++
pages/userCenter/personaInfo/setLatLng.vue | 102 ++++++++++++++++++++++++
pages/userCenter/scanCode/scanCodeSubjiect1.vue | 44 +++++++++-
static/images/index/down.png | Bin 0 -> 369 bytes
store/modules/user.js | 1 +
10 files changed, 211 insertions(+), 26 deletions(-)
create mode 100644 pages/userCenter/personaInfo/setLatLng.vue
create mode 100644 static/images/index/down.png
diff --git a/config/api.js b/config/api.js
index e6a44b1..aaca2e2 100644
--- a/config/api.js
+++ b/config/api.js
@@ -23,7 +23,9 @@ export const studentClassHour = (data) => http.post('business/coach/student_clas
// 获得最近几日结算统计
export const getDaySettlement = (data) => http.post('business/coach/getDaySettlement', data)
// 获得过去半年结算统计
- export const getMonthSettlement = (data) => http.post('business/coach/getMonthSettlement', data)
+ export const getMonthSettlement = (data) => http.post('business/coach/getMonthSettlement', data)
+ // 更新驾校经纬度
+ export const setLngLat = (data) => http.post('business/coach/geo_update', data)
diff --git a/pages.json b/pages.json
index fffa098..dfa617a 100644
--- a/pages.json
+++ b/pages.json
@@ -232,6 +232,15 @@
}
},
{
+ "path": "personaInfo/setLatLng",
+ "style": {
+ "navigationBarTitleText": "设置定位信息",
+ "enablePullDownRefresh": false,
+ "navigationStyle": "custom",
+ "backgroundTextStyle": "dark"
+ }
+ },
+ {
"path": "settled/settled",
"style": {
"navigationBarTitleText": "待结算记录",
diff --git a/pages/login/login.vue b/pages/login/login.vue
index f278e00..2cf61c0 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -122,17 +122,12 @@
const {data: res} = await coachSmsLogin(obj)
this.$store.commit('update_vuex_loginInfo',res)
await this.$store.dispatch('getUserInfo')
- res.userType = 2
- if(res.userType==2) this.$store.commit('upDateIdentity', '理论教练')
- uni.switchTab({
- url: '/pages/tabbar/student/index'
- })
- return
if(res.userType==5) {
this.showRole = true
}else {
if(res.userType==3) this.$store.commit('upDateIdentity', '实操教练')
if(res.userType==4) this.$store.commit('upDateIdentity', '校长')
+ if(res.userType==6) this.$store.commit('upDateIdentity', '理论教练')
uni.switchTab({
url: '/pages/tabbar/student/index'
})
diff --git a/pages/tabbar/student/comp/subject1Student.vue b/pages/tabbar/student/comp/subject1Student.vue
index 2b98eed..5bd0edc 100644
--- a/pages/tabbar/student/comp/subject1Student.vue
+++ b/pages/tabbar/student/comp/subject1Student.vue
@@ -1,27 +1,45 @@
- 张小雨 18267103167
-
-
-
- 120
- 分钟
+
+ {{ item.studentName }} {{ phoneShow(item.studentMobile)}}
+
+
+
+ {{ item.totalTime }}
+ 分钟
+
+ 已完成学时
- 已完成学时
-
-
-
- 120
- 分钟
+
+
+ {{item.validTime}}
+ 分钟
+
+ 应完成学时
- 应完成学时
-
\ No newline at end of file
diff --git a/pages/userCenter/scanCode/scanCodeSubjiect1.vue b/pages/userCenter/scanCode/scanCodeSubjiect1.vue
index 5a933c0..222e479 100644
--- a/pages/userCenter/scanCode/scanCodeSubjiect1.vue
+++ b/pages/userCenter/scanCode/scanCodeSubjiect1.vue
@@ -2,6 +2,16 @@
+
+ {{vuex_cityInfo.city}} / {{vuex_cityInfo.name}}
+
+ 获取定位信息
+
+
+
+
+
+
{{ item.text }}
@@ -60,7 +70,17 @@
// this.refresh = null
},
methods: {
-
+ async getLatLngFn() {
+ try{
+ uni.showLoading({
+ title: '正在更新位置...'
+ })
+ await this.$store.dispatch('getCity')
+ this.refresh()
+ }catch(e){
+ uni.hideLoading()
+ }
+ },
changeTab(item) {
if(item.id==this.currentType) return
this.currentType = item.id
@@ -85,6 +105,28 @@