diff --git a/acdr-ui/src/pages.json b/acdr-ui/src/pages.json
index 399d5e7f..040ac0f1 100644
--- a/acdr-ui/src/pages.json
+++ b/acdr-ui/src/pages.json
@@ -179,7 +179,8 @@
"path": "pages/permission/real-name-auth",
"type": "page",
"style": {
- "navigationBarTitleText": "实名认证"
+ "navigationBarTitleText": "实名认证",
+ "navigationStyle": "custom"
}
},
{
diff --git a/acdr-ui/src/pages/certification/index.vue b/acdr-ui/src/pages/certification/index.vue
index a3262576..f23c409b 100644
--- a/acdr-ui/src/pages/certification/index.vue
+++ b/acdr-ui/src/pages/certification/index.vue
@@ -13,7 +13,7 @@
diff --git a/acdr-ui/src/pages/index/components/quickServiceCarousel.vue b/acdr-ui/src/pages/index/components/quickServiceCarousel.vue
index e1fcd283..5493d13a 100644
--- a/acdr-ui/src/pages/index/components/quickServiceCarousel.vue
+++ b/acdr-ui/src/pages/index/components/quickServiceCarousel.vue
@@ -11,7 +11,7 @@
宠物陪伴
-
+
定制商城
diff --git a/acdr-ui/src/pages/permission/real-name-auth.vue b/acdr-ui/src/pages/permission/real-name-auth.vue
index 50903e91..4e85886f 100644
--- a/acdr-ui/src/pages/permission/real-name-auth.vue
+++ b/acdr-ui/src/pages/permission/real-name-auth.vue
@@ -2,21 +2,21 @@
{
style: {
navigationBarTitleText: '实名认证',
+ navigationStyle: 'custom',
},
}
+
+
+
-
-
-
-
-
-
+
请进行身份证实名认证
@@ -57,6 +57,7 @@
import { ref } from 'vue'
import { httpUploadFile } from '@/utils/http'
import { useUserStore } from '@/store'
+import TopBar from '@/components/TopBar.vue'
const frontImage = ref('https://via.placeholder.com/100')
const backImage = ref('https://via.placeholder.com/100')
@@ -126,13 +127,4 @@ const submitAuth = async () => {
}
-
+
diff --git a/acdr-ui/src/static/certification/certification_bg.png b/acdr-ui/src/static/certification/certification_bg.png
new file mode 100644
index 00000000..a0e9132c
Binary files /dev/null and b/acdr-ui/src/static/certification/certification_bg.png differ
diff --git a/acdr-ui/src/static/permission/idcard.png b/acdr-ui/src/static/permission/idcard.png
new file mode 100644
index 00000000..b196e069
Binary files /dev/null and b/acdr-ui/src/static/permission/idcard.png differ
diff --git a/acdr-ui/src/static/permission/idcard_back.png b/acdr-ui/src/static/permission/idcard_back.png
new file mode 100644
index 00000000..205e1853
Binary files /dev/null and b/acdr-ui/src/static/permission/idcard_back.png differ
diff --git a/acdr-ui/src/utils/commUtils.js b/acdr-ui/src/utils/commUtils.js
index 874510a8..eac85ce6 100644
--- a/acdr-ui/src/utils/commUtils.js
+++ b/acdr-ui/src/utils/commUtils.js
@@ -1,3 +1,6 @@
+import sheep from "@/sheep"
+import PLATFORM from "./platform"
+
// 获取服务baseUrl
export const baseUrl = import.meta.env.VITE_SERVER_BASEURL
export const uploadUrl = import.meta.env.VITE_SERVER_BASEURL
@@ -58,5 +61,27 @@ export const scanCodeAsync = () => {
// 路径导航
export const toPath = (path) => {
+ // 如果没有指定路由默认跳转到首页去
+ if (!path) {
+ uni.navigateTo({ url: '/pages/index/index' })
+ return
+ }
+
+ // 判断是不是属于网络路由
+ const isWebUrl = path.startsWith('http://') || path.startsWith('https://')
+ if (isWebUrl) {
+ PLATFORM.isH5 && window.open(path)
+ PLATFORM.isApp && uni.navigateTo({ url: '/pages/webview/webview?url=' + path })
+ return
+ }
+
+ // 判断是不是属于商城的路由界面
+ const isMallPath = path.includes('/pages/mall') !== -1
+ if (isMallPath) {
+ sheep.$router.go(path)
+ return
+ }
+
+ // 其他情况使用 uni.navigateTo
uni.navigateTo({ url: path })
}